com.centrasite.control.security.items
Class InstanceLevelPermissionItem
java.lang.Object
com.centrasite.control.AbstractItem
com.centrasite.control.security.items.AbstractAce
com.centrasite.control.security.items.InstanceLevelPermissionItem
- All Implemented Interfaces:
- Item
public class InstanceLevelPermissionItem
- extends AbstractAce
Field Summary |
static java.util.Collection<java.lang.String> |
FIND_QUALIFIERS
|
Methods inherited from class com.centrasite.control.security.items.AbstractAce |
getAllPrivilege, getDescription, getName, getPropertiesPrivilege, getReadPrivilege, getSecurityChangePrivilege, getSecurityPrivilege, getSecurityReadPrivilege, getWritePrivilege, isAll, isAuthenticated, isGrant, isGroup, isOwner, isSelf, isUnauthenticated, setAll, setAllPrivilege, setAuthenticated, setGroup, setHref, setOwner, setPropertiesPrivilege, setReadPrivilege, setSecurityChangePrivilege, setSecurityPrivilege, setSecurityReadPrivilege, setSelf, setUnauthenticated, setWritePrivilege, showReport |
Methods inherited from class com.centrasite.control.AbstractItem |
addBulkCommand, addCommand, addDetailViewTab, cannotHaveChildren, clearCache, clearProperties, getAccessControlElements, getBulkCommands, getCommand, getCommand, getConnector, getCurrentUserPermissionItem, getDetailViewTabs, getItem, getKey, getLanguage, getLocale, getNameEx, getNonPermissionAccessControlElements, getPath, getPersistanceLocale, getPrivilegeDescriptor, getProperties, getRelatedItems, getReport, getReportForDetailView, hasRequiredAttribute, isLocked, isModified, isStandalone, isSubTabModified, removeCommand, replaceCommand, save, setAccessControlElements, setCommandEnabled, setConnector, setDefaultCommand, setDetailsCommand, setLocked, setProperties, setRelatedItems, setRequiredAttribute, setTabModified |
Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
FIND_QUALIFIERS
public static final java.util.Collection<java.lang.String> FIND_QUALIFIERS
InstanceLevelPermissionItem
public InstanceLevelPermissionItem(Connector connector,
com.centrasite.jaxr.security.InstanceLevelPermissionEntry instanceLevelPermission)
throws javax.xml.registry.JAXRException
- Throws:
javax.xml.registry.JAXRException
InstanceLevelPermissionItem
public InstanceLevelPermissionItem(Connector connector,
com.centrasite.jaxr.security.InstanceLevelPermissionEntry instanceLevelPermission,
boolean readOnly)
throws javax.xml.registry.JAXRException
- Throws:
javax.xml.registry.JAXRException
createPrincipal
public static com.centrasite.jaxr.security.CentraSitePrincipal createPrincipal(RegistryObjectItem roi,
Connector connector)
throws java.lang.Exception
- Throws:
java.lang.Exception
createInstancePermissionItem
public static InstanceLevelPermissionItem createInstancePermissionItem(RegistryObjectItem principalRoi,
Connector connector)
throws java.lang.Exception
- Throws:
java.lang.Exception
createInstanceLevelPrivilege
public static com.centrasite.jaxr.security.InstanceLevelPrivilege createInstanceLevelPrivilege(com.centrasite.jaxr.security.InstanceLevelPrivilege.PrivilegeValue value,
Connector connector)
throws javax.xml.registry.JAXRException
- Throws:
javax.xml.registry.JAXRException
createCurrentUserInstancePermissionItem
public static InstanceLevelPermissionItem createCurrentUserInstancePermissionItem(com.centrasite.jaxr.security.InstanceLevelPrivilege privilege,
Connector connector)
throws java.lang.Exception
- Throws:
java.lang.Exception
getInstanceLevelPermissionEntry
public com.centrasite.jaxr.security.InstanceLevelPermissionEntry getInstanceLevelPermissionEntry()
isReadOnly
public boolean isReadOnly()
- Specified by:
isReadOnly
in interface Item
- Overrides:
isReadOnly
in class AbstractItem
getDisplayName
public java.lang.String getDisplayName()
- Overrides:
getDisplayName
in class AbstractAce
- Returns:
- Name for display purposes only. Not to be used for operations.
hasViewPrivilege
public boolean hasViewPrivilege()
throws javax.xml.registry.JAXRException
- Overrides:
hasViewPrivilege
in class AbstractAce
- Throws:
javax.xml.registry.JAXRException
hasUpdatePrivilege
public boolean hasUpdatePrivilege()
throws javax.xml.registry.JAXRException
- Overrides:
hasUpdatePrivilege
in class AbstractAce
- Throws:
javax.xml.registry.JAXRException
hasFullPrivilege
public boolean hasFullPrivilege()
throws javax.xml.registry.JAXRException
- Overrides:
hasFullPrivilege
in class AbstractAce
- Throws:
javax.xml.registry.JAXRException
setViewPrivilege
public void setViewPrivilege()
throws javax.xml.registry.JAXRException
- Throws:
javax.xml.registry.JAXRException
setUpdatePrivilege
public void setUpdatePrivilege()
throws javax.xml.registry.JAXRException
- Throws:
javax.xml.registry.JAXRException
setFullPrivilege
public void setFullPrivilege()
throws javax.xml.registry.JAXRException
- Throws:
javax.xml.registry.JAXRException
hasPrivilege
public boolean hasPrivilege(com.centrasite.jaxr.security.InstanceLevelPrivilege.PrivilegeValue privilege)
throws javax.xml.registry.JAXRException
- Overrides:
hasPrivilege
in class AbstractAce
- Throws:
javax.xml.registry.JAXRException
isPrincipalDeleted
public boolean isPrincipalDeleted()
throws java.lang.Exception
- Check whether this is a "dangling" instance level permission i.e. granted to principal which is no longer
available or deleted.
- Returns:
- true if the Principal of this instance level permission has been deleted or false otherwise.
- Throws:
java.lang.Exception
getPrincipal
public com.centrasite.jaxr.security.CentraSitePrincipal getPrincipal()
throws javax.xml.registry.JAXRException
- Throws:
javax.xml.registry.JAXRException
getIcon
public java.lang.String getIcon()
getImageURL
public java.lang.String getImageURL()
- Specified by:
getImageURL
in interface Item
- Overrides:
getImageURL
in class AbstractAce
getRegistryObjectForPrincipal
public javax.xml.registry.infomodel.RegistryObject getRegistryObjectForPrincipal()
throws java.lang.Exception
- Throws:
java.lang.Exception
getItemForPrincipal
public Item getItemForPrincipal()
throws java.lang.Exception
- Throws:
java.lang.Exception
getRegistryObjectItemForPrincipal
public RegistryObjectItem getRegistryObjectItemForPrincipal()
throws java.lang.Exception
- Throws:
java.lang.Exception
toString
public java.lang.String toString()
- Overrides:
toString
in class AbstractItem
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in class java.lang.Object
hashCode
public int hashCode()
- Overrides:
hashCode
in class java.lang.Object
showDetailView
public void showDetailView(ActionContext actionContext)
- Description copied from class:
AbstractItem
- Show the details for this item
- Specified by:
showDetailView
in interface Item
- Overrides:
showDetailView
in class AbstractItem
getCommands
public java.util.List getCommands()
- Description copied from class:
AbstractItem
- Get list of commands available for the current object
- Specified by:
getCommands
in interface Item
- Overrides:
getCommands
in class AbstractItem
- Returns:
- the list of commands
getDefaultCommand
public com.softwareag.cis.plugin.command.Command getDefaultCommand()
- Specified by:
getDefaultCommand
in interface Item
- Overrides:
getDefaultCommand
in class AbstractItem
- Returns:
- Returns the defaultCommand.
getDetailsCommand
public com.softwareag.cis.plugin.command.Command getDetailsCommand()
- Specified by:
getDetailsCommand
in interface Item
- Overrides:
getDetailsCommand
in class AbstractItem
- Returns:
- Returns the Command that opens the Details
setProfileLevelPermissions
public void setProfileLevelPermissions(java.util.Map<java.lang.Integer,java.lang.Character> profileLevelPermissions)
getProfileLevelPermissions
public java.util.Map<java.lang.Integer,java.lang.Character> getProfileLevelPermissions()
- Get the profile level permissions map.
- Returns:
- Could be null if dealing if non-registry object or the registry object does not have profiles defined.
getChildren
public java.util.Iterator getChildren()
throws java.lang.Exception
- Specified by:
getChildren
in interface Item
- Overrides:
getChildren
in class AbstractAce
- Throws:
java.lang.Exception
getChildren
public java.util.Iterator getChildren(boolean refresh)
throws java.lang.Exception
- Specified by:
getChildren
in interface Item
- Overrides:
getChildren
in class AbstractAce
- Throws:
java.lang.Exception
hasNoChildren
public boolean hasNoChildren()
throws java.lang.Exception
- Specified by:
hasNoChildren
in interface Item
- Overrides:
hasNoChildren
in class AbstractAce
- Throws:
java.lang.Exception
getBindPrivilege
public int getBindPrivilege()
- Specified by:
getBindPrivilege
in class AbstractAce
getContentPrivilege
public int getContentPrivilege()
- Description copied from class:
AbstractAce
- registry privileges
- Specified by:
getContentPrivilege
in class AbstractAce
getDeletePrivilege
public int getDeletePrivilege()
- Specified by:
getDeletePrivilege
in class AbstractAce
getSecurityUserPrivilege
public int getSecurityUserPrivilege()
- Description copied from class:
AbstractAce
- repository privileges
- Specified by:
getSecurityUserPrivilege
in class AbstractAce
getUnbindPrivilege
public int getUnbindPrivilege()
- Specified by:
getUnbindPrivilege
in class AbstractAce
setBindPrivilege
public void setBindPrivilege(int bindPrivilege)
- Specified by:
setBindPrivilege
in class AbstractAce
setContentPrivilege
public void setContentPrivilege(int contentPrivilege)
- Specified by:
setContentPrivilege
in class AbstractAce
setDeletePrivilege
public void setDeletePrivilege(int deletePrivilege)
- Specified by:
setDeletePrivilege
in class AbstractAce
setSecurityUserPrivilege
public void setSecurityUserPrivilege(int securityUserPrivilege)
- Specified by:
setSecurityUserPrivilege
in class AbstractAce
setUnbindPrivilege
public void setUnbindPrivilege(int unbindPrivilege)
- Specified by:
setUnbindPrivilege
in class AbstractAce