public class AuthService extends Object
| Constructor and Description |
|---|
AuthService() |
| Modifier and Type | Method and Description |
|---|---|
IntegerPair[] |
getGrantedRoles(String token,
String nodePath) |
IntegerPair[] |
getGrantedUsers(String token,
String nodePath) |
String |
getMail(String token,
String user) |
String |
getName(String token,
String user) |
String[] |
getRoles(String token) |
String[] |
getRolesByUser(String token,
String user) |
String[] |
getUsers(String token) |
String[] |
getUsersByRole(String token,
String role) |
void |
grantRole(String token,
String nodePath,
String role,
int permissions,
boolean recursive) |
void |
grantUser(String token,
String nodePath,
String user,
int permissions,
boolean recursive) |
String |
login(String user,
String password) |
void |
logout(String token) |
void |
revokeRole(String token,
String nodePath,
String role,
int permissions,
boolean recursive) |
void |
revokeUser(String token,
String nodePath,
String user,
int permissions,
boolean recursive) |
public String login(String user, String password) throws AccessDeniedException, RepositoryException, DatabaseException
public void logout(String token) throws RepositoryException, DatabaseException
RepositoryExceptionDatabaseExceptionpublic IntegerPair[] getGrantedRoles(String token, String nodePath) throws PathNotFoundException, AccessDeniedException, RepositoryException, DatabaseException
public IntegerPair[] getGrantedUsers(String token, String nodePath) throws PathNotFoundException, AccessDeniedException, RepositoryException, DatabaseException
public String[] getRoles(String token) throws PrincipalAdapterException
PrincipalAdapterExceptionpublic String[] getUsers(String token) throws PrincipalAdapterException
PrincipalAdapterExceptionpublic void grantRole(String token, String nodePath, String role, int permissions, boolean recursive) throws PathNotFoundException, AccessDeniedException, RepositoryException, DatabaseException
public void grantUser(String token, String nodePath, String user, int permissions, boolean recursive) throws PathNotFoundException, AccessDeniedException, RepositoryException, DatabaseException
public void revokeRole(String token, String nodePath, String role, int permissions, boolean recursive) throws PathNotFoundException, AccessDeniedException, RepositoryException, DatabaseException
public void revokeUser(String token, String nodePath, String user, int permissions, boolean recursive) throws PathNotFoundException, AccessDeniedException, RepositoryException, DatabaseException
public String[] getUsersByRole(String token, String role) throws PrincipalAdapterException
PrincipalAdapterExceptionpublic String[] getRolesByUser(String token, String user) throws PrincipalAdapterException
PrincipalAdapterExceptionpublic String getMail(String token, String user) throws PrincipalAdapterException
PrincipalAdapterExceptionpublic String getName(String token, String user) throws PrincipalAdapterException
PrincipalAdapterExceptionCopyright © 2016. All rights reserved.