Class AbstractWrapper
- java.lang.Object
-
- com.tikal.jenkins.plugins.multijob.views.AbstractWrapper
-
- All Implemented Interfaces:
ExtensionPoint
,Describable<TopLevelItem>
,Item
,ModelObject
,PersistenceRoot
,Saveable
,TopLevelItem
,SearchableModelObject
,SearchItem
,AccessControlled
,OnMaster
- Direct Known Subclasses:
PhaseWrapper
,ProjectWrapper
public abstract class AbstractWrapper extends Object implements TopLevelItem
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
-
Constructor Summary
Constructors Constructor Description AbstractWrapper(Job project, int nestLevel)
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description void
checkPermission(Permission permission)
void
delete()
String
getAbsoluteUrl()
Deprecated.ACL
getACL()
HealthReport
getBuildHealth()
List<HealthReport>
getBuildHealthReports()
TopLevelItemDescriptor
getDescriptor()
int
getNestLevel()
Hudson
getParent()
File
getRootDir()
Search
getSearch()
SearchIndex
getSearchIndex()
String
getSearchName()
String
getSearchUrl()
String
getShortUrl()
String
getUrl()
boolean
hasPermission(Permission permission)
boolean
isBuildable()
void
onCopiedFrom(Item src)
void
onCreatedFromScratch()
void
onLoad(ItemGroup<? extends Item> parent, String name)
void
save()
-
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
-
Methods inherited from interface hudson.model.Item
getAllJobs, getDisplayName, getFullDisplayName, getFullName, getName, getRelativeNameFrom, getRelativeNameFrom
-
-
-
-
Field Detail
-
nestLevel
protected final int nestLevel
-
project
protected final Job project
-
-
Constructor Detail
-
AbstractWrapper
public AbstractWrapper(Job project, int nestLevel)
-
-
Method Detail
-
getACL
@Nonnull public ACL getACL()
- Specified by:
getACL
in interfaceAccessControlled
-
getNestLevel
public int getNestLevel()
-
onLoad
public void onLoad(ItemGroup<? extends Item> parent, String name) throws IOException
- Specified by:
onLoad
in interfaceItem
- Throws:
IOException
-
onCopiedFrom
public void onCopiedFrom(Item src)
- Specified by:
onCopiedFrom
in interfaceItem
-
onCreatedFromScratch
public void onCreatedFromScratch()
- Specified by:
onCreatedFromScratch
in interfaceItem
-
save
public void save() throws IOException
- Specified by:
save
in interfaceItem
- Specified by:
save
in interfaceSaveable
- Throws:
IOException
-
delete
public void delete() throws IOException, InterruptedException
- Specified by:
delete
in interfaceItem
- Throws:
IOException
InterruptedException
-
checkPermission
public void checkPermission(Permission permission) throws AccessDeniedException
- Specified by:
checkPermission
in interfaceAccessControlled
- Throws:
AccessDeniedException
-
getShortUrl
public String getShortUrl()
- Specified by:
getShortUrl
in interfaceItem
-
getAbsoluteUrl
@Deprecated public String getAbsoluteUrl()
Deprecated.- Specified by:
getAbsoluteUrl
in interfaceItem
-
getRootDir
public File getRootDir()
- Specified by:
getRootDir
in interfacePersistenceRoot
-
getSearch
public Search getSearch()
- Specified by:
getSearch
in interfaceSearchableModelObject
-
getSearchName
public String getSearchName()
- Specified by:
getSearchName
in interfaceSearchItem
-
getSearchUrl
public String getSearchUrl()
- Specified by:
getSearchUrl
in interfaceSearchItem
-
getSearchIndex
public SearchIndex getSearchIndex()
- Specified by:
getSearchIndex
in interfaceSearchItem
-
hasPermission
public boolean hasPermission(Permission permission)
- Specified by:
hasPermission
in interfaceAccessControlled
-
getDescriptor
public TopLevelItemDescriptor getDescriptor()
- Specified by:
getDescriptor
in interfaceDescribable<TopLevelItem>
- Specified by:
getDescriptor
in interfaceTopLevelItem
-
getBuildHealth
public HealthReport getBuildHealth()
-
getBuildHealthReports
public List<HealthReport> getBuildHealthReports()
-
isBuildable
public boolean isBuildable()
-
-