Interface ExtendedSecurityService
- All Superinterfaces:
DeprecatedExtendedSecurityService
- All Known Implementing Classes:
ExtendedSecurityServiceImpl
@AlfrescoPublicApi
public interface ExtendedSecurityService
extends DeprecatedExtendedSecurityService
Extended security service.
- Since:
- 2.1
- Author:
- Roy Wetherall
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptiongetReaders
(NodeRef nodeRef) Gets the set of authorities that are extended readers for the given node.getWriters
(NodeRef nodeRef) Get the set of authorities that are extended writers for the given node.boolean
hasExtendedSecurity
(NodeRef nodeRef) Indicates whether a node has extended security.void
Removes all extended security from a node.void
Set extended security for a node, where the readers will be granted ReadRecord permission and ViewRecord capability to the node and where the writers will be granted Filling permission and Filling capability to the node.void
Helper to allow caller to provide authority sets as a pair where the first is the readers and the second is the writers.Methods inherited from interface org.alfresco.module.org_alfresco_module_rm.security.DeprecatedExtendedSecurityService
addExtendedSecurity, addExtendedSecurity, getExtendedReaders, getExtendedWriters, removeAllExtendedSecurity, removeAllExtendedSecurity, removeExtendedSecurity, removeExtendedSecurity
-
Field Details
-
IPR_GROUP_PREFIX
IPR group prefix- See Also:
-
-
Method Details
-
hasExtendedSecurity
Indicates whether a node has extended security.- Parameters:
nodeRef
- node reference- Returns:
- boolean true if the node has extended security, false otherwise
-
getReaders
Gets the set of authorities that are extended readers for the given node. -
getWriters
Get the set of authorities that are extended writers for the given node. -
set
Helper to allow caller to provide authority sets as a pair where the first is the readers and the second is the writers.- Parameters:
nodeRef
- node referencereadersAndWriters
- pair where first is the set of readers and the second is the set of writers- See Also:
-
set
Set extended security for a node, where the readers will be granted ReadRecord permission and ViewRecord capability to the node and where the writers will be granted Filling permission and Filling capability to the node.Note it is vaild to provide 'null' values for readers and/or writers.
- Parameters:
nodeRef
- node referencereaders
- set of readerswriters
- set of writers- Since:
- 2.5
-
remove
Removes all extended security from a node.- Parameters:
nodeRef
- node reference
-