1 17 package org.alfresco.repo.version; 18 19 import java.io.Serializable ; 20 import java.util.Map ; 21 22 import org.alfresco.repo.policy.ClassPolicy; 23 import org.alfresco.repo.policy.PolicyScope; 24 import org.alfresco.service.cmr.repository.NodeRef; 25 import org.alfresco.service.cmr.version.Version; 26 import org.alfresco.service.namespace.QName; 27 28 33 public interface VersionServicePolicies 34 { 35 38 public interface BeforeCreateVersionPolicy extends ClassPolicy 39 { 40 45 public void beforeCreateVersion(NodeRef versionableNode); 46 47 } 48 49 52 public interface OnCreateVersionPolicy extends ClassPolicy 53 { 54 public void onCreateVersion( 55 QName classRef, 56 NodeRef versionableNode, 57 Map <String , Serializable > versionProperties, 58 PolicyScope nodeDetails); 59 } 60 61 64 public interface CalculateVersionLabelPolicy extends ClassPolicy 65 { 66 public String calculateVersionLabel( 67 QName classRef, 68 Version preceedingVersion, 69 int versionNumber, 70 Map <String , Serializable >verisonProperties); 71 } 72 } 73 | Popular Tags |