Package org.jvnet.hudson.test
Class SecuredMockFolder
- java.lang.Object
-
- hudson.model.AbstractModelObject
-
- hudson.model.Actionable
-
- hudson.model.AbstractItem
-
- org.jvnet.hudson.test.MockFolder
-
- org.jvnet.hudson.test.SecuredMockFolder
-
- All Implemented Interfaces:
hudson.ExtensionPoint
,hudson.model.Describable<hudson.model.TopLevelItem>
,hudson.model.DescriptorByNameOwner
,hudson.model.Item
,hudson.model.ItemGroup<hudson.model.TopLevelItem>
,hudson.model.ModelObject
,hudson.model.ModifiableItemGroup<hudson.model.TopLevelItem>
,hudson.model.ModifiableViewGroup
,hudson.model.PersistenceRoot
,hudson.model.Saveable
,hudson.model.TopLevelItem
,hudson.model.ViewGroup
,hudson.search.SearchableModelObject
,hudson.search.SearchItem
,hudson.security.AccessControlled
,jenkins.model.DirectlyModifiableTopLevelItemGroup
,jenkins.model.ModelObjectWithContextMenu
,jenkins.model.ModifiableTopLevelItemGroup
,jenkins.util.io.OnMaster
,org.kohsuke.stapler.HttpDeletable
,org.kohsuke.stapler.StaplerFallback
,org.kohsuke.stapler.StaplerProxy
@Deprecated public class SecuredMockFolder extends MockFolder
Deprecated.UseMockAuthorizationStrategy
plusMockFolder
instead.Folder stub with a configurable permission control. The implementation secures the access to the item and to its children.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
SecuredMockFolder.DescriptorImpl
Deprecated.-
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
hudson.ExtensionPoint.LegacyInstancesAreScopedToHudson
-
Nested classes/interfaces inherited from interface jenkins.model.ModelObjectWithContextMenu
jenkins.model.ModelObjectWithContextMenu.ContextMenu, jenkins.model.ModelObjectWithContextMenu.ContextMenuVisibility, jenkins.model.ModelObjectWithContextMenu.MenuItem, jenkins.model.ModelObjectWithContextMenu.MenuItemType
-
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description hudson.security.ACL
getACL()
Deprecated.hudson.model.TopLevelItem
getItem(String name)
Deprecated.boolean
hasPermission(hudson.security.Permission p)
Deprecated.void
setPermissions(String username, hudson.security.Permission... permissions)
Deprecated.-
Methods inherited from class org.jvnet.hudson.test.MockFolder
add, addView, canAdd, canDelete, copy, createProject, createProject, createProjectFromXML, deleteView, doCreateItem, getAllJobs, getDescriptor, getItemGroup, getItems, getJob, getPrimaryView, getRootDirFor, getStaplerFallback, getUrlChildPrefix, getView, getViewActions, getViews, getViewsTabBar, isNameEditable, onCopiedFrom, onDeleted, onLoad, onRenamed, onViewRenamed, remove, renameTo
-
Methods inherited from class hudson.model.AbstractItem
checkRename, delete, delete, doCheckNewName, doConfigDotXml, doConfirmRename, doDoDelete, doReload, doSetName, doSubmitDescription, getAbsoluteUrl, getApi, getConfigFile, getDescription, getDisplayName, getDisplayNameOrNull, getFullDisplayName, getFullName, getName, getParent, getPronoun, getRelativeDisplayNameFrom, getRelativeNameFromGroup, getRootDir, getSearchName, getSearchUrl, getShortUrl, getTarget, getTaskNoun, getUrl, movedTo, performDelete, resolveForCLI, save, setDescription, setDisplayName, setDisplayNameOrNull, toString, updateByXml, updateByXml, writeConfigDotXml, writeReplace
-
Methods inherited from class hudson.model.Actionable
addAction, addOrReplaceAction, doContextMenu, getAction, getAction, getActions, getActions, getAllActions, getDynamic, removeAction, removeActions, replaceAction, replaceActions
-
Methods inherited from class hudson.model.AbstractModelObject
getSearch, getSearchIndex, makeSearchIndex, requirePOST, sendError, sendError, sendError, sendError, sendError
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface hudson.security.AccessControlled
checkAnyPermission, checkPermission, hasAnyPermission, hasPermission, hasPermission2
-
Methods inherited from interface hudson.model.Item
delete, getAbsoluteUrl, getDisplayName, getFullDisplayName, getFullName, getName, getParent, getRelativeNameFrom, getRelativeNameFrom, getShortUrl, getUrl, onCreatedFromScratch, save
-
Methods inherited from interface hudson.model.ItemGroup
allItems, allItems, allItems, getAllItems, getAllItems, getAllItems, getFullDisplayName, getFullName, getItems, getItemsStream, getItemsStream, getUrl
-
-
-
-
Method Detail
-
getItem
public hudson.model.TopLevelItem getItem(String name)
Deprecated.- Specified by:
getItem
in interfacehudson.model.ItemGroup<hudson.model.TopLevelItem>
- Overrides:
getItem
in classMockFolder
-
hasPermission
public boolean hasPermission(@NonNull hudson.security.Permission p)
Deprecated.
-
getACL
@NonNull public hudson.security.ACL getACL()
Deprecated.- Specified by:
getACL
in interfacehudson.security.AccessControlled
- Overrides:
getACL
in classhudson.model.AbstractItem
-
setPermissions
public void setPermissions(String username, hudson.security.Permission... permissions)
Deprecated.
-
-