Access to Alfresco Repositories Config

cancel
Showing results for 
Search instead for 
Did you mean: 
fegor
Senior Member

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
fegor
Senior Member

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
fegor
Senior Member

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