org.alfresco.repo.version.common.versionlabel
Class SerialVersionLabelPolicy

java.lang.Object
  extended by org.alfresco.repo.version.common.versionlabel.SerialVersionLabelPolicy
All Implemented Interfaces:
ClassPolicy, Policy, VersionServicePolicies.CalculateVersionLabelPolicy

public class SerialVersionLabelPolicy
extends java.lang.Object
implements VersionServicePolicies.CalculateVersionLabelPolicy

The serial version label policy.


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.alfresco.repo.policy.Policy
Policy.Arg
 
Field Summary
 
Fields inherited from interface org.alfresco.repo.policy.Policy
NAMESPACE
 
Constructor Summary
SerialVersionLabelPolicy()
           
 
Method Summary
 java.lang.String calculateVersionLabel(org.alfresco.service.namespace.QName classRef, Version preceedingVersion, int versionNumber, java.util.Map versionProperties)
          Get the version label value base on the data provided.
 java.lang.String calculateVersionLabel(org.alfresco.service.namespace.QName classRef, Version preceedingVersion, java.util.Map versionProperties)
          Get the version label value base on the data provided.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SerialVersionLabelPolicy

public SerialVersionLabelPolicy()
Method Detail

calculateVersionLabel

public java.lang.String calculateVersionLabel(org.alfresco.service.namespace.QName classRef,
                                              Version preceedingVersion,
                                              java.util.Map versionProperties)
Get the version label value base on the data provided.

Parameters:
preceedingVersion - the preceeding version, null if none
versionNumber - the new version number
versionProperties - the version property values
Returns:
the version label

calculateVersionLabel

public java.lang.String calculateVersionLabel(org.alfresco.service.namespace.QName classRef,
                                              Version preceedingVersion,
                                              int versionNumber,
                                              java.util.Map versionProperties)
Get the version label value base on the data provided.

Specified by:
calculateVersionLabel in interface VersionServicePolicies.CalculateVersionLabelPolicy
Parameters:
preceedingVersion - the preceeding version, null if none
versionNumber - the new version number
versionProperties - the version property values
Returns:
the version label


Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.