public abstract class PermissionsActionHelperBase extends Object implements Serializable
| Modifier | Constructor and Description |
|---|---|
protected |
PermissionsActionHelperBase(KraTransactionalDocumentActionBase parentAction) |
| Modifier and Type | Method and Description |
|---|---|
org.apache.struts.action.ActionForward |
addUser(org.apache.struts.action.ActionMapping mapping,
org.apache.struts.action.ActionForm form,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Add a new user with a role to the document.
|
protected abstract void |
addUserToRoleInDatabase(org.kuali.rice.krad.document.Document document,
String userId,
String roleName)
Assign a user to the given role for a specific document.
|
protected boolean |
applyRules(org.kuali.rice.krad.rules.rule.event.KualiDocumentEvent event) |
org.apache.struts.action.ActionForward |
confirmDeletePermissionsUser(org.apache.struts.action.ActionMapping mapping,
org.apache.struts.action.ActionForm form,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
If the the end-user confirms that a user must be deleted from the list, then do so.
|
org.apache.struts.action.ActionForward |
deleteUser(org.apache.struts.action.ActionMapping mapping,
org.apache.struts.action.ActionForm form,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Delete a user and his/her roles from the document.
|
org.apache.struts.action.ActionForward |
editRoles(org.apache.struts.action.ActionMapping mapping,
org.apache.struts.action.ActionForm form,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Edit the roles for a user.
|
org.apache.struts.action.ActionForward |
getRoleRights(org.apache.struts.action.ActionMapping mapping,
org.apache.struts.action.ActionForm form,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Get the Role Rights web page.
|
protected abstract void |
removeUserFromRoleInDatabase(org.kuali.rice.krad.document.Document document,
String userId,
String roleName)
Remove a user from a role for a specific document.
|
void |
save(PermissionsForm form)
Save the changes to the database.
|
org.apache.struts.action.ActionForward |
setEditRoles(org.apache.struts.action.ActionMapping mapping,
org.apache.struts.action.ActionForm form,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Set the roles for a user for a given document.
|
protected PermissionsActionHelperBase(KraTransactionalDocumentActionBase parentAction)
protected abstract void addUserToRoleInDatabase(org.kuali.rice.krad.document.Document document,
String userId,
String roleName)
document - the documentuserName - the user's unique userNameroleName - the unique name of the roleprotected abstract void removeUserFromRoleInDatabase(org.kuali.rice.krad.document.Document document,
String userId,
String roleName)
document - the documentuserName - the user's unique userNameroleName - the unique name of the rolepublic void save(PermissionsForm form) throws Exception
form - the formExceptionpublic org.apache.struts.action.ActionForward getRoleRights(org.apache.struts.action.ActionMapping mapping,
org.apache.struts.action.ActionForm form,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws Exception
mapping - form - request - response - Exceptionpublic final org.apache.struts.action.ActionForward addUser(org.apache.struts.action.ActionMapping mapping,
org.apache.struts.action.ActionForm form,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws Exception
mapping - form - request - response - Exceptionpublic final org.apache.struts.action.ActionForward deleteUser(org.apache.struts.action.ActionMapping mapping,
org.apache.struts.action.ActionForm form,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws Exception
mapping - form - request - response - Exceptionpublic org.apache.struts.action.ActionForward confirmDeletePermissionsUser(org.apache.struts.action.ActionMapping mapping,
org.apache.struts.action.ActionForm form,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws Exception
mapping - the mapping associated with this action.form - the form.request - the HTTP requestresponse - the HTTP responseExceptionpublic org.apache.struts.action.ActionForward editRoles(org.apache.struts.action.ActionMapping mapping,
org.apache.struts.action.ActionForm form,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws Exception
mapping - form - request - response - Exceptionpublic org.apache.struts.action.ActionForward setEditRoles(org.apache.struts.action.ActionMapping mapping,
org.apache.struts.action.ActionForm form,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws Exception
mapping - the mapping associated with this action.form - the form.request - the HTTP requestresponse - the HTTP responseExceptionprotected final boolean applyRules(org.kuali.rice.krad.rules.rule.event.KualiDocumentEvent event)
Copyright © 2013 The Kuali Foundation. All Rights Reserved.