Class ProjectWrapper
- java.lang.Object
-
- com.tikal.jenkins.plugins.multijob.views.AbstractWrapper
-
- com.tikal.jenkins.plugins.multijob.views.ProjectWrapper
-
- All Implemented Interfaces:
ExtensionPoint
,Describable<TopLevelItem>
,Item
,ModelObject
,PersistenceRoot
,Saveable
,TopLevelItem
,SearchableModelObject
,SearchItem
,AccessControlled
,OnMaster
public class ProjectWrapper extends AbstractWrapper
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
-
Field Summary
-
Fields inherited from class com.tikal.jenkins.plugins.multijob.views.AbstractWrapper
nestLevel, project
-
-
Constructor Summary
Constructors Constructor Description ProjectWrapper(MultiJobProject multijob, Job project, BuildState buildState, int nestLevel, Run build)
-
Method Summary
-
Methods inherited from class com.tikal.jenkins.plugins.multijob.views.AbstractWrapper
getAbsoluteUrl, getACL, getNestLevel
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface hudson.security.AccessControlled
checkAnyPermission, hasAnyPermission, hasPermission, hasPermission2
-
-
-
-
Constructor Detail
-
ProjectWrapper
public ProjectWrapper(MultiJobProject multijob, Job project, BuildState buildState, int nestLevel, Run build)
-
-
Method Detail
-
getAllJobs
public Collection<? extends Job> getAllJobs()
-
getName
public String getName()
-
getFullName
public String getFullName()
-
getDisplayName
public String getDisplayName()
-
getFullDisplayName
public String getFullDisplayName()
-
getUrl
public String getUrl()
- Specified by:
getUrl
in interfaceItem
- Overrides:
getUrl
in classAbstractWrapper
-
getBuildNumber
public int getBuildNumber()
-
getBuildDuration
public String getBuildDuration()
-
getShortUrl
public String getShortUrl()
- Specified by:
getShortUrl
in interfaceItem
- Overrides:
getShortUrl
in classAbstractWrapper
-
onLoad
public void onLoad(ItemGroup<? extends Item> parent, String name) throws IOException
- Specified by:
onLoad
in interfaceItem
- Overrides:
onLoad
in classAbstractWrapper
- Throws:
IOException
-
onCopiedFrom
public void onCopiedFrom(Item src)
- Specified by:
onCopiedFrom
in interfaceItem
- Overrides:
onCopiedFrom
in classAbstractWrapper
-
onCreatedFromScratch
public void onCreatedFromScratch()
- Specified by:
onCreatedFromScratch
in interfaceItem
- Overrides:
onCreatedFromScratch
in classAbstractWrapper
-
save
public void save() throws IOException
- Specified by:
save
in interfaceItem
- Specified by:
save
in interfaceSaveable
- Overrides:
save
in classAbstractWrapper
- Throws:
IOException
-
delete
public void delete() throws IOException, InterruptedException
- Specified by:
delete
in interfaceItem
- Overrides:
delete
in classAbstractWrapper
- Throws:
IOException
InterruptedException
-
getRootDir
public File getRootDir()
- Specified by:
getRootDir
in interfacePersistenceRoot
- Overrides:
getRootDir
in classAbstractWrapper
-
getSearch
public Search getSearch()
- Specified by:
getSearch
in interfaceSearchableModelObject
- Overrides:
getSearch
in classAbstractWrapper
-
getSearchName
public String getSearchName()
- Specified by:
getSearchName
in interfaceSearchItem
- Overrides:
getSearchName
in classAbstractWrapper
-
getSearchUrl
public String getSearchUrl()
- Specified by:
getSearchUrl
in interfaceSearchItem
- Overrides:
getSearchUrl
in classAbstractWrapper
-
getSearchIndex
public SearchIndex getSearchIndex()
- Specified by:
getSearchIndex
in interfaceSearchItem
- Overrides:
getSearchIndex
in classAbstractWrapper
-
checkPermission
public void checkPermission(Permission permission) throws AccessDeniedException
- Specified by:
checkPermission
in interfaceAccessControlled
- Overrides:
checkPermission
in classAbstractWrapper
- Throws:
AccessDeniedException
-
hasPermission
public boolean hasPermission(Permission permission)
- Specified by:
hasPermission
in interfaceAccessControlled
- Overrides:
hasPermission
in classAbstractWrapper
-
getParent
public Hudson getParent()
- Specified by:
getParent
in interfaceItem
- Overrides:
getParent
in classAbstractWrapper
-
getDescriptor
public TopLevelItemDescriptor getDescriptor()
- Specified by:
getDescriptor
in interfaceDescribable<TopLevelItem>
- Specified by:
getDescriptor
in interfaceTopLevelItem
- Overrides:
getDescriptor
in classAbstractWrapper
-
getLastFailedBuild
public Run getLastFailedBuild()
-
getLastSuccessfulBuild
public Run getLastSuccessfulBuild()
-
getLastBuild
public Run getLastBuild()
-
getProject
public Job getProject()
-
getIconColor
public BallColor getIconColor()
-
getCss
public String getCss()
-
getBuildHealth
public HealthReport getBuildHealth()
- Overrides:
getBuildHealth
in classAbstractWrapper
-
getBuildHealthReports
public List<HealthReport> getBuildHealthReports()
- Overrides:
getBuildHealthReports
in classAbstractWrapper
-
isBuildable
public boolean isBuildable()
- Overrides:
isBuildable
in classAbstractWrapper
-
-