|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.struts.action.Action
org.apache.struts.actions.BaseAction
org.apache.struts.actions.DispatchAction
org.kuali.rice.kns.web.struts.action.KualiAction
org.kuali.rice.kns.web.struts.action.KualiInquiryAction
public class KualiInquiryAction
This class handles actions for inquiries of business objects.
Field Summary | |
---|---|
private static org.apache.log4j.Logger |
LOG
|
private NoteService |
noteService
|
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, methods, types |
Fields inherited from class org.apache.struts.actions.BaseAction |
---|
messages |
Fields inherited from class org.apache.struts.action.Action |
---|
servlet |
Constructor Summary | |
---|---|
KualiInquiryAction()
|
Method Summary | |
---|---|
protected void |
checkAuthorization(org.apache.struts.action.ActionForm form,
String methodToCall)
Override this method to provide action-level access controls to the application. |
private void |
checkBO(BusinessObject bo)
throws an exception if BO fails the check. |
org.apache.struts.action.ActionForward |
continueWithInquiry(org.apache.struts.action.ActionMapping mapping,
org.apache.struts.action.ActionForm form,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
|
org.apache.struts.action.ActionForward |
downloadBOAttachment(org.apache.struts.action.ActionMapping mapping,
org.apache.struts.action.ActionForm form,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Downloads the selected attachment to the user's browser |
org.apache.struts.action.ActionForward |
downloadCustomBOAttachment(org.apache.struts.action.ActionMapping mapping,
org.apache.struts.action.ActionForm form,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
|
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. |
org.apache.struts.action.ActionForward |
export(org.apache.struts.action.ActionMapping mapping,
org.apache.struts.action.ActionForm form,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Handles exporting the BusinessObject for this Inquiry to XML if it has a custom XML exporter available. |
protected String |
extractCollectionName(javax.servlet.http.HttpServletRequest request,
String methodToCall)
Convert a Request into a Map |
protected String |
generateCollectionSubTabName(Field field)
Finds a container field's sub tab name |
private List<Section> |
getEmptySections(String title)
Returns a section list with one empty section and one row. |
protected NoteService |
getNoteService()
|
protected Map<String,String> |
getRoleQualification(org.apache.struts.action.ActionForm form,
String methodToCall)
override this method to add data from the form for role qualification in the authorization check |
org.apache.struts.action.ActionForward |
hideAllTabs(org.apache.struts.action.ActionMapping mapping,
org.apache.struts.action.ActionForm form,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Toggles all tabs to closed |
protected void |
populateSections(org.apache.struts.action.ActionMapping mapping,
javax.servlet.http.HttpServletRequest request,
InquiryForm inquiryForm,
BusinessObject bo)
|
protected void |
reopenInactiveRecords(InquiryForm inquiryForm,
String collectionName)
Attempts to reopen sub tabs which would have been closed for inactive records |
protected BusinessObject |
retrieveBOFromInquirable(InquiryForm inquiryForm)
|
org.apache.struts.action.ActionForward |
showAllTabs(org.apache.struts.action.ActionMapping mapping,
org.apache.struts.action.ActionForm form,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Toggles all tabs to open |
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)
Gets an inquirable impl from the impl service name parameter. |
protected void |
streamToResponse(byte[] fileContents,
String fileName,
String fileContentType,
javax.servlet.http.HttpServletResponse response)
Handy method to stream the byte array to response object |
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. |
org.apache.struts.action.ActionForward |
toggleTab(org.apache.struts.action.ActionMapping mapping,
org.apache.struts.action.ActionForm form,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Toggles the tab state in the ui |
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, getErrors, getLocale, getMessages, getResources, getResources, getServlet, isCancelled, isTokenValid, isTokenValid, resetToken, 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 |
---|
private static final org.apache.log4j.Logger LOG
private NoteService noteService
Constructor Detail |
---|
public KualiInquiryAction()
Method Detail |
---|
protected void checkAuthorization(org.apache.struts.action.ActionForm form, String methodToCall) throws AuthorizationException
KualiAction
checkAuthorization
in class KualiAction
AuthorizationException
protected Map<String,String> getRoleQualification(org.apache.struts.action.ActionForm form, String methodToCall)
KualiAction
getRoleQualification
in class KualiAction
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
KualiAction
execute
in class KualiAction
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 downloadCustomBOAttachment(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 downloadBOAttachment(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 continueWithInquiry(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 reopenInactiveRecords(InquiryForm inquiryForm, String collectionName)
inquiryForm
- the form to reopen records oncollectionName
- the name of the collection reopeningprotected String generateCollectionSubTabName(Field field)
field
- the collection sub tab name to
public org.apache.struts.action.ActionForward toggleTab(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws Exception
KualiAction
toggleTab
in class KualiAction
Exception
public org.apache.struts.action.ActionForward hideAllTabs(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws Exception
KualiAction
hideAllTabs
in class KualiAction
Exception
org.kuali.rice.krad.web.struts.action.KualiAction#hideAllTabs(org.apache.struts.action.ActionMapping, org.apache.struts.action.ActionForm, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)
public org.apache.struts.action.ActionForward showAllTabs(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws Exception
KualiAction
showAllTabs
in class KualiAction
Exception
org.kuali.rice.krad.web.struts.action.KualiAction#showAllTabs(org.apache.struts.action.ActionMapping, org.apache.struts.action.ActionForm, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)
public org.apache.struts.action.ActionForward export(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 String extractCollectionName(javax.servlet.http.HttpServletRequest request, String methodToCall)
protected BusinessObject retrieveBOFromInquirable(InquiryForm inquiryForm)
protected void populateSections(org.apache.struts.action.ActionMapping mapping, javax.servlet.http.HttpServletRequest request, InquiryForm inquiryForm, BusinessObject bo)
protected void streamToResponse(byte[] fileContents, String fileName, String fileContentType, javax.servlet.http.HttpServletResponse response) throws Exception
attachmentDataSource
- response
-
Exception
private List<Section> getEmptySections(String title)
private void checkBO(BusinessObject bo)
bo
- the BusinessObject to check.
UnsupportedOperationException
- if BO is null & no messages have been generated.protected NoteService getNoteService()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |