public class Folder extends AbstractFolder<TopLevelItem> implements DirectlyModifiableTopLevelItemGroup
Modifier and Type | Class and Description |
---|---|
static class |
Folder.DeprecatedTransientActions
Deprecated.
|
static class |
Folder.DescriptorImpl |
AbstractFolder.ItemListenerImpl, AbstractFolder.RunListenerImpl
ExtensionPoint.LegacyInstancesAreScopedToHudson
ModelObjectWithContextMenu.ContextMenu, ModelObjectWithContextMenu.ContextMenuVisibility, ModelObjectWithContextMenu.MenuItem
Modifier and Type | Field and Description |
---|---|
static AlternativeUiTextProvider.Message<Folder> |
NEW_PRONOUN |
protected List<Action> |
transientActions
Deprecated.
Use
TransientActionFactory instead. |
items
description, displayName, name, PRONOUN, SKIP_PERMISSION_CHECK, TASK_NOUN
Modifier and Type | Method and Description |
---|---|
<I extends TopLevelItem> |
add(I item,
String name) |
void |
addProperty(FolderProperty<?> p)
Deprecated.
|
boolean |
canAdd(TopLevelItem item) |
<T extends TopLevelItem> |
copy(T src,
String name)
Copies an existing
TopLevelItem to into this folder with a new name. |
<T extends TopLevelItem> |
createProject(Class<T> type,
String name) |
TopLevelItem |
createProject(TopLevelItemDescriptor type,
String name) |
TopLevelItem |
createProject(TopLevelItemDescriptor type,
String name,
boolean notify) |
TopLevelItem |
createProjectFromXML(String name,
InputStream xml) |
protected List<Action> |
createTransientActions()
Deprecated.
|
TopLevelItem |
doCreateItem(org.kohsuke.stapler.StaplerRequest req,
org.kohsuke.stapler.StaplerResponse rsp) |
DescribableList<ListViewColumn,Descriptor<ListViewColumn>> |
getColumns()
Deprecated.
as of 1.7
Folder is no longer a view by itself.
|
Folder.DescriptorImpl |
getDescriptor() |
List<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<View> views) |
boolean |
isAllowedChild(TopLevelItem tid)
Historical synonym for
canAdd(hudson.model.TopLevelItem) . |
boolean |
isAllowedChildDescriptor(TopLevelItemDescriptor tid)
Returns true if the specified descriptor type is allowed for this container.
|
void |
onCopiedFrom(Item _src)
If copied, copy folder contents.
|
void |
onCreatedFromScratch() |
void |
onLoad(ItemGroup<? extends Item> parent,
String name) |
void |
remove(TopLevelItem item) |
protected void |
submit(org.kohsuke.stapler.StaplerRequest req,
org.kohsuke.stapler.StaplerResponse rsp) |
protected void |
updateTransientActions()
Deprecated.
Use
TransientActionFactory instead. |
addProperty, addView, canDelete, checkRename, delete, deleteView, doChildrenContextMenu, doConfigSubmit, doCreateView, doDisable, doEnable, doLastBuild, doSubmitDescription, doViewExistsCheck, getAllJobs, getBuildHealth, getBuildHealthReports, getFolderViews, getHealthMetrics, getIcon, getIconColor, getItem, getItemGroup, getItems, getItems, getJob, getJobsDir, getOverrides, getPrimaryView, getPronoun, getProperties, getRootDirFor, getRootDirFor, getStaplerFallback, getSuccessfulDestination, getUrlChildPrefix, getView, getViewActions, getViews, getViewsTabBar, hasVisibleItems, invalidateBuildHealthReports, isDisabled, isNameEditable, itemsPut, loadChildren, loadJobTotal, makeDisabled, makeSearchIndex, newDefaultFolderIcon, newDefaultViewsTabBar, newFolderViewHolder, onDeleted, onRenamed, onViewRenamed, renameBlocker, renameTo, resetFolderViews, save, setDisabled, setIcon, setPrimaryView, supportsMakeDisabled
delete, doCheckNewName, doConfigDotXml, doConfirmRename, doDoDelete, doReload, doSetName, getAbsoluteUrl, getACL, getApi, getConfigFile, getDescription, getDisplayName, getDisplayNameOrNull, getFullDisplayName, getFullName, getName, getParent, getRelativeDisplayNameFrom, getRelativeNameFromGroup, getRootDir, getSearchName, getSearchUrl, getShortUrl, getTarget, getTaskNoun, getUrl, movedTo, performDelete, resolveForCLI, setDescription, setDisplayName, setDisplayNameOrNull, toString, updateByXml, updateByXml, writeConfigDotXml
addAction, addOrReplaceAction, doContextMenu, getAction, getAction, getActions, getActions, getAllActions, getDynamic, removeAction, removeActions, replaceAction, replaceActions
getSearch, getSearchIndex, requirePOST, sendError, sendError, sendError, sendError, sendError
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
allItems, allItems, getAllItems, getAllItems, getFullDisplayName, getFullName, getItem, getItems, getRootDirFor, getUrl, getUrlChildPrefix, onDeleted, onRenamed
getRootDir
getDisplayName
getAbsoluteUrl, getDisplayName, getFullDisplayName, getFullName, getName, getParent, getRelativeNameFrom, getRelativeNameFrom, getShortUrl, getUrl
getSearch
getSearchIndex, getSearchName, getSearchUrl
getAllViews, getUrl
checkPermission, getACL, hasPermission, hasPermission
getDescriptorByName
public static final AlternativeUiTextProvider.Message<Folder> NEW_PRONOUN
getNewPronoun()
@CopyOnWrite @Deprecated protected transient volatile List<Action> transientActions
TransientActionFactory
instead.public void onLoad(ItemGroup<? extends Item> parent, String name) throws IOException
AbstractFolder
onLoad
in interface Item
onLoad
in class AbstractFolder<TopLevelItem>
IOException
protected final void init()
init
in class AbstractFolder<TopLevelItem>
protected void initViews(List<View> views) throws IOException
initViews
in class AbstractFolder<TopLevelItem>
IOException
public void onCreatedFromScratch()
onCreatedFromScratch
in interface Item
@Deprecated protected void updateTransientActions()
TransientActionFactory
instead.@Deprecated protected List<Action> createTransientActions()
public String getNewPronoun()
NEW_PRONOUN
public DescribableList<ListViewColumn,Descriptor<ListViewColumn>> getColumns()
@Deprecated public void addProperty(FolderProperty<?> p) throws IOException
AbstractFolder.addProperty(AbstractFolderProperty)
insteadp
- the property.IOException
- if the folder could not be saved.public void onCopiedFrom(Item _src)
onCopiedFrom
in interface Item
onCopiedFrom
in class AbstractItem
public TopLevelItem doCreateItem(org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse rsp) throws IOException, javax.servlet.ServletException
doCreateItem
in interface ModifiableItemGroup<TopLevelItem>
IOException
javax.servlet.ServletException
public <T extends TopLevelItem> T copy(T src, String name) throws IOException
TopLevelItem
to into this folder with a new name.copy
in interface ModifiableTopLevelItemGroup
IOException
public TopLevelItem createProjectFromXML(String name, InputStream xml) throws IOException
createProjectFromXML
in interface ModifiableTopLevelItemGroup
IOException
public <T extends TopLevelItem> T createProject(Class<T> type, String name) throws IOException
IOException
public TopLevelItem createProject(TopLevelItemDescriptor type, String name) throws IOException
IOException
public TopLevelItem createProject(TopLevelItemDescriptor type, String name, boolean notify) throws IOException
createProject
in interface ModifiableTopLevelItemGroup
IOException
protected void submit(org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse rsp) throws IOException, javax.servlet.ServletException, Descriptor.FormException
submit
in class AbstractFolder<TopLevelItem>
IOException
javax.servlet.ServletException
Descriptor.FormException
public List<TopLevelItemDescriptor> getItemDescriptors()
Folder
.FolderAddFilter
public boolean isAllowedChildDescriptor(TopLevelItemDescriptor tid)
tid
- the type of child item.true
if it can be added.public boolean isAllowedChild(TopLevelItem tid)
canAdd(hudson.model.TopLevelItem)
.tid
- the potential child item.true
if it can be added.public Folder.DescriptorImpl getDescriptor()
AbstractFolder
getDescriptor
in interface Describable<TopLevelItem>
getDescriptor
in interface TopLevelItem
getDescriptor
in class AbstractFolder<TopLevelItem>
public boolean canAdd(TopLevelItem item)
canAdd
in interface DirectlyModifiableTopLevelItemGroup
public <I extends TopLevelItem> I add(I item, String name) throws IOException, IllegalArgumentException
add
in interface DirectlyModifiableTopLevelItemGroup
IOException
IllegalArgumentException
public void remove(TopLevelItem item) throws IOException, IllegalArgumentException
remove
in interface DirectlyModifiableTopLevelItemGroup
IOException
IllegalArgumentException
Copyright © 2016–2020. All rights reserved.