public class Folder extends AbstractFolder<hudson.model.TopLevelItem> implements jenkins.model.DirectlyModifiableTopLevelItemGroup
Modifier and Type | Class and Description |
---|---|
static class |
Folder.DescriptorImpl |
AbstractFolder.ItemListenerImpl, AbstractFolder.RunListenerImpl
Modifier and Type | Field and Description |
---|---|
static hudson.util.AlternativeUiTextProvider.Message<Folder> |
NEW_PRONOUN |
protected List<hudson.model.Action> |
transientActions
Action s 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.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.
|
addAction, addOrReplaceAction, addProperty, addView, canDelete, delete, deleteView, doChildrenContextMenu, doConfigSubmit, doCreateView, doDoRename, doLastBuild, doSubmitDescription, doViewExistsCheck, getAllJobs, getBuildHealth, getBuildHealthReports, getFolderViews, getHealthMetrics, getIcon, getIconColor, getItem, getItemGroup, getItems, getJob, getJobsDir, getOverrides, getPrimaryView, getPronoun, getProperties, getRootDirFor, getRootDirFor, getStaplerFallback, getSuccessfulDestination, getUrlChildPrefix, getView, getViewActions, getViews, getViewsTabBar, invalidateBuildHealthReports, loadJobTotal, makeSearchIndex, newDefaultFolderIcon, newDefaultViewsTabBar, newFolderViewHolder, onDeleted, onRenamed, onViewRenamed, removeAction, removeActions, renameBlocker, renameTo, replaceAction, replaceActions, resetFolderViews, save, setIcon, setPrimaryView
checkPermission, 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, performDelete, resolveForCLI, setDescription, setDisplayName, setDisplayNameOrNull, toString, updateByXml, updateByXml
doContextMenu, getAction, getAction, getActions, getAllActions, getDynamic
getSearch, getSearchIndex, requirePOST, sendError, sendError, sendError, sendError, sendError
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getFullDisplayName, getFullName, getItem, getItems, getRootDirFor, getUrl, getUrlChildPrefix, onDeleted, onRenamed
getAbsoluteUrl, getDisplayName, getFullDisplayName, getFullName, getName, getParent, getRelativeNameFrom, getRelativeNameFrom, getShortUrl, getUrl
public static final hudson.util.AlternativeUiTextProvider.Message<Folder> NEW_PRONOUN
getNewPronoun()
@CopyOnWrite protected transient volatile List<hudson.model.Action> transientActions
Action
s 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
AbstractFolder
onLoad
in interface hudson.model.Item
onLoad
in class AbstractFolder<hudson.model.TopLevelItem>
IOException
protected 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>
IOException
public void onCreatedFromScratch()
onCreatedFromScratch
in interface hudson.model.Item
onCreatedFromScratch
in class hudson.model.AbstractItem
public List<hudson.model.Action> getActions()
Note that this method returns a read-only view of Action
s.
getActions
in class hudson.model.Actionable
TransientFolderActionFactory
,
FolderProperty.getFolderActions()
protected void updateTransientActions()
protected List<hudson.model.Action> createTransientActions()
public String getNewPronoun()
NEW_PRONOUN
public hudson.util.DescribableList<hudson.views.ListViewColumn,hudson.model.Descriptor<hudson.views.ListViewColumn>> getColumns()
@Deprecated public void addProperty(FolderProperty<?> p) throws IOException
AbstractFolder.addProperty(AbstractFolderProperty)
insteadIOException
public void onCopiedFrom(hudson.model.Item _src)
onCopiedFrom
in interface hudson.model.Item
onCopiedFrom
in class hudson.model.AbstractItem
public 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>
IOException
javax.servlet.ServletException
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.ModifiableTopLevelItemGroup
IOException
public hudson.model.TopLevelItem createProjectFromXML(String name, InputStream xml) throws IOException
createProjectFromXML
in interface jenkins.model.ModifiableTopLevelItemGroup
IOException
public <T extends hudson.model.TopLevelItem> T createProject(Class<T> type, String name) throws IOException
IOException
public hudson.model.TopLevelItem createProject(hudson.model.TopLevelItemDescriptor type, String name) throws IOException
IOException
public hudson.model.TopLevelItem createProject(hudson.model.TopLevelItemDescriptor type, String name, boolean notify) throws IOException
createProject
in interface jenkins.model.ModifiableTopLevelItemGroup
IOException
protected 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>
IOException
javax.servlet.ServletException
hudson.model.Descriptor.FormException
public List<hudson.model.TopLevelItemDescriptor> getItemDescriptors()
Folder
.FolderAddFilter
public boolean isAllowedChildDescriptor(hudson.model.TopLevelItemDescriptor tid)
public boolean isAllowedChild(hudson.model.TopLevelItem tid)
canAdd(hudson.model.TopLevelItem)
.public Folder.DescriptorImpl getDescriptor()
AbstractFolder
getDescriptor
in interface hudson.model.Describable<hudson.model.TopLevelItem>
getDescriptor
in interface hudson.model.TopLevelItem
getDescriptor
in class AbstractFolder<hudson.model.TopLevelItem>
public boolean canAdd(hudson.model.TopLevelItem item)
canAdd
in interface jenkins.model.DirectlyModifiableTopLevelItemGroup
public <I extends hudson.model.TopLevelItem> I add(I item, String name) throws IOException, IllegalArgumentException
add
in interface jenkins.model.DirectlyModifiableTopLevelItemGroup
IOException
IllegalArgumentException
public void remove(hudson.model.TopLevelItem item) throws IOException, IllegalArgumentException
remove
in interface jenkins.model.DirectlyModifiableTopLevelItemGroup
IOException
IllegalArgumentException
Copyright © 2016–2017. All rights reserved.