Package com.atlassian.bamboo.quickfilter
Class QuickFilterEntity
java.lang.Object
com.atlassian.core.bean.EntityObject
com.atlassian.bamboo.quickfilter.QuickFilterEntity
- All Implemented Interfaces:
BambooIdProvider
,BambooObject
,QuickFilter
,NameProvider
,Cloneable
@Entity
public class QuickFilterEntity
extends com.atlassian.core.bean.EntityObject
implements QuickFilter
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription@NotNull QuickFilterEntity
copy()
Returns independent copy of this quick filter.@NotNull String
getName()
Get the unique name of this quick filter.int
Get the position of this quick filter on the quick filters list.@NotNull List<QuickFilterRule>
getRules()
Returns a list of rules for this quick filter.void
Set quick filter's unique name.void
setPosition
(int position) Sets the position of this quick filter on the quick filters list.void
setRules
(@NotNull List<QuickFilterRule> rules) Set the rules for this quick filter.Methods inherited from class com.atlassian.core.bean.EntityObject
clone, equals, getCreationDate, getCurrentDate, getId, getLastModificationDate, hashCode, setClock, setCreationDate, setId, setLastModificationDate
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.atlassian.bamboo.core.BambooIdProvider
getId
Methods inherited from interface com.atlassian.bamboo.core.BambooObject
setId
-
Constructor Details
-
QuickFilterEntity
-
-
Method Details
-
copy
Description copied from interface:QuickFilter
Returns independent copy of this quick filter.- Specified by:
copy
in interfaceQuickFilter
-
getName
Description copied from interface:QuickFilter
Get the unique name of this quick filter. The name is also filter's display name.- Specified by:
getName
in interfaceNameProvider
- Specified by:
getName
in interfaceQuickFilter
- Returns:
- quick filter name
-
setName
Description copied from interface:QuickFilter
Set quick filter's unique name. The name is also filter's display name- Specified by:
setName
in interfaceQuickFilter
- Parameters:
name
- new name of this quick filter
-
getPosition
public int getPosition()Description copied from interface:QuickFilter
Get the position of this quick filter on the quick filters list. This value indicates the order of displaying filters to users. First quick filter should have position of 1.- Specified by:
getPosition
in interfaceQuickFilter
- Returns:
- quick filter position on the list
-
setPosition
public void setPosition(int position) Description copied from interface:QuickFilter
Sets the position of this quick filter on the quick filters list. This value indicates the order of displaying filters to users. First quick filter should have position of 1.- Specified by:
setPosition
in interfaceQuickFilter
- Parameters:
position
- new quick filter position index
-
getRules
Description copied from interface:QuickFilter
Returns a list of rules for this quick filter. Rules define whether a quick filter will or will not match a plan.- Specified by:
getRules
in interfaceQuickFilter
- Returns:
- quick filter rules
-
setRules
Description copied from interface:QuickFilter
Set the rules for this quick filter. Rules define whether a quick filter will or will not match a plan.- Specified by:
setRules
in interfaceQuickFilter
- Parameters:
rules
- quick filter rules
-