org.alfresco.repo.usage
Class UsageQuotaProtector

java.lang.Object
  extended by org.alfresco.repo.usage.UsageQuotaProtector
All Implemented Interfaces:
NodeServicePolicies.OnUpdatePropertiesPolicy, ClassPolicy, Policy

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

Implements policies/behaviour for protecting system/admin-maintained person properties


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
UsageQuotaProtector()
           
 
Method Summary
 void init()
          The initialise method
 void onUpdateProperties(org.alfresco.service.cmr.repository.NodeRef nodeRef, java.util.Map before, java.util.Map after)
          Called after a node's properties have been changed.
 void setAuthorityService(AuthorityService authorityService)
           
 void setContentUsageService(ContentUsageService contentUsageService)
           
 void setPolicyComponent(PolicyComponent policyComponent)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UsageQuotaProtector

public UsageQuotaProtector()
Method Detail

setAuthorityService

public void setAuthorityService(AuthorityService authorityService)

setContentUsageService

public void setContentUsageService(ContentUsageService contentUsageService)

setPolicyComponent

public void setPolicyComponent(PolicyComponent policyComponent)

init

public void init()
The initialise method


onUpdateProperties

public void onUpdateProperties(org.alfresco.service.cmr.repository.NodeRef nodeRef,
                               java.util.Map before,
                               java.util.Map after)
Called after a node's properties have been changed.

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.