public class ActionSelector extends Object
Constructor and Description |
---|
ActionSelector(ActivityRecord ar)
Constructs a ActionSelector.
|
Modifier and Type | Method and Description |
---|---|
void |
addActorQualification(Actor actor)
Adds a search qualification for the Actor, so that the results are to be
filtered to only include Actions performed by that Actor.
|
void |
addAuditEventTypeQualification(AuditEventTypeDefinition eventDef)
Adds a search qualification for an event type.
|
void |
addAuditEventTypeQualifications(AuditEventTypeDefinition[] eventDefs)
Adds a search qualification for a set of event types.
|
void |
addEventIdQualification(long eventId,
String operator)
Adds a search qualification for an event ID along with a logical operator
(e.g. "="), so that the results are to be
filtered to include the Action whose IDs meet the qualification.
|
void |
addFreeFormQualification(String qual)
Adds a free form search qualification.
|
void |
addFreeFormQualification(String qual,
AttributeValue[] bindValues)
Adds a free form search qualification.
|
void |
clearAllSearchQualifications()
Clears all search qualifications.
|
void |
clearSortQualification()
Clears the sort qualification, forcing it to assume the default value.
|
Long |
getActionId(int pos)
Deprecated.
9.2.4: use
getActionIdAfterPosition |
Long |
getActionIdAfterPosition(int pos)
Returns Action ID on the specified "slider" position.
|
ActivityRecord |
getActivityRecord()
Gets the target ActivityRecord.
|
String |
getSearchClause()
Gets the search clause.
|
LibrarySession |
getSession()
Returns the session being used by this Selector.
|
String |
getSortClause()
Gets the sort clause.
|
Action[] |
selectActions()
Returns the entire search results as an array of Actions.
|
Action[] |
selectAllActionsAfterPosition(int pos)
Returns all Actions that were posted after the specified "slider" position.
|
AuditEvent[] |
selectAuditEvents()
Returns the entire search results as an array of the
AuditEvents that reflect each previously executed Action.
|
void |
setMaximumSelectCount(int maxCount)
Sets the maximum number of actions that will be selected.
|
void |
setSortQualification(String sortQual)
Set the sort qualification.
|
public ActionSelector(ActivityRecord ar) throws IfsException
ar
- the ActivityRecord to use as the select targetIfsException
- if the operation fails.public void clearAllSearchQualifications() throws IfsException
IfsException
- if the operation fails.public void addActorQualification(Actor actor) throws IfsException
actor
- the Actor in the search qualificationIfsException
- if the operation fails.public void addAuditEventTypeQualification(AuditEventTypeDefinition eventDef) throws IfsException
eventDef
- the event type definition to include in the
search qualificationIfsException
- if the operation fails.public void addAuditEventTypeQualifications(AuditEventTypeDefinition[] eventDefs) throws IfsException
For an Action to qualify in the search, its event operation type must match one of the event types specified. The types will be OR'd together in the search clause.
eventDefs
- the event type definitions to include in the
search qualificationIfsException
- if the operation fails.public void addEventIdQualification(long eventId, String operator) throws IfsException
eventId
- the event ID to use in the search qualificationoperator
- the operator to use in the search qualification;
one of "=", "!=", ">", ">=", "<", or "<="IfsException
- if the operation fails.public void addFreeFormQualification(String qual) throws IfsException
The qualification must be valid for selection against an event table.
qual
- the free form search qualificationIfsException
- if the operation fails.public void addFreeFormQualification(String qual, AttributeValue[] bindValues) throws IfsException
The qualification must be valid for selection against an event table.
qual
- the free form search qualificationbindValues
- the bind values associated with this qualificationIfsException
- if the operation fails.public void clearSortQualification() throws IfsException
IfsException
- if the operation fails.public void setSortQualification(String sortQual) throws IfsException
sortQual
- the sort qualificationIfsException
- if the operation fails.public void setMaximumSelectCount(int maxCount)
A value of zero indicates that there is no limit on the desired number of items.
maxCount
- maximum number of actions that will be selectedIfsException
- if the operation fails.public LibrarySession getSession()
public ActivityRecord getActivityRecord()
public String getSearchClause()
public String getSortClause()
public AuditEvent[] selectAuditEvents() throws IfsException
IfsException
- if operation fails.public Action[] selectActions() throws IfsException
IfsException
- if operation fails.public Action[] selectAllActionsAfterPosition(int pos) throws IfsException
This method ignores (and clears) any previous settings made to the search clause or sort clause.
pos
- the slider positionIfsException
- if operation fails.public Long getActionId(int pos) throws IfsException
getActionIdAfterPosition
This method ignores (and clears) any previous settings made to the search clause or sort clause.
pos
- the slider positionIfsException
- if operation fails.public Long getActionIdAfterPosition(int pos) throws IfsException
This method ignores (and clears) any previous settings made to the search clause or sort clause.
pos
- the slider positionIfsException
- if operation fails.Copyright © 2023. All rights reserved.