1 17 package org.alfresco.service.cmr.version; 18 19 import java.io.Serializable ; 20 import java.util.Collection ; 21 import java.util.Map ; 22 23 import org.alfresco.service.cmr.repository.AspectMissingException; 24 import org.alfresco.service.cmr.repository.NodeRef; 25 import org.alfresco.service.cmr.repository.StoreRef; 26 import org.alfresco.service.namespace.QName; 27 28 33 public interface VersionService 34 { 35 38 public static final String VERSION_STORE_PROTOCOL = "versionStore"; 39 40 45 public StoreRef getVersionStoreReference(); 46 47 69 public Version createVersion( 70 NodeRef nodeRef, 71 Map <String , Serializable > versionProperties) 72 throws ReservedVersionNameException, AspectMissingException; 73 74 98 public Collection <Version> createVersion( 99 NodeRef nodeRef, 100 Map <String , Serializable > versionProperties, 101 boolean versionChildren) 102 throws ReservedVersionNameException, AspectMissingException; 103 104 116 public Collection <Version> createVersion( 117 Collection <NodeRef> nodeRefs, 118 Map <String , Serializable > versionProperties) 119 throws ReservedVersionNameException, AspectMissingException; 120 121 134 public VersionHistory getVersionHistory(NodeRef nodeRef) 135 throws AspectMissingException; 136 137 145 public Version getCurrentVersion(NodeRef nodeRef); 146 147 156 public void revert(NodeRef nodeRef); 157 158 166 public void revert(NodeRef nodeRef, boolean deep); 167 168 176 public void revert(NodeRef nodeRef, Version version); 177 178 197 public void revert(NodeRef nodeRef, Version version, boolean deep); 198 199 210 public NodeRef restore( 211 NodeRef nodeRef, 212 NodeRef parentNodeRef, 213 QName assocTypeQName, 214 QName assocQName); 215 216 240 public NodeRef restore( 241 NodeRef nodeRef, 242 NodeRef parentNodeRef, 243 QName assocTypeQName, 244 QName assocQName, 245 boolean deep); 246 247 259 public void deleteVersionHistory(NodeRef nodeRef) 260 throws AspectMissingException; 261 } 262 | Popular Tags |