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()
String addPermission()
updateSecurityOnDocument()>
.String addPermissions()
updateSecurityOnDocument()>
.String addPermission(String principalName, String permissionName, boolean grant)
String removePermission()
updateSecurityOnDocument()>
.String addPermissionAndUpdate()
updateSecurityOnDocument()>
.String addPermissionsAndUpdate()
updateSecurityOnDocument()>
.String removePermissionAndUpdate()
updateSecurityOnDocument()>
.String removePermissionsAndUpdate()
void resetSecurityData()
void rebuildSecurityData()
PageSelections<String> getDataTableModel()
SecurityData getSecurityData()
boolean getCanAddSecurityRules()
boolean getCanRemoveSecurityRules()
List<javax.faces.model.SelectItem> getSettablePermissions()
Map<String,String> getIconPathMap()
Map<String,String> getIconAltMap()
Boolean getBlockRightInheritance()
void setBlockRightInheritance(Boolean blockRightInheritance)
@Deprecated Boolean displayInheritedPermissions()
getDisplayInheritedPermissions()
boolean getDisplayInheritedPermissions()
List<String> getCurrentDocumentUsers()
List<String> getParentDocumentsUsers()
String removePermissions()
String saveSecurityUpdates()
String getSelectedEntry()
void setSelectedEntry(String selectedEntry)
List<String> getSelectedEntries()
void setSelectedEntries(List<String> selectedEntries)
Copyright © 2015 Nuxeo SA. All rights reserved.