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

java.lang.Object
  extended by com.atlassian.jira.plugin.webfragment.conditions.AbstractJiraCondition
All Implemented Interfaces:
com.atlassian.plugin.web.Condition
Direct Known Subclasses:
AbstractHasVersionsCondition, AbstractIssueCondition, AbstractJiraLicenseCondition, AbstractJiraPermissionCondition, CanCreateSharedObjectsCondition, ExternalPasswordManagementDisabledCondition, ExternalUserManagementDisabledCondition, HasLastSearchRequestCondition, HasLinkTypesAvailableCondition, HasSelectedProjectCondition, IsFieldHiddenCondition, IsKeyboardShortcutsEnabledCondition, LinkingEnabledCondition, NotVersionContextCondition, SubTasksEnabledCondition, TimeTrackingEnabledCondition, UserHasIssueHistoryCondition, UserIsAdminCondition, UserIsProjectAdminCondition, UserIsSysAdminCondition, UserIsTheLoggedInUserCondition, UserLoggedInCondition, VotingEnabledCondition, WatchingEnabledCondition

public abstract class AbstractJiraCondition
extends java.lang.Object
implements com.atlassian.plugin.web.Condition

Convenient abstraction for jira specific Condition's.


Constructor Summary
AbstractJiraCondition()
           
 
Method Summary
 void init(java.util.Map params)
           
 boolean shouldDisplay(java.util.Map context)
           
abstract  boolean shouldDisplay(com.opensymphony.user.User user, JiraHelper jiraHelper)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractJiraCondition

public AbstractJiraCondition()
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
Throws:
com.atlassian.plugin.PluginParseException

shouldDisplay

public boolean shouldDisplay(java.util.Map context)
Specified by:
shouldDisplay in interface com.atlassian.plugin.web.Condition

shouldDisplay

public abstract boolean shouldDisplay(com.opensymphony.user.User user,
                                      JiraHelper jiraHelper)


Copyright © 2002-2010 Atlassian. All Rights Reserved.