com.wewebu.ow.server.history
Class OwStandardHistoryAnnotationEvent

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

public class OwStandardHistoryAnnotationEvent
extends Object
implements OwHistoryAnnotationEvent

Standard implementation of the OwStandardHistoryAnnotationEvent 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


Field Summary
 
Fields inherited from interface com.wewebu.ow.server.history.OwHistoryAnnotationEvent
CHANGE_TYPE_ADD, CHANGE_TYPE_DELETE, CHANGE_TYPE_MODIFY, CHANGE_TYPE_UNKNOWN
 
Constructor Summary
OwStandardHistoryAnnotationEvent(OwObjectReference object_p, int iChangeType_p, String sText_p, String sAnnotationType_p, String sID_p)
          constructs a annotation changed event
 
Method Summary
 OwObjectReference getAffectedObject()
          return a the affected OwObjectReference
 String getAnnotationID()
          get a identifying ID of the annotation in question, can be null if not defined
 String getAnnotationType()
          get the annotation type that was modified, can be null
 int getChangeType()
          return the change type of the annotation as defined with CHANGE_TYPE_...
 String getSummary()
          get a summary of the event for systems that do only want to write a single string to the history database
 String getText()
          get the text of the annotation, can be null
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OwStandardHistoryAnnotationEvent

public OwStandardHistoryAnnotationEvent(OwObjectReference object_p,
                                        int iChangeType_p,
                                        String sText_p,
                                        String sAnnotationType_p,
                                        String sID_p)
constructs a annotation changed event

Parameters:
object_p - OwObjectReference
iChangeType_p - int as defined with CHANGE_TYPE_...
sText_p - String, can be null
sAnnotationType_p - String, can be null
sID_p - String, can be null
Method Detail

getAffectedObject

public OwObjectReference getAffectedObject()
                                    throws Exception
return a the affected OwObjectReference

Specified by:
getAffectedObject in interface OwHistoryAnnotationEvent
Throws:
Exception

getChangeType

public int getChangeType()
return the change type of the annotation as defined with CHANGE_TYPE_...

Specified by:
getChangeType in interface OwHistoryAnnotationEvent

getText

public String getText()
get the text of the annotation, can be null

Specified by:
getText in interface OwHistoryAnnotationEvent

getAnnotationID

public String getAnnotationID()
get a identifying ID of the annotation in question, can be null if not defined

Specified by:
getAnnotationID in interface OwHistoryAnnotationEvent

getAnnotationType

public String getAnnotationType()
get the annotation type that was modified, can be null

Specified by:
getAnnotationType in interface OwHistoryAnnotationEvent

getSummary

public String getSummary()
                  throws Exception
Description copied from interface: OwEvent
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.