com.centrasite.control.log.items
Class AbstractLogItem

java.lang.Object
  extended by com.centrasite.control.AbstractItem
      extended by com.centrasite.control.log.items.AbstractLogItem
All Implemented Interfaces:
Item
Direct Known Subclasses:
ErrorLogItem, ValidLogItem, WarningLogItem

public abstract class AbstractLogItem
extends AbstractItem

Abstract log item.


Field Summary
 
Fields inherited from class com.centrasite.control.AbstractItem
rcs_id
 
Constructor Summary
AbstractLogItem(Item item)
           
AbstractLogItem(Item item, java.lang.Exception exception)
          Constructs an abstract log item
 
Method Summary
 java.util.Iterator getChildren()
           
 java.util.Iterator getChildren(boolean refresh)
           
 com.softwareag.cis.plugin.command.Command getDefaultCommand()
           
 java.lang.String getDescription()
           
 java.lang.Exception getException()
           
 java.lang.String getImageURL()
           
 java.lang.String getKey()
          Obtain a unique key for class of icons
 java.lang.String getMessage()
           
 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
abstract  java.lang.String getSeverityImageURL()
           
abstract  java.lang.String getStatus()
           
 java.util.Date getTimeStamp()
           
 Item getWrappedItem()
           
 boolean hasNoChildren()
           
 void showDetailView(ActionContext actionContext)
          Show the details for this item
 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, getDetailsCommand, getDetailViewTabs, getItem, getLanguage, getLocale, getNonPermissionAccessControlElements, 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, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AbstractLogItem

public AbstractLogItem(Item item,
                       java.lang.Exception exception)
Constructs an abstract log item

Parameters:
item - The item (e.g. registry or repository object) referenced by this AbstractLogItem
exception - The Exception held by this AbstractLogItem

AbstractLogItem

public AbstractLogItem(Item item)
Method Detail

getStatus

public abstract java.lang.String getStatus()

getSeverityImageURL

public abstract java.lang.String getSeverityImageURL()

getDefaultCommand

public com.softwareag.cis.plugin.command.Command getDefaultCommand()
Specified by:
getDefaultCommand in interface Item
Overrides:
getDefaultCommand in class AbstractItem
Returns:
Returns the defaultCommand.

getMessage

public java.lang.String getMessage()

getTimeStamp

public java.util.Date getTimeStamp()

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

getKey

public java.lang.String getKey()
                        throws java.lang.Exception
Description copied from class: AbstractItem
Obtain a unique key for class of icons

Specified by:
getKey in interface Item
Overrides:
getKey in class AbstractItem
Returns:
the key or null, if none available
Throws:
java.lang.Exception

getName

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

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 AbstractItem
Throws:
java.lang.Exception

getDescription

public java.lang.String getDescription()
                                throws java.lang.Exception
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

getImageURL

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

hasNoChildren

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

showDetailView

public void showDetailView(ActionContext actionContext)
Description copied from class: AbstractItem
Show the details for this item

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

getWrappedItem

public Item getWrappedItem()

getException

public java.lang.Exception getException()

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