@PublicApi
public interface FieldScreenService
ServiceOutcome<FieldScreen> copy(FieldScreen screen, String copyName, String copyDescription, ApplicationUser loggedInUser)
screen
- screen to copycopyName
- name for the copied screencopyDescription
- description for the copied screenloggedInUser
- user performing the copy@ExperimentalApi ServiceOutcome<List<FieldScreenTab>> getAllTabs(FieldScreenId screen, FieldScreenOperationContext context)
screen
- id of screencontext
- context in which current operation is being executedServiceOutcome
containing a list of tabs, or errors in case operation being not allowed@ExperimentalApi ServiceOutcome<FieldScreenTab> addTab(FieldScreenId screen, String tabName, FieldScreenOperationContext context)
screen
- id of screentabName
- new name of a tab. Cannot be emptycontext
- context in which current operation is being executedServiceOutcome
containing freshly created tab, or errors in case of failed validation or permission checks@ExperimentalApi ServiceOutcome<FieldScreenTab> renameTab(FieldScreenTabId tab, String newName, FieldScreenOperationContext context)
tab
- id of a tab to be renamednewName
- a new name of a tab. Cannot be emptycontext
- context in which current operation is being executedServiceOutcome
containing renamed tab, or errors in case of failed validation or permission checks@ExperimentalApi ServiceResult removeTab(FieldScreenTabId tab, FieldScreenOperationContext context)
tab
- id of a tab to be removedcontext
- context in which current operation is being executedServiceResult
indicating whether operation succeeded, or errors in case of failed validation@ExperimentalApi ServiceOutcome<FieldScreenTab> moveTab(FieldScreenTabId tab, Integer position, FieldScreenOperationContext context)
tab
- id of a tab to be movedposition
- new position on the screen expressed as 0-based indexcontext
- context in which current operation is being executedServiceOutcome
containing moved tab, or errors in case of failed validation or permission checks@ExperimentalApi ServiceOutcome<List<Field>> getFieldsOnTab(FieldScreenTabId tab, FieldScreenOperationContext context)
tab
- id of a tabcontext
- context in which current operation is being executedServiceOutcome
containing ordered list of all fields, or errors in case of failed validation or permission checks@ExperimentalApi ServiceOutcome<List<OrderableField>> getAvailableFieldsForScreen(FieldScreenId screen, FieldScreenOperationContext context)
screen
- id of a screencontext
- context in which current operation is being executedServiceOutcome
containing a list of addable fields, or errors in case of failed validation or permission checks@ExperimentalApi ServiceResult removeField(FieldScreenLayoutItemId item, FieldScreenOperationContext context)
item
- id of field to be removedcontext
- context in which current operation is being executedServiceResult
indicating whether operation succeeded, or errors in case of failed validation@ExperimentalApi ServiceResult moveField(FieldScreenLayoutItemId item, MoveFieldInfo moveInfo, FieldScreenOperationContext context)
item
- id of field to be movedmoveInfo
- an MoveFieldInfo
instructing how the field should be movedcontext
- context in which current operation is being executedServiceResult
indicating whether operation succeeded, or errors in case of failed validation@ExperimentalApi ServiceOutcome<Field> addFieldToScreen(FieldScreenTabId tab, String fieldId, FieldScreenOperationContext context)
tab
- id of tabfieldId
- the field ID which is expected to be addedcontext
- context in which current operation is being executedServiceOutcome
containing newly added field, or errors in case of failed validation or permission checksCopyright © 2002-2017 Atlassian. All Rights Reserved.