for our own content types I've created a new document action as well as an indicator that displays an icon in front of the documents (see also one of my former questions: https://forums.alfresco.com/forum/developer-discussions/alfresco-share-development/module-dependent-...). Now, I want to provide the possibility to control the visibility of the icon and the action command by property keys in the alfresco-global.properties. Some background to understand: The document action opens the document with an external program. But not all customers that use our product will have the program installed properly / configured correctly. Or they do not want to open documents outside of Alfresco. This is why I'm looking for an easy way to control this behaviour simply by a property key. So at the end, the admin should be able to enable/disable the functionality by setting some parameter to true or false.
What would be the best approach to solve this? Is it possible at all? At least I will need a WebScript on repository tier to read the properties file. But how and where to invoke this on Share side to receive and process the values for the indicator/evaluator?
And can you have this property set in module bean instantiation? The admin can still just flip the true/false, and when your module/bean is instantiated, it'll get injected this value?