Class MockItemGroup<T extends Job<?,?>>
- java.lang.Object
 - 
- hudson.plugins.project_inheritance.util.MockItemGroup<T>
 
 
- 
- All Implemented Interfaces:
 ExtensionPoint,Describable<TopLevelItem>,Item,ItemGroup<T>,ModelObject,PersistenceRoot,Saveable,TopLevelItem,SearchableModelObject,SearchItem,AccessControlled,OnMaster
- Direct Known Subclasses:
 ProjectWizard
public class MockItemGroup<T extends Job<?,?>> extends Object implements ItemGroup<T>, TopLevelItem
This class is a pure mockery of anItemGroup, used to handle projects that are created only ephemerally and should not be visible to the Jenkins core.- Author:
 - Martin Schroeder
 
 
- 
- 
Nested Class Summary
- 
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson 
 - 
 
- 
Constructor Summary
Constructors Constructor Description MockItemGroup() 
- 
Method Summary
- 
Methods inherited from class java.lang.Object
clone, equals, 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.ItemGroup
allItems, allItems, allItems, getAllItems, getAllItems, getAllItems, getItems, getItemsStream, getItemsStream 
 - 
 
 - 
 
- 
- 
Method Detail
- 
clean
public void clean()
 
- 
getRootDir
public File getRootDir()
- Specified by:
 getRootDirin interfacePersistenceRoot
 
- 
save
public void save() throws IOException- Specified by:
 savein interfaceItem- Specified by:
 savein interfaceSaveable- Throws:
 IOException
 
- 
getDisplayName
public String getDisplayName()
- Specified by:
 getDisplayNamein interfaceItem- Specified by:
 getDisplayNamein interfaceModelObject
 
- 
getFullName
public String getFullName()
- Specified by:
 getFullNamein interfaceItem- Specified by:
 getFullNamein interfaceItemGroup<T extends Job<?,?>>
 
- 
getFullDisplayName
public String getFullDisplayName()
- Specified by:
 getFullDisplayNamein interfaceItem- Specified by:
 getFullDisplayNamein interfaceItemGroup<T extends Job<?,?>>
 
- 
getItems
public Collection<T> getItems()
 
- 
getUrl
public String getUrl()
 
- 
getUrlChildPrefix
public String getUrlChildPrefix()
- Specified by:
 getUrlChildPrefixin interfaceItemGroup<T extends Job<?,?>>
 
- 
addItem
public void addItem(T item)
 
- 
getItem
public T getItem(String name) throws AccessDeniedException
- Specified by:
 getItemin interfaceItemGroup<T extends Job<?,?>>- Throws:
 AccessDeniedException
 
- 
getRootDirFor
public File getRootDirFor(T child)
- Specified by:
 getRootDirForin interfaceItemGroup<T extends Job<?,?>>
 
- 
onRenamed
public void onRenamed(T item, String oldName, String newName) throws IOException
- Specified by:
 onRenamedin interfaceItemGroup<T extends Job<?,?>>- Throws:
 IOException
 
- 
onDeleted
public void onDeleted(T item) throws IOException
- Specified by:
 onDeletedin interfaceItemGroup<T extends Job<?,?>>- Throws:
 IOException
 
- 
delete
public void delete() throws IOException, InterruptedException- Specified by:
 deletein interfaceItem- Throws:
 IOExceptionInterruptedException
 
- 
getAbsoluteUrl
public String getAbsoluteUrl()
- Specified by:
 getAbsoluteUrlin interfaceItem
 
- 
getAllJobs
public Collection<? extends Job> getAllJobs()
- Specified by:
 getAllJobsin interfaceItem
 
- 
getRelativeNameFrom
public String getRelativeNameFrom(ItemGroup arg0)
- Specified by:
 getRelativeNameFromin interfaceItem
 
- 
getRelativeNameFrom
public String getRelativeNameFrom(Item arg0)
- Specified by:
 getRelativeNameFromin interfaceItem
 
- 
getShortUrl
public String getShortUrl()
- Specified by:
 getShortUrlin interfaceItem
 
- 
onCopiedFrom
public void onCopiedFrom(Item arg0)
- Specified by:
 onCopiedFromin interfaceItem
 
- 
onCreatedFromScratch
public void onCreatedFromScratch()
- Specified by:
 onCreatedFromScratchin interfaceItem
 
- 
onLoad
public void onLoad(ItemGroup<? extends Item> arg0, String arg1) throws IOException
- Specified by:
 onLoadin interfaceItem- Throws:
 IOException
 
- 
getSearch
public Search getSearch()
- Specified by:
 getSearchin interfaceSearchableModelObject
 
- 
getSearchIndex
public SearchIndex getSearchIndex()
- Specified by:
 getSearchIndexin interfaceSearchItem
 
- 
getSearchName
public String getSearchName()
- Specified by:
 getSearchNamein interfaceSearchItem
 
- 
getSearchUrl
public String getSearchUrl()
- Specified by:
 getSearchUrlin interfaceSearchItem
 
- 
checkPermission
public void checkPermission(Permission arg0) throws AccessDeniedException
- Specified by:
 checkPermissionin interfaceAccessControlled- Throws:
 AccessDeniedException
 
- 
getACL
public ACL getACL()
- Specified by:
 getACLin interfaceAccessControlled
 
- 
hasPermission
public boolean hasPermission(Permission arg0)
- Specified by:
 hasPermissionin interfaceAccessControlled
 
- 
getDescriptor
public TopLevelItemDescriptor getDescriptor()
- Specified by:
 getDescriptorin interfaceDescribable<T extends Job<?,?>>- Specified by:
 getDescriptorin interfaceTopLevelItem
 
 - 
 
 -