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.ApplicationContext
Application contextprotected RMCaveatConfigComponent
protected NodeService
Servicesprotected static final int
No set valueprotected PermissionService
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
Check for RM readint
Check for RM readint
checkRmRead
(NodeRef nodeRef) Core RM read checkprotected FilePlanService
protected NodeRef
getTestNode
(org.aopalliance.intercept.MethodInvocation invocation, Class[] params, int position, boolean parent) protected int
getTransactionCache
(String prefix, NodeRef nodeRef) Gets a value from the transaction cachevoid
setApplicationContext
(org.springframework.context.ApplicationContext applicationContext) void
setCaveatConfigComponent
(RMCaveatConfigComponent caveatConfigComponent) void
setNodeService
(NodeService nodeService) void
setPermissionService
(PermissionService permissionService) protected int
setTransactionCache
(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:
setApplicationContext
in 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
-