com.atlassian.jira.issue.fields
Class CustomFieldScopeImpl

java.lang.Object
  extended by com.atlassian.jira.issue.fields.CustomFieldScopeImpl
All Implemented Interfaces:
CustomFieldScope

public class CustomFieldScopeImpl
extends Object
implements CustomFieldScope

Represents the scope of a given custom field. The scope is defined as the projects/issue types for which a custom field is visible.


Method Summary
 boolean isIncludedIn(IssueContext issueContext)
          Checks whether the custom field corresponding to this scope is in the scope of the given IssueContext.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

isIncludedIn

public boolean isIncludedIn(IssueContext issueContext)
Description copied from interface: CustomFieldScope
Checks whether the custom field corresponding to this scope is in the scope of the given IssueContext.

If the project on the IssueContext is null, then it is treated as a wildcard. If the issueTypeId on the IssueContext is null or an empty list, then it is treated as a wildcard.

Specified by:
isIncludedIn in interface CustomFieldScope
Parameters:
issueContext - The issue context.
Returns:
Whether the custom field is in the scope of the given IssueContext.


Copyright © 2002-2014 Atlassian. All Rights Reserved.