@Extension @ExportedBean @ParametersAreNonnullByDefault public class FolderAuthorizationStrategyManagementLink extends hudson.model.ManagementLink
| Constructor and Description |
|---|
FolderAuthorizationStrategyManagementLink() |
| Modifier and Type | Method and Description |
|---|---|
void |
doAddAgentRole(AgentRoleCreationRequest request)
Adds an
AgentRole to FolderBasedAuthorizationStrategy. |
void |
doAddFolderRole(FolderRoleCreationRequest request)
Adds a
FolderRole to FolderBasedAuthorizationStrategy. |
void |
doAddGlobalRole(GlobalRoleCreationRequest request)
Adds a
GlobalRole to FolderBasedAuthorizationStrategy. |
void |
doAssignSidToAgentRole(String roleName,
String sid)
|
void |
doAssignSidToFolderRole(String roleName,
String sid)
Assigns
sid to the folder role identified by roleName. |
void |
doAssignSidToGlobalRole(String roleName,
String sid)
Assigns
sid to the global role identified by roleName. |
void |
doDeleteAgentRole(String roleName)
Deletes an
AgentRole from the FolderBasedAuthorizationStrategy. |
void |
doDeleteFolderRole(String roleName)
Deletes a folder role.
|
void |
doDeleteGlobalRole(String roleName)
Deletes a global role.
|
net.sf.json.JSONArray |
doGetAllFolders()
Get all
AbstractFolders in the system |
void |
doRemoveSidFromAgentRole(String roleName,
String sid)
Removes
sid from the agent role identified by roleName. |
void |
doRemoveSidFromFolderRole(String roleName,
String sid)
Removes
sid from the folder role identified by roleName. |
void |
doRemoveSidFromGlobalRole(String roleName,
String sid)
Removes
sid from the global role identified by roleName. |
Set<hudson.security.Permission> |
getAgentPermissions() |
SortedSet<AgentRole> |
getAgentRoles() |
List<hudson.model.Computer> |
getAllComputers()
Get all
Computers in the system |
hudson.model.Api |
getApi()
Returns the
Api for the plugin. |
String |
getCategoryName()
Name of the category for this management link.
|
String |
getDescription() |
String |
getDisplayName() |
Set<hudson.security.Permission> |
getFolderPermissions() |
SortedSet<FolderRole> |
getFolderRoles()
Returns the
FolderRoles used by the FolderBasedAuthorizationStrategy. |
Set<hudson.security.Permission> |
getGlobalPermissions() |
SortedSet<GlobalRole> |
getGlobalRoles() |
String |
getIconFileName() |
String |
getUrlName() |
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()
public String getCategoryName()
getCategory() insteadSTATUS.@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.
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 SortedSet<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 SortedSet<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 SortedSet<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.@Restricted(value=org.kohsuke.accmod.restrictions.NoExternalUse.class)
public void doRemoveSidFromGlobalRole(@QueryParameter(required=true)
String roleName,
@QueryParameter(required=true)
String sid)
sid from the global role identified by roleName.roleName - the name of the global role from which sid will be removed.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 doRemoveSidFromFolderRole(@QueryParameter(required=true)
String roleName,
@QueryParameter(required=true)
String sid)
sid from the folder role identified by roleName.roleName - the name of the folder role from which sid will be removed.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 doRemoveSidFromAgentRole(@QueryParameter(required=true)
String roleName,
@QueryParameter(required=true)
String sid)
sid from the agent role identified by roleName.roleName - the name of the agent from which sid will be removed.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.Copyright © 2016–2020. All rights reserved.