|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface DriftChangeSetCriteria
This is the API for criteria based searching on DriftChangeSet
.
Criteria based queries are used extensively throughout RHQ. To maintain a consistent querying approach, drift server plugins need to querying based on this API. The API is written in a way to support different plugin implementations as easily as possible.
Method Summary | |
---|---|
void |
addFilterCategory(DriftChangeSetCategory filterCategory)
Allows for filtering on change set type. |
void |
addFilterCreatedAfter(Long filterCreatedAfter)
Allows for searching change sets by timestamp range where the timestamp corresponds to the creation time of the change set. |
void |
addFilterCreatedBefore(Long filterCreatedBefore)
Allows for searching change sets by timestamp range where the timestamp corresponds to the creation time of the change set. |
void |
addFilterDriftCategories(DriftCategory... filterDriftCategories)
Allows for filtering on the type of drift contained in the change sets. |
void |
addFilterDriftDefinitionId(Integer filterDriftDefId)
|
void |
addFilterDriftDirectory(String filterDriftDirectory)
Allows for filtering on a specific directory. |
void |
addFilterDriftPath(String filterDriftPath)
Allows for filtering on a specific path. |
void |
addFilterEndVersion(String filterEndVersion)
Allows for searching for change sets by version range. |
void |
addFilterId(String filterId)
|
void |
addFilterResourceId(Integer filterResourceId)
|
void |
addFilterStartVersion(String filterStartVersion)
Allows for searching for change sets by version range. |
void |
addFilterVersion(String filterVersion)
|
void |
addSortVersion(PageOrdering sortVersion)
Allows for sorting on change set version |
void |
fetchDrifts(boolean fetchDrifts)
|
DriftChangeSetCategory |
getFilterCategory()
|
Long |
getFilterCreatedAfter()
|
Long |
getFilterCreatedBefore()
|
List<DriftCategory> |
getFilterDriftCategories()
|
Integer |
getFilterDriftDefinitionId()
|
String |
getFilterDriftDirectory()
|
String |
getFilterDriftPath()
|
String |
getFilterEndVersion()
|
String |
getFilterId()
|
Integer |
getFilterResourceId()
|
String |
getFilterStartVersion()
|
String |
getFilterVersion()
|
PageOrdering |
getSortVersion()
|
boolean |
isFetchDrifts()
|
Methods inherited from interface org.rhq.core.domain.criteria.BaseCriteria |
---|
getPageControlOverrides, isStrict, setPageControl, setStrict |
Method Detail |
---|
void addFilterId(String filterId)
filterId
- The change set idString getFilterId()
void addFilterVersion(String filterVersion)
filterVersion
- The change set version.String getFilterVersion()
void addFilterStartVersion(String filterStartVersion)
filterStartVersion
- The starting version of the change set(s). This should be
inclusive.String getFilterStartVersion()
void addFilterEndVersion(String filterEndVersion)
filterEndVersion
- The ending version of the change set(s). This should be
inclusive.String getFilterEndVersion()
void addFilterCreatedAfter(Long filterCreatedAfter)
filterCreatedAfter
- The starting time of the range. This should be inclusive.Long getFilterCreatedAfter()
void addFilterCreatedBefore(Long filterCreatedBefore)
filterCreatedBefore
- The ending time of the range. This should be inclusive.Long getFilterCreatedBefore()
void addFilterResourceId(Integer filterResourceId)
filterResourceId
- The id which uniquely identifies the resource to which the
change set(s) belong. Note that persistence of resources is managed by the RHQ core
server so it assumed that no other resource-specific information other than the id
is maintained/tracked by drift server plugin implementations.Integer getFilterResourceId()
void addFilterDriftDefinitionId(Integer filterDriftDefId)
filterDriftDefId
- The id which uniquely identifies the drift definition to
which the change set(s) belong. Note that persistence of resources is managed by the
RHQ core server so it assumed that no other resource-specific information other than
the id is maintained/tracked by drift server plugin implementations.Integer getFilterDriftDefinitionId()
void addFilterCategory(DriftChangeSetCategory filterCategory)
DriftChangeSetCategory.DRIFT
which means that the query results
should only include delta change sets.
filterCategory
- The change set type filterDriftChangeSetCategory getFilterCategory()
void addFilterDriftCategories(DriftCategory... filterDriftCategories)
filterDriftCategories
- Drift type or categories on which to filter.DriftCategory
List<DriftCategory> getFilterDriftCategories()
DriftCategory
filters or an empty list if not set.void addFilterDriftDirectory(String filterDriftDirectory)
Drift
with a directory that
IS CASE SENSITIVE EQUAL TO the specified string. All substring matching should use the
addFilterDriftPath(String)
. Setting this filter non-null will force
BaseCriteria.setStrict(boolean)
to true.
filterDriftDirectory
- A directory substring on which to filterString getFilterDriftDirectory()
void addFilterDriftPath(String filterDriftPath)
Drift
with a path that
contains the specified substring.
filterDriftPath
- A path substring on which to filterString getFilterDriftPath()
void fetchDrifts(boolean fetchDrifts)
fetchDrifts
- set to true if the drifts that make up the change set should be
loaded and returned with the change set.boolean isFetchDrifts()
void addSortVersion(PageOrdering sortVersion)
sortVersion
- Specifies whether the sort is ascending or descendingPageOrdering getSortVersion()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |