org.repoweb.action
Class FindArtifact
java.lang.Object
org.apache.struts.action.Action
org.repoweb.action.FindArtifact
- Direct Known Subclasses:
- DonwloadArtifact
- public class FindArtifact
- extends org.apache.struts.action.Action
Find by id (or attached to a group) artifacts defined in the repository.
IN
-
QuickFind.SEARCH_VALUE
(request/optional): the pattern to search for.
-
FindArtifact.SEARCH_BY_GROUP_KEY
(request/optional): the group Id.
OUT (only one of these)
-
FindArtifact.RESULT
(request): result of the search.
(if the action parameter is different to 'byGroupAndTypeAndFilename')
-
FindArtifact.RESULT_ARTIFACT
(request): artifact found by search
(if the action parameter is set to 'byGroupAndTypeAndFilename').
-
FindArtifact.RESULT_POM
(request): pom bean attached to the
artifact (if any)
Fields inherited from class org.apache.struts.action.Action |
ACTION_SERVLET_KEY, APPLICATION_KEY, DATA_SOURCE_KEY, defaultLocale, ERROR_KEY, EXCEPTION_KEY, FORM_BEANS_KEY, FORWARDS_KEY, LOCALE_KEY, MAPPING_KEY, MAPPINGS_KEY, MESSAGE_KEY, MESSAGES_KEY, MULTIPART_KEY, PLUG_INS_KEY, REQUEST_PROCESSOR_KEY, servlet, SERVLET_KEY, TRANSACTION_TOKEN_KEY |
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)
|
protected java.lang.String |
findOneArtifact(org.apache.struts.action.DynaActionForm form,
Repository repo,
java.lang.String forward,
javax.servlet.http.HttpServletRequest request)
|
Methods inherited from class org.apache.struts.action.Action |
execute, generateToken, getDataSource, getDataSource, getLocale, getResources, getResources, getResources, getServlet, isCancelled, isTokenValid, isTokenValid, perform, perform, resetToken, saveErrors, saveMessages, saveToken, setLocale, setServlet, toHex |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RESULT
public static final java.lang.String RESULT
- See Also:
- Constant Field Values
RESULT_ARTIFACT
public static final java.lang.String RESULT_ARTIFACT
- See Also:
- Constant Field Values
RESULT_POM
public static final java.lang.String RESULT_POM
- 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
LOG
protected static final org.apache.commons.logging.Log LOG
FindArtifact
public FindArtifact()
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 UnknownGroupIdException,
java.io.IOException
- Throws:
UnknownGroupIdException
java.io.IOException
findOneArtifact
protected java.lang.String findOneArtifact(org.apache.struts.action.DynaActionForm form,
Repository repo,
java.lang.String forward,
javax.servlet.http.HttpServletRequest request)
Copyright © 2003-2005 Repoweb. All Rights Reserved.