Access to Alfresco Repositories Config

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

Access to Alfresco Repositories Config

Jump to solution

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 Solution

Accepted Solutions
Established Member II

Re: Access to Alfresco Repositories Config

Jump to solution

Hi!

I finally got it!

[...]

@Autowired
AlfrescoOnPremService alfrescoService;

[...]

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

[...]

Smiley Happy

View solution in original post

1 Reply
Established Member II

Re: Access to Alfresco Repositories Config

Jump to solution

Hi!

I finally got it!

[...]

@Autowired
AlfrescoOnPremService alfrescoService;

[...]

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

[...]

Smiley Happy

View solution in original post