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 FieldVisibilityBean.ALL_ISSUE_TYPES if it is not set


    Field Summary
    protected  String field
               
    protected  String issuetype
               
     
    Constructor Summary
    IsFieldHiddenCondition()
               
     
    Method Summary
     void init(Map params)
               
     boolean shouldDisplay(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 String field

    issuetype

    protected String issuetype
    Constructor Detail

    IsFieldHiddenCondition

    public IsFieldHiddenCondition()
    Method Detail

    init

    public void init(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(User user,
                                 JiraHelper jiraHelper)
    Specified by:
    shouldDisplay in class AbstractJiraCondition


    Copyright © 2002-2008 Atlassian. All Rights Reserved.