com.wewebu.ow.server.history
Class OwStandardHistoryObjectChangeEvent

java.lang.Object
  extended by com.wewebu.ow.server.history.OwStandardHistoryObjectChangeEvent
All Implemented Interfaces:
OwEvent, OwHistoryObjectChangeEvent

public class OwStandardHistoryObjectChangeEvent
extends Object
implements OwHistoryObjectChangeEvent

Standard implementation of the OwHistoryObjectChangeEvent interface.

Alfresco Workdesk
Copyright (c) Alfresco Software, Inc.
All rights reserved.

For licensing information read the license.txt file or
go to: http://wiki.alfresco.com


Constructor Summary
OwStandardHistoryObjectChangeEvent(Collection objects_p, OwObjectReference parent_p)
          construct a history object change event with a list of objects and parent / root
OwStandardHistoryObjectChangeEvent(OwObjectReference object_p, OwObjectReference parent_p)
          construct a history object change event with one object and parent / root
 
Method Summary
 Collection getAffectedObjects()
          return a list of the affected OwObjectReference, or null if no objects where affected
 OwObjectReference getParent()
          return the parent or root object, or null if no parent / root exists
 String getSummary()
          get a summary of the event for systems that do only want to write a single string to the history database
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OwStandardHistoryObjectChangeEvent

public OwStandardHistoryObjectChangeEvent(OwObjectReference object_p,
                                          OwObjectReference parent_p)
construct a history object change event with one object and parent / root

Parameters:
object_p - object that was involved / changed in the event
parent_p - parent or root object of the given object

OwStandardHistoryObjectChangeEvent

public OwStandardHistoryObjectChangeEvent(Collection objects_p,
                                          OwObjectReference parent_p)
construct a history object change event with a list of objects and parent / root

Parameters:
objects_p - collection of OwObjectReference objects that where involved / changed in the event
parent_p - parent or root object of the given object
Method Detail

getSummary

public String getSummary()
                  throws Exception
get a summary of the event for systems that do only want to write a single string to the history database

Specified by:
getSummary in interface OwEvent
Throws:
Exception

getParent

public OwObjectReference getParent()
                            throws Exception
return the parent or root object, or null if no parent / root exists

Specified by:
getParent in interface OwHistoryObjectChangeEvent
Throws:
Exception

getAffectedObjects

public Collection getAffectedObjects()
                              throws Exception
return a list of the affected OwObjectReference, or null if no objects where affected

Specified by:
getAffectedObjects in interface OwHistoryObjectChangeEvent
Throws:
Exception


Copyright © 2013 Alfresco Business Solutions. All Rights Reserved.