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 Modifier and Type Field Description static String
IPR_GROUP_PREFIX
IPR group prefix
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Set<String>
getReaders(NodeRef nodeRef)
Gets the set of authorities that are extended readers for the given node.Set<String>
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
remove(NodeRef nodeRef)
Removes all extended security from a node.void
set(NodeRef nodeRef, Set<String> readers, Set<String> writers)
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
set(NodeRef nodeRef, Pair<Set<String>,Set<String>> readersAndWriters)
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 Detail
-
IPR_GROUP_PREFIX
static final String IPR_GROUP_PREFIX
IPR group prefix- See Also:
- Constant Field Values
-
-
Method Detail
-
hasExtendedSecurity
boolean hasExtendedSecurity(NodeRef nodeRef)
Indicates whether a node has extended security.- Parameters:
nodeRef
- node reference- Returns:
- boolean true if the node has extended security, false otherwise
-
getReaders
Set<String> getReaders(NodeRef nodeRef)
Gets the set of authorities that are extended readers for the given node.
-
getWriters
Set<String> getWriters(NodeRef nodeRef)
Get the set of authorities that are extended writers for the given node.
-
set
void set(NodeRef nodeRef, Pair<Set<String>,Set<String>> readersAndWriters)
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(NodeRef, Set, Set)
-
set
void set(NodeRef nodeRef, Set<String> readers, Set<String> writers)
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
void remove(NodeRef nodeRef)
Removes all extended security from a node.- Parameters:
nodeRef
- node reference
-
-