public class RegistryObjectItem extends AbstractItem
Modifier and Type | Class and Description |
---|---|
class |
RegistryObjectItem.ProfileVisibilityBean |
static class |
RegistryObjectItem.ReferencingDescriptor |
Modifier and Type | Field and Description |
---|---|
boolean |
profilePermissionUpdated |
static int |
REFERENCING_LIST_AS_ITEMS |
static int |
REFERENCING_LIST_AS_REFOBJECTS |
rcs_id
Constructor and Description |
---|
RegistryObjectItem(javax.xml.registry.infomodel.RegistryObject ro,
Connector con) |
Modifier and Type | Method and Description |
---|---|
void |
addAuditComment(java.lang.String comment)
Add audit comments
|
void |
addClassification(javax.xml.registry.infomodel.ClassificationScheme classificationScheme,
java.lang.String name,
java.lang.String value)
This function creates the classification based external
classificationscheme , value and name
|
void |
addClassification(javax.xml.registry.infomodel.Concept concept) |
javax.xml.registry.infomodel.Classification |
addExternalClassification(javax.xml.registry.infomodel.ClassificationScheme classificationScheme,
java.lang.String name,
java.lang.String value)
Creates external classification based on external
classificationscheme, value and name and adds it to this registry object item.
|
javax.xml.registry.infomodel.Classification |
addInternelClassification(javax.xml.registry.infomodel.Concept concept)
Creates new internal classification with the given concept
and adds it to this registry object item.
|
void |
clearCache()
Clear cache used for items of this type
|
void |
clearProperties() |
void |
delete() |
void |
delete(java.util.Collection keys) |
boolean |
equals(java.lang.Object other) |
boolean |
equals(RegistryObjectProxyItem other) |
RegistryObjectItem |
freeze() |
java.util.Collection<AbstractAce> |
getAccessControlElements()
Get access control elements
|
javax.xml.registry.infomodel.RegistryObject |
getCachedRegistryObject()
Get the potentially stale registry object from the cache.
|
com.centrasite.jaxr.infomodel.CentraSiteRegistryObject |
getCentraSiteRegistryObject() |
com.centrasite.jaxr.infomodel.CentraSiteConcept |
getCentraSiteVirtualTypeConcept(com.centrasite.jaxr.infomodel.CentraSiteRegistryObject centraSiteRegistryObject) |
java.util.Iterator |
getChildren() |
java.util.Iterator |
getChildren(boolean refresh) |
java.util.Collection<java.lang.String> |
getCollectRestServiceAssociatedObjects() |
java.util.Collection<javax.xml.registry.infomodel.RegistryObject> |
getCollectVirtualServiceAssociatedObjects() |
InstanceLevelPermissionItem |
getCurrentUserPermissionItem()
Get currently logged-in user privilege over this item, wrapped as a InstanceLevelPermissionItem.
|
java.util.Collection |
getDefinedSlotNames()
Get collection of names of slots defined for type
|
java.lang.String |
getDescription() |
java.lang.String |
getImageURL() |
java.lang.String |
getKey()
Obtain a unique key for class of icons
|
java.lang.String |
getLabel()
Obtain label to be used when representing this object e.g. within
association navigator
|
java.lang.String |
getLargeImageURL() |
javax.xml.registry.infomodel.AuditableEvent |
getLastAuditableEvent() |
java.lang.String |
getName() |
static java.lang.String |
getName(javax.xml.registry.infomodel.RegistryObject registryObject,
java.util.Locale lc) |
java.lang.String |
getNameEx()
Get "extended/alternate name".
|
java.util.Collection<AbstractAce> |
getNonPermissionAccessControlElements()
Get access control elements without including permission level permissions.
|
java.lang.String |
getPermissionForNonPermissionACL()
Get top permission id for getting the non permission access control elements.
|
PrivilegeDescriptor |
getPrivilegeDescriptor() |
java.util.ArrayList |
getProperties()
Return list of object specific properties (i.e. not described by schema)
|
java.util.Collection |
getReferencingItems() |
java.util.Collection |
getReferencingObjects() |
javax.xml.registry.infomodel.RegistryObject |
getRegistryObject() |
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!
|
java.util.Collection |
getSlotDescriptions()
Get the slot descriptions of the underlying object type
|
java.lang.String |
getTooltip()
Obtain tooltip to be used when representing this object e.g. within
association navigator
|
int |
hashCode()
Provide hash function for being able to use RegistryObjectItems
as key for hashing
|
boolean |
hasNoChildren() |
static boolean |
hasObjectType(Item item,
java.lang.String objectTypeName)
Test whether given item is a RegistryObjectItem with given object type
|
static boolean |
hasObjectType(RegistryObjectItem roi,
java.lang.String objectTypeName)
Test whether given item is a RegistryObjectItem with given object type
|
static boolean |
hasObjectType(javax.xml.registry.infomodel.RegistryObject registryObject,
java.lang.String objectTypeName)
Test whether given RegistryObject is a RegistryObjectItem with given object type
|
boolean |
isCanPropagateACL() |
boolean |
isCentraSiteVirtualTypeConcept(javax.xml.registry.infomodel.Concept concept) |
boolean |
isEnabledForVersioning() |
boolean |
isModified()
Is the registry object behind this item modified
|
boolean |
isNewItem() |
boolean |
isPredefined()
Is the registry object behind this item Predefined
|
boolean |
isPropagateProfileEnabled() |
boolean |
isRevisionObject() |
boolean |
isStandalone()
Check if Registry object is Standalone or embedded
|
void |
save(ActionContext actionContext)
Save Item
|
void |
setAccessControlElements(java.util.Collection<? extends AbstractAce> accessControlElements)
Set access control elements
|
void |
setAccessControlElements(javax.xml.registry.infomodel.RegistryObject registryObject)
Set access control elements
|
void |
setCanPropagateACL(boolean canPropagateACL) |
void |
setCollectRestServiceAssociatedObjects(java.util.Collection<java.lang.String> collectRestServiceAssociatedObjects) |
void |
setCollectVirtualServiceAssociatedObjects(java.util.Collection<javax.xml.registry.infomodel.RegistryObject> collectVirtualServiceAssociatedObjects) |
void |
setNewItem(boolean newObj) |
void |
setPropagateProfileEnabled(boolean propagateProfileEnabled) |
void |
setProperties(java.util.ArrayList properties) |
java.lang.String |
toString() |
addBulkCommand, addCommand, addDetailViewTab, cannotHaveChildren, getBulkCommands, getCommand, getCommand, getCommands, getConnector, getDefaultCommand, getDetailsCommand, getDetailViewTabs, getItem, getLanguage, getLocale, getPath, getPersistanceLocale, getRelatedItems, hasRequiredAttribute, isLocked, isReadOnly, isSubTabModified, removeCommand, replaceCommand, setCommandEnabled, setConnector, setDefaultCommand, setDetailsCommand, setLocked, setRelatedItems, setRequiredAttribute, setTabModified, showDetailView, showReport
public static final int REFERENCING_LIST_AS_ITEMS
public static final int REFERENCING_LIST_AS_REFOBJECTS
public boolean profilePermissionUpdated
public RegistryObjectItem(javax.xml.registry.infomodel.RegistryObject ro, Connector con) throws java.lang.Exception
java.lang.Exception
public boolean isCanPropagateACL()
public void setCanPropagateACL(boolean canPropagateACL)
public boolean isPropagateProfileEnabled()
public void setPropagateProfileEnabled(boolean propagateProfileEnabled)
public java.lang.String getKey() throws java.lang.Exception
getKey
in interface Item
getKey
in class AbstractItem
java.lang.Exception
public boolean isEnabledForVersioning()
public java.lang.String toString()
toString
in class AbstractItem
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object other)
equals
in class java.lang.Object
public boolean equals(RegistryObjectProxyItem other)
public boolean isRevisionObject()
public javax.xml.registry.infomodel.RegistryObject getRegistryObject()
public javax.xml.registry.infomodel.RegistryObject getCachedRegistryObject()
public com.centrasite.jaxr.infomodel.CentraSiteRegistryObject getCentraSiteRegistryObject()
public java.lang.String getName() throws java.lang.Exception
java.lang.Exception
public static java.lang.String getName(javax.xml.registry.infomodel.RegistryObject registryObject, java.util.Locale lc) throws java.lang.Exception
java.lang.Exception
public java.lang.String getNameEx() throws java.lang.Exception
AbstractItem
getNameEx
in interface Item
getNameEx
in class AbstractItem
java.lang.Exception
public java.lang.String getDescription() throws java.lang.Exception
java.lang.Exception
public void delete() throws java.lang.Exception
java.lang.Exception
public void delete(java.util.Collection keys) throws java.lang.Exception
java.lang.Exception
public java.util.Iterator getChildren() throws java.lang.Exception
java.lang.Exception
public java.util.Iterator getChildren(boolean refresh) throws java.lang.Exception
java.lang.Exception
public boolean hasNoChildren() throws java.lang.Exception
java.lang.Exception
public java.lang.String getLargeImageURL() throws java.lang.Exception
java.lang.Exception
public java.lang.String getImageURL() throws java.lang.Exception
java.lang.Exception
public com.centrasite.jaxr.infomodel.CentraSiteConcept getCentraSiteVirtualTypeConcept(com.centrasite.jaxr.infomodel.CentraSiteRegistryObject centraSiteRegistryObject) throws javax.xml.registry.JAXRException
javax.xml.registry.JAXRException
public boolean isCentraSiteVirtualTypeConcept(javax.xml.registry.infomodel.Concept concept) throws javax.xml.registry.JAXRException
javax.xml.registry.JAXRException
public ReportInterface getReport()
AbstractItem
getReport
in interface Item
getReport
in class AbstractItem
public ReportInterface getReportForDetailView()
getReportForDetailView
in interface Item
getReportForDetailView
in class AbstractItem
public java.util.Collection getReferencingItems() throws java.lang.Exception
java.lang.Exception
public java.util.Collection getReferencingObjects() throws java.lang.Exception
java.lang.Exception
public javax.xml.registry.infomodel.AuditableEvent getLastAuditableEvent() throws javax.xml.registry.JAXRException
javax.xml.registry.JAXRException
public void addClassification(javax.xml.registry.infomodel.Concept concept) throws javax.xml.registry.InvalidRequestException, javax.xml.registry.JAXRException
javax.xml.registry.InvalidRequestException
javax.xml.registry.JAXRException
public javax.xml.registry.infomodel.Classification addInternelClassification(javax.xml.registry.infomodel.Concept concept) throws javax.xml.registry.JAXRException
concept
- javax.xml.registry.JAXRException
public void addClassification(javax.xml.registry.infomodel.ClassificationScheme classificationScheme, java.lang.String name, java.lang.String value) throws javax.xml.registry.InvalidRequestException, javax.xml.registry.JAXRException
classificationScheme
- name
- value
- javax.xml.registry.InvalidRequestException
javax.xml.registry.JAXRException
public javax.xml.registry.infomodel.Classification addExternalClassification(javax.xml.registry.infomodel.ClassificationScheme classificationScheme, java.lang.String name, java.lang.String value) throws javax.xml.registry.JAXRException
classificationScheme
- name
- value
- javax.xml.registry.InvalidRequestException
javax.xml.registry.JAXRException
public java.util.ArrayList getProperties() throws java.lang.Exception
getProperties
in class AbstractItem
java.lang.Exception
public void setProperties(java.util.ArrayList properties) throws java.lang.Exception
setProperties
in class AbstractItem
java.lang.Exception
public void clearProperties() throws java.lang.Exception
clearProperties
in class AbstractItem
java.lang.Exception
public java.util.Collection getSlotDescriptions() throws javax.xml.registry.JAXRException
javax.xml.registry.JAXRException
public java.util.Collection getDefinedSlotNames() throws javax.xml.registry.JAXRException
javax.xml.registry.JAXRException
public boolean isNewItem()
public void setNewItem(boolean newObj)
public java.util.Collection<AbstractAce> getAccessControlElements() throws java.lang.Exception
getAccessControlElements
in interface Item
getAccessControlElements
in class AbstractItem
java.lang.Exception
public java.lang.String getPermissionForNonPermissionACL()
public java.util.Collection<AbstractAce> getNonPermissionAccessControlElements()
NOTE: The existence of instance level permissions granted to principals which have been already deleted is quite possible and expected.
getNonPermissionAccessControlElements
in class AbstractItem
java.lang.Exception
public InstanceLevelPermissionItem getCurrentUserPermissionItem() throws java.lang.Exception
AbstractItem
getCurrentUserPermissionItem
in interface Item
getCurrentUserPermissionItem
in class AbstractItem
java.lang.Exception
public void setAccessControlElements(java.util.Collection<? extends AbstractAce> accessControlElements) throws java.lang.Exception
setAccessControlElements
in interface Item
setAccessControlElements
in class AbstractItem
accessControlElements
- List of Access Control elementsjava.lang.Exception
public void setAccessControlElements(javax.xml.registry.infomodel.RegistryObject registryObject) throws java.lang.Exception
accessControlElements
- List of Access Control elementsjava.lang.Exception
public PrivilegeDescriptor getPrivilegeDescriptor()
getPrivilegeDescriptor
in interface Item
getPrivilegeDescriptor
in class AbstractItem
public boolean isPredefined()
public boolean isModified()
isModified
in interface Item
isModified
in class AbstractItem
public void clearCache()
clearCache
in interface Item
clearCache
in class AbstractItem
public void save(ActionContext actionContext) throws java.lang.Exception
AbstractItem
save
in interface Item
save
in class AbstractItem
java.lang.Exception
public boolean isStandalone()
isStandalone
in class AbstractItem
public void addAuditComment(java.lang.String comment) throws java.lang.Exception
comment
- java.lang.Exception
public java.lang.String getLabel() throws java.lang.Exception
java.lang.Exception
public java.lang.String getTooltip() throws java.lang.Exception
java.lang.Exception
public RegistryObjectItem freeze()
public static boolean hasObjectType(Item item, java.lang.String objectTypeName)
item
- objectTypeName
- public static boolean hasObjectType(RegistryObjectItem roi, java.lang.String objectTypeName)
roi
- objectTypeName
- public static boolean hasObjectType(javax.xml.registry.infomodel.RegistryObject registryObject, java.lang.String objectTypeName)
registryObject
- objectTypeName
- public void setCollectVirtualServiceAssociatedObjects(java.util.Collection<javax.xml.registry.infomodel.RegistryObject> collectVirtualServiceAssociatedObjects)
public java.util.Collection<javax.xml.registry.infomodel.RegistryObject> getCollectVirtualServiceAssociatedObjects()
public java.util.Collection<java.lang.String> getCollectRestServiceAssociatedObjects()
public void setCollectRestServiceAssociatedObjects(java.util.Collection<java.lang.String> collectRestServiceAssociatedObjects)