Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.repoweb.action
Class FindArtifact  view FindArtifact download FindArtifact.java

java.lang.Object
  extended byorg.apache.struts.action.Action
      extended byorg.repoweb.action.FindArtifact

public class FindArtifact
extends org.apache.struts.action.Action

Find by id (or attached to a group) artifacts defined in the repository.

IN

OUT


Field Summary
static java.lang.String RESULT
           
static java.lang.String RESULT_ARTIFACT
           
static java.lang.String RESULT_GROUP
           
static java.lang.String SEARCH_BY_FILE_KEY
           
static java.lang.String SEARCH_BY_GROUP_KEY
           
static java.lang.String SEARCH_BY_TYPE_KEY
           
 
Fields inherited from class org.apache.struts.action.Action
defaultLocale, servlet
 
Constructor Summary
FindArtifact()
           
 
Method Summary
 org.apache.struts.action.ActionForward execute(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm objForm, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse res)
          Process the specified HTTP request, and create the corresponding HTTP response (or forward to another web component that will create it), with provision for handling exceptions thrown by the business logic.
private  void findArtifactByClass(org.apache.struts.action.DynaActionForm form, org.repoweb.model.Repository repo, javax.servlet.http.HttpServletRequest request)
           
private  void findArtifactByType(org.apache.struts.action.DynaActionForm form, org.repoweb.model.Repository repo, javax.servlet.http.HttpServletRequest request)
           
private  void findArtifactLike(org.apache.struts.action.DynaActionForm form, org.repoweb.model.Repository repo, javax.servlet.http.HttpServletRequest request)
           
private  java.lang.String findOneArtifact(org.apache.struts.action.DynaActionForm form, org.repoweb.model.Repository repo, java.lang.String forward, javax.servlet.http.HttpServletRequest request)
           
 
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

RESULT

public static final java.lang.String RESULT
See Also:
Constant Field Values

RESULT_GROUP

public static final java.lang.String RESULT_GROUP
See Also:
Constant Field Values

RESULT_ARTIFACT

public static final java.lang.String RESULT_ARTIFACT
See Also:
Constant Field Values

SEARCH_BY_GROUP_KEY

public static final java.lang.String SEARCH_BY_GROUP_KEY
See Also:
Constant Field Values

SEARCH_BY_TYPE_KEY

public static final java.lang.String SEARCH_BY_TYPE_KEY
See Also:
Constant Field Values

SEARCH_BY_FILE_KEY

public static final java.lang.String SEARCH_BY_FILE_KEY
See Also:
Constant Field Values
Constructor Detail

FindArtifact

public FindArtifact()
Method Detail

execute

public org.apache.struts.action.ActionForward execute(org.apache.struts.action.ActionMapping mapping,
                                                      org.apache.struts.action.ActionForm objForm,
                                                      javax.servlet.http.HttpServletRequest request,
                                                      javax.servlet.http.HttpServletResponse res)
                                               throws org.repoweb.model.UnknownGroupIdException
Description copied from class: org.apache.struts.action.Action

Process the specified HTTP request, and create the corresponding HTTP response (or forward to another web component that will create it), with provision for handling exceptions thrown by the business logic. Return an org.apache.struts.action.ActionForward instance describing where and how control should be forwarded, or null if the response has already been completed.


findArtifactLike

private void findArtifactLike(org.apache.struts.action.DynaActionForm form,
                              org.repoweb.model.Repository repo,
                              javax.servlet.http.HttpServletRequest request)

findArtifactByClass

private void findArtifactByClass(org.apache.struts.action.DynaActionForm form,
                                 org.repoweb.model.Repository repo,
                                 javax.servlet.http.HttpServletRequest request)

findArtifactByType

private void findArtifactByType(org.apache.struts.action.DynaActionForm form,
                                org.repoweb.model.Repository repo,
                                javax.servlet.http.HttpServletRequest request)
                         throws org.repoweb.model.UnknownGroupIdException

findOneArtifact

private java.lang.String findOneArtifact(org.apache.struts.action.DynaActionForm form,
                                         org.repoweb.model.Repository repo,
                                         java.lang.String forward,
                                         javax.servlet.http.HttpServletRequest request)
                                  throws org.repoweb.model.UnknownGroupIdException