com.wewebu.ow.server.command
Class OwMultipleObjectsProcessCollector.OwObjectCollectData

java.lang.Object
  extended by com.wewebu.ow.server.command.OwMultipleObjectsProcessCollector.OwObjectCollectData
Enclosing class:
OwMultipleObjectsProcessCollector

public class OwMultipleObjectsProcessCollector.OwObjectCollectData
extends Object

Object data caching class. Object data needs to be cached before object processing as data to be collected could be affected by the object's processing sequence. The OwMultipleObjectsProcessCollector class creates ready to use collect via the OwMultipleObjectsProcessCollector.createCollectData(OwObject) method. This collect data can be collected later (egg. after processing or in a processing failure handling sequence).


Constructor Summary
OwMultipleObjectsProcessCollector.OwObjectCollectData(OwObject object_p)
          Constructor
 
Method Summary
 String getCachedObjectDMSID()
           
 String getCachedObjectName()
           
 Exception getFailureReason()
          Get the reason why this object cannot be processed.
 OwObject getObject()
           
 void setFailureReason(Exception failureReason_p)
          Set the reason why this object cannot be processed.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OwMultipleObjectsProcessCollector.OwObjectCollectData

public OwMultipleObjectsProcessCollector.OwObjectCollectData(OwObject object_p)
                                                      throws Exception
Constructor

Parameters:
object_p - The object the collect data is based on
Throws:
Exception - if object data caching fails
Method Detail

getObject

public OwObject getObject()
Returns:
The object the collect data is based on

getCachedObjectDMSID

public String getCachedObjectDMSID()
Returns:
The cached object DMSID

getCachedObjectName

public String getCachedObjectName()
Returns:
The cached object name

setFailureReason

public void setFailureReason(Exception failureReason_p)
Set the reason why this object cannot be processed.

Parameters:
failureReason_p - - the Exception that cause process failure for this object.
Since:
3.0.0.0

getFailureReason

public Exception getFailureReason()
Get the reason why this object cannot be processed.

Returns:
the Exception that cause process failure for this object. Can be null.
Since:
3.0.0.0


Copyright © 2013 Alfresco Business Solutions. All Rights Reserved.