public class DictionaryModelType extends Object implements ContentServicePolicies.OnContentUpdatePolicy, NodeServicePolicies.OnUpdatePropertiesPolicy, NodeServicePolicies.BeforeDeleteNodePolicy, NodeServicePolicies.OnDeleteNodePolicy, NodeServicePolicies.OnCreateNodePolicy, NodeServicePolicies.OnRemoveAspectPolicy
Modifier and Type | Class and Description |
---|---|
class |
DictionaryModelType.DictionaryModelTypeTransactionListener
Dictionary model type transaction listener class.
|
Policy.Arg
QNAME
ARG_0, ARG_1, ARG_2, QNAME
QNAME
QNAME
QNAME
QNAME
Constructor and Description |
---|
DictionaryModelType() |
Modifier and Type | Method and Description |
---|---|
void |
beforeDeleteNode(org.alfresco.service.cmr.repository.NodeRef nodeRef)
Called before a node is deleted.
|
void |
init()
The initialise method
|
void |
onContentUpdate(org.alfresco.service.cmr.repository.NodeRef nodeRef,
boolean newContent)
On content update behaviour implementation
|
void |
onCreateNode(org.alfresco.service.cmr.repository.ChildAssociationRef childAssocRef)
Called when a new node has been created.
|
void |
onDeleteNode(org.alfresco.service.cmr.repository.ChildAssociationRef childAssocRef,
boolean isNodeArchived)
Called after a node is deleted.
|
void |
onRemoveAspect(org.alfresco.service.cmr.repository.NodeRef nodeRef,
org.alfresco.service.namespace.QName aspect)
Called after an aspect has been removed from a node
|
void |
onUpdateProperties(org.alfresco.service.cmr.repository.NodeRef nodeRef,
Map<org.alfresco.service.namespace.QName,Serializable> before,
Map<org.alfresco.service.namespace.QName,Serializable> after)
On update properties behaviour implementation
|
void |
setContentService(ContentService contentService)
Set the content service
|
void |
setDictionaryDAO(org.alfresco.repo.dictionary.DictionaryDAO dictionaryDAO)
Set the dictionary DAO
|
void |
setDoValidation(boolean doValidation) |
void |
setJobLockService(JobLockService jobLockService) |
void |
setModelValidator(ModelValidator modelValidator) |
void |
setNamespaceDAO(org.alfresco.repo.dictionary.NamespaceDAO namespaceDAO)
Set the namespace DOA
|
void |
setNodeService(org.alfresco.service.cmr.repository.NodeService nodeService)
Set the node service
|
void |
setPolicyComponent(PolicyComponent policyComponent)
Set the policy component
|
void |
setTenantService(org.alfresco.repo.tenant.TenantService tenantService)
Set the tenant service
|
void |
setTransactionService(TransactionService transactionService)
Set the transaction service
|
public void setDictionaryDAO(org.alfresco.repo.dictionary.DictionaryDAO dictionaryDAO)
public void setModelValidator(ModelValidator modelValidator)
public void setNamespaceDAO(org.alfresco.repo.dictionary.NamespaceDAO namespaceDAO)
public void setNodeService(org.alfresco.service.cmr.repository.NodeService nodeService)
public void setContentService(ContentService contentService)
public void setPolicyComponent(PolicyComponent policyComponent)
public void setTenantService(org.alfresco.repo.tenant.TenantService tenantService)
public void setTransactionService(TransactionService transactionService)
public void setJobLockService(JobLockService jobLockService)
public void setDoValidation(boolean doValidation)
public void init()
public void onContentUpdate(org.alfresco.service.cmr.repository.NodeRef nodeRef, boolean newContent)
onContentUpdate
in interface ContentServicePolicies.OnContentUpdatePolicy
nodeRef
- the node reference whose content has been updatedpublic void onUpdateProperties(org.alfresco.service.cmr.repository.NodeRef nodeRef, Map<org.alfresco.service.namespace.QName,Serializable> before, Map<org.alfresco.service.namespace.QName,Serializable> after)
onUpdateProperties
in interface NodeServicePolicies.OnUpdatePropertiesPolicy
nodeRef
- the node referencebefore
- the values of the properties before updateafter
- the values of the properties after the updatepublic void onRemoveAspect(org.alfresco.service.cmr.repository.NodeRef nodeRef, org.alfresco.service.namespace.QName aspect)
NodeServicePolicies.OnRemoveAspectPolicy
onRemoveAspect
in interface NodeServicePolicies.OnRemoveAspectPolicy
nodeRef
- the node from which the aspect will be removedaspect
- the type of the aspectpublic void beforeDeleteNode(org.alfresco.service.cmr.repository.NodeRef nodeRef)
NodeServicePolicies.BeforeDeleteNodePolicy
beforeDeleteNode
in interface NodeServicePolicies.BeforeDeleteNodePolicy
nodeRef
- the node referencepublic void onDeleteNode(org.alfresco.service.cmr.repository.ChildAssociationRef childAssocRef, boolean isNodeArchived)
NodeServicePolicies.OnDeleteNodePolicy
onDeleteNode
in interface NodeServicePolicies.OnDeleteNodePolicy
childAssocRef
- the primary parent-child association of the deleted nodeisNodeArchived
- indicates whether the node has been archived rather than purgedpublic void onCreateNode(org.alfresco.service.cmr.repository.ChildAssociationRef childAssocRef)
NodeServicePolicies.OnCreateNodePolicy
onCreateNode
in interface NodeServicePolicies.OnCreateNodePolicy
childAssocRef
- the created child association referenceCopyright © 2005–2017 Alfresco Software. All rights reserved.