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