Package edm.edom3
Interface EDMAccess
-
- All Superinterfaces:
EDMContextDependent
public interface EDMAccess extends EDMContextDependent
This interface represents access rights to an object for a specific role.- Author:
- aet
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description EDMAccessManager
getAccessManager()
Get the access manager for this accesslong
getAccessRights()
Get access rights bitmask for this accesslong
getRole()
Get the role for this accessEDMUserOrGroup
getUserOrGroup()
return the user or group for this accessboolean
isAccessFor()
Check if this access is a special granted accessvoid
setAccessRights(long rights)
Set access rights bitmask for this access-
Methods inherited from interface edm.edom3.EDMContextDependent
getContext
-
-
-
-
Method Detail
-
getAccessManager
EDMAccessManager getAccessManager() throws EdmiException
Get the access manager for this access- Returns:
- access manager object
- Throws:
EdmiException
- If the method fails
-
isAccessFor
boolean isAccessFor() throws EdmiException
Check if this access is a special granted access- Returns:
- true if role is ROLE_ACCESS_FOR_USER or ROLE_ACCESS_FOR_GROUP.
- Throws:
EdmiException
- If the method fails
-
getRole
long getRole() throws EdmiException
Get the role for this access- Returns:
- role enumeration code
- Throws:
EdmiException
- If the method fails- See Also:
EDMConstants.AccessCodes
-
getUserOrGroup
EDMUserOrGroup getUserOrGroup() throws EdmiException
return the user or group for this access- Returns:
- user/group if dedicated, null of no dedicated (role != ACCESS_FOR_xxx)
- Throws:
EdmiException
- If the method fails
-
getAccessRights
long getAccessRights() throws EdmiException
Get access rights bitmask for this access- Returns:
- access rights bitmask for this access
- Throws:
EdmiException
- If the method fails- See Also:
EDMConstants.AccessCodes
-
setAccessRights
void setAccessRights(long rights) throws EdmiException
Set access rights bitmask for this access- Parameters:
rights
- Acces rights bitmask- Throws:
EdmiException
- if the method fails- See Also:
EDMConstants.AccessCodes
-
-