public interface PrincipalAdapter
| Modifier and Type | Method and Description | 
|---|---|
| void | assignRole(String user,
          String role)Method to assign a role | 
| void | createRole(String role,
          boolean active)Method to create a new role | 
| void | createUser(String user,
          String password,
          String email,
          String name,
          boolean active)Method to create a new user | 
| void | deleteRole(String role)Method to create a delete a role | 
| void | deleteUser(String user)Method to create a delete a user | 
| String | getMail(String user)Method to retrieve the mail from a user. | 
| String | getName(String user)Method to retrieve the name from a user. | 
| String | getPassword(String user)Method to retrieve the user password | 
| List<String> | getRoles()Method to retrieve all roles from a authentication source. | 
| List<String> | getRolesByUser(String user)Method to retrieve all roles from a user. | 
| List<String> | getUsers()Method to retrieve all users from a authentication source. | 
| List<String> | getUsersByRole(String role)Method to retrieve all users from a role. | 
| void | removeRole(String user,
          String role)Method to remove a role | 
| void | updateRole(String role,
          boolean active)Update role information | 
| void | updateUser(String user,
          String password,
          String email,
          String name,
          boolean active)Update user information | 
List<String> getUsers() throws PrincipalAdapterException
PrincipalAdapterException - If any error occurs.List<String> getRoles() throws PrincipalAdapterException
PrincipalAdapterException - If any error occurs.List<String> getUsersByRole(String role) throws PrincipalAdapterException
PrincipalAdapterException - If any error occurs.List<String> getRolesByUser(String user) throws PrincipalAdapterException
PrincipalAdapterException - If any error occurs.String getMail(String user) throws PrincipalAdapterException
user - A user id.PrincipalAdapterException - If any error occurs.String getName(String user) throws PrincipalAdapterException
user - A user id.PrincipalAdapterException - If any error occurs.String getPassword(String user) throws PrincipalAdapterException
user - A user id.PrincipalAdapterException - If any error occurs.void createUser(String user, String password, String email, String name, boolean active) throws PrincipalAdapterException
user - A user id.password - The password of the user.email - The user mail.name - The full user name.PrincipalAdapterException - If any error occurs.void deleteUser(String user) throws PrincipalAdapterException
user - A user id.PrincipalAdapterException - If any error occurs.void updateUser(String user, String password, String email, String name, boolean active) throws PrincipalAdapterException
user - A user id.password - The password of the user.email - The user mail.name - The full user name.PrincipalAdapterException - If any error occurs.void createRole(String role, boolean active) throws PrincipalAdapterException
role - A role id.PrincipalAdapterException - If any error occurs.void deleteRole(String role) throws PrincipalAdapterException
role - A role id.PrincipalAdapterException - If any error occurs.void updateRole(String role, boolean active) throws PrincipalAdapterException
role - A role id..PrincipalAdapterException - If any error occurs.void assignRole(String user, String role) throws PrincipalAdapterException
user - A user id.role - A role id.PrincipalAdapterException - If any error occurs.void removeRole(String user, String role) throws PrincipalAdapterException
user - A user id.role - A role id.PrincipalAdapterException - If any error occurs.Copyright © 2015. All Rights Reserved.