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
RepositoryException
DatabaseException
public 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
PrincipalAdapterException
public String[] getUsers(String token) throws PrincipalAdapterException
PrincipalAdapterException
public 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
PrincipalAdapterException
public String[] getRolesByUser(String token, String user) throws PrincipalAdapterException
PrincipalAdapterException
public String getMail(String token, String user) throws PrincipalAdapterException
PrincipalAdapterException
public String getName(String token, String user) throws PrincipalAdapterException
PrincipalAdapterException
Copyright © 2016. All rights reserved.