@Extension @ParametersAreNonnullByDefault public class FolderAuthorizationStrategyManagementLink extends ManagementLink
ExtensionPoint.LegacyInstancesAreScopedToHudsonLIST| Constructor and Description |
|---|
FolderAuthorizationStrategyManagementLink() |
all, getDescription, getRequiredPermission, getRequiresConfirmation, getRequiresPOSTpublic FolderAuthorizationStrategyManagementLink()
@CheckForNull public String getIconFileName()
getIconFileName in interface ActiongetIconFileName in class ManagementLink@CheckForNull public String getUrlName()
getUrlName in interface ActiongetUrlName in class ManagementLink@CheckForNull public String getDisplayName()
@Nonnull @Restricted(value=org.kohsuke.accmod.restrictions.NoExternalUse.class) public Set<Permission> getGlobalPermissions()
@Nonnull @Restricted(value=org.kohsuke.accmod.restrictions.NoExternalUse.class) public Set<Permission> getFolderPermissions()
@Nonnull @Restricted(value=org.kohsuke.accmod.restrictions.NoExternalUse.class) public Set<Permission> getAgentPermissions()
@Restricted(value=org.kohsuke.accmod.restrictions.NoExternalUse.class)
public void doAddGlobalRole(@JsonBody
GlobalRoleCreationRequest request)
throws IOException
GlobalRole to FolderBasedAuthorizationStrategy.request - the request to create the GlobalRoleIOException - when unable to add Global roleIllegalStateException - when Jenkins.getAuthorizationStrategy() is
not FolderBasedAuthorizationStrategy@Restricted(value=org.kohsuke.accmod.restrictions.NoExternalUse.class)
public void doAssignSidToGlobalRole(@QueryParameter(required=true)
String roleName,
@QueryParameter(required=true)
String sid)
throws IOException
sid to the global role identified by roleName.
Does not do anything if a role corresponding to the roleName does not exist.
roleName - the name of the global to which sid will be assigned to.sid - the sid of the user/group to be assigned.IOException - when unable to assign the Sid to the roleIllegalStateException - when Jenkins.getAuthorizationStrategy() is
not FolderBasedAuthorizationStrategyNoSuchElementException - when no role with name equal to roleName exists.@Restricted(value=org.kohsuke.accmod.restrictions.NoExternalUse.class)
public void doAddFolderRole(@JsonBody
FolderRoleCreationRequest request)
throws IOException
FolderRole to FolderBasedAuthorizationStrategy.request - the request to create the roleIOException - when unable to add the roleIllegalStateException - when Jenkins.getAuthorizationStrategy() is
not FolderBasedAuthorizationStrategy@Restricted(value=org.kohsuke.accmod.restrictions.NoExternalUse.class)
public void doAddAgentRole(@JsonBody
AgentRoleCreationRequest request)
throws IOException
AgentRole to FolderBasedAuthorizationStrategy.request - the request to create the roleIOException - when unable to add the roleIllegalStateException - when Jenkins.getAuthorizationStrategy() is
not FolderBasedAuthorizationStrategy@Restricted(value=org.kohsuke.accmod.restrictions.NoExternalUse.class)
public void doAssignSidToFolderRole(@QueryParameter(required=true)
String roleName,
@QueryParameter(required=true)
String sid)
throws IOException
sid to the folder role identified by roleName.
roleName - the name of the global to which sid will be assigned to.sid - the sid of the user/group to be assigned.IOException - when unable to assign the Sid to the roleIllegalStateException - when Jenkins.getAuthorizationStrategy() is
not FolderBasedAuthorizationStrategyNoSuchElementException - when no role with name equal to roleName exists.@Restricted(value=org.kohsuke.accmod.restrictions.NoExternalUse.class)
public void doAssignSidToAgentRole(@QueryParameter(required=true)
String roleName,
@QueryParameter(required=true)
String sid)
throws IOException
roleName - the name of the global to which sid will be assigned to.sid - the sid of the user/group to be assigned.IOException - when unable to assign the Sid to the roleIllegalStateException - when Jenkins.getAuthorizationStrategy() is
not FolderBasedAuthorizationStrategyNoSuchElementException - when no role with name equal to roleName exists.@Nonnull @Restricted(value=org.kohsuke.accmod.restrictions.NoExternalUse.class) public Set<GlobalRole> getGlobalRoles()
@GET @Nonnull @Restricted(value=org.kohsuke.accmod.restrictions.NoExternalUse.class) public net.sf.json.JSONArray doGetAllFolders()
AbstractFolders in the systemAbstractFolders in the system@Nonnull @Restricted(value=org.kohsuke.accmod.restrictions.NoExternalUse.class) public List<Computer> getAllComputers()
Computers in the system@Nonnull @Restricted(value=org.kohsuke.accmod.restrictions.NoExternalUse.class) public Set<FolderRole> getFolderRoles()
FolderRoles used by the FolderBasedAuthorizationStrategy.FolderRoles used by the FolderBasedAuthorizationStrategyIllegalStateException - when Jenkins.getAuthorizationStrategy() is
not FolderBasedAuthorizationStrategy@Nonnull @Restricted(value=org.kohsuke.accmod.restrictions.NoExternalUse.class) public Set<AgentRole> getAgentRoles()
@Restricted(value=org.kohsuke.accmod.restrictions.NoExternalUse.class)
public void doDeleteGlobalRole(@QueryParameter(required=true)
String roleName)
throws IOException
roleName - the name of the role to be deletedIOException - when unable to delete the roleIllegalStateException - when Jenkins.getAuthorizationStrategy() is
not FolderBasedAuthorizationStrategyIllegalArgumentException - when trying to delete the admin roleNoSuchElementException - when no role with name equal to roleName exists.@Restricted(value=org.kohsuke.accmod.restrictions.NoExternalUse.class)
public void doDeleteFolderRole(@QueryParameter(required=true)
String roleName)
throws IOException
roleName - the name of the role to be deletedIOException - when unable to delete the roleIllegalStateException - when Jenkins.getAuthorizationStrategy() is
not FolderBasedAuthorizationStrategyNoSuchElementException - when no role with name equal to roleName exists.@Restricted(value=org.kohsuke.accmod.restrictions.NoExternalUse.class)
public void doDeleteAgentRole(@QueryParameter(required=true)
String roleName)
throws IOException
AgentRole from the FolderBasedAuthorizationStrategy.roleName - the name of the role to be deletedIOException - when unable to delete the roleIllegalStateException - when Jenkins.getAuthorizationStrategy() is
not FolderBasedAuthorizationStrategyNoSuchElementException - when no role with name equal to roleName exists.Copyright © 2016–2019. All rights reserved.