com.centrasite.control.security.items
Class AbstractAce

java.lang.Object
  extended by com.centrasite.control.AbstractItem
      extended by com.centrasite.control.security.items.AbstractAce
All Implemented Interfaces:
Item
Direct Known Subclasses:
AbstractRepositoryAce, InstanceLevelPermissionItem, RegistryAce

public abstract class AbstractAce
extends AbstractItem

Abstract access control element.


Field Summary
static int PRIVILEGE_STATE_DENY
           
static int PRIVILEGE_STATE_GRANT
           
static int PRIVILEGE_STATE_MIXED
           
static int PRIVILEGE_STATE_UNDEFINED
           
 
Fields inherited from class com.centrasite.control.AbstractItem
rcs_id
 
Constructor Summary
AbstractAce(Connector connector)
          Constructs an abstract access control element.
 
Method Summary
 int getAllPrivilege()
           
abstract  int getBindPrivilege()
           
 java.util.Iterator getChildren()
           
 java.util.Iterator getChildren(boolean refresh)
           
abstract  int getContentPrivilege()
          registry privileges
abstract  int getDeletePrivilege()
           
 java.lang.String getDescription()
           
 java.lang.String getDisplayName()
           
 java.lang.String getImageURL()
           
 java.lang.String getName()
           
 int getPropertiesPrivilege()
           
 int getReadPrivilege()
           
 int getSecurityChangePrivilege()
           
 int getSecurityPrivilege()
           
 int getSecurityReadPrivilege()
           
abstract  int getSecurityUserPrivilege()
          repository privileges
abstract  int getUnbindPrivilege()
           
 int getWritePrivilege()
           
 boolean hasFullPrivilege()
           
 boolean hasNoChildren()
           
 boolean hasPrivilege(com.centrasite.jaxr.security.InstanceLevelPrivilege.PrivilegeValue privilege)
           
 boolean hasUpdatePrivilege()
           
 boolean hasViewPrivilege()
           
 boolean isAll()
          Get the "all" indicator.
 boolean isAuthenticated()
          Get the "authenticated" indicator.
 boolean isGrant()
           
 boolean isGroup()
          Checks if this ace represents object in ino:group.
 boolean isOwner()
          Get the "owner" indicator.
 boolean isSelf()
          Get the "self" indicator.
 boolean isUnauthenticated()
          Get the "unauthenticated" indicator.
 void setAll()
          Set the "all" indicator.
 void setAllPrivilege(int allPrivilege)
           
 void setAuthenticated()
          Set the "authenticated" indicator.
abstract  void setBindPrivilege(int bindPrivilege)
           
abstract  void setContentPrivilege(int contentPrivilege)
           
abstract  void setDeletePrivilege(int deletePrivilege)
           
 void setGroup(boolean isGroup)
          Set this ace to a role.
 void setHref(java.lang.String href)
          Set role or user href.
 void setOwner()
          Set the "owner" indicator.
 void setPropertiesPrivilege(int propertiesPrivilege)
           
 void setReadPrivilege(int readPrivilege)
           
 void setSecurityChangePrivilege(int securityChangePrivilege)
           
 void setSecurityPrivilege(int securityPrivilege)
           
 void setSecurityReadPrivilege(int securityReadPrivilege)
           
abstract  void setSecurityUserPrivilege(int securityUserPrivilege)
           
 void setSelf()
          Set the "self" indicator.
 void setUnauthenticated()
          Set the "authenticated" indicator.
abstract  void setUnbindPrivilege(int unbindPrivilege)
           
 void setWritePrivilege(int writePrivilege)
           
 void showReport(ActionContext actionContext)
          Show a report for this item.
 
Methods inherited from class com.centrasite.control.AbstractItem
addBulkCommand, addCommand, addDetailViewTab, cannotHaveChildren, clearCache, clearProperties, getAccessControlElements, getBulkCommands, getCommand, getCommand, getCommands, getConnector, getCurrentUserPermissionItem, getDefaultCommand, getDetailsCommand, getDetailViewTabs, getItem, getKey, getLanguage, getLocale, getNameEx, getNonPermissionAccessControlElements, getPath, getPersistanceLocale, getPrivilegeDescriptor, getProperties, getRelatedItems, getReport, getReportForDetailView, hasRequiredAttribute, isLocked, isModified, isReadOnly, isStandalone, isSubTabModified, removeCommand, replaceCommand, save, setAccessControlElements, setCommandEnabled, setConnector, setDefaultCommand, setDetailsCommand, setLocked, setProperties, setRelatedItems, setRequiredAttribute, setTabModified, showDetailView, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

PRIVILEGE_STATE_UNDEFINED

public static final int PRIVILEGE_STATE_UNDEFINED
See Also:
Constant Field Values

PRIVILEGE_STATE_GRANT

