|
Nuxeo ECM Projects 5.4.3-SNAPSHOT | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.nuxeo.ecm.webapp.base.InputController
org.nuxeo.ecm.webapp.security.SecurityActionsBean
@Name(value="securityActions") @Scope(value=CONVERSATION) public class SecurityActionsBean
Provides security related methods.
| Constructor Summary | |
|---|---|
SecurityActionsBean()
|
|
| Method Summary | |
|---|---|
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()
|
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()
|
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. |
| Methods inherited from class org.nuxeo.ecm.webapp.base.InputController |
|---|
computeOutcome, getAdministrator, logDocumentWithName, logDocumentWithTitle, removeDocumentFromList |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SecurityActionsBean()
| Method Detail |
|---|
@Observer(value="userAllDocumentTypesSelectionChanged",
create=false)
@BypassInterceptors
public void resetSecurityData()
SecurityActions
resetSecurityData in interface SecurityActions
public void rebuildSecurityData()
throws ClientException
SecurityActions
rebuildSecurityData in interface SecurityActionsClientException
public UserPermissionsTableModel getDataTableModel()
throws ClientException
getDataTableModel in interface SecurityActionsClientException
public SecurityData getSecurityData()
throws ClientException
getSecurityData in interface SecurityActionsClientException
public String updateSecurityOnDocument()
throws ClientException
SecurityActions
updateSecurityOnDocument in interface SecurityActionsClientException
public String addPermission(String principalName,
String permissionName,
boolean grant)
throws ClientException
addPermission in interface SecurityActionsClientException
public String addPermission()
throws ClientException
SecurityActionsupdateSecurityOnDocument()>.
addPermission in interface SecurityActionsClientException
public String addPermissions()
throws ClientException
SecurityActionsupdateSecurityOnDocument()>.
addPermissions in interface SecurityActionsClientException
public String addPermissionAndUpdate()
throws ClientException
SecurityActionsupdateSecurityOnDocument()>.
addPermissionAndUpdate in interface SecurityActionsClientException
public String addPermissionsAndUpdate()
throws ClientException
SecurityActionsupdateSecurityOnDocument()>.
addPermissionsAndUpdate in interface SecurityActionsClientException
public String saveSecurityUpdates()
throws ClientException
saveSecurityUpdates in interface SecurityActionsClientExceptionpublic String removePermission()
SecurityActionsupdateSecurityOnDocument()>.
removePermission in interface SecurityActions
public String removePermissionAndUpdate()
throws ClientException
SecurityActionsupdateSecurityOnDocument()>.
removePermissionAndUpdate in interface SecurityActionsClientException
public String removePermissions()
throws ClientException
removePermissions in interface SecurityActionsClientException
public String removePermissionsAndUpdate()
throws ClientException
removePermissionsAndUpdate in interface SecurityActionsClientException
public boolean getCanAddSecurityRules()
throws ClientException
SecurityActions
getCanAddSecurityRules in interface SecurityActionsClientException
public boolean getCanRemoveSecurityRules()
throws ClientException
SecurityActions
getCanRemoveSecurityRules in interface SecurityActionsClientException
public List<UserVisiblePermission> getVisibleUserPermissions(String documentType)
throws ClientException
ClientException
public List<SelectItem> getSettablePermissions()
throws ClientException
getSettablePermissions in interface SecurityActionsClientExceptionpublic Map<String,String> getIconAltMap()
SecurityActions
getIconAltMap in interface SecurityActionspublic Map<String,String> getIconPathMap()
SecurityActions
getIconPathMap in interface SecurityActionspublic Boolean getBlockRightInheritance()
getBlockRightInheritance in interface SecurityActions
public void setBlockRightInheritance(Boolean blockRightInheritance)
throws ClientException
setBlockRightInheritance in interface SecurityActionsClientException
public Boolean displayInheritedPermissions()
throws ClientException
displayInheritedPermissions in interface SecurityActionsClientException
public boolean getDisplayInheritedPermissions()
throws ClientException
SecurityActions
getDisplayInheritedPermissions in interface SecurityActionsClientException
public List<String> getCurrentDocumentUsers()
throws ClientException
getCurrentDocumentUsers in interface SecurityActionsClientException
public List<String> getParentDocumentsUsers()
throws ClientException
getParentDocumentsUsers in interface SecurityActionsClientExceptionpublic String getSelectedEntry()
SecurityActions
getSelectedEntry in interface SecurityActionspublic void setSelectedEntry(String selectedEntry)
SecurityActions
setSelectedEntry in interface SecurityActionspublic List<String> getSelectedEntries()
SecurityActions
getSelectedEntries in interface SecurityActionspublic void setSelectedEntries(List<String> selectedEntries)
SecurityActions
setSelectedEntries in interface SecurityActions
|
Nuxeo ECM Projects 5.4.3-SNAPSHOT | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||