B
- the type of BindingP
- the type of Policy@AlfrescoPublicApi public class CachedPolicyFactory<B extends BehaviourBinding,P extends Policy> extends Object
Modifier and Type | Method and Description |
---|---|
protected static void |
convertMTArgs(Object[] args)
Convert each of the arguments to the spoofed (no tenant prefix) reference.
|
P |
create(B binding)
Construct a Policy implementation for the specified binding
|
Collection<P> |
createList(B binding)
Construct a collection of Policy implementations for the specified binding
|
protected Class<P> |
getPolicyClass()
Gets the Policy class created by this factory
|
protected static void |
setTenantService(org.alfresco.repo.tenant.TenantService service)
Sets the Tenant Service
|
protected static void |
setTransactionInvocationHandlerFactory(TransactionInvocationHandlerFactory factory)
Sets the Transaction Invocation Handler
|
void |
setTryLockTimeout(long tryLockTimeout) |
P |
toPolicy(Collection<P> policyList)
Construct a single aggregate policy implementation for the specified
collection of policy implementations.
|
public void setTryLockTimeout(long tryLockTimeout)
public P create(B binding)
binding
- the bindingpublic Collection<P> createList(B binding)
binding
- the bindingprotected static void setTransactionInvocationHandlerFactory(TransactionInvocationHandlerFactory factory)
factory
- TransactionInvocationHandlerFactoryprotected static void setTenantService(org.alfresco.repo.tenant.TenantService service)
service
- TenantServiceprotected Class<P> getPolicyClass()
public P toPolicy(Collection<P> policyList)
policyList
- the policy implementations to aggregateprotected static void convertMTArgs(Object[] args)
args
- list of non final arguments - the arguments are updated in placeCopyright © 2005–2017 Alfresco Software. All rights reserved.