@Name(value="securityActions") @Scope(value=CONVERSATION) public class SecurityActionsBean extends InputController implements SecurityActions, Serializable
| Constructor and Description |
|---|
SecurityActionsBean() |
| 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()>. |
String |
blockRightInheritance() |
Boolean |
displayInheritedPermissions() |
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<javax.faces.model.SelectItem> |
getSettablePermissions() |
List<UserVisiblePermission> |
getVisibleUserPermissions(String documentType) |
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.
|
computeOutcome, getAdministrator, logDocumentWithName, logDocumentWithTitle, removeDocumentFromList@Observer(value="userAllDocumentTypesSelectionChanged",
create=false)
@BypassInterceptors
public void resetSecurityData()
SecurityActionsresetSecurityData in interface SecurityActionspublic void rebuildSecurityData()
throws ClientException
SecurityActionsrebuildSecurityData in interface SecurityActionsClientExceptionpublic UserPermissionsTableModel getDataTableModel() throws ClientException
getDataTableModel in interface SecurityActionsClientExceptionpublic SecurityData getSecurityData() throws ClientException
getSecurityData in interface SecurityActionsClientExceptionpublic String updateSecurityOnDocument() throws ClientException
SecurityActionsupdateSecurityOnDocument in interface SecurityActionsClientExceptionpublic String addPermission(String principalName, String permissionName, boolean grant) throws ClientException
addPermission in interface SecurityActionsClientExceptionpublic String addPermission() throws ClientException
SecurityActionsupdateSecurityOnDocument()>.addPermission in interface SecurityActionsClientExceptionpublic String addPermissions() throws ClientException
SecurityActionsupdateSecurityOnDocument()>.addPermissions in interface SecurityActionsClientExceptionpublic String addPermissionAndUpdate() throws ClientException
SecurityActionsupdateSecurityOnDocument()>.addPermissionAndUpdate in interface SecurityActionsClientExceptionpublic String addPermissionsAndUpdate() throws ClientException
SecurityActionsupdateSecurityOnDocument()>.addPermissionsAndUpdate in interface SecurityActionsClientExceptionpublic String saveSecurityUpdates() throws ClientException
saveSecurityUpdates in interface SecurityActionsClientExceptionpublic String removePermission()
SecurityActionsupdateSecurityOnDocument()>.removePermission in interface SecurityActionspublic String removePermissionAndUpdate() throws ClientException
SecurityActionsupdateSecurityOnDocument()>.removePermissionAndUpdate in interface SecurityActionsClientExceptionpublic String removePermissions() throws ClientException
removePermissions in interface SecurityActionsClientExceptionpublic String removePermissionsAndUpdate() throws ClientException
removePermissionsAndUpdate in interface SecurityActionsClientExceptionpublic boolean getCanAddSecurityRules()
throws ClientException
SecurityActionsgetCanAddSecurityRules in interface SecurityActionsClientExceptionpublic boolean getCanRemoveSecurityRules()
throws ClientException
SecurityActionsgetCanRemoveSecurityRules in interface SecurityActionsClientExceptionpublic List<UserVisiblePermission> getVisibleUserPermissions(String documentType) throws ClientException
ClientExceptionpublic List<javax.faces.model.SelectItem> getSettablePermissions() throws ClientException
getSettablePermissions in interface SecurityActionsClientExceptionpublic Map<String,String> getIconAltMap()
SecurityActionsgetIconAltMap in interface SecurityActionspublic Map<String,String> getIconPathMap()
SecurityActionsgetIconPathMap in interface SecurityActionspublic Boolean getBlockRightInheritance()
getBlockRightInheritance in interface SecurityActionspublic void setBlockRightInheritance(Boolean blockRightInheritance)
setBlockRightInheritance in interface SecurityActionspublic String blockRightInheritance() throws ClientException
ClientExceptionpublic Boolean displayInheritedPermissions() throws ClientException
displayInheritedPermissions in interface SecurityActionsClientExceptionpublic boolean getDisplayInheritedPermissions()
throws ClientException
SecurityActionsgetDisplayInheritedPermissions in interface SecurityActionsClientExceptionpublic List<String> getCurrentDocumentUsers() throws ClientException
getCurrentDocumentUsers in interface SecurityActionsClientExceptionpublic List<String> getParentDocumentsUsers() throws ClientException
getParentDocumentsUsers in interface SecurityActionsClientExceptionpublic String getSelectedEntry()
SecurityActionsgetSelectedEntry in interface SecurityActionspublic void setSelectedEntry(String selectedEntry)
SecurityActionssetSelectedEntry in interface SecurityActionspublic List<String> getSelectedEntries()
SecurityActionsgetSelectedEntries in interface SecurityActionspublic void setSelectedEntries(List<String> selectedEntries)
SecurityActionssetSelectedEntries in interface SecurityActionsCopyright © 2014 Nuxeo SA. All rights reserved.