public class DictionaryModelType extends Object implements ContentServicePolicies.OnContentUpdatePolicy, NodeServicePolicies.OnUpdatePropertiesPolicy, NodeServicePolicies.BeforeDeleteNodePolicy, NodeServicePolicies.OnDeleteNodePolicy, NodeServicePolicies.OnCreateNodePolicy, NodeServicePolicies.OnRemoveAspectPolicy, NodeServicePolicies.OnSetNodeTypePolicy, NodeServicePolicies.BeforeCreateNodePolicy
| Modifier and Type | Class and Description |
|---|---|
class |
DictionaryModelType.DictionaryModelTypeTransactionListener
Dictionary model type transaction listener class.
|
Policy.Arg| Modifier and Type | Field and Description |
|---|---|
static String |
ALFRESCO_MODEL_ADMINISTRATORS_AUTHORITY |
static String |
GROUP_ALFRESCO_MODEL_ADMINISTRATORS_AUTHORITY |
QNAMEARG_0, ARG_1, ARG_2, QNAMEQNAMEQNAMEQNAMEQNAMEQNAMEQNAME| Constructor and Description |
|---|
DictionaryModelType() |
| Modifier and Type | Method and Description |
|---|---|
void |
beforeCreateNode(NodeRef parentRef,
QName assocTypeQName,
QName assocQName,
QName nodeTypeQName)
Called before a new node is created.
|
void |
beforeDeleteNode(NodeRef nodeRef)
Called before a node is deleted.
|
void |
init()
The initialise method
|
void |
onContentUpdate(NodeRef nodeRef,
boolean newContent)
On content update behaviour implementation
|
void |
onCreateNode(ChildAssociationRef childAssocRef)
Called when a new node has been created.
|
void |
onDeleteNode(ChildAssociationRef childAssocRef,
boolean isNodeArchived)
Called after a node is deleted.
|
void |
onRemoveAspect(NodeRef nodeRef,
QName aspect)
Called after an aspect has been removed from a node
|
void |
onSetNodeType(NodeRef nodeRef,
QName oldType,
QName newType)
Called after the type of a node is set explicitly.
|
void |
onUpdateProperties(NodeRef nodeRef,
Map<QName,Serializable> before,
Map<QName,Serializable> after)
On update properties behaviour implementation
|
void |
setAuthorityService(AuthorityService authorityService) |
void |
setContentService(ContentService contentService)
Set the content service
|
void |
setDictionaryDAO(DictionaryDAO dictionaryDAO)
Set the dictionary DAO
|
void |
setDoValidation(boolean doValidation) |
void |
setJobLockService(JobLockService jobLockService) |
void |
setModelValidator(ModelValidator modelValidator) |
void |
setNamespaceDAO(NamespaceDAO namespaceDAO)
Set the namespace DOA
|
void |
setNodeService(NodeService nodeService)
Set the node service
|
void |
setPolicyComponent(PolicyComponent policyComponent)
Set the policy component
|
void |
setTenantService(TenantService tenantService)
Set the tenant service
|
void |
setTransactionService(TransactionService transactionService)
Set the transaction service
|
public static final String ALFRESCO_MODEL_ADMINISTRATORS_AUTHORITY
public static final String GROUP_ALFRESCO_MODEL_ADMINISTRATORS_AUTHORITY
public void setDictionaryDAO(DictionaryDAO dictionaryDAO)
public void setModelValidator(ModelValidator modelValidator)
public void setNamespaceDAO(NamespaceDAO namespaceDAO)
public void setNodeService(NodeService nodeService)
public void setContentService(ContentService contentService)
public void setPolicyComponent(PolicyComponent policyComponent)
public void setTenantService(TenantService tenantService)
public void setTransactionService(TransactionService transactionService)
public void setJobLockService(JobLockService jobLockService)
public void setDoValidation(boolean doValidation)
public void setAuthorityService(AuthorityService authorityService)
public void init()
public void onContentUpdate(NodeRef nodeRef, boolean newContent)
onContentUpdate in interface ContentServicePolicies.OnContentUpdatePolicynodeRef - the node reference whose content has been updatedpublic void onUpdateProperties(NodeRef nodeRef, Map<QName,Serializable> before, Map<QName,Serializable> after)
onUpdateProperties in interface NodeServicePolicies.OnUpdatePropertiesPolicynodeRef - the node referencebefore - the values of the properties before updateafter - the values of the properties after the updatepublic void onRemoveAspect(NodeRef nodeRef, QName aspect)
NodeServicePolicies.OnRemoveAspectPolicyonRemoveAspect in interface NodeServicePolicies.OnRemoveAspectPolicynodeRef - the node from which the aspect will be removedaspect - the type of the aspectpublic void beforeDeleteNode(NodeRef nodeRef)
NodeServicePolicies.BeforeDeleteNodePolicybeforeDeleteNode in interface NodeServicePolicies.BeforeDeleteNodePolicynodeRef - the node referencepublic void onDeleteNode(ChildAssociationRef childAssocRef, boolean isNodeArchived)
NodeServicePolicies.OnDeleteNodePolicyonDeleteNode in interface NodeServicePolicies.OnDeleteNodePolicychildAssocRef - the primary parent-child association of the deleted nodeisNodeArchived - indicates whether the node has been archived rather than purgedpublic void onCreateNode(ChildAssociationRef childAssocRef)
NodeServicePolicies.OnCreateNodePolicyonCreateNode in interface NodeServicePolicies.OnCreateNodePolicychildAssocRef - the created child association referencepublic void onSetNodeType(NodeRef nodeRef, QName oldType, QName newType)
NodeServicePolicies.OnSetNodeTypePolicyonSetNodeType in interface NodeServicePolicies.OnSetNodeTypePolicynodeRef - the node that has had its type set.oldType - the previous type of the node.newType - the type the node has been given.public void beforeCreateNode(NodeRef parentRef, QName assocTypeQName, QName assocQName, QName nodeTypeQName)
NodeServicePolicies.BeforeCreateNodePolicybeforeCreateNode in interface NodeServicePolicies.BeforeCreateNodePolicyparentRef - the parent node referenceassocTypeQName - the association type qualified nameassocQName - the association qualified namenodeTypeQName - the node type qualified nameCopyright © 2005–2021 Alfresco Software. All rights reserved.