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
Constructors Constructor Description QuickFilterEntity(@NotNull String name)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description @NotNull QuickFilterEntity
copy()
Returns independent copy of this quick filter.@NotNull String
getName()
Get the unique name of this quick filter.int
getPosition()
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
setName(@NotNull String name)
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 Detail
-
QuickFilterEntity
public QuickFilterEntity(@NotNull @NotNull String name)
-
-
Method Detail
-
copy
@NotNull public @NotNull QuickFilterEntity copy()
Description copied from interface:QuickFilter
Returns independent copy of this quick filter.- Specified by:
copy
in interfaceQuickFilter
-
getName
@NotNull public @NotNull String 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
public void setName(@NotNull @NotNull String name)
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
@NotNull public @NotNull List<QuickFilterRule> 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
public void setRules(@NotNull @NotNull List<QuickFilterRule> rules)
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
-
-