com.centrasite.control.security.items
Class AbstractRoleItem

java.lang.Object
  extended by com.centrasite.control.AbstractItem
      extended by com.centrasite.control.security.items.AbstractRoleItem
All Implemented Interfaces:
Item, IPrincipal
Direct Known Subclasses:
UserItem

public abstract class AbstractRoleItem
extends AbstractItem
implements IPrincipal

Represent a role


Field Summary
 
Fields inherited from class com.centrasite.control.AbstractItem
rcs_id
 
Constructor Summary
AbstractRoleItem(CentraSiteRoleManager parent, Connector connector, javax.xml.registry.infomodel.RegistryObject registryObject)
           
 
Method Summary
abstract  void delete()
           
 java.util.Iterator getChildren()
           
 java.util.Iterator getChildren(boolean refresh)
           
 java.lang.String getDescription()
           
 java.lang.String getDomain()
           
 java.lang.String getImageURL()
           
 java.lang.String getName()
           
 java.lang.String getNameEx()
          Get "extended/alternate name".
 java.lang.String getPath()
          For some object types (especially for RepositoryObjectItems) this method may return a reasonable path - instances of other classes should return null
 java.lang.String getPropertyAttribute(java.lang.String arg0)
           
 java.util.Enumeration getPropertyKeys()
           
 javax.xml.registry.infomodel.RegistryObject getRegistryObject()
           
 ReportInterface getReport()
          Get report to be used when selecting given object in tree.
 CentraSiteRoleManager getRoleManagementItem()
           
 java.lang.String getType()
           
 boolean hasNoChildren()
           
 boolean isRole()
           
 void saveUserLinks(java.util.Iterator it)
           
 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, getNonPermissionAccessControlElements, getPersistanceLocale, getPrivilegeDescriptor, getProperties, getRelatedItems, 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
 

Constructor Detail

AbstractRoleItem

public AbstractRoleItem(CentraSiteRoleManager parent,
                        Connector connector,
                        javax.xml.registry.infomodel.RegistryObject registryObject)
Method Detail

getName

public java.lang.String getName()
Specified by:
getName in interface Item
Specified by:
getName in interface IPrincipal

getDomain

public java.lang.String getDomain()

getDescription

public java.lang.String getDescription()
Specified by:
getDescription in interface Item

delete

public abstract void delete()
                     throws java.lang.Exception
Throws:
java.lang.Exception

saveUserLinks

public void saveUserLinks(java.util.Iterator it)
                   throws java.lang.Exception
Throws:
java.lang.Exception

getNameEx

public java.lang.String getNameEx()
Description copied from class: AbstractItem
Get "extended/alternate name". This method is only used in some rare locations e.g. currently when obtaining the label of an item in the tree. Its usage is discouraged in general. This default implementation returns same as getName().

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

getRoleManagementItem

public CentraSiteRoleManager getRoleManagementItem()

getChildren

public java.util.Iterator getChildren(boolean refresh)
                               throws java.lang.Exception
Specified by:
getChildren in interface Item
Throws:
java.lang.Exception

getChildren

public java.util.Iterator getChildren()
                               throws java.lang.Exception
Specified by:
getChildren in interface Item
Throws:
java.lang.Exception

getPath

public java.lang.String getPath()
                         throws java.lang.Exception
Description copied from class: AbstractItem
For some object types (especially for RepositoryObjectItems) this method may return a reasonable path - instances of other classes should return null

Specified by:
getPath in interface Item
Overrides:
getPath in class AbstractItem
Returns:
a path (if reasonable) or null
Throws:
java.lang.Exception

hasNoChildren

public boolean hasNoChildren()
                      throws java.lang.Exception
Specified by:
hasNoChildren in interface Item
Throws:
java.lang.Exception

getReport

public ReportInterface getReport()
Description copied from class: AbstractItem
Get report to be used when selecting given object in tree.

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

getImageURL

public java.lang.String getImageURL()
                             throws java.lang.Exception
Specified by:
getImageURL in interface Item
Specified by:
getImageURL in interface IPrincipal
Throws:
java.lang.Exception

isRole

public boolean isRole()
Specified by:
isRole in interface IPrincipal

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

getType

public java.lang.String getType()
Specified by:
getType in interface IPrincipal

getPropertyAttribute

public java.lang.String getPropertyAttribute(java.lang.String arg0)
Specified by:
getPropertyAttribute in interface IPrincipal

getPropertyKeys

public java.util.Enumeration getPropertyKeys()
Specified by:
getPropertyKeys in interface IPrincipal

getRegistryObject

public javax.xml.registry.infomodel.RegistryObject getRegistryObject()