|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.struts.action.Action org.apache.struts.actions.DispatchAction org.kuali.rice.kns.web.struts.action.KualiAction org.kuali.rice.kns.web.struts.action.KualiDocumentActionBase org.kuali.rice.kns.web.struts.action.KualiMaintenanceDocumentAction
public class KualiMaintenanceDocumentAction
This class handles actions for maintenance documents. These include creating new edit, and copying of maintenance records.
Field Summary | |
---|---|
protected EncryptionService |
encryptionService
|
protected static org.apache.log4j.Logger |
LOG
|
protected LookupResultsService |
lookupResultsService
|
protected LookupService |
lookupService
|
protected MaintenanceDocumentDictionaryService |
maintenanceDocumentDictionaryService
|
Fields inherited from class org.kuali.rice.kns.web.struts.action.KualiDocumentActionBase |
---|
DOCUMENT_LOAD_COMMANDS |
Fields inherited from class org.kuali.rice.kns.web.struts.action.KualiAction |
---|
FORM_ACTION, FORWARD_NEXT, FORWARD_TEXT_AREA_UPDATE, METHOD_TO_CALL, POST_TEXT_AREA_TO_PARENT, TEXT_AREA_FIELD_ANCHOR, TEXT_AREA_FIELD_LABEL, TEXT_AREA_FIELD_NAME, TEXT_AREA_MAX_LENGTH, TEXT_AREA_READ_ONLY |
Fields inherited from class org.apache.struts.actions.DispatchAction |
---|
clazz, log, messages, methods, types |
Fields inherited from class org.apache.struts.action.Action |
---|
defaultLocale, servlet |
Constructor Summary | |
---|---|
KualiMaintenanceDocumentAction()
|
Method Summary | |
---|---|
org.apache.struts.action.ActionForward |
addLine(org.apache.struts.action.ActionMapping mapping,
org.apache.struts.action.ActionForm form,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Adds a line to a collection being maintained in a many section. |
protected Map |
buildKeyMapFromRequest(Maintainable maintainable,
javax.servlet.http.HttpServletRequest request)
Gets keys for the maintainable business object from the persistence metadata explorer. |
protected void |
clearPrimaryKeyFields(MaintenanceDocument document)
This method clears the value of the primary key fields on a Business Object. |
protected void |
clearUnauthorizedNewFields(MaintenanceDocument document)
This method is used as part of the Copy functionality, to clear any field values that the user making the copy does not have permissions to modify. |
org.apache.struts.action.ActionForward |
copy(org.apache.struts.action.ActionMapping mapping,
org.apache.struts.action.ActionForm form,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Calls setupMaintenance for copy action. |
protected void |
copyParametersToBO(Map<String,String> parameters,
PersistableBusinessObject newBO)
|
org.apache.struts.action.ActionForward |
delete(org.apache.struts.action.ActionMapping mapping,
org.apache.struts.action.ActionForm form,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
KUALRice 3070 Calls setupMaintenance for delete action. |
org.apache.struts.action.ActionForward |
deleteLine(org.apache.struts.action.ActionMapping mapping,
org.apache.struts.action.ActionForm form,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Deletes a collection line that is pending by this document. |
org.apache.struts.action.ActionForward |
docHandler(org.apache.struts.action.ActionMapping mapping,
org.apache.struts.action.ActionForm form,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Handles creating and loading of documents. |
protected void |
doProcessingAfterPost(KualiForm form,
javax.servlet.http.HttpServletRequest request)
This method does all special processing on a document that should happen on each HTTP post (ie, save, route, approve, etc). |
protected void |
doProcessingAfterPost(KualiForm form,
Map<String,String[]> parameters)
|
org.apache.struts.action.ActionForward |
downloadAttachment(org.apache.struts.action.ActionMapping mapping,
org.apache.struts.action.ActionForm form,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Downloads the attachment to the user's browser |
org.apache.struts.action.ActionForward |
edit(org.apache.struts.action.ActionMapping mapping,
org.apache.struts.action.ActionForm form,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Calls setupMaintenance for edit action. |
org.apache.struts.action.ActionForward |
execute(org.apache.struts.action.ActionMapping mapping,
org.apache.struts.action.ActionForm form,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Entry point to all actions. |
LookupResultsService |
getLookupResultsService()
|
LookupService |
getLookupService()
|
protected Map<String,String> |
getRequestParameters(List keyFieldNames,
Maintainable maintainable,
javax.servlet.http.HttpServletRequest request)
|
protected int |
getSubCollectionIndex(Object object,
String documentTypeName)
|
org.apache.struts.action.ActionForward |
newWithExisting(org.apache.struts.action.ActionMapping mapping,
org.apache.struts.action.ActionForm form,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Calls setupMaintenance for new object that have existing objects attributes. |
protected void |
populateAuthorizationFields(KualiDocumentFormBase formBase)
|
protected void |
populateBOWithCopyKeyValues(javax.servlet.http.HttpServletRequest request,
PersistableBusinessObject oldBusinessObject,
Maintainable oldMaintainableObject)
|
org.apache.struts.action.ActionForward |
refresh(org.apache.struts.action.ActionMapping mapping,
org.apache.struts.action.ActionForm form,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Called on return from a lookup. |
org.apache.struts.action.ActionForward |
replaceAttachment(org.apache.struts.action.ActionMapping mapping,
org.apache.struts.action.ActionForm form,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
This method used to replace the attachment |
org.apache.struts.action.ActionForward |
route(org.apache.struts.action.ActionMapping mapping,
org.apache.struts.action.ActionForm form,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
route the document using the document service |
protected org.apache.struts.action.ActionForward |
setupMaintenance(org.apache.struts.action.ActionMapping mapping,
org.apache.struts.action.ActionForm form,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
String maintenanceAction)
Gets a new document for a maintenance record. |
org.apache.struts.action.ActionForward |
start(org.apache.struts.action.ActionMapping mapping,
org.apache.struts.action.ActionForm form,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Calls setup Maintenance for new action. |
org.apache.struts.action.ActionForward |
toggleInactiveRecordDisplay(org.apache.struts.action.ActionMapping mapping,
org.apache.struts.action.ActionForm form,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Turns on (or off) the inactive record display for a maintenance collection. |
Methods inherited from class org.apache.struts.actions.DispatchAction |
---|
cancelled, getMethod, getMethodName, getParameter, unspecified |
Methods inherited from class org.apache.struts.action.Action |
---|
addErrors, addMessages, execute, generateToken, getDataSource, getDataSource, getErrors, getLocale, getMessages, getResources, getResources, getServlet, isCancelled, isTokenValid, isTokenValid, resetToken, saveErrors, saveErrors, saveErrors, saveMessages, saveMessages, saveToken, setLocale, setServlet |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static final org.apache.log4j.Logger LOG
protected MaintenanceDocumentDictionaryService maintenanceDocumentDictionaryService
protected EncryptionService encryptionService
protected LookupService lookupService
protected LookupResultsService lookupResultsService
Constructor Detail |
---|
public KualiMaintenanceDocumentAction()
Method Detail |
---|
public org.apache.struts.action.ActionForward execute(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws Exception
KualiDocumentActionBase
execute
in class KualiDocumentActionBase
Exception
Action.execute(org.apache.struts.action.ActionMapping, org.apache.struts.action.ActionForm,
javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)
public org.apache.struts.action.ActionForward start(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws Exception
Exception
public org.apache.struts.action.ActionForward copy(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws Exception
Exception
public org.apache.struts.action.ActionForward edit(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws Exception
Exception
public org.apache.struts.action.ActionForward delete(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws Exception
delete
in class KualiDocumentActionBase
Exception
public org.apache.struts.action.ActionForward newWithExisting(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws Exception
Exception
protected org.apache.struts.action.ActionForward setupMaintenance(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, String maintenanceAction) throws Exception
Exception
protected void populateBOWithCopyKeyValues(javax.servlet.http.HttpServletRequest request, PersistableBusinessObject oldBusinessObject, Maintainable oldMaintainableObject) throws Exception
Exception
protected void copyParametersToBO(Map<String,String> parameters, PersistableBusinessObject newBO) throws Exception
Exception
public org.apache.struts.action.ActionForward downloadAttachment(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
-
Exception
public org.apache.struts.action.ActionForward replaceAttachment(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
-
Exception
public org.apache.struts.action.ActionForward route(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws Exception
route
in class KualiDocumentActionBase
mapping
- form
- request
- response
-
Exception
public org.apache.struts.action.ActionForward docHandler(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws Exception
docHandler
in class KualiDocumentActionBase
Exception
public org.apache.struts.action.ActionForward refresh(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws Exception
refresh
in class KualiDocumentActionBase
Exception
KualiAction.refresh(org.apache.struts.action.ActionMapping,
org.apache.struts.action.ActionForm, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)
protected Map buildKeyMapFromRequest(Maintainable maintainable, javax.servlet.http.HttpServletRequest request)
protected Map<String,String> getRequestParameters(List keyFieldNames, Maintainable maintainable, javax.servlet.http.HttpServletRequest request)
public org.apache.struts.action.ActionForward addLine(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws Exception
Exception
protected int getSubCollectionIndex(Object object, String documentTypeName)
public org.apache.struts.action.ActionForward deleteLine(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws Exception
Exception
public org.apache.struts.action.ActionForward toggleInactiveRecordDisplay(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws Exception
Exception
protected void clearPrimaryKeyFields(MaintenanceDocument document)
document
- - document to clear the pk fields onprotected void clearUnauthorizedNewFields(MaintenanceDocument document)
document
- - document to be adjustedprotected void doProcessingAfterPost(KualiForm form, javax.servlet.http.HttpServletRequest request)
doProcessingAfterPost
in class KualiDocumentActionBase
form
- protected void doProcessingAfterPost(KualiForm form, Map<String,String[]> parameters)
protected void populateAuthorizationFields(KualiDocumentFormBase formBase)
populateAuthorizationFields
in class KualiDocumentActionBase
public LookupService getLookupService()
public LookupResultsService getLookupResultsService()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |