How get global attributes on side the alfresco share

cancel
Showing results for 
Search instead for 
Did you mean: 
alex_fedorov
Member II

How get global attributes on side the alfresco share

I am recording settings using AttributeServece in alfresco repo. How can I get these settings on side the alfresco share?

public class ConfigManager {

@Autowired
AttributeService attributeService;

public void set(String key, String value) {
attributeService.setAttribute(value, key);
}

 

1 Reply
arjunmony
Active Member II

Re: How get global attributes on side the alfresco share

Hello,

Better write a webscript in repo side and access it from the share.

You can check response.status for the response code and you can parse the response into a JavaScript object as needed.

For Example:

var connector = remote.connect("alfresco-api");

var data =connector.get("/nodes/{nodeId}/versions/{versionId}");