com.wewebu.ow.server.history
Class OwStandardHistoryPropertyChangeEvent

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

public class OwStandardHistoryPropertyChangeEvent
extends Object
implements OwHistoryPropertyChangeEvent

Standard implementation of the OwHistoryPropertyChangeEvent 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
OwStandardHistoryPropertyChangeEvent(OwObject object_p, OwPropertyCollection newProperties_p)
          constructs a property change event class for historization if object_p was already modified, use second constructor
OwStandardHistoryPropertyChangeEvent(OwObject object_p, OwPropertyCollection oldProperties_p, OwPropertyCollection newProperties_p)
          constructs a property change event class for historization
 
Method Summary
 OwPropertyCollection getAffectedNewProperties()
          return a list of the affected New properties (OwField), or null if no Properties where affected
 OwObjectReference getAffectedObject()
          return a the affected OwObjectReference, or null if no object was affected
 OwPropertyCollection getAffectedOldProperties()
          return a list of the affected Previous properties (OwField), or null if no Properties where affected
 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

OwStandardHistoryPropertyChangeEvent

public OwStandardHistoryPropertyChangeEvent(OwObject object_p,
                                            OwPropertyCollection newProperties_p)
constructs a property change event class for historization if object_p was already modified, use second constructor

Parameters:
object_p - the OwObject before it was modified
newProperties_p - OwPropertyCollection of the new properties

OwStandardHistoryPropertyChangeEvent

public OwStandardHistoryPropertyChangeEvent(OwObject object_p,
                                            OwPropertyCollection oldProperties_p,
                                            OwPropertyCollection newProperties_p)
constructs a property change event class for historization

Parameters:
object_p - the OwObject that is modified
oldProperties_p - OwPropertyCollection of the old properties
newProperties_p - OwPropertyCollection of the new properties
Method Detail

getAffectedObject

public OwObjectReference getAffectedObject()
                                    throws Exception
return a the affected OwObjectReference, or null if no object was affected

Specified by:
getAffectedObject in interface OwHistoryPropertyChangeEvent
Throws:
Exception

getAffectedOldProperties

public OwPropertyCollection getAffectedOldProperties()
                                              throws Exception
return a list of the affected Previous properties (OwField), or null if no Properties where affected

Specified by:
getAffectedOldProperties in interface OwHistoryPropertyChangeEvent
Throws:
Exception

getAffectedNewProperties

public OwPropertyCollection getAffectedNewProperties()
                                              throws Exception
return a list of the affected New properties (OwField), or null if no Properties where affected

Specified by:
getAffectedNewProperties in interface OwHistoryPropertyChangeEvent
Throws:
Exception

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


Copyright © 2013 Alfresco Business Solutions. All Rights Reserved.