public class AuthService extends Object
Constructor and Description |
---|
AuthService() |
Modifier and Type | Method and Description |
---|---|
void |
assignRole(String user,
String role) |
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) |
GrantedRoleList |
getGrantedRoles(String nodeId) |
GrantedUserList |
getGrantedUsers(String nodeId) |
String |
getMail(String user) |
String |
getName(String user) |
RoleList |
getRoles() |
RoleList |
getRolesByUser(String user) |
UserList |
getUsers() |
UserList |
getUsersByRole(String role) |
void |
grantRole(String nodeId,
String role,
int permissions,
boolean recursive) |
void |
grantUser(String nodeId,
String user,
int permissions,
boolean recursive) |
void |
removeRole(String user,
String role) |
void |
revokeRole(String nodeId,
String role,
int permissions,
boolean recursive) |
void |
revokeUser(String nodeId,
String user,
int permissions,
boolean recursive) |
void |
updateRole(String role,
boolean active) |
void |
updateUser(String user,
String password,
String email,
String name,
boolean active) |
public GrantedRoleList getGrantedRoles(String nodeId) throws GenericException
GenericException
public GrantedUserList getGrantedUsers(String nodeId) throws GenericException
GenericException
public RoleList getRoles() throws PrincipalAdapterException
PrincipalAdapterException
public UserList getUsers() throws PrincipalAdapterException
PrincipalAdapterException
public void grantRole(String nodeId, String role, int permissions, boolean recursive) throws GenericException
GenericException
public void grantUser(String nodeId, String user, int permissions, boolean recursive) throws GenericException
GenericException
public void revokeRole(String nodeId, String role, int permissions, boolean recursive) throws GenericException
GenericException
public void revokeUser(String nodeId, String user, int permissions, boolean recursive) throws GenericException
GenericException
public UserList getUsersByRole(String role) throws GenericException
GenericException
public RoleList getRolesByUser(String user) throws GenericException
GenericException
public String getMail(String user) throws GenericException
GenericException
public String getName(String user) throws GenericException
GenericException
public void createUser(String user, String password, String email, String name, boolean active) throws GenericException
GenericException
public void deleteUser(String user) throws GenericException
GenericException
public void updateUser(String user, String password, String email, String name, boolean active) throws GenericException
GenericException
public void createRole(String role, boolean active) throws GenericException
GenericException
public void deleteRole(String role) throws GenericException
GenericException
public void updateRole(String role, boolean active) throws GenericException
GenericException
public void assignRole(String user, String role) throws GenericException
GenericException
public void removeRole(String user, String role) throws GenericException
GenericException
Copyright © 2015. All Rights Reserved.