com.atlassian.jira.web.bean
Class FieldVisibilityBean

java.lang.Object
  extended bycom.atlassian.jira.web.bean.FieldVisibilityBean

public class FieldVisibilityBean
extends Object


Field Summary
static String ALL_ISSUE_TYPES
           
 
Constructor Summary
FieldVisibilityBean()
           
 
Method Summary
 boolean isCustomFieldHidden(Long projectId, Long customFieldId, String issueTypeId)
          Checks if the custom field is hidden in the project with id of projectId.
 boolean isFieldHidden(Long projectId, String fieldId, Long issueTypeId)
           
 boolean isFieldHidden(Long projectId, String fieldId, String issueTypeId)
          Checks if specified field is hidden in at least one scheme associated with the specified project and issue type
 boolean isFieldHidden(String fieldId, org.ofbiz.core.entity.GenericValue issue)
          Checks if the field is hidden for the issue's current field layout scheme
 boolean isFieldHidden(User remoteUser, String id)
          Checks if the field is hidden or visible across all the projects that the user can see (has the Permissions.BROWSE permission).
 boolean isFieldHiddenInAllSchemes(Long projectId, String fieldId)
           
 boolean isFieldHiddenInAllSchemes(Long projectId, String fieldId, List issueTypes)
          Returns TRUE if specified field is hidden under the following scenarios:

1: Project specified - is field hidden in all schemes associated with the specified project.

 boolean isFieldHiddenInAllSchemes(String fieldId, SearchContext context, User user)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ALL_ISSUE_TYPES

public static final String ALL_ISSUE_TYPES
See Also:
Constant Field Values
Constructor Detail

FieldVisibilityBean

public FieldVisibilityBean()
Method Detail

isFieldHidden

public boolean isFieldHidden(User remoteUser,
                             String id)
                      throws FieldLayoutStorageException
Checks if the field is hidden or visible across all the projects that the user can see (has the Permissions.BROWSE permission).

Parameters:
id - id of the FieldConfiguration
Throws:
FieldLayoutStorageException

isFieldHidden

public boolean isFieldHidden(String fieldId,
                             org.ofbiz.core.entity.GenericValue issue)
Checks if the field is hidden for the issue's current field layout scheme

Parameters:
fieldId - the field id of the field in question
issue -

isCustomFieldHidden

public boolean isCustomFieldHidden(Long projectId,
                                   Long customFieldId,
                                   String issueTypeId)
Checks if the custom field is hidden in the project with id of projectId.

Parameters:
projectId -
customFieldId - the data store id of the custom field

isFieldHidden

public boolean isFieldHidden(Long projectId,
                             String fieldId,
                             Long issueTypeId)

isFieldHidden

public boolean isFieldHidden(Long projectId,
                             String fieldId,
                             String issueTypeId)
Checks if specified field is hidden in at least one scheme associated with the specified project and issue type

Parameters:
projectId -
fieldId -

isFieldHiddenInAllSchemes

public boolean isFieldHiddenInAllSchemes(Long projectId,
                                         String fieldId,
                                         List issueTypes)
Returns TRUE if specified field is hidden under the following scenarios:

1: Project specified - is field hidden in all schemes associated with the specified project.

2: Project and Issue Type(s) specified - is field hidden in all schemes associated with the specified project for the issue types specified. Caching is abstracted to next level - all calls to getFieldLayout(...) are cached


isFieldHiddenInAllSchemes

public boolean isFieldHiddenInAllSchemes(Long projectId,
                                         String fieldId)

isFieldHiddenInAllSchemes

public boolean isFieldHiddenInAllSchemes(String fieldId,
                                         SearchContext context,
                                         User user)


Copyright © 2002-2007 Atlassian. All Rights Reserved.