com.centrasite.control.logged.action
Class AbstractLoggedAction

java.lang.Object
  extended by com.centrasite.control.logged.action.AbstractLoggedAction
All Implemented Interfaces:
ItemsProvider, ILoggedAction
Direct Known Subclasses:
LoggedItemsImport, LoggedItemsVersionCreate, LoggedSchemaImport, LoggedWebserviceImport, LoggedXMLServiceImport

public abstract class AbstractLoggedAction
extends java.lang.Object
implements ILoggedAction


Constructor Summary
AbstractLoggedAction(ActionContext actionContext)
           
AbstractLoggedAction(ActionContext actionContext, java.util.Collection<RegistryObjectItem> registryObjectItem)
           
 
Method Summary
 void cleanUp()
           
 ActionContext getActionContext()
           
 int getErrorCount()
           
 LoggedEventCallback getEventCallback()
           
 Item getItem(java.lang.Object object)
          Provide an item to be rendered
 java.util.Collection getItems()
          Provide items to be rendered
 java.util.Collection getRegistryObjects()
           
 int getValidCount()
           
 int getWarningCount()
           
 java.util.Collection prepareItems()
          Prepare items to get them in subsequent calls to getItem(Object object)
 void setEventCallback(LoggedEventCallback eventCallback_)
           
 boolean supportsDelayedRead()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.centrasite.control.logged.action.ILoggedAction
finish, getTitle, run, runAsync
 

Constructor Detail

AbstractLoggedAction

public AbstractLoggedAction(ActionContext actionContext)

AbstractLoggedAction

public AbstractLoggedAction(ActionContext actionContext,
                            java.util.Collection<RegistryObjectItem> registryObjectItem)
Method Detail

cleanUp

public void cleanUp()
Specified by:
cleanUp in interface ILoggedAction

getItems

public java.util.Collection getItems()
Description copied from interface: ItemsProvider
Provide items to be rendered

Specified by:
getItems in interface ItemsProvider
Specified by:
getItems in interface ILoggedAction

getRegistryObjects

public java.util.Collection getRegistryObjects()

supportsDelayedRead

public boolean supportsDelayedRead()
Specified by:
supportsDelayedRead in interface ItemsProvider
Returns:
true, if methods prepareItems() and getItem(Object) are supported for lazy reading / cursoring

prepareItems

public java.util.Collection prepareItems()
                                  throws java.lang.Exception
Prepare items to get them in subsequent calls to getItem(Object object)

Specified by:
prepareItems in interface ItemsProvider
Throws:
java.lang.Exception

getItem

public Item getItem(java.lang.Object object)
             throws java.lang.Exception
Provide an item to be rendered

Specified by:
getItem in interface ItemsProvider
Throws:
java.lang.Exception

getValidCount

public int getValidCount()
Specified by:
getValidCount in interface ILoggedAction

getWarningCount

public int getWarningCount()
Specified by:
getWarningCount in interface ILoggedAction

getErrorCount

public int getErrorCount()
Specified by:
getErrorCount in interface ILoggedAction

getActionContext

public ActionContext getActionContext()
Specified by:
getActionContext in interface ILoggedAction

getEventCallback

public LoggedEventCallback getEventCallback()

setEventCallback

public void setEventCallback(LoggedEventCallback eventCallback_)