EDMAccess
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 and 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 accessMethods inherited from interface edm.edom3.EDMContextDependent
getContext
Method Detail
getAccessManager
EDMAccessManager getAccessManager() throws EdmiException
Get the access manager for this accessReturns:access manager objectThrows:EdmiException - If the method fails
isAccessFor
boolean isAccessFor() throws EdmiException
Check if this access is a special granted accessReturns: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 accessReturns:role enumeration codeThrows:EdmiException - If the method failsSee Also:EDMConstants.AccessCodes
getUserOrGroup
EDMUserOrGroup getUserOrGroup() throws EdmiException
return the user or group for this accessReturns: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 accessReturns:access rights bitmask for this accessThrows:EdmiException - If the method failsSee Also:EDMConstants.AccessCodes
setAccessRights
void setAccessRights(long rights) throws EdmiException
Set access rights bitmask for this accessParameters:rights - Acces rights bitmaskThrows:EdmiException - if the method failsSee Also:EDMConstants.AccessCodes