com.atlassian.jira.web.action.filter
Class FilterOperationsBean

java.lang.Object
  extended by com.atlassian.jira.web.action.filter.FilterOperationsBean

public final class FilterOperationsBean
extends Object

Encapsulates the logic of what filter operations are available in the UI.

Since:
v4.0

Method Summary
static FilterOperationsBean create(SearchRequest searchRequest, boolean validFilter, String username, boolean isAdvancedScreen)
          Factory method that uses common inputs to build a sensible default state.
 boolean equals(Object o)
           
 int hashCode()
           
 boolean hasOperation()
           
 boolean isShowEdit()
           
 boolean isShowInvalid()
           
 boolean isShowReload()
           
 boolean isShowSave()
           
 boolean isShowSaveAs()
           
 boolean isShowSaveNew()
           
 boolean isShowViewSubscriptions()
           
 void setShowEdit(boolean showEdit)
           
 void setShowInvalid(boolean showInvalid)
           
 void setShowReload(boolean showReload)
           
 void setShowSave(boolean showSave)
           
 void setShowSaveAs(boolean showSaveAs)
           
 void setShowSaveNew(boolean showSaveNew)
           
 void setShowViewSubscriptions(boolean showViewSubscriptions)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Method Detail

isShowInvalid

public boolean isShowInvalid()

isShowEdit

public boolean isShowEdit()

setShowEdit

public void setShowEdit(boolean showEdit)

isShowSave

public boolean isShowSave()

setShowSave

public void setShowSave(boolean showSave)

isShowSaveNew

public boolean isShowSaveNew()

setShowSaveNew

public void setShowSaveNew(boolean showSaveNew)

isShowSaveAs

public boolean isShowSaveAs()

setShowInvalid

public void setShowInvalid(boolean showInvalid)

setShowSaveAs

public void setShowSaveAs(boolean showSaveAs)

isShowReload

public boolean isShowReload()

setShowReload

public void setShowReload(boolean showReload)

isShowViewSubscriptions

public boolean isShowViewSubscriptions()

setShowViewSubscriptions

public void setShowViewSubscriptions(boolean showViewSubscriptions)

hasOperation

public boolean hasOperation()

toString

public String toString()
Overrides:
toString in class Object

equals

public boolean equals(Object o)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

create

public static FilterOperationsBean create(SearchRequest searchRequest,
                                          boolean validFilter,
                                          String username,
                                          boolean isAdvancedScreen)
Factory method that uses common inputs to build a sensible default state.

Parameters:
searchRequest - the search request as provided by the action.
validFilter - true only if the passed filter is valid for JIRA's current state.
username - the name of the remote user or null if there is none.
isAdvancedScreen - true if the operations are to be displayed on the advanced screen
Returns:
a FilterOperationsBean representing the correct state of the operations panel for filters.


Copyright © 2002-2012 Atlassian. All Rights Reserved.