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() |
UserPermissionsTableModel |
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<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
ClientExceptionString addPermission() throws ClientException
updateSecurityOnDocument()>.ClientExceptionString addPermissions() throws ClientException
updateSecurityOnDocument()>.ClientExceptionString addPermission(String principalName, String permissionName, boolean grant) throws ClientException
ClientExceptionString removePermission()
updateSecurityOnDocument()>.String addPermissionAndUpdate() throws ClientException
updateSecurityOnDocument()>.ClientExceptionString addPermissionsAndUpdate() throws ClientException
updateSecurityOnDocument()>.ClientExceptionString removePermissionAndUpdate() throws ClientException
updateSecurityOnDocument()>.ClientExceptionString removePermissionsAndUpdate() throws ClientException
ClientExceptionvoid resetSecurityData()
void rebuildSecurityData()
throws ClientException
ClientExceptionUserPermissionsTableModel getDataTableModel() throws ClientException
ClientExceptionSecurityData getSecurityData() throws ClientException
ClientExceptionboolean getCanAddSecurityRules()
throws ClientException
ClientExceptionboolean getCanRemoveSecurityRules()
throws ClientException
ClientExceptionList<SelectItem> getSettablePermissions() throws ClientException
ClientExceptionBoolean getBlockRightInheritance()
void setBlockRightInheritance(Boolean blockRightInheritance) throws ClientException
ClientException@Deprecated Boolean displayInheritedPermissions() throws ClientException
getDisplayInheritedPermissions()ClientExceptionboolean getDisplayInheritedPermissions()
throws ClientException
ClientExceptionList<String> getCurrentDocumentUsers() throws ClientException
ClientExceptionList<String> getParentDocumentsUsers() throws ClientException
ClientExceptionString removePermissions() throws ClientException
ClientExceptionString saveSecurityUpdates() throws ClientException
ClientExceptionString getSelectedEntry()
void setSelectedEntry(String selectedEntry)
List<String> getSelectedEntries()
Copyright © 2011 Nuxeo SA. All Rights Reserved.