@Internal @ParametersAreNonnullByDefault @ReturnValuesAreNonnullByDefault public interface FieldConfigSchemeService
Modifier and Type | Method and Description |
---|---|
ServiceOutcome<FieldConfigScheme> |
createFieldConfigScheme(ApplicationUser user,
FieldConfigSchemeParameters parameters)
Creates new field configuration scheme.
|
ServiceResult |
deleteFieldConfigScheme(ApplicationUser loggedInUser,
String fieldId,
long configSchemeId)
Deletes field configuration scheme,
|
ServiceOutcome<List<Project>> |
getAvailableProjectsForCreate(ApplicationUser loggedInUser,
String fieldId)
Gets list of available projects that can be used for new field context for passed
fieldId . |
ServiceOutcome<List<Project>> |
getAvailableProjectsForUpdate(ApplicationUser loggedInUser,
String fieldId,
long configSchemeId)
Gets list of available projects that can be used for updating existing field context for passed
fieldId and configSchemeId . |
ServiceOutcome<FieldConfigScheme> |
getFieldConfigScheme(ApplicationUser user,
String fieldId,
long configSchemeId) |
ServiceOutcome<List<FieldConfigScheme>> |
getFieldConfigSchemesForField(ApplicationUser user,
String fieldId) |
ServiceOutcome<Boolean> |
isGlobalAvailableForCreate(ApplicationUser loggedInUser,
String fieldId)
Checks if new field context for passed
fieldId can be configured as "global" context. |
ServiceOutcome<Boolean> |
isGlobalAvailableForUpdate(ApplicationUser loggedInUser,
String fieldId,
long configSchemeId)
Checks if existing field context for passed
fieldId and configSchemeId can be configured as "global" context. |
ServiceOutcome<FieldConfigScheme> |
updateFieldConfigScheme(ApplicationUser user,
FieldConfigSchemeParameters parameters)
Updates field configuration scheme,
|
ServiceOutcome<FieldConfigScheme> getFieldConfigScheme(@Nonnull ApplicationUser user, String fieldId, long configSchemeId)
user
- User performing operation.fieldId
- Field id.configSchemeId
- Id of field config scheme to get.ServiceOutcome<List<FieldConfigScheme>> getFieldConfigSchemesForField(@Nonnull ApplicationUser user, String fieldId)
user
- User performing operation.fieldId
- Field idServiceOutcome<FieldConfigScheme> createFieldConfigScheme(@Nonnull ApplicationUser user, FieldConfigSchemeParameters parameters)
user
- User performing operation.parameters
- Data of field config scheme to create.ServiceOutcome<FieldConfigScheme> updateFieldConfigScheme(@Nonnull ApplicationUser user, FieldConfigSchemeParameters parameters)
user
- User performing operation.parameters
- Target data of field config scheme to update.ServiceResult deleteFieldConfigScheme(@Nonnull ApplicationUser loggedInUser, String fieldId, long configSchemeId)
loggedInUser
- User performing operation.fieldId
- Field id of field associated with configuration scheme to deleteconfigSchemeId
- Id of configuration scheme to deleteServiceOutcome<List<Project>> getAvailableProjectsForUpdate(@Nonnull ApplicationUser loggedInUser, String fieldId, long configSchemeId)
fieldId
and configSchemeId
.loggedInUser
- User performing operation.fieldId
- Field idconfigSchemeId
- fieldId
and configSchemeId
.ServiceOutcome<Boolean> isGlobalAvailableForUpdate(@Nonnull ApplicationUser loggedInUser, String fieldId, long configSchemeId)
fieldId
and configSchemeId
can be configured as "global" context.
Global context for update operation should be available when
either no global context is configured for any field config scheme associated with field
or updated field context scheme is configured as global scheme.loggedInUser
- User performing operation.fieldId
- Field idconfigSchemeId
- fieldId
and configSchemeId
can be configured as "global" context, false otherwise.ServiceOutcome<List<Project>> getAvailableProjectsForCreate(@Nonnull ApplicationUser loggedInUser, String fieldId)
fieldId
.loggedInUser
- User performing operation.fieldId
- Field idfieldId
.ServiceOutcome<Boolean> isGlobalAvailableForCreate(@Nonnull ApplicationUser loggedInUser, String fieldId)
fieldId
can be configured as "global" context.
Global context for create is available when no global context is configured for any field config scheme associated with field.loggedInUser
- User performing operation.fieldId
- Field idfieldId
can be configured as "global" context, false otherwise.Copyright © 2002-2024 Atlassian. All Rights Reserved.