Class 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.
    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
    • 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

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

      • 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.