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.Loadable, 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.
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 
    Deprecated.
     

    Nested classes/interfaces inherited from interface hudson.ExtensionPoint

    hudson.ExtensionPoint.LegacyInstancesAreScopedToHudson

    Nested classes/interfaces inherited from interface org.kohsuke.stapler.HttpDeletable

    org.kohsuke.stapler.HttpDeletable.HttpDeletableDispatcher

    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
  • Field Summary

    Fields inherited from class hudson.model.AbstractItem

    description, displayName, name, PRONOUN, SKIP_PERMISSION_CHECK, TASK_NOUN

    Fields inherited from interface hudson.model.Item

    BUILD, CANCEL, CONFIGURE, CREATE, DELETE, DISCOVER, EXTENDED_READ, PERMISSIONS, READ, WIPEOUT, WORKSPACE

    Fields inherited from interface hudson.model.Saveable

    NOOP
  • Method Summary

    Modifier and Type
    Method
    Description
    hudson.security.ACL
    Deprecated.
     
    hudson.model.TopLevelItem
    Deprecated.
     
    boolean
    hasPermission(hudson.security.Permission p)
    Deprecated.
     
    void
    setPermissions(String username, hudson.security.Permission... permissions)
    Deprecated.
     

    Methods inherited from class hudson.model.AbstractItem

    checkRename, delete, delete, delete, doCheckNewName, doConfigDotXml, doConfigDotXml, doConfirmRename, doDoDelete, doDoDelete, doReload, doSetName, doSubmitDescription, doSubmitDescription, getAbsoluteUrl, getApi, getConfigFile, getDescription, getDisplayName, getDisplayNameOrNull, getFullDisplayName, getFullName, getName, getParent, getPronoun, getRelativeDisplayNameFrom, getRelativeNameFromGroup, getRootDir, getSearchName, getSearchUrl, getShortUrl, getTarget, getTaskNoun, getUrl, load, movedTo, performDelete, resolveForCLI, save, setDescription, setDisplayName, setDisplayNameOrNull, toString, updateByXml, updateByXml, writeConfigDotXml, writeReplace

    Methods inherited from class hudson.model.Actionable

    addAction, addOrReplaceAction, doContextMenu, doContextMenu, getAction, getAction, getActions, getActions, getAllActions, getDynamic, getDynamic, removeAction, removeActions, replaceAction, replaceActions

    Methods inherited from class hudson.model.AbstractModelObject

    getSearch, getSearchIndex, makeSearchIndex, requirePOST, sendError, sendError, sendError, 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.DescriptorByNameOwner

    getDescriptorByName

    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, getItemName, getItems, getItemsStream, getItemsStream, getUrl

    Methods inherited from interface hudson.model.ModifiableItemGroup

    doCreateItem

    Methods inherited from interface hudson.model.PersistenceRoot

    getRootDir

    Methods inherited from interface hudson.search.SearchableModelObject

    getSearch

    Methods inherited from interface hudson.search.SearchItem

    getSearchIndex, getSearchName, getSearchUrl

    Methods inherited from interface hudson.model.ViewGroup

    getAllViews, getUrl
  • Method Details

    • getItem

      public hudson.model.TopLevelItem getItem(String name)
      Deprecated.
      Specified by:
      getItem in interface hudson.model.ItemGroup<hudson.model.TopLevelItem>
      Overrides:
      getItem in class MockFolder
    • hasPermission

      public boolean hasPermission(@NonNull hudson.security.Permission p)
      Deprecated.
    • getACL

      @NonNull public hudson.security.ACL getACL()
      Deprecated.
      Specified by:
      getACL in interface hudson.security.AccessControlled
      Overrides:
      getACL in class hudson.model.AbstractItem
    • setPermissions

      public void setPermissions(String username, hudson.security.Permission... permissions)
      Deprecated.