|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.atlassian.jira.bc.customfield.DefaultCustomFieldService
public class DefaultCustomFieldService
| Constructor Summary | |
|---|---|
DefaultCustomFieldService(GlobalPermissionManager permissionManager,
CustomFieldManager customFieldManager,
PermissionSchemeManager permissionSchemeManager,
IssueSecuritySchemeManager issueSecuritySchemeManager,
CustomFieldValidator customFieldValidator,
I18nHelper.BeanFactory i18nFactory,
JiraContextTreeManager treeManager,
CustomFieldContextConfigHelper customFieldContextConfigHelper,
ReindexMessageManager reindexMessageManager,
ConstantsManager constantManager,
FieldScreenManager fieldScreenManager,
LocaleManager localeManager,
TranslationManager translationManager)
|
|
| Method Summary | |
|---|---|
ServiceOutcomeImpl<List<Long>> |
addToScreenTabs(com.atlassian.crowd.embedded.api.User user,
Long customFieldId,
List<Long> tabIds)
Adds a custom field with the given id to selected tabs. |
ServiceOutcome<CustomField> |
create(CreateValidationResult createValidationResult)
Creates a custom field using a CreateValidationResult as parameter. |
ServiceOutcomeImpl<List<Long>> |
removeFromScreenTabs(com.atlassian.crowd.embedded.api.User user,
Long customFieldId,
List<Long> tabIds)
Removes a custom field with the given id from selected tabs. |
void |
updateTranslation(JiraServiceContext jiraServiceContext,
Long customFieldId,
String name,
String description,
String localeString)
Sets the current a translation for a custom field. |
ServiceOutcome<CreateValidationResult> |
validateCreate(com.atlassian.crowd.embedded.api.User user,
CustomFieldDefinition customFieldDefinition)
Validates that the custom field with the provided data can be created. |
void |
validateDelete(JiraServiceContext jiraServiceContext,
Long customFieldId)
Validates that the custom field with the provided id can be deleted. |
void |
validateTranslation(JiraServiceContext jiraServiceContext,
Long customFieldId,
String name,
String description,
String locale)
Validates that the parameters to set a translation for a custom field are valid |
void |
validateUpdate(JiraServiceContext jiraServiceContext,
Long customFieldId,
String name,
String description,
String searcherKey)
Validates that the custom field with the provided id can be updated. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultCustomFieldService(GlobalPermissionManager permissionManager,
CustomFieldManager customFieldManager,
PermissionSchemeManager permissionSchemeManager,
IssueSecuritySchemeManager issueSecuritySchemeManager,
CustomFieldValidator customFieldValidator,
I18nHelper.BeanFactory i18nFactory,
JiraContextTreeManager treeManager,
CustomFieldContextConfigHelper customFieldContextConfigHelper,
ReindexMessageManager reindexMessageManager,
ConstantsManager constantManager,
FieldScreenManager fieldScreenManager,
LocaleManager localeManager,
TranslationManager translationManager)
| Method Detail |
|---|
public void validateDelete(JiraServiceContext jiraServiceContext,
Long customFieldId)
CustomFieldService
validateDelete in interface CustomFieldServicejiraServiceContext - containing the User who is performing the change and
the ErrorCollection that will contain any errors
in calling the methodcustomFieldId - the custom field id of the custom field about to be deleted.
public void validateUpdate(JiraServiceContext jiraServiceContext,
Long customFieldId,
String name,
String description,
String searcherKey)
CustomFieldService
validateUpdate in interface CustomFieldServicejiraServiceContext - containing the User who is performing the change and
the ErrorCollection that will contain any errors
in calling the methodcustomFieldId - the custom field id of the customfield about to be updatedname - the updated name of the customfielddescription - the description of the customfieldsearcherKey - the customfield searcher that should be used
public void validateTranslation(JiraServiceContext jiraServiceContext,
Long customFieldId,
String name,
String description,
String locale)
CustomFieldService
validateTranslation in interface CustomFieldServicejiraServiceContext - containing the User who is performing the change and
the ErrorCollection that will contain any errors
in calling the methodcustomFieldId - the custom field id of the customfield about to be updatedname - the updated name of the customfielddescription - the description of the customfieldlocale - the locale of the translation
public void updateTranslation(JiraServiceContext jiraServiceContext,
Long customFieldId,
String name,
String description,
String localeString)
CustomFieldService
updateTranslation in interface CustomFieldServicejiraServiceContext - containing the User who is performing the change and
the ErrorCollection that will contain any errors
in calling the methodcustomFieldId - the custom field id of the customfield about to be updatedname - the updated name of the customfielddescription - the description of the customfieldlocaleString - the locale of the translation
public ServiceOutcome<CreateValidationResult> validateCreate(com.atlassian.crowd.embedded.api.User user,
CustomFieldDefinition customFieldDefinition)
CustomFieldServiceCustomFieldDefinition. The result of this operation is
CreateValidationResult which after validation will contain all necessery data to create
a custom field (including user)
validateCreate in interface CustomFieldServiceuser - - the user who is performing the validationcustomFieldDefinition - - custom field data
public ServiceOutcome<CustomField> create(CreateValidationResult createValidationResult)
CustomFieldServiceCreateValidationResult as parameter.
CreateValidationResult is an output of createValidation method which should be executed before executing create.
create in interface CustomFieldServicecreateValidationResult - - data needed to create custom field, containing user.
public ServiceOutcomeImpl<List<Long>> addToScreenTabs(com.atlassian.crowd.embedded.api.User user,
Long customFieldId,
List<Long> tabIds)
CustomFieldService
addToScreenTabs in interface CustomFieldServiceuser - user who performs the changecustomFieldId - id of custom fieldtabIds - list of tab's id's to which we want to add custom field
public ServiceOutcomeImpl<List<Long>> removeFromScreenTabs(com.atlassian.crowd.embedded.api.User user,
Long customFieldId,
List<Long> tabIds)
CustomFieldService
removeFromScreenTabs in interface CustomFieldServiceuser - user who performs the changecustomFieldId - id of custom fieldtabIds - list of tab's ids from which we want to remove custom field
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||