com.centrasite.control.registry.items
Class ConceptItem

java.lang.Object
  extended by com.centrasite.control.AbstractItem
      extended by com.centrasite.control.registry.items.RegistryObjectItem
          extended by com.centrasite.control.registry.items.ConceptItem
All Implemented Interfaces:
Item

public class ConceptItem
extends RegistryObjectItem


Nested Class Summary
 
Nested classes/interfaces inherited from class com.centrasite.control.registry.items.RegistryObjectItem
RegistryObjectItem.ProfileVisibilityBean, RegistryObjectItem.ReferencingDescriptor
 
Field Summary
 
Fields inherited from class com.centrasite.control.registry.items.RegistryObjectItem
profilePermissionUpdated, REFERENCING_LIST_AS_ITEMS, REFERENCING_LIST_AS_REFOBJECTS
 
Fields inherited from class com.centrasite.control.AbstractItem
rcs_id
 
Constructor Summary
ConceptItem(javax.xml.registry.infomodel.RegistryObject ro, Connector con)
          This reduced constructor is used when "blowing" up ClassificationSchema to ClassificationSchemeItem via reflection
 
Method Summary
 boolean cannotHaveChildren()
          Check whether this node may have children
 ConceptItem createConcept()
           
 Item createInstance()
           
 boolean equals(java.lang.Object other)
           
 boolean equals(RegistryObjectProxyItem other)
           
 javax.xml.registry.infomodel.Concept getCachedConcept()
           
 java.util.Iterator<ConceptItem> getChildren()
           
 java.util.Iterator<ConceptItem> getChildren(boolean refresh)
           
 javax.xml.registry.infomodel.Concept getConcept()
           
 com.softwareag.cis.plugin.command.Command getDetailsCommand()
           
 java.lang.String getDisplayName()
           
static java.lang.String getDisplayName(javax.xml.registry.infomodel.Concept concept, java.util.Locale lc)
           
 java.lang.String getImageURL()
           
static java.util.HashMap<java.lang.String,java.lang.String> getJaxrObjectTypes()
           
 java.lang.String getLabel()
          Obtain label to be used when representing this object e.g. within association navigator
 java.lang.String getLocalName()
           
static java.lang.String getLocalName(javax.xml.registry.infomodel.Concept concept)
           
 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 getQNameString()
           
static java.lang.String getQNameString(javax.xml.registry.infomodel.Concept concept)
           
 ReportInterface getReport()
          Get report to be used when selecting given object in tree.
 ReportInterface getReportForDetailView()
          Get report to be used for data access in detail view of this item - not for child nodes!
 int hashCode()
          Provide hash function for being able to use RegistryObjectItems as key for hashing
 boolean hasNoChildren()
           
 boolean isObjectType()
          Does this concept represent an object type (is it is a concept within the ObjectType classification scheme)?
static boolean isObjectType(javax.xml.registry.infomodel.Concept concept)
           
 boolean isStandaloneObjectType()
           
 void showReport(ActionContext actionContext)
          Show a report for this item.
 
Methods inherited from class com.centrasite.control.registry.items.RegistryObjectItem
addAuditComment, addClassification, addClassification, addExternalClassification, addInternelClassification, clearCache, clearProperties, delete, delete, freeze, getAccessControlElements, getCachedRegistryObject, getCentraSiteRegistryObject, getCentraSiteVirtualTypeConcept, getCollectRestServiceAssociatedObjects, getCollectVirtualServiceAssociatedObjects, getCurrentUserPermissionItem, getDefinedSlotNames, getDescription, getKey, getLargeImageURL, getLastAuditableEvent, getName, getName, getNonPermissionAccessControlElements, getPermissionForNonPermissionACL, getPrivilegeDescriptor, getProperties, getReferencingItems, getReferencingObjects, getRegistryObject, getSlotDescriptions, getTooltip, hasObjectType, hasObjectType, hasObjectType, isCanPropagateACL, isCentraSiteVirtualTypeConcept, isEnabledForVersioning, isModified, isNewItem, isPredefined, isPropagateProfileEnabled, isRevisionObject, isStandalone, save, setAccessControlElements, setAccessControlElements, setCanPropagateACL, setCollectRestServiceAssociatedObjects, setCollectVirtualServiceAssociatedObjects, setNewItem, setPropagateProfileEnabled, setProperties, toString
 
Methods inherited from class com.centrasite.control.AbstractItem
addBulkCommand, addCommand, addDetailViewTab, getBulkCommands, getCommand, getCommand, getCommands, getConnector, getDefaultCommand, getDetailViewTabs, getItem, getLanguage, getLocale, getPersistanceLocale, getRelatedItems, hasRequiredAttribute, isLocked, isReadOnly, isSubTabModified, removeCommand, replaceCommand, setCommandEnabled, setConnector, setDefaultCommand, setDetailsCommand, setLocked, setRelatedItems, setRequiredAttribute, setTabModified, showDetailView
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ConceptItem