public static final int PRIVILEGE_STATE_GRANT
See Also:
Constant Field Values

PRIVILEGE_STATE_DENY

public static final int PRIVILEGE_STATE_DENY
See Also:
Constant Field Values

PRIVILEGE_STATE_MIXED

public static final int PRIVILEGE_STATE_MIXED
See Also:
Constant Field Values
Constructor Detail

AbstractAce

public AbstractAce(Connector connector)
Constructs an abstract access control element.

Parameters:
connector - The connector
Method Detail

setHref

public void setHref(java.lang.String href)
Set role or user href.

Parameters:
href - The role or user href.

isGroup

public boolean isGroup()
Checks if this ace represents object in ino:group. If yes, then it may be group, permission or role.


setGroup

public void setGroup(boolean isGroup)
Set this ace to a role.

Parameters:
isRole - True indicates a role, otherwise an user

isAll

public boolean isAll()
Get the "all" indicator.


setAll

public void setAll()
Set the "all" indicator.


isSelf

public boolean isSelf()
Get the "self" indicator.


setSelf

public void setSelf()
Set the "self" indicator.


isOwner

public boolean isOwner()
Get the "owner" indicator.


setOwner

public void setOwner()
Set the "owner" indicator.


isAuthenticated

public boolean isAuthenticated()
Get the "authenticated" indicator.


setAuthenticated

public void setAuthenticated()
Set the "authenticated" indicator.


isUnauthenticated

public boolean isUnauthenticated()
Get the "unauthenticated" indicator.


setUnauthenticated

public void setUnauthenticated()
Set the "authenticated" indicator.


getAllPrivilege

public int getAllPrivilege()

setAllPrivilege

public void setAllPrivilege(int allPrivilege)

getReadPrivilege

public int getReadPrivilege()

setReadPrivilege

public void setReadPrivilege(int readPrivilege)

getWritePrivilege

public int getWritePrivilege()

setWritePrivilege

public void setWritePrivilege(int writePrivilege)

getSecurityPrivilege

public int getSecurityPrivilege()

setSecurityPrivilege

public void setSecurityPrivilege(int securityPrivilege)

getSecurityReadPrivilege

public int getSecurityReadPrivilege()

setSecurityReadPrivilege

public void setSecurityReadPrivilege(int securityReadPrivilege)

getSecurityChangePrivilege

public int getSecurityChangePrivilege()

setSecurityChangePrivilege

public void setSecurityChangePrivilege(int securityChangePrivilege)

getPropertiesPrivilege

public int getPropertiesPrivilege()

setPropertiesPrivilege

public void setPropertiesPrivilege(int propertiesPrivilege)

getChildren

public java.util.Iterator getChildren()
                               throws java.lang.Exception
Throws:
java.lang.Exception

getChildren

public java.util.Iterator getChildren(boolean refresh)
                               throws java.lang.Exception
Throws:
java.lang.Exception

getImageURL

public java.lang.String getImageURL()

getName

public java.lang.String getName()

getDisplayName

public java.lang.String getDisplayName()

getDescription

public java.lang.String getDescription()

hasNoChildren

public boolean hasNoChildren()
                      throws java.lang.Exception
Throws:
java.lang.Exception

showReport

public void showReport(ActionContext actionContext)
Description copied from class: AbstractItem
Show a report for this item. Whereas showDetailView() displays the details of this item, showReport() should display tables of "child" objects being contained in or classified with this item.

Specified by:
showReport in interface Item
Overrides:
showReport in class AbstractItem

isGrant

public boolean isGrant()

getContentPrivilege

public abstract int getContentPrivilege()
registry privileges


setContentPrivilege

public abstract void setContentPrivilege(int contentPrivilege)

getDeletePrivilege

public abstract int getDeletePrivilege()

setDeletePrivilege

public abstract void setDeletePrivilege(int deletePrivilege)

getSecurityUserPrivilege

public abstract int getSecurityUserPrivilege()
repository privileges


setSecurityUserPrivilege

public abstract void setSecurityUserPrivilege(int securityUserPrivilege)

getBindPrivilege

public abstract int getBindPrivilege()

setBindPrivilege

public abstract void setBindPrivilege(int bindPrivilege)

getUnbindPrivilege

public abstract int getUnbindPrivilege()

setUnbindPrivilege

public abstract void setUnbindPrivilege(int unbindPrivilege)

hasUpdatePrivilege

public boolean hasUpdatePrivilege()
                           throws javax.xml.registry.JAXRException
Throws:
javax.xml.registry.JAXRException

hasViewPrivilege

public boolean hasViewPrivilege()
                         throws javax.xml.registry.JAXRException
Throws:
javax.xml.registry.JAXRException

hasFullPrivilege

public boolean hasFullPrivilege()
                         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
Throws:
javax.xml.registry.JAXRException