public class Folder extends AbstractFolder<hudson.model.TopLevelItem> implements jenkins.model.DirectlyModifiableTopLevelItemGroup
| Modifier and Type | Class and Description |
|---|---|
static class |
Folder.DescriptorImpl |
| Modifier and Type | Field and Description |
|---|---|
static hudson.util.AlternativeUiTextProvider.Message<Folder> |
NEW_PRONOUN |
protected List<hudson.model.Action> |
transientActions
Actions contributed from subsidiary objects associated with
Folder, such as from properties. |
items| Constructor and Description |
|---|
Folder(hudson.model.ItemGroup parent,
String name) |
| Modifier and Type | Method and Description |
|---|---|
<I extends hudson.model.TopLevelItem> |
add(I item,
String name) |
void |
addProperty(FolderProperty<?> p)
Deprecated.
|
boolean |
canAdd(hudson.model.TopLevelItem item) |
<T extends hudson.model.TopLevelItem> |
copy(T src,
String name)
Copies an existing
TopLevelItem to into this folder with a new name. |
<T extends hudson.model.TopLevelItem> |
createProject(Class<T> type,
String name) |
hudson.model.TopLevelItem |
createProject(hudson.model.TopLevelItemDescriptor type,
String name) |
hudson.model.TopLevelItem |
createProject(hudson.model.TopLevelItemDescriptor type,
String name,
boolean notify) |
hudson.model.TopLevelItem |
createProjectFromXML(String name,
InputStream xml) |
protected List<hudson.model.Action> |
createTransientActions() |
hudson.util.FormValidation |
doCheckJobName(String value) |
hudson.model.TopLevelItem |
doCreateItem(org.kohsuke.stapler.StaplerRequest req,
org.kohsuke.stapler.StaplerResponse rsp) |
List<hudson.model.Action> |
getActions() |
hudson.util.DescribableList<hudson.views.ListViewColumn,hudson.model.Descriptor<hudson.views.ListViewColumn>> |
getColumns()
Deprecated.
as of 1.7
Folder is no longer a view by itself.
|
Folder.DescriptorImpl |
getDescriptor() |
List<hudson.model.TopLevelItemDescriptor> |
getItemDescriptors()
Items that can be created in this
Folder. |
String |
getNewPronoun()
Used in "New Job" side menu.
|
protected void |
init() |
protected void |
initViews(List<hudson.model.View> views) |
boolean |
isAllowedChild(hudson.model.TopLevelItem tid)
Historical synonym for
canAdd(hudson.model.TopLevelItem). |
boolean |
isAllowedChildDescriptor(hudson.model.TopLevelItemDescriptor tid)
Returns true if the specified descriptor type is allowed for this container.
|
void |
onCopiedFrom(hudson.model.Item _src)
If copied, copy folder contents.
|
void |
onCreatedFromScratch() |
void |
onLoad(hudson.model.ItemGroup<? extends hudson.model.Item> parent,
String name) |
void |
remove(hudson.model.TopLevelItem item) |
protected void |
submit(org.kohsuke.stapler.StaplerRequest req,
org.kohsuke.stapler.StaplerResponse rsp) |
protected void |
updateTransientActions()
effectively deprecated.
|
addProperty, addView, canDelete, deleteView, doChildrenContextMenu, doConfigSubmit, doCreateView, doDoRename, doLastBuild, doSubmitDescription, doViewExistsCheck, getAllJobs, getBuildHealth, getBuildHealthReports, getHealthMetrics, getIcon, getIconColor, getItem, getItemGroup, getItems, getJob, getJobsDir, getOverrides, getPrimaryView, getPronoun, getProperties, getRootDirFor, getRootDirFor, getStaplerFallback, getUrlChildPrefix, getView, getViewActions, getViews, getViewsTabBar, loadJobTotal, makeSearchIndex, onDeleted, onRenamed, onViewRenamed, performDelete, renameBlocker, renameTo, save, setIcon, setPrimaryViewcheckPermission, delete, delete, doConfigDotXml, doDoDelete, doReload, doSetName, getAbsoluteUrl, getACL, getApi, getConfigFile, getDescription, getDescriptorByName, getDisplayName, getDisplayNameOrNull, getFullDisplayName, getFullName, getName, getParent, getRelativeDisplayNameFrom, getRelativeNameFrom, getRelativeNameFrom, getRelativeNameFromGroup, getRootDir, getSearchName, getSearchUrl, getShortUrl, getUrl, hasPermission, movedTo, resolveForCLI, setDescription, setDisplayName, setDisplayNameOrNull, toString, updateByXml, updateByXmladdAction, doContextMenu, getAction, getAction, getActions, getAllActions, getDynamic, replaceActiongetSearch, getSearchIndex, requirePOST, sendError, sendError, sendError, sendError, sendErrorclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetFullDisplayName, getFullName, getItem, getItems, getRootDirFor, getUrl, getUrlChildPrefix, onDeleted, onRenameddelete, getAbsoluteUrl, getDisplayName, getFullDisplayName, getFullName, getName, getParent, getRelativeNameFrom, getRelativeNameFrom, getShortUrl, getUrlpublic static final hudson.util.AlternativeUiTextProvider.Message<Folder> NEW_PRONOUN
getNewPronoun()@CopyOnWrite protected transient volatile List<hudson.model.Action> transientActions
Actions contributed from subsidiary objects associated with
Folder, such as from properties.
We don't want to persist them separately, and these actions come and go as configuration change, so it's kept separate.
public Folder(hudson.model.ItemGroup parent,
String name)
public void onLoad(hudson.model.ItemGroup<? extends hudson.model.Item> parent,
String name)
throws IOException
onLoad in interface hudson.model.ItemonLoad in class AbstractFolder<hudson.model.TopLevelItem>IOExceptionprotected final void init()
init in class AbstractFolder<hudson.model.TopLevelItem>protected void initViews(List<hudson.model.View> views) throws IOException
initViews in class AbstractFolder<hudson.model.TopLevelItem>IOExceptionpublic void onCreatedFromScratch()
onCreatedFromScratch in interface hudson.model.ItemonCreatedFromScratch in class hudson.model.AbstractItempublic List<hudson.model.Action> getActions()
Note that this method returns a read-only view of Actions.
getActions in class hudson.model.ActionableTransientFolderActionFactory,
FolderProperty.getFolderActions()protected void updateTransientActions()
protected List<hudson.model.Action> createTransientActions()
public String getNewPronoun()
NEW_PRONOUNpublic hudson.util.DescribableList<hudson.views.ListViewColumn,hudson.model.Descriptor<hudson.views.ListViewColumn>> getColumns()
@Deprecated public void addProperty(FolderProperty<?> p) throws IOException
AbstractFolder.addProperty(AbstractFolderProperty) insteadIOExceptionpublic void onCopiedFrom(hudson.model.Item _src)
onCopiedFrom in interface hudson.model.ItemonCopiedFrom in class hudson.model.AbstractItempublic hudson.model.TopLevelItem doCreateItem(org.kohsuke.stapler.StaplerRequest req,
org.kohsuke.stapler.StaplerResponse rsp)
throws IOException,
javax.servlet.ServletException
doCreateItem in interface hudson.model.ModifiableItemGroup<hudson.model.TopLevelItem>IOExceptionjavax.servlet.ServletExceptionpublic hudson.util.FormValidation doCheckJobName(@QueryParameter
String value)
public <T extends hudson.model.TopLevelItem> T copy(T src,
String name)
throws IOException
TopLevelItem to into this folder with a new name.copy in interface jenkins.model.ModifiableTopLevelItemGroupIOExceptionpublic hudson.model.TopLevelItem createProjectFromXML(String name, InputStream xml) throws IOException
createProjectFromXML in interface jenkins.model.ModifiableTopLevelItemGroupIOExceptionpublic <T extends hudson.model.TopLevelItem> T createProject(Class<T> type, String name) throws IOException
IOExceptionpublic hudson.model.TopLevelItem createProject(hudson.model.TopLevelItemDescriptor type,
String name)
throws IOException
IOExceptionpublic hudson.model.TopLevelItem createProject(hudson.model.TopLevelItemDescriptor type,
String name,
boolean notify)
throws IOException
createProject in interface jenkins.model.ModifiableTopLevelItemGroupIOExceptionprotected void submit(org.kohsuke.stapler.StaplerRequest req,
org.kohsuke.stapler.StaplerResponse rsp)
throws IOException,
javax.servlet.ServletException,
hudson.model.Descriptor.FormException
submit in class AbstractFolder<hudson.model.TopLevelItem>IOExceptionjavax.servlet.ServletExceptionhudson.model.Descriptor.FormExceptionpublic List<hudson.model.TopLevelItemDescriptor> getItemDescriptors()
Folder.FolderAddFilterpublic boolean isAllowedChildDescriptor(hudson.model.TopLevelItemDescriptor tid)
public boolean isAllowedChild(hudson.model.TopLevelItem tid)
canAdd(hudson.model.TopLevelItem).public Folder.DescriptorImpl getDescriptor()
getDescriptor in interface hudson.model.Describable<hudson.model.TopLevelItem>getDescriptor in interface hudson.model.TopLevelItemgetDescriptor in class AbstractFolder<hudson.model.TopLevelItem>public boolean canAdd(hudson.model.TopLevelItem item)
canAdd in interface jenkins.model.DirectlyModifiableTopLevelItemGrouppublic <I extends hudson.model.TopLevelItem> I add(I item,
String name)
throws IOException,
IllegalArgumentException
add in interface jenkins.model.DirectlyModifiableTopLevelItemGroupIOExceptionIllegalArgumentExceptionpublic void remove(hudson.model.TopLevelItem item)
throws IOException,
IllegalArgumentException
remove in interface jenkins.model.DirectlyModifiableTopLevelItemGroupIOExceptionIllegalArgumentExceptionCopyright © 2016. All rights reserved.