/** * Same as calling {@code login(null, null)}. * <p> * This method may be overwritten. * * @return the result of calling {@link #login(Credentials, String) * login(null, null)}. * @throws LoginException If login is not possible * @throws RepositoryException If another error occurrs during login * @see #login(Credentials, String) */ @Override public Session login() throws LoginException, RepositoryException { return this.login(null, null); }
/** * Same as calling {@code login(credentials, null)}. * <p> * This method may be overwritten. * * @param credentials The {@code Credentials} to use to login. * @return the result of calling {@link #login(Credentials, String) * login(credentials, null)}. * @throws LoginException If login is not possible * @throws RepositoryException If another error occurrs during login * @see #login(Credentials, String) */ @Override public Session login(final Credentials credentials) throws LoginException, RepositoryException { return this.login(credentials, null); }
/** * Same as calling {@code login(null, workspace)}. * <p> * This method may be overwritten. * * @param workspace The workspace to access or {@code null} to access the * {@link #getDefaultWorkspace() default workspace} * @return the result of calling {@link #login(Credentials, String) * login(null, workspace)}. * @throws LoginException If login is not possible * @throws RepositoryException If another error occurrs during login * @see #login(Credentials, String) */ @Override public Session login(final String workspace) throws LoginException, NoSuchWorkspaceException, RepositoryException { return this.login(null, workspace); }