public class ScreensResource extends Object
Constructor and Description |
---|
ScreensResource(FieldScreenManager fieldScreenManager,
FieldManager fieldManager,
JiraAuthenticationContext jiraAuthenticationContext,
PermissionManager permissionManager,
CustomFieldService customFieldService,
ProjectManager projectManager,
FieldScreenService fieldScreenService,
com.atlassian.event.api.EventPublisher eventPublisher,
AccessDisablingHelper accessDisablingHelper) |
Modifier and Type | Method and Description |
---|---|
javax.ws.rs.core.Response |
addField(Long screenId,
Long tabId,
AddFieldBean field)
Adds field to the given tab.
|
javax.ws.rs.core.Response |
addFieldToDefaultScreen(String fieldId)
Adds field or custom field to the default tab
|
javax.ws.rs.core.Response |
addTab(Long screenId,
ScreenableTabBean tab)
Creates tab for given screen
|
javax.ws.rs.core.Response |
deleteTab(Long screenId,
Long tabId)
Deletes tab to give screen
|
javax.ws.rs.core.Response |
getAllFields(Long screenId,
Long tabId,
String projectKey)
Gets all fields for a given tab
|
javax.ws.rs.core.Response |
getAllScreens(String requestedWith,
String startAt,
String maxResults,
String expand,
String searchQuery)
Gets available field screens
|
javax.ws.rs.core.Response |
getAllTabs(Long screenId,
String projectKey)
Returns a list of all tabs for the given screen
|
javax.ws.rs.core.Response |
getFieldsToAdd(Long screenId)
Gets available fields for screen.
|
javax.ws.rs.core.Response |
moveField(Long screenId,
Long tabId,
String id,
MoveFieldBean moveField)
Moves field on the given tab
|
javax.ws.rs.core.Response |
moveTab(Long screenId,
Long tabId,
Integer pos)
Moves tab position
|
javax.ws.rs.core.Response |
removeField(Long screenId,
Long tabId,
String id)
Removes field from given tab
|
javax.ws.rs.core.Response |
renameTab(Long screenId,
Long tabId,
ScreenableTabBean tab)
Renames tab on given screen
|
public ScreensResource(FieldScreenManager fieldScreenManager, FieldManager fieldManager, JiraAuthenticationContext jiraAuthenticationContext, PermissionManager permissionManager, CustomFieldService customFieldService, ProjectManager projectManager, FieldScreenService fieldScreenService, com.atlassian.event.api.EventPublisher eventPublisher, AccessDisablingHelper accessDisablingHelper)
public javax.ws.rs.core.Response getAllTabs(Long screenId, String projectKey)
screenId
- id of screenprojectKey
- the key of the project; this parameter is optionalpublic javax.ws.rs.core.Response addTab(Long screenId, ScreenableTabBean tab)
screenId
- id of screenpublic javax.ws.rs.core.Response renameTab(Long screenId, Long tabId, ScreenableTabBean tab)
screenId
- id of screenpublic javax.ws.rs.core.Response deleteTab(Long screenId, Long tabId)
screenId
- id of screentabId
- id of tabpublic javax.ws.rs.core.Response moveTab(Long screenId, Long tabId, Integer pos)
screenId
- id of screentabId
- id of tabpos
- position of tabpublic javax.ws.rs.core.Response getAllFields(Long screenId, Long tabId, String projectKey)
screenId
- id of screentabId
- id of tabprojectKey
- the key of the project; this parameter is optionalpublic javax.ws.rs.core.Response getFieldsToAdd(Long screenId)
screenId
- id of screenpublic javax.ws.rs.core.Response removeField(Long screenId, Long tabId, String id)
screenId
- id of screentabId
- id of tabpublic javax.ws.rs.core.Response moveField(Long screenId, Long tabId, String id, MoveFieldBean moveField)
screenId
- id of screentabId
- id of tabpublic javax.ws.rs.core.Response addField(Long screenId, Long tabId, AddFieldBean field)
screenId
- id of screentabId
- id of tabpublic javax.ws.rs.core.Response addFieldToDefaultScreen(String fieldId)
fieldId
- id of field / custom fieldpublic javax.ws.rs.core.Response getAllScreens(@HeaderParam(value="X-Requested-With") String requestedWith, String startAt, String maxResults, String expand, String searchQuery)
startAt
- offset from which the response startsmaxResults
- amount of field screens to returnCopyright © 2002-2022 Atlassian. All Rights Reserved.