com.atlassian.jira.bc.customfield
Class DefaultCustomFieldService
java.lang.Object
com.atlassian.jira.bc.customfield.DefaultCustomFieldService
- All Implemented Interfaces:
- CustomFieldService
public class DefaultCustomFieldService
- extends java.lang.Object
- implements CustomFieldService
- Since:
- v3.13
Method Summary |
void |
validateDelete(JiraServiceContext jiraServiceContext,
java.lang.Long customFieldId)
Validates that the custom field with the provided id can be deleted. |
void |
validateUpdate(JiraServiceContext jiraServiceContext,
java.lang.Long customFieldId,
java.lang.String name,
java.lang.String description,
java.lang.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 |
DefaultCustomFieldService
public DefaultCustomFieldService(GlobalPermissionManager permissionManager,
CustomFieldManager customFieldManager,
PermissionSchemeManager permissionSchemeManager,
IssueSecuritySchemeManager issueSecuritySchemeManager)
validateDelete
public void validateDelete(JiraServiceContext jiraServiceContext,
java.lang.Long customFieldId)
- Description copied from interface:
CustomFieldService
- Validates that the custom field with the provided id can be deleted. This means we check whether
or not the custom field is used in any permission or issue level security schemes. This method will also
check that the custom field with the given id exists. The user performing this operation needs to have
global admin permission.
- Specified by:
validateDelete
in interface CustomFieldService
- Parameters:
jiraServiceContext
- 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.
validateUpdate
public void validateUpdate(JiraServiceContext jiraServiceContext,
java.lang.Long customFieldId,
java.lang.String name,
java.lang.String description,
java.lang.String searcherKey)
- Description copied from interface:
CustomFieldService
- Validates that the custom field with the provided id can be updated. This means we check whether
or not the custom field is used in any permission or issue level security schemes if the custom field's
searcher is being set to null. This method will also check that the custom field with the given id exists
and that all its attributes are valid. The user performing this operation needs to have global admin permission.
- Specified by:
validateUpdate
in interface CustomFieldService
- Parameters:
jiraServiceContext
- 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
Copyright © 2002-2011 Atlassian. All Rights Reserved.