com.centrasite.jaxr.security
Interface InstanceLevelPrivilege


public interface InstanceLevelPrivilege

InstanceLevelPrivilege maintains the view/update/full privileges. The update privilege implies the view privilege, and the full privilege implies the update privilege.


Nested Class Summary
static class InstanceLevelPrivilege.PrivilegeValue
          Define the possible privilege values.
 
Method Summary
 InstanceLevelPrivilege.PrivilegeValue getPrivilege()
          Get the privilege value.
 boolean hasPrivilege(InstanceLevelPrivilege.PrivilegeValue privilege)
          Determine whether this privilege has or implies the requested privilege value.
 void setPrivilege(InstanceLevelPrivilege.PrivilegeValue privilege)
          Set the privilege value.
 

Method Detail

hasPrivilege

boolean hasPrivilege(InstanceLevelPrivilege.PrivilegeValue privilege)
                     throws javax.xml.registry.JAXRException
Determine whether this privilege has or implies the requested privilege value.

Parameters:
privilege - the privilege to be checked
Returns:
true if this privilege has or implies the requested privilege value.
Throws:
javax.xml.registry.JAXRException

setPrivilege

void setPrivilege(InstanceLevelPrivilege.PrivilegeValue privilege)
                  throws javax.xml.registry.JAXRException
Set the privilege value.

Parameters:
privilege - the privilege to be set
Throws:
javax.xml.registry.JAXRException

getPrivilege

InstanceLevelPrivilege.PrivilegeValue getPrivilege()
                                                   throws javax.xml.registry.JAXRException
Get the privilege value.

Returns:
the privilege value
Throws:
javax.xml.registry.JAXRException