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 |
login() |
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) |
@Path(value="/login") public void login() throws GenericException
GenericException
@Path(value="/getGrantedRoles") public GrantedRoleList getGrantedRoles(String nodeId) throws GenericException
GenericException
@Path(value="/getGrantedUsers") public GrantedUserList getGrantedUsers(String nodeId) throws GenericException
GenericException
@Path(value="/getRoles") public RoleList getRoles() throws PrincipalAdapterException
PrincipalAdapterException
@Path(value="/getUsers") public UserList getUsers() throws PrincipalAdapterException
PrincipalAdapterException
@Path(value="/grantRole") public void grantRole(String nodeId, String role, int permissions, boolean recursive) throws GenericException
GenericException
@Path(value="/grantUser") public void grantUser(String nodeId, String user, int permissions, boolean recursive) throws GenericException
GenericException
@Path(value="/revokeRole") public void revokeRole(String nodeId, String role, int permissions, boolean recursive) throws GenericException
GenericException
@Path(value="/revokeUser") public void revokeUser(String nodeId, String user, int permissions, boolean recursive) throws GenericException
GenericException
@Path(value="/getUsersByRole/{role}") public UserList getUsersByRole(String role) throws GenericException
GenericException
@Path(value="/getRolesByUser/{user}") public RoleList getRolesByUser(String user) throws GenericException
GenericException
@Path(value="/getMail/{user}") public String getMail(String user) throws GenericException
GenericException
@Path(value="/getName/{user}") public String getName(String user) throws GenericException
GenericException
@Path(value="/createUser") public void createUser(String user, String password, String email, String name, boolean active) throws GenericException
GenericException
@Path(value="/deleteUser") public void deleteUser(String user) throws GenericException
GenericException
@Path(value="/updateUser") public void updateUser(String user, String password, String email, String name, boolean active) throws GenericException
GenericException
@Path(value="/createRole") public void createRole(String role, boolean active) throws GenericException
GenericException
@Path(value="/deleteRole") public void deleteRole(String role) throws GenericException
GenericException
@Path(value="/updateRole") public void updateRole(String role, boolean active) throws GenericException
GenericException
@Path(value="/assignRole") public void assignRole(String user, String role) throws GenericException
GenericException
@Path(value="/removeRole") public void removeRole(String user, String role) throws GenericException
GenericException
Copyright © 2018 Open Knowledge Management System S.L.. All rights reserved.