mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-10-08 14:51:49 +00:00
CM-690 extensions
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@117489 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -41,6 +41,8 @@ import org.alfresco.repo.version.common.AbstractVersionServiceImpl;
|
||||
import org.alfresco.repo.version.common.VersionHistoryImpl;
|
||||
import org.alfresco.repo.version.common.VersionImpl;
|
||||
import org.alfresco.repo.version.common.VersionUtil;
|
||||
import org.alfresco.repo.version.traitextender.VersionServiceExtension;
|
||||
import org.alfresco.repo.version.traitextender.VersionServiceTrait;
|
||||
import org.alfresco.service.cmr.dictionary.AspectDefinition;
|
||||
import org.alfresco.service.cmr.dictionary.AssociationDefinition;
|
||||
import org.alfresco.service.cmr.dictionary.ClassDefinition;
|
||||
@@ -61,6 +63,7 @@ import org.alfresco.service.cmr.version.VersionType;
|
||||
import org.alfresco.service.namespace.NamespaceService;
|
||||
import org.alfresco.service.namespace.QName;
|
||||
import org.alfresco.service.namespace.RegexQNamePattern;
|
||||
import org.alfresco.traitextender.Extend;
|
||||
import org.apache.commons.logging.Log;
|
||||
import org.apache.commons.logging.LogFactory;
|
||||
import org.springframework.extensions.surf.util.ParameterCheck;
|
||||
@@ -165,6 +168,7 @@ public abstract class VersionServiceImpl extends AbstractVersionServiceImpl impl
|
||||
* @param typeQName QName
|
||||
* @param policy CalculateVersionLabelPolicy
|
||||
*/
|
||||
@Extend(extensionAPI=VersionServiceExtension.class,traitAPI=VersionServiceTrait.class)
|
||||
public void registerVersionLabelPolicy(QName typeQName, CalculateVersionLabelPolicy policy)
|
||||
{
|
||||
// Register the serial version label behaviour
|
||||
@@ -236,6 +240,7 @@ public abstract class VersionServiceImpl extends AbstractVersionServiceImpl impl
|
||||
* ensure that the child version references in the version node will point to the version history nodes
|
||||
* for the (possibly) newly created version histories.
|
||||
*/
|
||||
@Extend(extensionAPI=VersionServiceExtension.class,traitAPI=VersionServiceTrait.class)
|
||||
public Collection<Version> createVersion(
|
||||
NodeRef nodeRef,
|
||||
Map<String, Serializable> versionProperties,
|
||||
@@ -951,6 +956,7 @@ public abstract class VersionServiceImpl extends AbstractVersionServiceImpl impl
|
||||
/**
|
||||
* @see VersionService#ensureVersioningEnabled(NodeRef,Map)
|
||||
*/
|
||||
@Extend(extensionAPI=VersionServiceExtension.class,traitAPI=VersionServiceTrait.class)
|
||||
public void ensureVersioningEnabled(NodeRef nodeRef, Map<QName, Serializable> versionProperties)
|
||||
{
|
||||
if (logger.isDebugEnabled())
|
||||
|
Reference in New Issue
Block a user