Class ArtifactsDocLinksProjectAction
- java.lang.Object
-
- hudson.plugins.doclinks.artifacts.ArtifactsDocsLinksActionBase
-
- hudson.plugins.doclinks.artifacts.ArtifactsDocLinksProjectAction
-
- All Implemented Interfaces:
Action,ModelObject
public class ArtifactsDocLinksProjectAction extends ArtifactsDocsLinksActionBase
Action to show a link to artifact documents in side menu of projects.
-
-
Field Summary
-
Fields inherited from class hudson.plugins.doclinks.artifacts.ArtifactsDocsLinksActionBase
URLNAME
-
-
Constructor Summary
Constructors Constructor Description ArtifactsDocLinksProjectAction()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetDisplayName()ArtifactsDocLinksDocumentgetDynamic(String token, org.kohsuke.stapler.StaplerRequest req)ReturnsArtifactsDocLinksDocumentspecified by the URL.StringgetIconFileName()An icon file used in the side menu of a project.ArtifactsDocLinksActiongetLastBuildAction(org.kohsuke.stapler.StaplerRequest req)Returns theArtifactsDocLinksActionin the last build that have artifact documents.-
Methods inherited from class hudson.plugins.doclinks.artifacts.ArtifactsDocsLinksActionBase
getBuild, getLastDocumentedBuild, getOwner, getProject, getUrlName
-
-
-
-
Method Detail
-
getLastBuildAction
public ArtifactsDocLinksAction getLastBuildAction(org.kohsuke.stapler.StaplerRequest req)
Returns theArtifactsDocLinksActionin the last build that have artifact documents. Resolves the owner byStaplerRequest.findAncestorObject(Class).- Parameters:
req-- Returns:
- the last
ArtifactsDocLinksAction. null if no proper build exists.
-
getIconFileName
public String getIconFileName()
An icon file used in the side menu of a project.- Specified by:
getIconFileNamein interfaceAction- Overrides:
getIconFileNamein classArtifactsDocsLinksActionBase- Returns:
- an icon path. null if no artifact documents are available.
- See Also:
ArtifactsDocsLinksActionBase.getIconFileName()
-
getDisplayName
public String getDisplayName()
- Returns:
- See Also:
Action.getDisplayName()
-
getDynamic
public ArtifactsDocLinksDocument getDynamic(String token, org.kohsuke.stapler.StaplerRequest req)
ReturnsArtifactsDocLinksDocumentspecified by the URL. Delegates to the lastArtifactsDocLinksAction.- Parameters:
token-req-- Returns:
-
-