public abstract class AbstractItem extends java.lang.Object implements Item
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
rcs_id |
Constructor and Description |
---|
AbstractItem(Connector connector) |
Modifier and Type | Method and Description |
---|---|
void |
addBulkCommand(com.softwareag.cis.plugin.command.Command cmd) |
void |
addCommand(com.softwareag.cis.plugin.command.Command cmd) |
void |
addDetailViewTab(DetailViewTab tab) |
boolean |
cannotHaveChildren()
Check whether this node may have children
|
void |
clearCache()
Clear cache used for items of this type
|
void |
clearProperties() |
java.util.Collection<? extends AbstractAce> |
getAccessControlElements()
Get access control elements
|
java.util.List |
getBulkCommands()
Get list of Bulk Action commands available for the current object
|
com.softwareag.cis.plugin.command.Command |
getCommand(java.lang.Class cmdClass)
Obtain command object implemented by given command class
|
static com.softwareag.cis.plugin.command.Command |
getCommand(Item item,
java.lang.Class cmdClass)
Obtain command object implemented by given command class
|
java.util.List |
getCommands()
Get list of commands available for the current object
|
Connector |
getConnector()
Get Connector
|
<T extends AbstractAce> |
getCurrentUserPermissionItem()
Get currently logged-in user privilege over this item, wrapped as a InstanceLevelPermissionItem.
|
com.softwareag.cis.plugin.command.Command |
getDefaultCommand() |
com.softwareag.cis.plugin.command.Command |
getDetailsCommand() |
java.util.List |
getDetailViewTabs()
Obtain List of DetailViewTab objects for this Item (INM 2027)
|
Item |
getItem()
Returns the Item
|
java.lang.String |
getKey()
Obtain a unique key for class of icons
|
java.util.Locale |
getLanguage()
Get Language
|
java.util.Locale |
getLocale()
Get Locale
|
java.lang.String |
getNameEx()
Get "extended/alternate name".
|
java.util.Collection<? extends AbstractAce> |
getNonPermissionAccessControlElements() |
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.util.Locale |
getPersistanceLocale() |
PrivilegeDescriptor |
getPrivilegeDescriptor() |
java.util.ArrayList |
getProperties() |
java.util.List<Item> |
getRelatedItems() |
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!
|
boolean |
hasRequiredAttribute() |
boolean |
isLocked() |
boolean |
isModified()
Check whether this Item is modified vs. its corresponding
persistent version
|
boolean |
isReadOnly() |
boolean |
isStandalone()
Majorly useful for RegistryObject to check if they are embedded of stand alone
|
boolean |
isSubTabModified() |
void |
removeCommand(java.lang.String commandClassName)
remove command from the command list.
|
void |
replaceCommand(java.lang.String commandClassName,
AbstractCommandExt command) |
void |
save(ActionContext actionContext)
Save Item
|
void |
setAccessControlElements(java.util.Collection<? extends AbstractAce> accessControlElements)
Set access control elements
|
void |
setCommandEnabled(java.lang.Class cmdClass,
boolean enabled) |
void |
setConnector(Connector connector) |
void |
setDefaultCommand(AbstractCommandExt defaultCommand) |
void |
setDetailsCommand(com.softwareag.cis.plugin.command.Command detailsCommand) |
void |
setLocked(boolean locked) |
void |
setProperties(java.util.ArrayList properties) |
void |
setRelatedItems(java.util.List<Item> relatedItems) |
void |
setRequiredAttribute(boolean hasRequiredAttribute) |
void |
setTabModified(boolean isSubTabModified) |
void |
showDetailView(ActionContext actionContext)
Show the details for this item
|
void |
showReport(ActionContext actionContext)
Show a report for this item.
|
java.lang.String |
toString() |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
getChildren, getChildren, getDescription, getImageURL, getName, hasNoChildren
public static final java.lang.String rcs_id
public AbstractItem(Connector connector)
public void setDetailsCommand(com.softwareag.cis.plugin.command.Command detailsCommand)
public com.softwareag.cis.plugin.command.Command getDetailsCommand()
getDetailsCommand
in interface Item
public java.lang.String getKey() throws java.lang.Exception
public java.util.List getCommands()
getCommands
in interface Item
public java.util.List getBulkCommands()
getBulkCommands
in interface Item
public void addBulkCommand(com.softwareag.cis.plugin.command.Command cmd)
public void addCommand(com.softwareag.cis.plugin.command.Command cmd)
public void replaceCommand(java.lang.String commandClassName, AbstractCommandExt command)
public void removeCommand(java.lang.String commandClassName)
commandClassName
- Command Class Namepublic com.softwareag.cis.plugin.command.Command getCommand(java.lang.Class cmdClass)
cmdClass
- public static com.softwareag.cis.plugin.command.Command getCommand(Item item, java.lang.Class cmdClass)
item
- Item whose commands are to be examinedcmdClass
- public void setCommandEnabled(java.lang.Class cmdClass, boolean enabled)
public java.util.List getDetailViewTabs()
getDetailViewTabs
in interface Item
public void addDetailViewTab(DetailViewTab tab)
public ReportInterface getReport()
public ReportInterface getReportForDetailView()
getReportForDetailView
in interface Item
public void showReport(ActionContext actionContext)
showReport
in interface Item
actionContext
- public boolean cannotHaveChildren()
cannotHaveChildren
in interface Item
public java.lang.String toString()
toString
in class java.lang.Object
public void showDetailView(ActionContext actionContext)
showDetailView
in interface Item
actionContext
- public java.util.ArrayList getProperties() throws java.lang.Exception
java.lang.Exception
public void setProperties(java.util.ArrayList properties) throws java.lang.Exception
java.lang.Exception
public void clearProperties() throws java.lang.Exception
java.lang.Exception
public java.util.Collection<? extends AbstractAce> getAccessControlElements() throws java.lang.Exception
getAccessControlElements
in interface Item
java.lang.Exception
public <T extends AbstractAce> T getCurrentUserPermissionItem() throws java.lang.Exception
getCurrentUserPermissionItem
in interface Item
java.lang.Exception
public java.util.Collection<? extends AbstractAce> getNonPermissionAccessControlElements()
public void setAccessControlElements(java.util.Collection<? extends AbstractAce> accessControlElements) throws java.lang.Exception
setAccessControlElements
in interface Item
accessControlElements
- List of Access Control elementsjava.lang.Exception
public PrivilegeDescriptor getPrivilegeDescriptor()
getPrivilegeDescriptor
in interface Item
public boolean isModified()
Item
isModified
in interface Item
public void clearCache()
clearCache
in interface Item
public void setDefaultCommand(AbstractCommandExt defaultCommand)
defaultCommand
- The defaultCommand to set.public com.softwareag.cis.plugin.command.Command getDefaultCommand()
getDefaultCommand
in interface Item
public void save(ActionContext actionContext) throws java.lang.Exception
public boolean isStandalone() throws java.lang.Exception
java.lang.Exception
public Connector getConnector()
Item
getConnector
in interface Item
public void setConnector(Connector connector)
public java.util.Locale getLocale()
Item
public java.util.Locale getPersistanceLocale()
public java.util.Locale getLanguage()
Item
getLanguage
in interface Item
public boolean isReadOnly()
isReadOnly
in interface Item
public java.lang.String getNameEx() throws java.lang.Exception
public java.lang.String getPath() throws java.lang.Exception
public void setTabModified(boolean isSubTabModified)
setTabModified
in interface Item
public boolean isSubTabModified()
isSubTabModified
in interface Item
public boolean hasRequiredAttribute()
hasRequiredAttribute
in interface Item
public void setRequiredAttribute(boolean hasRequiredAttribute)
setRequiredAttribute
in interface Item
public void setRelatedItems(java.util.List<Item> relatedItems)
setRelatedItems
in interface Item
public java.util.List<Item> getRelatedItems()
getRelatedItems
in interface Item