Class RMSecurityCommon
java.lang.Object
org.alfresco.module.org_alfresco_module_rm.capability.RMSecurityCommon
- All Implemented Interfaces:
org.springframework.beans.factory.Aware,org.springframework.context.ApplicationContextAware
- Direct Known Subclasses:
AbstractBasePolicy,AbstractCapability,RMAfterInvocationProvider,RMEntryVoter
public class RMSecurityCommon
extends Object
implements org.springframework.context.ApplicationContextAware
Common security functions.
TODO move methods to the appropriate services
- Since:
- 2.0
- Author:
- Roy Wetherall
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected org.springframework.context.ApplicationContextApplication contextprotected RMCaveatConfigComponentprotected NodeServiceServicesprotected static final intNo set valueprotected PermissionService -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintCheck for RM readintCheck for RM readintcheckRmRead(NodeRef nodeRef) Core RM read checkprotected FilePlanServiceprotected NodeRefgetTestNode(org.aopalliance.intercept.MethodInvocation invocation, Class[] params, int position, boolean parent) protected intgetTransactionCache(String prefix, NodeRef nodeRef) Gets a value from the transaction cachevoidsetApplicationContext(org.springframework.context.ApplicationContext applicationContext) voidsetCaveatConfigComponent(RMCaveatConfigComponent caveatConfigComponent) voidsetNodeService(NodeService nodeService) voidsetPermissionService(PermissionService permissionService) protected intsetTransactionCache(String prefix, NodeRef nodeRef, int value) Sets a value into the transaction cache
-
Field Details
-
NOSET_VALUE
protected static final int NOSET_VALUENo set value- See Also:
-
nodeService
Services -
permissionService
-
caveatConfigComponent
-
applicationContext
protected org.springframework.context.ApplicationContext applicationContextApplication context
-
-
Constructor Details
-
RMSecurityCommon
public RMSecurityCommon()
-
-
Method Details
-
setApplicationContext
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext) - Specified by:
setApplicationContextin interfaceorg.springframework.context.ApplicationContextAware- See Also:
-
ApplicationContextAware.setApplicationContext(org.springframework.context.ApplicationContext)
-
setNodeService
- Parameters:
nodeService- node service
-
setPermissionService
- Parameters:
permissionService- permission service
-
setCaveatConfigComponent
- Parameters:
caveatConfigComponent- caveat config service
-
getFilePlanService
- Returns:
- FilePlanService file plan service
-
setTransactionCache
Sets a value into the transaction cache- Parameters:
prefix-nodeRef-value-- Returns:
-
getTransactionCache
Gets a value from the transaction cache- Parameters:
prefix-nodeRef-- Returns:
-
checkRead
Check for RM read- Parameters:
nodeRef-- Returns:
-
checkRead
Check for RM read- Parameters:
nodeRef-allowDMRead-- Returns:
-
checkRmRead
Core RM read check- Parameters:
nodeRef- node reference- Returns:
- int see
AccessDecisionVoter
-
getTestNode
-