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 |
|---|---|
void |
assignRole(String user,
String role) |
void |
changeSecurity(ChangeSecurity changeSecurity) |
void |
createRole(String role,
boolean active) |
void |
createUser(String user,
String password,
String email,
String name,
boolean active) |
void |
deleteRole(String role) |
void |
deleteUser(String user) |
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<ProfileSimple> |
getProfiles(boolean filterByActive) |
List<String> |
getRoles()
getRoles
|
List<String> |
getRolesByUser(String user)
getRolesByUser
|
ProfileSimple |
getUserProfile(String userId) |
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 role,
int permissions,
boolean recursive)
grantUser
|
void |
removeRole(String user,
String role) |
void |
revokeRole(String nodeId,
String role,
int permissions,
boolean recursive)
revokeRole
|
void |
revokeUser(String nodeId,
String user,
int permissions,
boolean recursive)
revokeUser
|
void |
setUserProfile(String userId,
long profileId) |
void |
updateRole(String role,
boolean active) |
void |
updateUser(String user,
String password,
String email,
String name,
boolean active) |
getClientpublic AuthImpl(String host, String user, String password, BeanHelper beanHelper)
public 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 role, int permissions, boolean recursive) throws AccessDeniedException, RepositoryException, DatabaseException, PathNotFoundException, UnknowException, WebserviceException
grantUser in interface BaseAuthAccessDeniedExceptionRepositoryExceptionDatabaseExceptionPathNotFoundExceptionUnknowExceptionWebserviceExceptionpublic void changeSecurity(ChangeSecurity changeSecurity) throws PathNotFoundException, AccessDeniedException, RepositoryException, DatabaseException, UnknowException, WebserviceException
changeSecurity in interface BaseAuthPathNotFoundExceptionAccessDeniedExceptionRepositoryExceptionDatabaseExceptionUnknowExceptionWebserviceExceptionpublic List<ProfileSimple> getProfiles(boolean filterByActive) throws PrincipalAdapterException, WebserviceException, UnknowException
getProfiles in interface BaseAuthPrincipalAdapterExceptionWebserviceExceptionUnknowExceptionpublic ProfileSimple getUserProfile(String userId) throws PrincipalAdapterException, WebserviceException, UnknowException
getUserProfile in interface BaseAuthPrincipalAdapterExceptionWebserviceExceptionUnknowExceptionpublic void setUserProfile(String userId, long profileId) throws PrincipalAdapterException, WebserviceException, UnknowException
setUserProfile in interface BaseAuthPrincipalAdapterExceptionWebserviceExceptionUnknowExceptionpublic void createUser(String user, String password, String email, String name, boolean active) throws PrincipalAdapterException, WebserviceException, UnknowException
createUser in interface BaseAuthPrincipalAdapterExceptionWebserviceExceptionUnknowExceptionpublic void deleteUser(String user) throws PrincipalAdapterException, WebserviceException, UnknowException
deleteUser in interface BaseAuthPrincipalAdapterExceptionWebserviceExceptionUnknowExceptionpublic void updateUser(String user, String password, String email, String name, boolean active) throws PrincipalAdapterException, UnknowException, WebserviceException
updateUser in interface BaseAuthPrincipalAdapterExceptionUnknowExceptionWebserviceExceptionpublic void createRole(String role, boolean active) throws PrincipalAdapterException, UnknowException, WebserviceException
createRole in interface BaseAuthPrincipalAdapterExceptionUnknowExceptionWebserviceExceptionpublic void deleteRole(String role) throws PrincipalAdapterException, UnknowException, WebserviceException
deleteRole in interface BaseAuthPrincipalAdapterExceptionUnknowExceptionWebserviceExceptionpublic void updateRole(String role, boolean active) throws PrincipalAdapterException, UnknowException, WebserviceException
updateRole in interface BaseAuthPrincipalAdapterExceptionUnknowExceptionWebserviceExceptionpublic void assignRole(String user, String role) throws PrincipalAdapterException, UnknowException, WebserviceException
assignRole in interface BaseAuthPrincipalAdapterExceptionUnknowExceptionWebserviceExceptionpublic void removeRole(String user, String role) throws PrincipalAdapterException, UnknowException, WebserviceException
removeRole in interface BaseAuthPrincipalAdapterExceptionUnknowExceptionWebserviceExceptionCopyright © 2016 Open Knowledge Management System S.L.. All rights reserved.