@Extension @ExportedBean @ParametersAreNonnullByDefault public class FolderAuthorizationStrategyManagementLink extends hudson.model.ManagementLink
| Constructor and Description |
|---|
FolderAuthorizationStrategyManagementLink() |
public FolderAuthorizationStrategyManagementLink()
@CheckForNull public String getIconFileName()
getIconFileName in interface hudson.model.ActiongetIconFileName in class hudson.model.ManagementLink@Nonnull public String getDescription()
getDescription in class hudson.model.ManagementLink@CheckForNull public String getUrlName()
getUrlName in interface hudson.model.ActiongetUrlName in class hudson.model.ManagementLink@CheckForNull public String getDisplayName()
@Nonnull @Restricted(value=org.kohsuke.accmod.restrictions.NoExternalUse.class) public Set<hudson.security.Permission> getGlobalPermissions()
@Nonnull @Restricted(value=org.kohsuke.accmod.restrictions.NoExternalUse.class) public Set<hudson.security.Permission> getFolderPermissions()
@Nonnull @Restricted(value=org.kohsuke.accmod.restrictions.NoExternalUse.class) public Set<hudson.security.Permission> getAgentPermissions()
public hudson.model.Api getApi()
Api for the plugin.@Restricted(value=org.kohsuke.accmod.restrictions.NoExternalUse.class)
public void doAddGlobalRole(@JsonBody
GlobalRoleCreationRequest request)
GlobalRole to FolderBasedAuthorizationStrategy.request - the request to create the GlobalRoleIllegalStateException - 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)
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.IllegalStateException - when Jenkins.getAuthorizationStrategy() is
not FolderBasedAuthorizationStrategyIllegalArgumentException - when no role with name equal to roleName exists.@Restricted(value=org.kohsuke.accmod.restrictions.NoExternalUse.class)
public void doAddFolderRole(@JsonBody
FolderRoleCreationRequest request)
FolderRole to FolderBasedAuthorizationStrategy.request - the request to create the roleIllegalStateException - when Jenkins.getAuthorizationStrategy() is
not FolderBasedAuthorizationStrategy@Restricted(value=org.kohsuke.accmod.restrictions.NoExternalUse.class)
public void doAddAgentRole(@JsonBody
AgentRoleCreationRequest request)
AgentRole to FolderBasedAuthorizationStrategy.request - the request to create 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)
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.IllegalStateException - 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)
roleName - the name of the global to which sid will be assigned to.sid - the sid of the user/group to be assigned.IllegalStateException - when Jenkins.getAuthorizationStrategy() is
not FolderBasedAuthorizationStrategyIllegalArgumentException - 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<hudson.model.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)
roleName - the name of the role to be deletedIllegalStateException - when Jenkins.getAuthorizationStrategy() is
not FolderBasedAuthorizationStrategyIllegalArgumentException - when trying to delete the admin roleIllegalArgumentException - 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)
roleName - the name of the role to be deletedIllegalStateException - when Jenkins.getAuthorizationStrategy() is
not FolderBasedAuthorizationStrategyIllegalArgumentException - 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)
AgentRole from the FolderBasedAuthorizationStrategy.roleName - the name of the role to be deletedIllegalStateException - when Jenkins.getAuthorizationStrategy() is
not FolderBasedAuthorizationStrategyNoSuchElementException - when no role with name equal to roleName exists.Copyright © 2016–2019. All rights reserved.