public ConceptItem(javax.xml.registry.infomodel.RegistryObject ro,
                   Connector con)
            throws java.lang.Exception
This reduced constructor is used when "blowing" up ClassificationSchema to ClassificationSchemeItem via reflection

Throws:
java.lang.Exception
Method Detail

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

getConcept

public javax.xml.registry.infomodel.Concept getConcept()
Returns:
object as concept

getCachedConcept

public javax.xml.registry.infomodel.Concept getCachedConcept()
Returns:
(potentially stale) cached object as concept

isObjectType

public boolean isObjectType()
Does this concept represent an object type (is it is a concept within the ObjectType classification scheme)?

Returns:
true if object type

isStandaloneObjectType

public boolean isStandaloneObjectType()

isObjectType

public static boolean isObjectType(javax.xml.registry.infomodel.Concept concept)
                            throws java.lang.Exception
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 RegistryObjectItem

getReportForDetailView

public ReportInterface getReportForDetailView()
Get report to be used for data access in detail view of this item - not for child nodes!

Specified by:
getReportForDetailView in interface Item
Overrides:
getReportForDetailView in class RegistryObjectItem

showReport

public void showReport(ActionContext actionContext)
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
Parameters:
actionContext -

getImageURL

public java.lang.String getImageURL()
Specified by:
getImageURL in interface Item
Overrides:
getImageURL in class RegistryObjectItem

getNameEx

public java.lang.String getNameEx()
                           throws java.lang.Exception
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 RegistryObjectItem
Throws:
java.lang.Exception

getDisplayName

public java.lang.String getDisplayName()
                                throws java.lang.Exception
Throws:
java.lang.Exception

getDisplayName

public static java.lang.String getDisplayName(javax.xml.registry.infomodel.Concept concept,
                                              java.util.Locale lc)
                                       throws java.lang.Exception
Throws:
java.lang.Exception

getLocalName

public java.lang.String getLocalName()
                              throws java.lang.Exception
Throws:
java.lang.Exception

getLocalName

public static java.lang.String getLocalName(javax.xml.registry.infomodel.Concept concept)
                                     throws java.lang.Exception
Throws:
java.lang.Exception

getQNameString

public java.lang.String getQNameString()
                                throws java.lang.Exception
Throws:
java.lang.Exception

getQNameString

public static java.lang.String getQNameString(javax.xml.registry.infomodel.Concept concept)
                                       throws java.lang.Exception
Throws:
java.lang.Exception

getLabel

public java.lang.String getLabel()
                          throws java.lang.Exception
Obtain label to be used when representing this object e.g. within association navigator

Overrides:
getLabel in class RegistryObjectItem
Returns:
the label - must be localized as far as applicable
Throws:
java.lang.Exception

getChildren

public java.util.Iterator<ConceptItem> getChildren()
                                            throws java.lang.Exception,
                                                   java.lang.InstantiationException,
                                                   java.lang.IllegalAccessException
Specified by:
getChildren in interface Item
Overrides:
getChildren in class RegistryObjectItem
Throws:
java.lang.Exception
java.lang.InstantiationException
java.lang.IllegalAccessException

getChildren

public java.util.Iterator<ConceptItem> getChildren(boolean refresh)
                                            throws java.lang.Exception,
                                                   java.lang.InstantiationException,
                                                   java.lang.IllegalAccessException
Specified by:
getChildren in interface Item
Overrides:
getChildren in class RegistryObjectItem
Throws:
java.lang.Exception
java.lang.InstantiationException
java.lang.IllegalAccessException

hasNoChildren

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

cannotHaveChildren

public boolean cannotHaveChildren()
Check whether this node may have children

Specified by:
cannotHaveChildren in interface Item
Overrides:
cannotHaveChildren in class AbstractItem
Returns:
true if this node cannot have children

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

createInstance

public Item createInstance()
                    throws java.lang.Exception
Throws:
java.lang.Exception

createConcept

public ConceptItem createConcept()
                          throws java.lang.Exception
Throws:
java.lang.Exception

equals

public boolean equals(RegistryObjectProxyItem other)
Overrides:
equals in class RegistryObjectItem

getJaxrObjectTypes

public static java.util.HashMap<java.lang.String,java.lang.String> getJaxrObjectTypes()

hashCode

public int hashCode()
Description copied from class: RegistryObjectItem
Provide hash function for being able to use RegistryObjectItems as key for hashing

Overrides:
hashCode in class RegistryObjectItem

equals

public boolean equals(java.lang.Object other)
Overrides:
equals in class RegistryObjectItem