com.wewebu.ow.server.history
Class OwStandardHistoryModifiedPropertyValue

java.lang.Object
  extended by com.wewebu.ow.server.history.OwStandardHistoryModifiedPropertyValue
All Implemented Interfaces:
OwHistoryModifiedPropertyValue

public class OwStandardHistoryModifiedPropertyValue
extends Object
implements OwHistoryModifiedPropertyValue

Base implementation for OwHistoryModifiedPropertyValue a property change property used by OwHistoryEtnry.
Keeps information about a modified property and its previous and new value.

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


Nested Class Summary
static class OwStandardHistoryModifiedPropertyValue.OwModifiedField
           OwModifiedField.
 
Field Summary
static String NULL_DISPLAY_VALUE
          a display string for the null value
 
Constructor Summary
OwStandardHistoryModifiedPropertyValue(String className_p, boolean isArray_p, String oldValue_p, String newValue_p, OwFieldDefinitionProvider fielddefprovider_p, String resource_p)
          construct a modified property value
 
Method Summary
 String getClassName()
          get the modified property class name
 OwFieldDefinition getFieldDefinition()
          get the modified property field definition
 OwField getNewValue()
          try to get the new value before the modification happens
 String getNewValueString()
          get a string representation of the new value
 OwField getOldValue()
          try to get the old value before the modification happens
 String getOldValueString()
          get a string representation of the old value
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

NULL_DISPLAY_VALUE

public static final String NULL_DISPLAY_VALUE
a display string for the null value

See Also:
Constant Field Values
Constructor Detail

OwStandardHistoryModifiedPropertyValue

public OwStandardHistoryModifiedPropertyValue(String className_p,
                                              boolean isArray_p,
                                              String oldValue_p,
                                              String newValue_p,
                                              OwFieldDefinitionProvider fielddefprovider_p,
                                              String resource_p)
construct a modified property value

Parameters:
className_p - String
isArray_p -
oldValue_p - String
newValue_p - String
fielddefprovider_p - OwFieldDefinitionProvider field definition provider to resolve the values
resource_p - String name of the resource to look up field definitions
Method Detail

getClassName

public String getClassName()
get the modified property class name

Specified by:
getClassName in interface OwHistoryModifiedPropertyValue
Returns:
String classname of property

getFieldDefinition

public OwFieldDefinition getFieldDefinition()
                                     throws OwObjectNotFoundException,
                                            Exception
get the modified property field definition

Specified by:
getFieldDefinition in interface OwHistoryModifiedPropertyValue
Returns:
OwFieldDefinition field definition of the property
Throws:
Exception
OwObjectNotFoundException

getOldValue

public OwField getOldValue()
                    throws OwObjectNotFoundException,
                           Exception
try to get the old value before the modification happens

Specified by:
getOldValue in interface OwHistoryModifiedPropertyValue
Returns:
OwField
Throws:
OwObjectNotFoundException - if value could not be resolved
Exception

getNewValue

public OwField getNewValue()
                    throws OwObjectNotFoundException,
                           Exception
try to get the new value before the modification happens

Specified by:
getNewValue in interface OwHistoryModifiedPropertyValue
Returns:
OwField
Throws:
OwObjectNotFoundException - if value could not be resolved
Exception

getOldValueString

public String getOldValueString()
get a string representation of the old value

Specified by:
getOldValueString in interface OwHistoryModifiedPropertyValue
Returns:
String

getNewValueString

public String getNewValueString()
get a string representation of the new value

Specified by:
getNewValueString in interface OwHistoryModifiedPropertyValue
Returns:
String

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2013 Alfresco Business Solutions. All Rights Reserved.