Package org.alfresco.repo.dictionary
Class DictionaryModelType
- java.lang.Object
-
- org.alfresco.repo.dictionary.DictionaryModelType
-
- All Implemented Interfaces:
ContentServicePolicies.OnContentUpdatePolicy,NodeServicePolicies.BeforeCreateNodePolicy,NodeServicePolicies.BeforeDeleteNodePolicy,NodeServicePolicies.OnCreateNodePolicy,NodeServicePolicies.OnDeleteNodePolicy,NodeServicePolicies.OnRemoveAspectPolicy,NodeServicePolicies.OnSetNodeTypePolicy,NodeServicePolicies.OnUpdatePropertiesPolicy,ClassPolicy,Policy
public class DictionaryModelType extends java.lang.Object implements ContentServicePolicies.OnContentUpdatePolicy, NodeServicePolicies.OnUpdatePropertiesPolicy, NodeServicePolicies.BeforeDeleteNodePolicy, NodeServicePolicies.OnDeleteNodePolicy, NodeServicePolicies.OnCreateNodePolicy, NodeServicePolicies.OnRemoveAspectPolicy, NodeServicePolicies.OnSetNodeTypePolicy, NodeServicePolicies.BeforeCreateNodePolicy
Dictionary model type behaviour.- Author:
- Roy Wetherall, janv, sglover
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description classDictionaryModelType.DictionaryModelTypeTransactionListenerDictionary model type transaction listener class.-
Nested classes/interfaces inherited from interface org.alfresco.repo.policy.Policy
Policy.Arg
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringALFRESCO_MODEL_ADMINISTRATORS_AUTHORITYstatic java.lang.StringGROUP_ALFRESCO_MODEL_ADMINISTRATORS_AUTHORITY-
Fields inherited from interface org.alfresco.repo.content.ContentServicePolicies.OnContentUpdatePolicy
QNAME
-
Fields inherited from interface org.alfresco.repo.node.NodeServicePolicies.BeforeCreateNodePolicy
QNAME
-
Fields inherited from interface org.alfresco.repo.node.NodeServicePolicies.BeforeDeleteNodePolicy
QNAME
-
Fields inherited from interface org.alfresco.repo.node.NodeServicePolicies.OnCreateNodePolicy
QNAME
-
Fields inherited from interface org.alfresco.repo.node.NodeServicePolicies.OnDeleteNodePolicy
QNAME
-
Fields inherited from interface org.alfresco.repo.node.NodeServicePolicies.OnRemoveAspectPolicy
QNAME
-
Fields inherited from interface org.alfresco.repo.node.NodeServicePolicies.OnSetNodeTypePolicy
QNAME
-
Fields inherited from interface org.alfresco.repo.node.NodeServicePolicies.OnUpdatePropertiesPolicy
ARG_0, ARG_1, ARG_2, QNAME
-
-
Constructor Summary
Constructors Constructor Description DictionaryModelType()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidbeforeCreateNode(org.alfresco.service.cmr.repository.NodeRef parentRef, org.alfresco.service.namespace.QName assocTypeQName, org.alfresco.service.namespace.QName assocQName, org.alfresco.service.namespace.QName nodeTypeQName)Called before a new node is created.voidbeforeDeleteNode(org.alfresco.service.cmr.repository.NodeRef nodeRef)Called before a node is deleted.voidinit()The initialise methodvoidonContentUpdate(org.alfresco.service.cmr.repository.NodeRef nodeRef, boolean newContent)On content update behaviour implementationvoidonCreateNode(org.alfresco.service.cmr.repository.ChildAssociationRef childAssocRef)Called when a new node has been created.voidonDeleteNode(org.alfresco.service.cmr.repository.ChildAssociationRef childAssocRef, boolean isNodeArchived)Called after a node is deleted.voidonRemoveAspect(org.alfresco.service.cmr.repository.NodeRef nodeRef, org.alfresco.service.namespace.QName aspect)Called after an aspect has been removed from a nodevoidonSetNodeType(org.alfresco.service.cmr.repository.NodeRef nodeRef, org.alfresco.service.namespace.QName oldType, org.alfresco.service.namespace.QName newType)Called after the type of a node is set explicitly.voidonUpdateProperties(org.alfresco.service.cmr.repository.NodeRef nodeRef, java.util.Map<org.alfresco.service.namespace.QName,java.io.Serializable> before, java.util.Map<org.alfresco.service.namespace.QName,java.io.Serializable> after)On update properties behaviour implementationvoidsetAuthorityService(AuthorityService authorityService)voidsetContentService(ContentService contentService)Set the content servicevoidsetDictionaryDAO(org.alfresco.repo.dictionary.DictionaryDAO dictionaryDAO)Set the dictionary DAOvoidsetDoValidation(boolean doValidation)voidsetJobLockService(JobLockService jobLockService)voidsetModelValidator(ModelValidator modelValidator)voidsetNamespaceDAO(org.alfresco.repo.dictionary.NamespaceDAO namespaceDAO)Set the namespace DOAvoidsetNodeService(org.alfresco.service.cmr.repository.NodeService nodeService)Set the node servicevoidsetPolicyComponent(PolicyComponent policyComponent)Set the policy componentvoidsetTenantService(org.alfresco.repo.tenant.TenantService tenantService)Set the tenant servicevoidsetTransactionService(TransactionService transactionService)Set the transaction service
-
-
-
Field Detail
-
ALFRESCO_MODEL_ADMINISTRATORS_AUTHORITY
public static final java.lang.String ALFRESCO_MODEL_ADMINISTRATORS_AUTHORITY
- See Also:
- Constant Field Values
-
GROUP_ALFRESCO_MODEL_ADMINISTRATORS_AUTHORITY
public static final java.lang.String GROUP_ALFRESCO_MODEL_ADMINISTRATORS_AUTHORITY
- See Also:
- Constant Field Values
-
-
Method Detail
-
setDictionaryDAO
public void setDictionaryDAO(org.alfresco.repo.dictionary.DictionaryDAO dictionaryDAO)
Set the dictionary DAO
-
setModelValidator
public void setModelValidator(ModelValidator modelValidator)
-
setNamespaceDAO
public void setNamespaceDAO(org.alfresco.repo.dictionary.NamespaceDAO namespaceDAO)
Set the namespace DOA
-
setNodeService
public void setNodeService(org.alfresco.service.cmr.repository.NodeService nodeService)
Set the node service
-
setContentService
public void setContentService(ContentService contentService)
Set the content service
-
setPolicyComponent
public void setPolicyComponent(PolicyComponent policyComponent)
Set the policy component
-
setTenantService
public void setTenantService(org.alfresco.repo.tenant.TenantService tenantService)
Set the tenant service
-
setTransactionService
public void setTransactionService(TransactionService transactionService)
Set the transaction service
-
setJobLockService
public void setJobLockService(JobLockService jobLockService)
-
setDoValidation
public void setDoValidation(boolean doValidation)
-
setAuthorityService
public void setAuthorityService(AuthorityService authorityService)
-
init
public void init()
The initialise method
-
onContentUpdate
public void onContentUpdate(org.alfresco.service.cmr.repository.NodeRef nodeRef, boolean newContent)On content update behaviour implementation- Specified by:
onContentUpdatein interfaceContentServicePolicies.OnContentUpdatePolicy- Parameters:
nodeRef- the node reference whose content has been updated
-
onUpdateProperties
public void onUpdateProperties(org.alfresco.service.cmr.repository.NodeRef nodeRef, java.util.Map<org.alfresco.service.namespace.QName,java.io.Serializable> before, java.util.Map<org.alfresco.service.namespace.QName,java.io.Serializable> after)On update properties behaviour implementation- Specified by:
onUpdatePropertiesin interfaceNodeServicePolicies.OnUpdatePropertiesPolicy- Parameters:
nodeRef- the node referencebefore- the values of the properties before updateafter- the values of the properties after the update
-
onRemoveAspect
public void onRemoveAspect(org.alfresco.service.cmr.repository.NodeRef nodeRef, org.alfresco.service.namespace.QName aspect)Description copied from interface:NodeServicePolicies.OnRemoveAspectPolicyCalled after an aspect has been removed from a node- Specified by:
onRemoveAspectin interfaceNodeServicePolicies.OnRemoveAspectPolicy- Parameters:
nodeRef- the node from which the aspect will be removedaspect- the type of the aspect
-
beforeDeleteNode
public void beforeDeleteNode(org.alfresco.service.cmr.repository.NodeRef nodeRef)
Description copied from interface:NodeServicePolicies.BeforeDeleteNodePolicyCalled before a node is deleted.- Specified by:
beforeDeleteNodein interfaceNodeServicePolicies.BeforeDeleteNodePolicy- Parameters:
nodeRef- the node reference
-
onDeleteNode
public void onDeleteNode(org.alfresco.service.cmr.repository.ChildAssociationRef childAssocRef, boolean isNodeArchived)Description copied from interface:NodeServicePolicies.OnDeleteNodePolicyCalled after a node is deleted. The reference given is for an association which has been deleted and cannot be used to retrieve node or associaton information from any of the services.- Specified by:
onDeleteNodein interfaceNodeServicePolicies.OnDeleteNodePolicy- Parameters:
childAssocRef- the primary parent-child association of the deleted nodeisNodeArchived- indicates whether the node has been archived rather than purged
-
onCreateNode
public void onCreateNode(org.alfresco.service.cmr.repository.ChildAssociationRef childAssocRef)
Description copied from interface:NodeServicePolicies.OnCreateNodePolicyCalled when a new node has been created.- Specified by:
onCreateNodein interfaceNodeServicePolicies.OnCreateNodePolicy- Parameters:
childAssocRef- the created child association reference
-
onSetNodeType
public void onSetNodeType(org.alfresco.service.cmr.repository.NodeRef nodeRef, org.alfresco.service.namespace.QName oldType, org.alfresco.service.namespace.QName newType)Description copied from interface:NodeServicePolicies.OnSetNodeTypePolicyCalled after the type of a node is set explicitly.- Specified by:
onSetNodeTypein interfaceNodeServicePolicies.OnSetNodeTypePolicy- Parameters:
nodeRef- the node that has had its type set.oldType- the previous type of the node.newType- the type the node has been given.
-
beforeCreateNode
public void beforeCreateNode(org.alfresco.service.cmr.repository.NodeRef parentRef, org.alfresco.service.namespace.QName assocTypeQName, org.alfresco.service.namespace.QName assocQName, org.alfresco.service.namespace.QName nodeTypeQName)Description copied from interface:NodeServicePolicies.BeforeCreateNodePolicyCalled before a new node is created.- Specified by:
beforeCreateNodein interfaceNodeServicePolicies.BeforeCreateNodePolicy- Parameters:
parentRef- the parent node referenceassocTypeQName- the association type qualified nameassocQName- the association qualified namenodeTypeQName- the node type qualified name
-
-