Reputation: 131
I found out its possible to access the global properties of an alfresco instance by exposing the following property in a bean definition.
<property name="properties">
<ref bean="global-properties"/>
</property>
But I want to access the global properties by the javascript controller of a webscript. How is this possible?
running alfresco 3.4.d
Upvotes: 2
Views: 1411
Reputation: 46543
I'm not sure if there is a root object for global properties,
but any information available in a Spring bean can be available to a javascript controller using ProcessorExtension an ScriptProcessorRegistry mecanism of the Surf Framework.
using them you can define and add your own root object with the properties (method) you'd like to have.
Upvotes: 2