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
| Modifier and Type | Class and Description |
|---|---|
static class |
OwStandardHistoryModifiedPropertyValue.OwModifiedField
OwModifiedField.
|
| Modifier and Type | Field and Description |
|---|---|
static String |
NULL_DISPLAY_VALUE
a display string for the null value
|
| Constructor and Description |
|---|
OwStandardHistoryModifiedPropertyValue(String className_p,
boolean isArray_p,
String oldValue_p,
String newValue_p,
OwFieldDefinitionProvider fielddefprovider_p,
String resource_p)
construct a modified property value
|
| Modifier and Type | Method and Description |
|---|---|
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() |
public static final String NULL_DISPLAY_VALUE
public OwStandardHistoryModifiedPropertyValue(String className_p, boolean isArray_p, String oldValue_p, String newValue_p, OwFieldDefinitionProvider fielddefprovider_p, String resource_p)
className_p - StringisArray_p - oldValue_p - StringnewValue_p - Stringfielddefprovider_p - OwFieldDefinitionProvider field definition provider to resolve the valuesresource_p - String name of the resource to look up field definitionspublic String getClassName()
getClassName in interface OwHistoryModifiedPropertyValuepublic OwFieldDefinition getFieldDefinition() throws OwObjectNotFoundException, Exception
getFieldDefinition in interface OwHistoryModifiedPropertyValueExceptionOwObjectNotFoundExceptionpublic OwField getOldValue() throws OwObjectNotFoundException, Exception
getOldValue in interface OwHistoryModifiedPropertyValueOwObjectNotFoundException - if value could not be resolvedExceptionpublic OwField getNewValue() throws OwObjectNotFoundException, Exception
getNewValue in interface OwHistoryModifiedPropertyValueOwObjectNotFoundException - if value could not be resolvedExceptionpublic String getOldValueString()
getOldValueString in interface OwHistoryModifiedPropertyValuepublic String getNewValueString()
getNewValueString in interface OwHistoryModifiedPropertyValueCopyright © 2014 Alfresco Business Solutions. All Rights Reserved.