Class ShortcutsResource
java.lang.Object
com.atlassian.jira.projects.shortcuts.ShortcutsResource
@Consumes("application/json")
@Produces("application/json")
@Path("project/{projectKey}/shortcut")
public class ShortcutsResource
extends Object
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic class -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Function<ErrorCollection, jakarta.ws.rs.core.Response> static final Function<ProjectShortcut, ShortcutsResource.ProjectShortcutBean> -
Constructor Summary
ConstructorsConstructorDescriptionShortcutsResource(ProjectService projectService, ShortcutsService shortcutsService, JiraAuthenticationContext jiraAuthenticationContext) -
Method Summary
Modifier and TypeMethodDescriptionbeanToShortcut(io.atlassian.fugue.Either<jakarta.ws.rs.core.Response, Project> project) jakarta.ws.rs.core.Responsecreate(String projectKey, ShortcutsResource.CreateProjectShortcutBean projectShortcutBean) jakarta.ws.rs.core.Responsejakarta.ws.rs.core.Responsejakarta.ws.rs.core.Responsejakarta.ws.rs.core.Responseupdate(String projectKey, Integer id, ShortcutsResource.CreateProjectShortcutBean bean)
-
Field Details
-
SHORTCUT_TO_BEAN
public static final Function<ProjectShortcut,ShortcutsResource.ProjectShortcutBean> SHORTCUT_TO_BEAN -
ERROR_COLLECTION_TO_RESPONSE
public static final Function<ErrorCollection,jakarta.ws.rs.core.Response> ERROR_COLLECTION_TO_RESPONSE
-
-
Constructor Details
-
ShortcutsResource
@Inject public ShortcutsResource(ProjectService projectService, ShortcutsService shortcutsService, JiraAuthenticationContext jiraAuthenticationContext)
-
-
Method Details
-
getAll
-
create
@POST public jakarta.ws.rs.core.Response create(@PathParam("projectKey") String projectKey, ShortcutsResource.CreateProjectShortcutBean projectShortcutBean) -
get
-
update
@PUT @Path("/{id}") public jakarta.ws.rs.core.Response update(@PathParam("projectKey") String projectKey, @PathParam("id") Integer id, ShortcutsResource.CreateProjectShortcutBean bean) -
delete
-
beanToShortcut
public Function<ShortcutsResource.CreateProjectShortcutBean,ProjectShortcut> beanToShortcut(io.atlassian.fugue.Either<jakarta.ws.rs.core.Response, Project> project)
-