public interface SecurityActions
Modifier and Type | Method and Description |
---|---|
String |
addPermission()
Adds a permission to the list of permissions for the current document.
|
String |
addPermission(String principalName,
String permissionName,
boolean grant) |
String |
addPermissionAndUpdate()
Adds a permission to the list of permissions for the current document and automatically update the backend with
updateSecurityOnDocument()> . |
String |
addPermissions()
Adds a list of permission to the list of permissions for the current document.
|
String |
addPermissionsAndUpdate()
Adds a list of permissions to the list of permissions for the current document and automatically update the
backend with
updateSecurityOnDocument()> . |
Boolean |
displayInheritedPermissions()
Deprecated.
|
Boolean |
getBlockRightInheritance() |
boolean |
getCanAddSecurityRules()
Returns true if the implementator if the principal has the permission to add new security rules on currentItem.
|
boolean |
getCanRemoveSecurityRules()
Returns true if the implementator can provide a list of permissions delete now and the principal has
WriteSecurity permission on the currentItem.
|
List<String> |
getCurrentDocumentUsers() |
PageSelections<String> |
getDataTableModel() |
boolean |
getDisplayInheritedPermissions()
Returns true if inherited permissions have to be displayed (depending on rights blocking)
|
Map<String,String> |
getIconAltMap()
Maps the principal type to the icon alt text.
|
Map<String,String> |
getIconPathMap()
Maps the principal type to the icon path.
|
List<String> |
getParentDocumentsUsers() |
SecurityData |
getSecurityData() |
List<String> |
getSelectedEntries()
Returns selected entries used in add/remove methods
|
String |
getSelectedEntry()
Returns selected entry used in add/remove methods
|
List<javax.faces.model.SelectItem> |
getSettablePermissions() |
void |
rebuildSecurityData()
Rebuilds the security displayable data from the current selected document.
|
String |
removePermission()
Removes a permission from the list of permissions for the current document.
|
String |
removePermissionAndUpdate()
Removes a permission from the list of permissions for the current document and automatically update the backend
with
updateSecurityOnDocument()> . |
String |
removePermissions() |
String |
removePermissionsAndUpdate() |
void |
resetSecurityData()
Marks the current security data info as obsolete so that it gets lazily recomputed from the backend the next time
it is accessed.
|
String |
saveSecurityUpdates() |
void |
setBlockRightInheritance(Boolean blockRightInheritance) |
void |
setSelectedEntries(List<String> selectedEntries)
Sets selected entries used in add/remove methods
|
void |
setSelectedEntry(String selectedEntry)
Sets selected entry used in add/remove methods
|
String |
updateSecurityOnDocument()
Submits the security changes to the backend.
|
String updateSecurityOnDocument() throws ClientException
ClientException
String addPermission() throws ClientException
updateSecurityOnDocument()>
.ClientException
String addPermissions() throws ClientException
updateSecurityOnDocument()>
.ClientException
String addPermission(String principalName, String permissionName, boolean grant) throws ClientException
ClientException
String removePermission()
updateSecurityOnDocument()>
.String addPermissionAndUpdate() throws ClientException
updateSecurityOnDocument()>
.ClientException
String addPermissionsAndUpdate() throws ClientException
updateSecurityOnDocument()>
.ClientException
String removePermissionAndUpdate() throws ClientException
updateSecurityOnDocument()>
.ClientException
String removePermissionsAndUpdate() throws ClientException
ClientException
void resetSecurityData()
void rebuildSecurityData() throws ClientException
ClientException
PageSelections<String> getDataTableModel() throws ClientException
ClientException
SecurityData getSecurityData() throws ClientException
ClientException
boolean getCanAddSecurityRules() throws ClientException
ClientException
boolean getCanRemoveSecurityRules() throws ClientException
ClientException
List<javax.faces.model.SelectItem> getSettablePermissions() throws ClientException
ClientException
Boolean getBlockRightInheritance()
void setBlockRightInheritance(Boolean blockRightInheritance) throws ClientException
ClientException
@Deprecated Boolean displayInheritedPermissions() throws ClientException
getDisplayInheritedPermissions()
ClientException
boolean getDisplayInheritedPermissions() throws ClientException
ClientException
List<String> getCurrentDocumentUsers() throws ClientException
ClientException
List<String> getParentDocumentsUsers() throws ClientException
ClientException
String removePermissions() throws ClientException
ClientException
String saveSecurityUpdates() throws ClientException
ClientException
String getSelectedEntry()
void setSelectedEntry(String selectedEntry)
List<String> getSelectedEntries()
Copyright © 2015 Nuxeo SA. All rights reserved.