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?
Yes! I want to do this
Okay, in that case you can use the out-of-the-box login web script and invoke it from your front-end passing in the required parameters to it.
Take a look at Listing pre-built web scripts | Alfresco Documentation to get to know the available web scripts in Alfresco, from there you should be able to find the login web script.
Let me know if you face any issue for it.
Hope this helps.
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.
I see ,Thank you very much.
I see,Thank you very much
I just want to login in the repo using the public java API,What can i do?
Retrieving data ...