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<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 |
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) |
getClient
public 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 BaseAuth
AccessDeniedException
RepositoryException
DatabaseException
PathNotFoundException
WebserviceException
UnknowException
public Map<String,Integer> getGrantedUsers(String nodeId) throws AccessDeniedException, RepositoryException, DatabaseException, PathNotFoundException, WebserviceException, UnknowException
getGrantedUsers
in interface BaseAuth
AccessDeniedException
RepositoryException
DatabaseException
PathNotFoundException
WebserviceException
UnknowException
public String getMail(String user) throws PrincipalAdapterException, AccessDeniedException, RepositoryException, DatabaseException, UnknowException, WebserviceException
getMail
in interface BaseAuth
PrincipalAdapterException
AccessDeniedException
RepositoryException
DatabaseException
UnknowException
WebserviceException
public String getName(String user) throws DatabaseException, RepositoryException, PrincipalAdapterException, AccessDeniedException, WebserviceException, UnknowException
getName
in interface BaseAuth
DatabaseException
RepositoryException
PrincipalAdapterException
AccessDeniedException
WebserviceException
UnknowException
public List<String> getRoles() throws AccessDeniedException, RepositoryException, DatabaseException, PrincipalAdapterException, WebserviceException, UnknowException
getRoles
in interface BaseAuth
AccessDeniedException
RepositoryException
DatabaseException
PrincipalAdapterException
WebserviceException
UnknowException
public List<String> getRolesByUser(String user) throws AccessDeniedException, RepositoryException, DatabaseException, PrincipalAdapterException, WebserviceException, UnknowException
getRolesByUser
in interface BaseAuth
AccessDeniedException
RepositoryException
DatabaseException
PrincipalAdapterException
WebserviceException
UnknowException
public List<String> getUsers() throws AccessDeniedException, RepositoryException, DatabaseException, PrincipalAdapterException, UnknowException, WebserviceException
getUsers
in interface BaseAuth
AccessDeniedException
RepositoryException
DatabaseException
PrincipalAdapterException
UnknowException
WebserviceException
public List<String> getUsersByRole(String role) throws AccessDeniedException, RepositoryException, DatabaseException, PrincipalAdapterException, UnknowException, WebserviceException
getUsersByRole
in interface BaseAuth
AccessDeniedException
RepositoryException
DatabaseException
PrincipalAdapterException
UnknowException
WebserviceException
public void revokeRole(String nodeId, String role, int permissions, boolean recursive) throws AccessDeniedException, RepositoryException, DatabaseException, PathNotFoundException, UnknowException, WebserviceException
revokeRole
in interface BaseAuth
AccessDeniedException
RepositoryException
DatabaseException
PathNotFoundException
UnknowException
WebserviceException
public void revokeUser(String nodeId, String user, int permissions, boolean recursive) throws AccessDeniedException, RepositoryException, DatabaseException, PathNotFoundException, UnknowException, WebserviceException
revokeUser
in interface BaseAuth
AccessDeniedException
RepositoryException
DatabaseException
PathNotFoundException
UnknowException
WebserviceException
public void grantRole(String nodeId, String role, int permissions, boolean recursive) throws AccessDeniedException, RepositoryException, DatabaseException, PathNotFoundException, UnknowException, WebserviceException
grantRole
in interface BaseAuth
AccessDeniedException
RepositoryException
DatabaseException
PathNotFoundException
UnknowException
WebserviceException
public void grantUser(String nodeId, String role, int permissions, boolean recursive) throws AccessDeniedException, RepositoryException, DatabaseException, PathNotFoundException, UnknowException, WebserviceException
grantUser
in interface BaseAuth
AccessDeniedException
RepositoryException
DatabaseException
PathNotFoundException
UnknowException
WebserviceException
public List<ProfileSimple> getProfiles(boolean filterByActive) throws PrincipalAdapterException, WebserviceException, UnknowException
getProfiles
in interface BaseAuth
PrincipalAdapterException
WebserviceException
UnknowException
public ProfileSimple getUserProfile(String userId) throws PrincipalAdapterException, WebserviceException, UnknowException
getUserProfile
in interface BaseAuth
PrincipalAdapterException
WebserviceException
UnknowException
public void setUserProfile(String userId, long profileId) throws PrincipalAdapterException, WebserviceException, UnknowException
setUserProfile
in interface BaseAuth
PrincipalAdapterException
WebserviceException
UnknowException
Copyright © 2015. All rights reserved.