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 String
getDisplayName()
ArtifactsDocLinksDocument
getDynamic(String token, org.kohsuke.stapler.StaplerRequest req)
ReturnsArtifactsDocLinksDocument
specified by the URL.String
getIconFileName()
An icon file used in the side menu of a project.ArtifactsDocLinksAction
getLastBuildAction(org.kohsuke.stapler.StaplerRequest req)
Returns theArtifactsDocLinksAction
in 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 theArtifactsDocLinksAction
in 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:
getIconFileName
in interfaceAction
- Overrides:
getIconFileName
in 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)
ReturnsArtifactsDocLinksDocument
specified by the URL. Delegates to the lastArtifactsDocLinksAction
.- Parameters:
token
-req
-- Returns:
-
-