public class AuthImpl extends ClientImpl implements BaseAuth
| Constructor and Description |
|---|
AuthImpl(String host,
String user,
String password,
BeanHelper beanHelper)
OKMAuth
|
| Modifier and Type | Method and Description |
|---|---|
Map<String,Integer> |
getGrantedRoles(String nodeId)
getGrantedRoles
|
Map<String,Integer> |
getGrantedUsers(String nodeId)
getGrantedUsers
|
String |
getMail(String user)
getMail
|
String |
getName(String user)
getName
|
List<String> |
getRoles()
getRoles
|
List<String> |
getRolesByUser(String user)
getRolesByUser
|
List<String> |
getUsers()
getUsers
|
List<String> |
getUsersByRole(String role)
getUsersByRole
|
void |
grantRole(String nodeId,
String role,
int permissions,
boolean recursive)
grantRole
|
void |
grantUser(String nodeId,
String user,
int permissions,
boolean recursive)
grantUser
|
void |
login() |
void |
revokeRole(String nodeId,
String role,
int permissions,
boolean recursive)
revokeRole
|
void |
revokeUser(String nodeId,
String user,
int permissions,
boolean recursive)
revokeUser
|
getClientpublic AuthImpl(String host, String user, String password, BeanHelper beanHelper)
public void login()
throws UnknowException,
WebserviceException
login in interface BaseAuthUnknowExceptionWebserviceExceptionpublic Map<String,Integer> getGrantedRoles(String nodeId) throws AccessDeniedException, RepositoryException, DatabaseException, PathNotFoundException, WebserviceException, UnknowException
getGrantedRoles in interface BaseAuthAccessDeniedExceptionRepositoryExceptionDatabaseExceptionPathNotFoundExceptionWebserviceExceptionUnknowExceptionpublic Map<String,Integer> getGrantedUsers(String nodeId) throws AccessDeniedException, RepositoryException, DatabaseException, PathNotFoundException, WebserviceException, UnknowException
getGrantedUsers in interface BaseAuthAccessDeniedExceptionRepositoryExceptionDatabaseExceptionPathNotFoundExceptionWebserviceExceptionUnknowExceptionpublic String getMail(String user) throws PrincipalAdapterException, AccessDeniedException, RepositoryException, DatabaseException, UnknowException, WebserviceException
getMail in interface BaseAuthPrincipalAdapterExceptionAccessDeniedExceptionRepositoryExceptionDatabaseExceptionUnknowExceptionWebserviceExceptionpublic String getName(String user) throws DatabaseException, RepositoryException, PrincipalAdapterException, AccessDeniedException, WebserviceException, UnknowException
getName in interface BaseAuthDatabaseExceptionRepositoryExceptionPrincipalAdapterExceptionAccessDeniedExceptionWebserviceExceptionUnknowExceptionpublic List<String> getRoles() throws AccessDeniedException, RepositoryException, DatabaseException, PrincipalAdapterException, WebserviceException, UnknowException
getRoles in interface BaseAuthAccessDeniedExceptionRepositoryExceptionDatabaseExceptionPrincipalAdapterExceptionWebserviceExceptionUnknowExceptionpublic List<String> getRolesByUser(String user) throws AccessDeniedException, RepositoryException, DatabaseException, PrincipalAdapterException, WebserviceException, UnknowException
getRolesByUser in interface BaseAuthAccessDeniedExceptionRepositoryExceptionDatabaseExceptionPrincipalAdapterExceptionWebserviceExceptionUnknowExceptionpublic List<String> getUsers() throws AccessDeniedException, RepositoryException, DatabaseException, PrincipalAdapterException, UnknowException, WebserviceException
getUsers in interface BaseAuthAccessDeniedExceptionRepositoryExceptionDatabaseExceptionPrincipalAdapterExceptionUnknowExceptionWebserviceExceptionpublic List<String> getUsersByRole(String role) throws AccessDeniedException, RepositoryException, DatabaseException, PrincipalAdapterException, UnknowException, WebserviceException
getUsersByRole in interface BaseAuthAccessDeniedExceptionRepositoryExceptionDatabaseExceptionPrincipalAdapterExceptionUnknowExceptionWebserviceExceptionpublic void revokeRole(String nodeId, String role, int permissions, boolean recursive) throws AccessDeniedException, RepositoryException, DatabaseException, PathNotFoundException, UnknowException, WebserviceException
revokeRole in interface BaseAuthAccessDeniedExceptionRepositoryExceptionDatabaseExceptionPathNotFoundExceptionUnknowExceptionWebserviceExceptionpublic void revokeUser(String nodeId, String user, int permissions, boolean recursive) throws AccessDeniedException, RepositoryException, DatabaseException, PathNotFoundException, UnknowException, WebserviceException
revokeUser in interface BaseAuthAccessDeniedExceptionRepositoryExceptionDatabaseExceptionPathNotFoundExceptionUnknowExceptionWebserviceExceptionpublic void grantRole(String nodeId, String role, int permissions, boolean recursive) throws AccessDeniedException, RepositoryException, DatabaseException, PathNotFoundException, UnknowException, WebserviceException
grantRole in interface BaseAuthAccessDeniedExceptionRepositoryExceptionDatabaseExceptionPathNotFoundExceptionUnknowExceptionWebserviceExceptionpublic void grantUser(String nodeId, String user, int permissions, boolean recursive) throws AccessDeniedException, RepositoryException, DatabaseException, PathNotFoundException, UnknowException, WebserviceException
grantUser in interface BaseAuthAccessDeniedExceptionRepositoryExceptionDatabaseExceptionPathNotFoundExceptionUnknowExceptionWebserviceExceptionCopyright © 2018 Open Knowledge Management System S.L.. All Rights Reserved.