|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.buildforge.services.client.dbo.FilterPattern
public class FilterPattern
FilterPatterns tie a specific regular expression pattern to an
action (like warning or failing a Step) and a notification (like
emailing the dev team if the pattern matches). These are child
objects of Filters
and do not have a proper life
outside the scope of a containing parent object.
Field Summary | |
---|---|
static java.lang.Class<FilterPattern> |
CLASS
|
Constructor Summary | |
---|---|
FilterPattern(APIClientConnection conn,
Filter newParent)
Defines a new FilterPattern. |
Method Summary | |
---|---|
FilterPattern |
clone()
|
void |
delete()
Removes this FilterPattern from both its parent Filter and from the database, if the parent Filter already exists in the database |
FilterPatternDBO.Action |
getAction()
Returns the Action associated with this FilterPattern. |
int |
getFilterId()
Returns the unique identifier of the parent Filter |
int |
getFilterOrdinal()
Returns the ordinal of this FilterPattern |
int |
getNotificationLevel()
Returns the access group to notify when this filter pattern is triggered. |
java.lang.String |
getPattern()
Returns the pattern associated with this FilterPattern. |
void |
setAction(FilterPatternDBO.Action action)
Sets the Action associated with this FilterPattern. |
void |
setNotificationLevel(int notificationLevel)
Sets the access group to notify when this filter pattern is triggered. |
void |
setPattern(java.lang.String pattern)
Sets the pattern associated with this FilterPattern. |
java.lang.String |
toString()
|
FilterPattern |
update()
Commits changes to this FilterPattern to the database |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final java.lang.Class<FilterPattern> CLASS
Constructor Detail |
---|
public FilterPattern(APIClientConnection conn, Filter newParent)
create
method is invoked (and this FilterPattern
has been added to that parent).
conn
- newParent
- Method Detail |
---|
public FilterPattern update() throws java.io.IOException, ServiceException
java.io.IOException
ServiceException
- If the FilterPattern does not already exist in the databasepublic void delete() throws java.io.IOException, ServiceException
java.io.IOException
ServiceException
public FilterPatternDBO.Action getAction()
FilterPatternDBO.Action
for details.
public int getFilterId()
public int getFilterOrdinal()
public java.lang.String getPattern()
public int getNotificationLevel()
public void setAction(FilterPatternDBO.Action action)
FilterPatternDBO.Action
for details.
action
- public void setPattern(java.lang.String pattern)
pattern
- public void setNotificationLevel(int notificationLevel)
notificationLevel
- public java.lang.String toString()
toString
in class java.lang.Object
public FilterPattern clone()
clone
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |