cancel
Showing results for 
Search instead for 
Did you mean: 

Access to Alfresco Repositories Config

fegor
Star Collaborator
Star Collaborator

H!

I need access to Alfresco Repositories Config (host, port, etc.) I have access from rest (http://localhost:9080/activiti-app/api/enterprise/profile/accounts/alfresco) but I need access from Javascript (Script Task) or Java.

Is possibe?

Best regards.

1 ACCEPTED ANSWER

fegor
Star Collaborator
Star Collaborator

Hi!

I finally got it!

[...]

@Autowired
AlfrescoOnPremService alfrescoService;

[...]

ResultListDataRepresentation resultListDataRepresentation = this.alfrescoService.getRepositories(Long.parseLong("1"), true);

[...]

Smiley Happy

View answer in original post

1 REPLY 1

fegor
Star Collaborator
Star Collaborator

Hi!

I finally got it!

[...]

@Autowired
AlfrescoOnPremService alfrescoService;

[...]

ResultListDataRepresentation resultListDataRepresentation = this.alfrescoService.getRepositories(Long.parseLong("1"), true);

[...]

Smiley Happy