@PublicApi
public interface FieldScreenService
| Modifier and Type | Method and Description |
|---|---|
ServiceOutcome<Field> |
addFieldToScreen(FieldScreenTabId tab,
String fieldId,
FieldScreenOperationContext context)
Adds a new field to the given tab
|
ServiceOutcome<FieldScreenTab> |
addTab(FieldScreenId screen,
String tabName,
FieldScreenOperationContext context)
Creates and adds new tab for screen
|
ServiceOutcome<FieldScreen> |
copy(FieldScreen screen,
String copyName,
String copyDescription,
ApplicationUser loggedInUser)
Creates a copy of the passed field screen assigning the passed name and description.
|
ServiceOutcome<List<FieldScreenTab>> |
getAllTabs(FieldScreenId screen,
FieldScreenOperationContext context)
Returns a list of all tabs for the given screen
|
ServiceOutcome<List<OrderableField>> |
getAvailableFieldsForScreen(FieldScreenId screen,
FieldScreenOperationContext context)
Gets all fields, that can be added to given screen.
|
ServiceOutcome<List<Field>> |
getFieldsOnTab(FieldScreenTabId tab,
FieldScreenOperationContext context)
Gets all fields on given tab
|
ServiceOutcome<List<FieldWithShowWhenEmpty>> |
getFieldsWithShowWhenEmpty(FieldScreenTabId tabId,
FieldScreenOperationContext context)
Get all fields for a
FieldScreenTab with information if field should be shown when it has no value
Can only be used within DC license or dev mode |
ServiceOutcome<Boolean> |
getIsFieldScreenDeletable(FieldScreenId screen,
FieldScreenOperationContext context)
Gets information whether field screen can be safely deleted
|
ServiceResult |
moveField(FieldScreenLayoutItemId item,
MoveFieldInfo moveInfo,
FieldScreenOperationContext context)
Moves field along the tab, according to instructed details
|
ServiceOutcome<FieldScreenTab> |
moveTab(FieldScreenTabId tab,
Integer position,
FieldScreenOperationContext context)
Moves tab position on given screen
|
ServiceResult |
removeField(FieldScreenLayoutItemId item,
FieldScreenOperationContext context)
Removes a field from the tab and effectively from the screen
|
ServiceResult |
removeTab(FieldScreenTabId tab,
FieldScreenOperationContext context)
Removes tab from screen
|
ServiceOutcome<FieldScreenTab> |
renameTab(FieldScreenTabId tab,
String newName,
FieldScreenOperationContext context)
Renames already existing tab on given screen
|
ServiceResult |
updateShowWhenEmpty(FieldScreenLayoutItemId itemId,
FieldScreenOperationContext context,
boolean showWhenEmpty)
Update showWhenEmpty indicator of given
FieldScreenLayoutItemId
Can only be used within DC license or dev mode |
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 checks@ExperimentalApi ServiceOutcome<Boolean> getIsFieldScreenDeletable(FieldScreenId screen, FieldScreenOperationContext context)
screen - id of a screencontext - context in which current operation is being executedServiceOutcome containing boolean denoting if screen can be deleted or not@ExperimentalApi ServiceOutcome<List<FieldWithShowWhenEmpty>> getFieldsWithShowWhenEmpty(FieldScreenTabId tabId, FieldScreenOperationContext context)
FieldScreenTab with information if field should be shown when it has no value
Can only be used within DC license or dev modetabId - id of a tabcontext - context in which current operation is being executedFieldWithShowWhenEmpty@ExperimentalApi ServiceResult updateShowWhenEmpty(FieldScreenLayoutItemId itemId, FieldScreenOperationContext context, boolean showWhenEmpty)
FieldScreenLayoutItemId
Can only be used within DC license or dev modeitemId - id of field screen layout itemcontext - context in which current operation is being executedshowWhenEmpty - new value for indicatorServiceResult indicating whether operation succeeded, or errors in case of failed validationCopyright © 2002-2024 Atlassian. All Rights Reserved.