As we transition to the new Hyland Community, some post links may be temporarily disrupted as we finalize redirects. We apologize for the inconvenience and are working to resolve this as quickly as possible. Details.
how can we use the java api login?
Could you please elaborate what exactly you are looking for? Do you mean to invoke login web script through Java code?
according to the architecture ,above the repo,it has the public java api ,the rest api is based on it,how can we use it to authenticate
What is the use case that you are trying to achieve? Do you have a different front-end system and are you using Alfresco just as a backend repository and you want to connect your front-end to backend alfresco repository?
The public api is an Embedded API , it is used to develop extensions to the Alfresco content application server,create new services in Alfresco, or write customizations .For example you want to implement a web script, you need other public java api, even so you still don't need login public java API。So generally you don't need login public java API.
You need to be a bit more careful with the naming here since Alfresco unfortunately has created a bit of a mess with naming the APIs.
Java Service API - the embedded Java service-level API used in extensions that integrated directly in the Alfresco Repository, which includes the AuthenticationService for performing login
Public API - the aggregate ReST + CMIS API that can be consumed by external applications to access Alfresco, including initial login/authentication
Cloud Public API - a slightly extended variant of the Public API for talking to the Alfresco Cloud service including an OAuth2 authentication scheme
If you create an extension to the Alfresco Repository and use the Java Service APIs you typically do not need call any authentication because the Repository should already authenticate the user (provided custom web scripts / endpoints aren't explicitly configured to be consumed anonymously). In all other cases you need authentication and should consult the corresponding documentation.
Yes! I want to do this
I just want to login in the repo using the public java API,What can i do?
I see ,Thank you very much.
I see,Thank you very much