Bonita Engine API, реализация API входа не найдена - PullRequest
0 голосов
/ 14 апреля 2020

Я пытаюсь найти реализацию Bonita LoginAPI, но в Bonita Engine я нашел только интерфейс LoginAPI, есть ли кто-нибудь, кто знает, где найти реализацию LoginAPI? Спасибо.

Здесь есть код интерфейса LoginAPI:


     import org.bonitasoft.engine.platform.LogoutException;
     import org.bonitasoft.engine.platform.UnknownUserException;
     import org.bonitasoft.engine.session.APISession;
     import org.bonitasoft.engine.session.SessionNotFoundException;

    /**
    * The LoginAPI allows to log in (and out) onto the Engine. This is a mandatory step to go further using 
    the Engine
    * APIs.
    * Other Engine APIs are only accessible through the returned APISession.
    *
    * @author Matthieu Chaffotte
    * @author Zhang Bole
    * @see APISession
    */
    @NoSessionRequired
    public interface LoginAPI {

    /**
     * Connects the user in order to use API methods of the default tenant.
     *
     * @param userName
     *        the user name
     * @param password
     *        the password
     * @return the session to use with other tenant API methods
     * @throws LoginException
     *         occurs when an exception is thrown during login
     * @throws UnknownUserException
     *         occurs when the user trying to login is unknown to the engine
     */
    APISession login(String userName, String password) throws LoginException, UnknownUserException;

    /**
     * Connects the user in order to use API methods of the default tenant.
     *
     * @param credentials
     *        the properties to use to login
     * @return the session to use with other tenant API methods
     * @throws LoginException
     *         occurs when an exception is thrown during login
     */
    APISession login(Map<String, Serializable> credentials) throws LoginException;

    /**
     * Disconnects the logged user on a tenant according to the given session.
     *
     * @param session
     *        the tenant session
     * @throws SessionNotFoundException
     *         if the given session is not found on the server side. This may occurs when the session has expired.
     * @throws LogoutException
     *         occurs when an exception is thrown during the logout
     */
    void logout(APISession session) throws SessionNotFoundException, LogoutException;

}
...