org.alfresco.repo.model.ml
Class MLContainerType

java.lang.Object
  extended by org.alfresco.repo.model.ml.MLContainerType
All Implemented Interfaces:
NodeServicePolicies.OnUpdatePropertiesPolicy, ClassPolicy, Policy

public class MLContainerType
extends java.lang.Object
implements NodeServicePolicies.OnUpdatePropertiesPolicy

Class containing behaviour for the multilingual multilingual container type. A multilingual container type is fonctionally named 'Logical Document'. It links each translation of a semantical message together multilingual container type


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.alfresco.repo.policy.Policy
Policy.Arg
 
Field Summary
 
Fields inherited from interface org.alfresco.repo.node.NodeServicePolicies.OnUpdatePropertiesPolicy
ARG_0, ARG_1, ARG_2, QNAME
 
Fields inherited from interface org.alfresco.repo.policy.Policy
NAMESPACE
 
Constructor Summary
MLContainerType()
           
 
Method Summary
 void init()
          Initialise the Multilingual Container Type
 void onUpdateProperties(org.alfresco.service.cmr.repository.NodeRef nodeRef, java.util.Map before, java.util.Map after)
          The property locale of a cm:mlContainer represents the locale of the pivot translation.
 void setMultilingualContentService(MultilingualContentService multilingualContentService)
           
 void setNodeService(org.alfresco.service.cmr.repository.NodeService nodeService)
           
 void setPolicyComponent(PolicyComponent policyComponent)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MLContainerType

public MLContainerType()
Method Detail

init

public void init()
Initialise the Multilingual Container Type

Ensures that the ml empty document aspect


setPolicyComponent

public void setPolicyComponent(PolicyComponent policyComponent)
Parameters:
policyComponent - the policy component to register behaviour with

setMultilingualContentService

public void setMultilingualContentService(MultilingualContentService multilingualContentService)
Parameters:
multilingualContentService - the Multilingual Content Service to set

setNodeService

public void setNodeService(org.alfresco.service.cmr.repository.NodeService nodeService)
Parameters:
nodeService - the Node Service to set

onUpdateProperties

public void onUpdateProperties(org.alfresco.service.cmr.repository.NodeRef nodeRef,
                               java.util.Map before,
                               java.util.Map after)
The property locale of a cm:mlContainer represents the locale of the pivot translation. Since the pivot must be an existing translation and the pivot can t be empty, some tests must be performed when the locale of the mlContainer is updated.

Specified by:
onUpdateProperties in interface NodeServicePolicies.OnUpdatePropertiesPolicy
Parameters:
nodeRef - reference to the updated node
before - the node's properties before the change
after - the node's properties after the change


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