Daily Log for #alfresco IRC Channel

Alfresco discussion and collaboration. Stick around a few hours after asking a question.

Official support for Enterprise subscribers: support.alfresco.com.

Joining the Channel:

Join in the conversation by getting an IRC client and connecting to #alfresco at Freenode. Our you can use the IRC web chat.

More information about the channel is in the wiki.

Getting Help

More help is available in this list of resources.

Daily Log for #alfresco

2018-11-26 08:55:07 GMT *** angelborroy_ is now known as angelborroy

2018-11-26 09:00:42 GMT <alfresco-discord> <mnybon> Hello everyone. I'm just joining the community. I am currently looking into creating a java code-generator for parsing module-files and creating corresponding java-classes to get around all the free Strings you have to juggle when creating/using your own model. Do you guys know if anyone has tried this already? I had no luck on my google safari when trying to figure out if someone had already done it.

2018-11-26 09:01:25 GMT <alfresco-discord> <Thijs> you mean model xml's?

2018-11-26 09:03:56 GMT <alfresco-discord> <mnybon> yes exactly

2018-11-26 09:04:33 GMT <alfresco-discord> <mnybon> So my idea is to create a maven plugin which parses the alfresco models and any custom models and creates a class heirachy in Java

2018-11-26 09:04:48 GMT <alfresco-discord> <mnybon> And put that in the generate-sources phase

2018-11-26 09:05:08 GMT <alfresco-discord> <Thijs> I think we have something like that, but it's not (yet) open source

2018-11-26 09:07:16 GMT <alfresco-discord> <yreg> We have that as well as an internal tool

2018-11-26 09:08:09 GMT <alfresco-discord> <yreg> to generate boilerplate code for models (pojos, model interface, share forms config...) but I am afraid that's not opensource either

2018-11-26 09:09:55 GMT <alfresco-discord> <mnybon> OK. I might be back with questions later 😃 Currently my biggest unturned rock is how to get the generated code integrated with Spring. This is sort of my first Spring outing so I am not really sure what I'm doing yet.

2018-11-26 09:11:13 GMT <alfresco-discord> <Thijs> what we have, is apparently a Gradle task to do this

2018-11-26 09:11:28 GMT <alfresco-discord> <Thijs> using Mustache templates

2018-11-26 09:11:50 GMT <alfresco-discord> <Thijs> I don't see the link with Spring

2018-11-26 09:12:03 GMT <alfresco-discord> <Thijs> in the end, you generate a jar and you can use it from any Java code

2018-11-26 09:21:38 GMT <alfresco-discord> <mnybon> I want to create a number of methods either inside the generated types, or as static methods on a helper class to call the alfresco beans, so instead of calling setProperties(nodeRef, properties) for example you would just call myFlder.update(), where Folder is my generated class, or Folder.update(myFolder)

2018-11-26 09:22:02 GMT <alfresco-discord> <mnybon> but i would kind of need to be able to get hold of the NodeService

2018-11-26 09:55:11 GMT <alfresco-discord> <yreg> @mnybon unrelated to your request, you might want to consider using addProperties instead of setProperties that one adds/replaces properties and is usually safer

2018-11-26 09:55:38 GMT <alfresco-discord> <mnybon> Ok. Thank you for the heads up

2018-11-26 09:57:19 GMT <alfresco-discord> <yreg> for your question, you could either inject your services in the constructor or use some static member of some helper to hold your services, but that doesn't sound very clean to me

2018-11-26 10:15:10 GMT <alfresco-discord> <mnybon> I don't believe it's a showstopper in any way, so I will trip on that bridge when I come to it. Thank you for your time. I'll be back when I have something more than just parsing the XML files 😃

2018-11-26 10:50:47 GMT * AFaust puts popcorn on his shopping list to be prepared for any (heated / mildly warm) discussions to be had about ACS 6.1 Community skipping a GA release...

2018-11-26 10:56:40 GMT <alfresco-discord> <MorganP> Maybe the community should stop reporting bugs to Alfresco so the EE release is full of bugs and unusable

2018-11-26 10:57:03 GMT <alfresco-discord> <MorganP> Most probably this is the reason for not having a GA release

2018-11-26 10:58:39 GMT <AFaust> Well... it's not like I (or others I know) still report all/any issues. A lot we already fix ourselves and don't bother reporting because they are typically not dealt with...

2018-11-26 10:59:10 GMT <AFaust> That includes Enterprise customers who are fed up with Support ping-pong

2018-11-26 10:59:33 GMT <alfresco-discord> <MorganP> true..

2018-11-26 13:21:59 GMT *** jelly-home is now known as jelly

2018-11-26 13:53:27 GMT <alfresco-discord> <mbui> Is the next years Alfresco Devcon 1/2 day shorter? There's usually a conference on the Friday as well.

2018-11-26 14:10:30 GMT <alfresco-discord> <LMattioli> I'm staring at the In-Place Bulk Importer ( https://docs.alfresco.com/5.2/concepts/bulk-import-in-place.html ) , thinking it could be useful in a future project. If I understand, I can use this to index content without moving it? And If another program access the same filesystem: what happens?

2018-11-26 14:10:31 GMT <alfbot> Title:In-place bulk import | Alfresco Documentation (at docs.alfresco.com)

2018-11-26 14:26:47 GMT <AFaust> mbui; It is the same length as this year's DevCon

2018-11-26 15:19:08 GMT <alfresco-discord> <mbui> AFaust: Maybe i'm mixing last years DevCon with last Beecon. 😅

2018-11-26 16:03:30 GMT <Tichodroma> strange error in a RO system: a JS WS controller throws "ReferenceError: \"companyhome\" is not defined."

2018-11-26 16:03:54 GMT <Tichodroma> authentication=user

2018-11-26 16:33:32 GMT <AFaust> Tichodroma: And there is not a chance that somebody actually deleted company home? (I have seen that done on a system once)

2018-11-26 16:36:48 GMT <Tichodroma> the JS name or the directory?

2018-11-26 19:05:09 GMT <AFaust> ~later tell Tichodroma: The directoy / node (or just renaming it might also break the root variable)

2018-11-26 19:05:09 GMT <alfbot> AFaust: The operation succeeded.

End of Daily Log

The other logs are at http://esplins.org/hash_alfresco