Interface FieldConfigSchemeService
- All Known Implementing Classes:
FieldConfigSchemeServiceImpl
@Internal
@ParametersAreNonnullByDefault
@ReturnValuesAreNonnullByDefault
public interface FieldConfigSchemeService
- Since:
- 8.16
-
Method Summary
Modifier and TypeMethodDescriptioncreateFieldConfigScheme(ApplicationUser user, FieldConfigSchemeParameters parameters) Creates new field configuration scheme.deleteFieldConfigScheme(ApplicationUser loggedInUser, String fieldId, long configSchemeId) Deletes field configuration scheme,getAvailableProjectsForCreate(ApplicationUser loggedInUser, String fieldId) Gets list of available projects that can be used for new field context for passedfieldId.getAvailableProjectsForUpdate(ApplicationUser loggedInUser, String fieldId, long configSchemeId) Gets list of available projects that can be used for updating existing field context for passedfieldIdandconfigSchemeId.getFieldConfigScheme(ApplicationUser user, String fieldId, long configSchemeId) getFieldConfigSchemesForField(ApplicationUser user, String fieldId) isGlobalAvailableForCreate(ApplicationUser loggedInUser, String fieldId) Checks if new field context for passedfieldIdcan be configured as "global" context.isGlobalAvailableForUpdate(ApplicationUser loggedInUser, String fieldId, long configSchemeId) Checks if existing field context for passedfieldIdandconfigSchemeIdcan be configured as "global" context.updateFieldConfigScheme(ApplicationUser user, FieldConfigSchemeParameters parameters) Updates field configuration scheme,
-
Method Details
-
getFieldConfigScheme
ServiceOutcome<FieldConfigScheme> getFieldConfigScheme(@Nonnull ApplicationUser user, String fieldId, long configSchemeId) - Parameters:
user- User performing operation.fieldId- Field id.configSchemeId- Id of field config scheme to get.- Returns:
- Service outcome containing data of field config scheme.
-
getFieldConfigSchemesForField
ServiceOutcome<List<FieldConfigScheme>> getFieldConfigSchemesForField(@Nonnull ApplicationUser user, String fieldId) - Parameters:
user- User performing operation.fieldId- Field id- Returns:
- Service outcome containing field config schemes for field.
-
createFieldConfigScheme
ServiceOutcome<FieldConfigScheme> createFieldConfigScheme(@Nonnull ApplicationUser user, FieldConfigSchemeParameters parameters) Creates new field configuration scheme.- Parameters:
user- User performing operation.parameters- Data of field config scheme to create.- Returns:
- service outcome containing data of created field config scheme.
-
updateFieldConfigScheme
ServiceOutcome<FieldConfigScheme> updateFieldConfigScheme(@Nonnull ApplicationUser user, FieldConfigSchemeParameters parameters) Updates field configuration scheme,- Parameters:
user- User performing operation.parameters- Target data of field config scheme to update.- Returns:
- service outcome containing data of updated field config scheme.
-
deleteFieldConfigScheme
ServiceResult deleteFieldConfigScheme(@Nonnull ApplicationUser loggedInUser, String fieldId, long configSchemeId) Deletes field configuration scheme,- Parameters:
loggedInUser- User performing operation.fieldId- Field id of field associated with configuration scheme to deleteconfigSchemeId- Id of configuration scheme to delete- Returns:
- outcome of operation.
-
getAvailableProjectsForUpdate
ServiceOutcome<List<Project>> getAvailableProjectsForUpdate(@Nonnull ApplicationUser loggedInUser, String fieldId, long configSchemeId) Gets list of available projects that can be used for updating existing field context for passedfieldIdandconfigSchemeId.- Parameters:
loggedInUser- User performing operation.fieldId- Field idconfigSchemeId-- Returns:
- list of available projects that can be used for updating existing field context for passed
fieldIdandconfigSchemeId.
-
isGlobalAvailableForUpdate
ServiceOutcome<Boolean> isGlobalAvailableForUpdate(@Nonnull ApplicationUser loggedInUser, String fieldId, long configSchemeId) Checks if existing field context for passedfieldIdandconfigSchemeIdcan 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.- Parameters:
loggedInUser- User performing operation.fieldId- Field idconfigSchemeId-- Returns:
- true if existing field context for passed
fieldIdandconfigSchemeIdcan be configured as "global" context, false otherwise.
-
getAvailableProjectsForCreate
ServiceOutcome<List<Project>> getAvailableProjectsForCreate(@Nonnull ApplicationUser loggedInUser, String fieldId) Gets list of available projects that can be used for new field context for passedfieldId.- Parameters:
loggedInUser- User performing operation.fieldId- Field id- Returns:
- list of available projects that can be used for new field context for passed
fieldId.
-
isGlobalAvailableForCreate
ServiceOutcome<Boolean> isGlobalAvailableForCreate(@Nonnull ApplicationUser loggedInUser, String fieldId) Checks if new field context for passedfieldIdcan 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.- Parameters:
loggedInUser- User performing operation.fieldId- Field id- Returns:
- true if new field context for passed
fieldIdcan be configured as "global" context, false otherwise.
-