| java.lang.Object org.fao.geonet.kernel.AccessManager
AccessManager | public class AccessManager (Code) | | Handles the access to a metadata depending on the metadata/group
|
canEdit | public boolean canEdit(ServiceContext context, String id) throws Exception(Code) | | Returns true if, and only if, at least one of these conditions is satisfied
- The user is the metadata owner
- The user is an Administrator
- The user is a Reviewer and the metadata groupOwner is one of his groups
|
getOperations | public HashSet<String> getOperations(ServiceContext context, String mdId, String ip) throws Exception(Code) | | Given a user(session) a list of groups and a metadata returns all operations that user
can perform on that metadata (an set of OPER_XXX as keys)
If the user is authenticated the permissions are taken from the groups the user belong
If the user is not authenticated, a dynamic group is assigned depending on user location
(0 for internal and 1 for external)
|
getPrivilegeName | public String getPrivilegeName(int id)(Code) | | |
getUserGroups | public Set<String> getUserGroups(Dbms dbms, UserSession usrSess, String ip) throws Exception(Code) | | Returns all groups accessible by the user (a set of ids)
|
|
|