cancel
Showing results for 
Search instead for 
Did you mean: 

How get global attributes on side the alfresco share

alex_fedorov
Champ in-the-making
Champ in-the-making

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 1

arjunmony
Star Contributor
Star Contributor

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}");