public interface ExtendedSecurityService
| Modifier and Type | Method and Description |
|---|---|
void |
addExtendedSecurity(org.alfresco.service.cmr.repository.NodeRef nodeRef,
Set<String> readers,
Set<String> writers)
Add extended security for the specified authorities to a node.
|
void |
addExtendedSecurity(org.alfresco.service.cmr.repository.NodeRef nodeRef,
Set<String> readers,
Set<String> writers,
boolean applyToParents)
Add extended security for the specified authorities to a node.
|
Set<String> |
getExtendedReaders(org.alfresco.service.cmr.repository.NodeRef nodeRef)
Gets the set of authorities that are extended readers for the given node.
|
Set<String> |
getExtendedWriters(org.alfresco.service.cmr.repository.NodeRef nodeRef)
Get the set of authorities that are extended writers for the given node.
|
boolean |
hasExtendedSecurity(org.alfresco.service.cmr.repository.NodeRef nodeRef)
Indicates whether a node has extended security.
|
void |
removeAllExtendedSecurity(org.alfresco.service.cmr.repository.NodeRef nodeRef)
Remove all extended readers and writers from the given node reference.
|
void |
removeAllExtendedSecurity(org.alfresco.service.cmr.repository.NodeRef nodeRef,
boolean applyToParents)
Remove all extended readers and writers from the given node reference.
|
void |
removeExtendedSecurity(org.alfresco.service.cmr.repository.NodeRef nodeRef,
Set<String> readers,
Set<String> writers)
Remove the extended security for the specified authorities from a node.
|
void |
removeExtendedSecurity(org.alfresco.service.cmr.repository.NodeRef nodeRef,
Set<String> readers,
Set<String> writers,
boolean applyToParents)
Remove the extended security for the specified authorities from a node.
|
boolean hasExtendedSecurity(org.alfresco.service.cmr.repository.NodeRef nodeRef)
nodeRef - node referenceSet<String> getExtendedReaders(org.alfresco.service.cmr.repository.NodeRef nodeRef)
Set<String> getExtendedWriters(org.alfresco.service.cmr.repository.NodeRef nodeRef)
void addExtendedSecurity(org.alfresco.service.cmr.repository.NodeRef nodeRef,
Set<String> readers,
Set<String> writers)
nodeRef - node referencereaders - set of authorities to add extended read permissionswriters - set of authorities to add extended write permissionsvoid addExtendedSecurity(org.alfresco.service.cmr.repository.NodeRef nodeRef,
Set<String> readers,
Set<String> writers,
boolean applyToParents)
If specified, the read and write extended permissions are applied to all parents up to the file plan as extended read. This ensures parental read, but not parental write.
nodeRef - node referencereaders - set of authorities to add extended read permissionswriters - set of authorities to add extended write permissionsapplyToParents - true if extended security applied to parents (read only) false otherwise.void removeExtendedSecurity(org.alfresco.service.cmr.repository.NodeRef nodeRef,
Set<String> readers,
Set<String> writers)
nodeRef - node referencereaders - set of authorities to remove as extended readerswriters - set of authorities to remove as extended writersvoid removeExtendedSecurity(org.alfresco.service.cmr.repository.NodeRef nodeRef,
Set<String> readers,
Set<String> writers,
boolean applyToParents)
If specified, extended security will also be removed from the parent hierarchy.(read only). Note that extended security is records as a reference count, so security will only be utterly removed from the parent hierarchy if all references to the authority are removed.
nodeRef - node referencereaders - set of authorities to remove as extended readerswriters - set of authorities to remove as extedned writersapplyToParents - true if removal of extended security is applied to parent hierarchy (read only), false
otherwisevoid removeAllExtendedSecurity(org.alfresco.service.cmr.repository.NodeRef nodeRef)
nodeRef - node referencevoid removeAllExtendedSecurity(org.alfresco.service.cmr.repository.NodeRef nodeRef,
boolean applyToParents)
nodeRef - node referenceapplyToParents - if true then apply removal to parent hierarchy (read only) false otherwise.Copyright © 2005–2016 Alfresco Software. All rights reserved.