Class OrganizationImpl
java.lang.Object
io.jenkins.blueocean.rest.model.Resource
io.jenkins.blueocean.rest.model.BlueOrganization
io.jenkins.blueocean.rest.factory.organization.AbstractOrganization
io.jenkins.blueocean.service.embedded.rest.OrganizationImpl
- All Implemented Interfaces:
io.jenkins.blueocean.rest.Reachable,io.jenkins.blueocean.Routable
public class OrganizationImpl
extends io.jenkins.blueocean.rest.factory.organization.AbstractOrganization
BlueOrganization implementation for the embedded use.- Author:
- Vivek Pandey, Kohsuke Kawaguchi
-
Field Summary
Fields inherited from class io.jenkins.blueocean.rest.model.BlueOrganization
DISPLAY_NAME, NAME, PIPELINES -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddelete()getDynamic(String route) Give plugins chance to handle this API route.getGroup()io.jenkins.blueocean.rest.hal.LinkgetLink()getName()In embedded mode, there's only one organizationio.jenkins.blueocean.rest.model.BluePipelineContainerio.jenkins.blueocean.rest.model.BlueUsergetUser()io.jenkins.blueocean.rest.model.BlueUserContainergetUsers()In the embedded case, there's only one organization and everyone belongs there, so we can just return that singleton.Methods inherited from class io.jenkins.blueocean.rest.model.BlueOrganization
getUrlNameMethods inherited from class io.jenkins.blueocean.rest.model.Resource
getLinks, getState
-
Constructor Details
-
OrganizationImpl
-
-
Method Details
-
getName
In embedded mode, there's only one organization- Specified by:
getNamein classio.jenkins.blueocean.rest.model.BlueOrganization
-
getGroup
- Specified by:
getGroupin classio.jenkins.blueocean.rest.factory.organization.AbstractOrganization
-
getDisplayName
- Specified by:
getDisplayNamein classio.jenkins.blueocean.rest.model.BlueOrganization
-
getPipelines
public io.jenkins.blueocean.rest.model.BluePipelineContainer getPipelines()- Specified by:
getPipelinesin classio.jenkins.blueocean.rest.model.BlueOrganization
-
delete
@WebMethod(name="") @DELETE public void delete() -
getUsers
public io.jenkins.blueocean.rest.model.BlueUserContainer getUsers()In the embedded case, there's only one organization and everyone belongs there, so we can just return that singleton.- Specified by:
getUsersin classio.jenkins.blueocean.rest.model.BlueOrganization
-
getUser
public io.jenkins.blueocean.rest.model.BlueUser getUser()- Specified by:
getUserin classio.jenkins.blueocean.rest.model.BlueOrganization
-
getLink
public io.jenkins.blueocean.rest.hal.Link getLink() -
getDynamic
Give plugins chance to handle this API route.- Parameters:
route- URL path that needs handling. e.g. for requested url /rest/organizations/:id/xyz, route param value will be 'xyz'- Returns:
- stapler object that can handle give route. Could be null
-