com.atlassian.jira.plugin.webfragment.conditions
Class IsFieldHiddenCondition

java.lang.Object
  extended by com.atlassian.jira.plugin.webfragment.conditions.AbstractJiraCondition
      extended by com.atlassian.jira.plugin.webfragment.conditions.IsFieldHiddenCondition
All Implemented Interfaces:
com.atlassian.plugin.web.Condition

public class IsFieldHiddenCondition
extends AbstractJiraCondition

Checks if the specified field is hidden in at least one scheme associated with the selected project and issuetype

field and issuetype is initialised in init(java.util.Map params).

  • field is required
  • issuetype will default to FieldVisibilityManager.ALL_ISSUE_TYPES if it is not set


    Field Summary
    protected  java.lang.String field
               
    protected  java.lang.String issuetype
               
     
    Constructor Summary
    IsFieldHiddenCondition(FieldVisibilityManager fieldVisibilityManager)
               
     
    Method Summary
     void init(java.util.Map params)
               
     boolean shouldDisplay(com.opensymphony.user.User user, JiraHelper jiraHelper)
               
     
    Methods inherited from class com.atlassian.jira.plugin.webfragment.conditions.AbstractJiraCondition
    shouldDisplay
     
    Methods inherited from class java.lang.Object
    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
     

    Field Detail

    field

    protected java.lang.String field

    issuetype

    protected java.lang.String issuetype
    Constructor Detail

    IsFieldHiddenCondition

    public IsFieldHiddenCondition(FieldVisibilityManager fieldVisibilityManager)
    Method Detail

    init

    public void init(java.util.Map params)
              throws com.atlassian.plugin.PluginParseException
    Specified by:
    init in interface com.atlassian.plugin.web.Condition
    Overrides:
    init in class AbstractJiraCondition
    Throws:
    com.atlassian.plugin.PluginParseException

    shouldDisplay

    public boolean shouldDisplay(com.opensymphony.user.User user,
                                 JiraHelper jiraHelper)
    Specified by:
    shouldDisplay in class AbstractJiraCondition


    Copyright © 2002-2010 Atlassian. All Rights Reserved.