com.atlassian.jira.web.action.filter
Class FilterOperationsBean
java.lang.Object
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
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.