org.alfresco.repo.dictionary
Class DictionaryModelType

java.lang.Object
  extended by org.alfresco.repo.dictionary.DictionaryModelType
All Implemented Interfaces:
ContentServicePolicies.OnContentUpdatePolicy, NodeServicePolicies.BeforeDeleteNodePolicy, NodeServicePolicies.OnCreateNodePolicy, NodeServicePolicies.OnDeleteNodePolicy, NodeServicePolicies.OnRemoveAspectPolicy, NodeServicePolicies.OnUpdatePropertiesPolicy, ClassPolicy, Policy

public class DictionaryModelType
extends java.lang.Object
implements ContentServicePolicies.OnContentUpdatePolicy, NodeServicePolicies.OnUpdatePropertiesPolicy, NodeServicePolicies.BeforeDeleteNodePolicy, NodeServicePolicies.OnDeleteNodePolicy, NodeServicePolicies.OnCreateNodePolicy, NodeServicePolicies.OnRemoveAspectPolicy

Dictionary model type behaviour.


Nested Class Summary
 class DictionaryModelType.DictionaryModelTypeTransactionListener
          Dictionary model type transaction listener class.
 
Nested classes/interfaces inherited from interface org.alfresco.repo.policy.Policy
Policy.Arg
 
Field Summary
 
Fields inherited from interface org.alfresco.repo.content.ContentServicePolicies.OnContentUpdatePolicy
QNAME
 
Fields inherited from interface org.alfresco.repo.node.NodeServicePolicies.OnUpdatePropertiesPolicy
ARG_0, ARG_1, ARG_2, QNAME
 
Fields inherited from interface org.alfresco.repo.node.NodeServicePolicies.BeforeDeleteNodePolicy
QNAME
 
Fields inherited from interface org.alfresco.repo.node.NodeServicePolicies.OnDeleteNodePolicy
QNAME
 
Fields inherited from interface org.alfresco.repo.node.NodeServicePolicies.OnCreateNodePolicy
QNAME
 
Fields inherited from interface org.alfresco.repo.node.NodeServicePolicies.OnRemoveAspectPolicy
QNAME
 
Fields inherited from interface org.alfresco.repo.policy.Policy
NAMESPACE
 
Constructor Summary
DictionaryModelType()
           
 
Method Summary
 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, java.util.Map before, java.util.Map 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 setNamespaceDAO(org.alfresco.repo.dictionary.NamespaceDAO namespaceDAO)
          Set the namespace DOA
 void setNamespaceService(org.alfresco.service.namespace.NamespaceService namespaceService)
          Set the namespace service
 void setNodeService(org.alfresco.service.cmr.repository.NodeService nodeService)
          Set the node service
 void setPolicyComponent(PolicyComponent policyComponent)
          Set the policy component
 void setSearchService(org.alfresco.service.cmr.search.SearchService searchService)
          Set the search service
 void setStoreUrls(java.util.List storeUrls)
           
 void setTenantAdminService(TenantAdminService tenantAdminService)
          Set the tenant admin service
 void setTenantService(org.alfresco.repo.tenant.TenantService tenantService)
          Set the tenant service
 void setTransactionService(TransactionService transactionService)
          Set the transaction service
 void setWorkflowService(WorkflowService workflowService)
          Set the workflow service
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DictionaryModelType

public DictionaryModelType()
Method Detail

setDictionaryDAO

public void setDictionaryDAO(org.alfresco.repo.dictionary.DictionaryDAO dictionaryDAO)
Set the dictionary DAO


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


setWorkflowService

public void setWorkflowService(WorkflowService workflowService)
Set the workflow service


setSearchService

public void setSearchService(org.alfresco.service.cmr.search.SearchService searchService)
Set the search service


setNamespaceService

public void setNamespaceService(org.alfresco.service.namespace.NamespaceService namespaceService)
Set the namespace service


setTenantService

public void setTenantService(org.alfresco.repo.tenant.TenantService tenantService)
Set the tenant service


setTenantAdminService

public void setTenantAdminService(TenantAdminService tenantAdminService)
Set the tenant admin service


setTransactionService

public void setTransactionService(TransactionService transactionService)
Set the transaction service


setJobLockService

public void setJobLockService(JobLockService jobLockService)

setStoreUrls

public void setStoreUrls(java.util.List storeUrls)

setDoValidation

public void setDoValidation(boolean doValidation)

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:
onContentUpdate in interface ContentServicePolicies.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 before,
                               java.util.Map after)
On update properties behaviour implementation

Specified by:
onUpdateProperties in interface NodeServicePolicies.OnUpdatePropertiesPolicy
Parameters:
nodeRef - the node reference
before - the values of the properties before update
after - 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.OnRemoveAspectPolicy
Called after an aspect has been removed from a node

Specified by:
onRemoveAspect in interface NodeServicePolicies.OnRemoveAspectPolicy
Parameters:
nodeRef - the node from which the aspect will be removed
aspect - the type of the aspect

beforeDeleteNode

public void beforeDeleteNode(org.alfresco.service.cmr.repository.NodeRef nodeRef)
Description copied from interface: NodeServicePolicies.BeforeDeleteNodePolicy
Called before a node is deleted.

Specified by:
beforeDeleteNode in interface NodeServicePolicies.BeforeDeleteNodePolicy
Parameters:
nodeRef - the node reference

onDeleteNode

public void onDeleteNode(org.alfresco.service.cmr.repository.ChildAssociationRef childAssocRef,
                         boolean isNodeArchived)
Description copied from interface: NodeServicePolicies.OnDeleteNodePolicy
Called 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:
onDeleteNode in interface NodeServicePolicies.OnDeleteNodePolicy
Parameters:
childAssocRef - the primary parent-child association of the deleted node
isNodeArchived - 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.OnCreateNodePolicy
Called when a new node has been created.

Specified by:
onCreateNode in interface NodeServicePolicies.OnCreateNodePolicy
Parameters:
childAssocRef - the created child association reference


Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.