|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.alfresco.repo.policy.PolicyComponentImpl
public class PolicyComponentImpl
Policy Component Implementation.
Constructor Summary | |
---|---|
PolicyComponentImpl(DictionaryService dictionary)
Construct |
Method Summary | |
---|---|
BehaviourDefinition |
bindAssociationBehaviour(QName policy,
java.lang.Object service,
Behaviour behaviour)
Bind a Service specific behaviour to an Association-level Policy |
BehaviourDefinition |
bindAssociationBehaviour(QName policy,
QName className,
Behaviour behaviour)
Bind an Association specific behaviour to an Association-level Policy (for all associations of a Class) |
BehaviourDefinition |
bindAssociationBehaviour(QName policy,
QName className,
QName assocName,
Behaviour behaviour)
Bind an Association specific behaviour to an Association-level Policy |
BehaviourDefinition |
bindClassBehaviour(QName policy,
java.lang.Object service,
Behaviour behaviour)
Bind a Service behaviour to a Class-level Policy |
BehaviourDefinition |
bindClassBehaviour(QName policy,
QName classRef,
Behaviour behaviour)
Bind a Class specific behaviour to a Class-level Policy |
BehaviourDefinition |
bindPropertyBehaviour(QName policy,
java.lang.Object service,
Behaviour behaviour)
Bind a Service specific behaviour to a Property-level Policy |
BehaviourDefinition |
bindPropertyBehaviour(QName policy,
QName className,
Behaviour behaviour)
Bind a Property specific behaviour to a Property-level Policy (for all properties of a Class) |
BehaviourDefinition |
bindPropertyBehaviour(QName policy,
QName className,
QName propertyName,
Behaviour behaviour)
Bind a Property specific behaviour to a Property-level Policy |
java.util.Collection |
getRegisteredPolicies()
Gets all registered Policies |
PolicyDefinition |
getRegisteredPolicy(PolicyType policyType,
QName policy)
Gets the specified registered Policy |
boolean |
isRegisteredPolicy(PolicyType policyType,
QName policy)
Determine if the specified policy has been registered |
AssociationPolicyDelegate |
registerAssociationPolicy(java.lang.Class policy)
Register a Association-level Policy |
ClassPolicyDelegate |
registerClassPolicy(java.lang.Class policy)
Register a Class-level Policy |
PropertyPolicyDelegate |
registerPropertyPolicy(java.lang.Class policy)
Register a Property-level Policy |
void |
setBehaviourFilter(BehaviourFilter filter)
Sets the behaviour filter |
void |
setTenantService(TenantService tenantService)
Sets the tenant service |
void |
setTransactionInvocationHandlerFactory(TransactionInvocationHandlerFactory factory)
Sets the transaction-based policy invocation handler |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PolicyComponentImpl(DictionaryService dictionary)
dictionary
- dictionary servicebehaviourFilter
- behaviour filterMethod Detail |
---|
public void setBehaviourFilter(BehaviourFilter filter)
filter
- public void setTenantService(TenantService tenantService)
tenantService
- public void setTransactionInvocationHandlerFactory(TransactionInvocationHandlerFactory factory)
factory
- public ClassPolicyDelegate registerClassPolicy(java.lang.Class policy)
PolicyComponent
registerClassPolicy
in interface PolicyComponent
policy
- the policy interface class
public PropertyPolicyDelegate registerPropertyPolicy(java.lang.Class policy)
PolicyComponent
registerPropertyPolicy
in interface PolicyComponent
policy
- the policy interface class
public AssociationPolicyDelegate registerAssociationPolicy(java.lang.Class policy)
PolicyComponent
registerAssociationPolicy
in interface PolicyComponent
policy
- the policy interface class
public java.util.Collection getRegisteredPolicies()
PolicyComponent
getRegisteredPolicies
in interface PolicyComponent
public PolicyDefinition getRegisteredPolicy(PolicyType policyType, QName policy)
PolicyComponent
getRegisteredPolicy
in interface PolicyComponent
policyType
- the policy typepolicy
- the policy name
public boolean isRegisteredPolicy(PolicyType policyType, QName policy)
PolicyComponent
isRegisteredPolicy
in interface PolicyComponent
policyType
- the policy typepolicy
- the policy name
public BehaviourDefinition bindClassBehaviour(QName policy, QName classRef, Behaviour behaviour)
PolicyComponent
bindClassBehaviour
in interface PolicyComponent
policy
- the policy namebehaviour
- the behaviour
public BehaviourDefinition bindClassBehaviour(QName policy, java.lang.Object service, Behaviour behaviour)
PolicyComponent
bindClassBehaviour
in interface PolicyComponent
policy
- the policy nameservice
- the service (any object, in fact)behaviour
- the behaviour
public BehaviourDefinition bindPropertyBehaviour(QName policy, QName className, QName propertyName, Behaviour behaviour)
PolicyComponent
bindPropertyBehaviour
in interface PolicyComponent
policy
- the policy nameclassName
- the class to bind againstpropertyName
- the property to bind againstbehaviour
- the behaviour
public BehaviourDefinition bindPropertyBehaviour(QName policy, QName className, Behaviour behaviour)
PolicyComponent
bindPropertyBehaviour
in interface PolicyComponent
policy
- the policy nameclassName
- the class to bind againstbehaviour
- the behaviour
public BehaviourDefinition bindPropertyBehaviour(QName policy, java.lang.Object service, Behaviour behaviour)
PolicyComponent
bindPropertyBehaviour
in interface PolicyComponent
policy
- the policy nameservice
- the binding servicebehaviour
- the behaviour
public BehaviourDefinition bindAssociationBehaviour(QName policy, QName className, QName assocName, Behaviour behaviour)
PolicyComponent
bindAssociationBehaviour
in interface PolicyComponent
policy
- the policy nameclassName
- the class to bind againstbehaviour
- the behaviour
public BehaviourDefinition bindAssociationBehaviour(QName policy, QName className, Behaviour behaviour)
PolicyComponent
bindAssociationBehaviour
in interface PolicyComponent
policy
- the policy nameclassName
- the class to bind againstbehaviour
- the behaviour
public BehaviourDefinition bindAssociationBehaviour(QName policy, java.lang.Object service, Behaviour behaviour)
PolicyComponent
bindAssociationBehaviour
in interface PolicyComponent
policy
- the policy nameservice
- the binding servicebehaviour
- the behaviour
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |