Package com.redwood.scheduler.api.model
Interface ObjectSearch
- 
- All Superinterfaces:
- BusinessKeyObject,- JobDefinitionRelatedObject,- ObjectSearchComp,- Readable,- Root,- SchedulerEntity,- SchedulerEntityComp
 
 public interface ObjectSearch extends ObjectSearchComp, JobDefinitionRelatedObject, Readable Object Search definition. A special JobDefinition for storing and retrieving Object Search criteria.
- 
- 
Field SummaryFields Modifier and Type Field Description static StringOBJECT_TYPEString that will be returned fromSchedulerEntity.getObjectType()for "ObjectSearch" objects.static StringSEC_RANK_ALLThis rank is made of the following privileges:static StringSEC_RANK_NONEThis rank has no privileges assigned to it.static QueryObjectType<ObjectSearch>TYPEType that can be used inSchedulerSession.executeObjectQuery(QueryObjectType, String, Object...).- 
Fields inherited from interface com.redwood.scheduler.api.model.SchedulerEntityACTION_AUDIT, ACTION_EXPORT, ACTION_READ, BEHAVIOR_DEPRECATED, BEHAVIOR_NONE, BEHAVIOR_SYSTEM
 
- 
 - 
Method SummaryAll Methods Instance Methods Abstract Methods Modifier and Type Method Description ObjectSearchConditionaddCondition()Add a new condition with the appropriate label set.ObjectSearchConditioncreateObjectSearchCondition()Create a newObjectSearchConditionlinked to this object.StringgetCalculatedCombineRule()Get the value for the combine rule.ObjectSearchCombineRulegetCombineRule()Get the value for CombineRule.LonggetConditionCount()Get the number of conditionsStringgetCustomCombineRule()Get the value for CustomCombineRule.ObjectSearchConditiongetObjectSearchConditionByLabel(String label)Get the ObjectSearchCondition by ConditionIndex.RWIterable<ObjectSearchCondition>getObjectSearchConditions()Get anRWIterableover a collection ofObjectSearchConditions, the collection will be ordered by Label.ObjectSearchResultTypegetResultType()Get the value for ResultType.LonggetRowLimit()Get the value for RowLimit.ObjectSearchSortRulegetSortRule()Get the value for SortRule.StringgetTitleKey()Get the translation key for the Object Search.booleanremoveCondition(ObjectSearchCondition condition)Remove a condition from this ObjectSearch and update the labels appropriately.voidsetCombineRule(ObjectSearchCombineRule newCombineRule)Set the value for CombineRule.voidsetCustomCombineRule(String newCustomCombineRule)Set the value for CustomCombineRule.voidsetResultType(ObjectSearchResultType newResultType)Set the value for ResultType.voidsetRowLimit(Long newRowLimit)Set the value for RowLimit.voidsetSortRule(ObjectSearchSortRule newSortRule)Set the value for SortRule.- 
Methods inherited from interface com.redwood.scheduler.api.model.BusinessKeyObjectgetBusinessKey
 - 
Methods inherited from interface com.redwood.scheduler.api.model.JobDefinitionRelatedObjectgetJobDefinition, setJobDefinition
 - 
Methods inherited from interface com.redwood.scheduler.api.model.RootgetCreationTime, getLastModificationTime, getLastModifierSubject
 - 
Methods inherited from interface com.redwood.scheduler.api.model.SchedulerEntitycanPerform, createSubjectObjectPrivilegeGrant, deleteObject, getAuditTrail, getAuditTrailSize, getBehavior, getEffectiveBehavior, getErrorNameEN, getErrorNameKey, getLLPVersion, getLOV, getLOVSupport, getObjectType, getParentSchedulerEntities, getRuntime, getSubjectObjectPrivilegeGrantBySubject, getSubjectObjectPrivilegeGrants, getUniqueId, getUrl, getUrl, isCreated, isDeletable, isDeleted, isModifiable, isModified, isSelectVersioned, processRelatedObjects, processRelatedObjects, processRelatedObjects, refreshObject, resetObject, resetObject, resetValuesToDefault, selectForRead
 
- 
 
- 
- 
- 
Field Detail- 
OBJECT_TYPEstatic final String OBJECT_TYPE String that will be returned fromSchedulerEntity.getObjectType()for "ObjectSearch" objects.- See Also:
- Constant Field Values
 
 - 
TYPEstatic final QueryObjectType<ObjectSearch> TYPE Type that can be used inSchedulerSession.executeObjectQuery(QueryObjectType, String, Object...).
 - 
SEC_RANK_NONEstatic final String SEC_RANK_NONE This rank has no privileges assigned to it.- See Also:
- Constant Field Values
 
 - 
SEC_RANK_ALLstatic final String SEC_RANK_ALL This rank is made of the following privileges:- See Also:
- Constant Field Values
 
 
- 
 - 
Method Detail- 
getCombineRuleObjectSearchCombineRule getCombineRule() Get the value for CombineRule. (The rule for combining the object search conditions) This value is mandatory, and therefore will not benullif this object has been retrieved from the database.- Returns:
- the field
- Throws:
- com.redwood.scheduler.api.exception.ObjectNotAttachedToSessionException- This will be thrown if this method is called while the object is not attached to a session.
 
 - 
getCustomCombineRuleString getCustomCombineRule() Get the value for CustomCombineRule. (The custom expression for combining the object search conditions.) This value is mandatory, and therefore will not benullif this object has been retrieved from the database.- Returns:
- the field
- Throws:
- com.redwood.scheduler.api.exception.ObjectNotAttachedToSessionException- This will be thrown if this method is called while the object is not attached to a session.
 
 - 
getResultTypeObjectSearchResultType getResultType() Get the value for ResultType. (The type of result to display for the search) This value is mandatory, and therefore will not benullif this object has been retrieved from the database.- Returns:
- the field
- Throws:
- com.redwood.scheduler.api.exception.ObjectNotAttachedToSessionException- This will be thrown if this method is called while the object is not attached to a session.
 
 - 
getRowLimitLong getRowLimit() Get the value for RowLimit. (The maximum number of results to be displayed when ObjectSearchResultType is Limit)- Returns:
- the field
- Throws:
- com.redwood.scheduler.api.exception.ObjectNotAttachedToSessionException- This will be thrown if this method is called while the object is not attached to a session.
 
 - 
getSortRuleObjectSearchSortRule getSortRule() Get the value for SortRule. (The rule for sorting the search results) This value is mandatory, and therefore will not benullif this object has been retrieved from the database.- Returns:
- the field
- Throws:
- com.redwood.scheduler.api.exception.ObjectNotAttachedToSessionException- This will be thrown if this method is called while the object is not attached to a session.
 
 - 
setCombineRulevoid setCombineRule(ObjectSearchCombineRule newCombineRule) Set the value for CombineRule. (The rule for combining the object search conditions) This value is mandatory.- Parameters:
- newCombineRule- the new value for CombineRule. If this is- null, then the object cannot be persisted.
- Throws:
- com.redwood.scheduler.api.exception.ObjectNotAttachedToSessionException- This will be thrown if this method is called while the object is not attached to a session.
 
 - 
setCustomCombineRulevoid setCustomCombineRule(String newCustomCombineRule) Set the value for CustomCombineRule. (The custom expression for combining the object search conditions.) This value is mandatory.- Parameters:
- newCustomCombineRule- the new value for CustomCombineRule. If this is- null, then the object cannot be persisted.
- Throws:
- com.redwood.scheduler.api.exception.ObjectNotAttachedToSessionException- This will be thrown if this method is called while the object is not attached to a session.
 
 - 
setResultTypevoid setResultType(ObjectSearchResultType newResultType) Set the value for ResultType. (The type of result to display for the search) This value is mandatory.- Parameters:
- newResultType- the new value for ResultType. If this is- null, then the object cannot be persisted.
- Throws:
- com.redwood.scheduler.api.exception.ObjectNotAttachedToSessionException- This will be thrown if this method is called while the object is not attached to a session.
 
 - 
setRowLimitvoid setRowLimit(Long newRowLimit) Set the value for RowLimit. (The maximum number of results to be displayed when ObjectSearchResultType is Limit) This value is optional.- Parameters:
- newRowLimit- the new value for RowLimit.
- Throws:
- com.redwood.scheduler.api.exception.ObjectNotAttachedToSessionException- This will be thrown if this method is called while the object is not attached to a session.
 
 - 
setSortRulevoid setSortRule(ObjectSearchSortRule newSortRule) Set the value for SortRule. (The rule for sorting the search results) This value is mandatory.- Parameters:
- newSortRule- the new value for SortRule. If this is- null, then the object cannot be persisted.
- Throws:
- com.redwood.scheduler.api.exception.ObjectNotAttachedToSessionException- This will be thrown if this method is called while the object is not attached to a session.
 
 - 
addConditionObjectSearchCondition addCondition() Add a new condition with the appropriate label set. This should be used rather than createObjectSearchCondition as it establishes the correct labels- Returns:
- The newly created ObjectSearchCondition
 
 - 
removeConditionboolean removeCondition(ObjectSearchCondition condition) Remove a condition from this ObjectSearch and update the labels appropriately. This should be used rather than ObjectSearchCondition.deleteObject() directly as it establishes the correct labels- Parameters:
- condition- The condition to be deleted
- Returns:
- If the condition was successfully removed.
 
 - 
getConditionCountLong getConditionCount() Get the number of conditions- Returns:
- The number of conditions
 
 - 
getCalculatedCombineRuleString getCalculatedCombineRule() Get the value for the combine rule. This returns the custom combine rule if the CombineRule is set to custom, otherwise it calculates the rule for the And and Or cases.- Returns:
- The calculated combine rule
 
 - 
getTitleKeyString getTitleKey() Get the translation key for the Object Search.- Returns:
- The title translation key for the Object Search
 
 - 
getObjectSearchConditionsRWIterable<ObjectSearchCondition> getObjectSearchConditions() Get anRWIterableover a collection ofObjectSearchConditions, the collection will be ordered by Label. If the collection is empty, an empty iterator will be returned, that is, this method will never returnnull. The conditions for an Object Search.- Specified by:
- getObjectSearchConditionsin interface- ObjectSearchComp
- Returns:
- An RWIterableover a collection ofObjectSearchConditionobjects , the collection will be ordered by Label.
 
 - 
createObjectSearchConditionObjectSearchCondition createObjectSearchCondition() Create a newObjectSearchConditionlinked to this object.- Returns:
- a new ObjectSearchCondition.
 
 - 
getObjectSearchConditionByLabelObjectSearchCondition getObjectSearchConditionByLabel(String label) Get the ObjectSearchCondition by ConditionIndex.- Parameters:
- label-
- Returns:
- the ObjectSearchCondition, or nullif it could not be found
 
 
- 
 
-