|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.rhq.core.domain.criteria.GenericDriftChangeSetCriteria
public class GenericDriftChangeSetCriteria
The generic implementation of DriftChangeSetCriteria makes no assumptions about the actual drift server plugin that will service the relevant requests. It is a simple impl of the interface and is suitable for use by any component that can not assume a backend implmentation, like a GUI client. Server side implementations will use this to populate the plugin-specific implementation of the interface.
Constructor Summary | |
---|---|
GenericDriftChangeSetCriteria()
|
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()
|
PageControl |
getPageControlOverrides()
|
PageOrdering |
getSortVersion()
|
boolean |
isFetchDrifts()
|
boolean |
isStrict()
|
void |
setPageControl(PageControl pageControl)
|
void |
setStrict(boolean strict)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public GenericDriftChangeSetCriteria()
Method Detail |
---|
public void addFilterId(String filterId)
addFilterId
in interface DriftChangeSetCriteria
filterId
- The change set idpublic String getFilterId()
getFilterId
in interface DriftChangeSetCriteria
public void addFilterVersion(String filterVersion)
addFilterVersion
in interface DriftChangeSetCriteria
filterVersion
- The change set version.public String getFilterVersion()
getFilterVersion
in interface DriftChangeSetCriteria
public void addFilterStartVersion(String filterStartVersion)
DriftChangeSetCriteria
addFilterStartVersion
in interface DriftChangeSetCriteria
filterStartVersion
- The starting version of the change set(s). This should be
inclusive.public String getFilterStartVersion()
getFilterStartVersion
in interface DriftChangeSetCriteria
public void addFilterEndVersion(String filterEndVersion)
DriftChangeSetCriteria
addFilterEndVersion
in interface DriftChangeSetCriteria
filterEndVersion
- The ending version of the change set(s). This should be
inclusive.public String getFilterEndVersion()
getFilterEndVersion
in interface DriftChangeSetCriteria
public void addFilterCreatedAfter(Long filterCreatedAfter)
DriftChangeSetCriteria
addFilterCreatedAfter
in interface DriftChangeSetCriteria
filterCreatedAfter
- The starting time of the range. This should be inclusive.public Long getFilterCreatedAfter()
getFilterCreatedAfter
in interface DriftChangeSetCriteria
public void addFilterCreatedBefore(Long filterCreatedBefore)
DriftChangeSetCriteria
addFilterCreatedBefore
in interface DriftChangeSetCriteria
filterCreatedBefore
- The ending time of the range. This should be inclusive.public Long getFilterCreatedBefore()
getFilterCreatedBefore
in interface DriftChangeSetCriteria
public void addFilterResourceId(Integer filterResourceId)
addFilterResourceId
in interface DriftChangeSetCriteria
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.public Integer getFilterResourceId()
getFilterResourceId
in interface DriftChangeSetCriteria
public void addFilterDriftDefinitionId(Integer filterDriftDefId)
addFilterDriftDefinitionId
in interface DriftChangeSetCriteria
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.public Integer getFilterDriftDefinitionId()
getFilterDriftDefinitionId
in interface DriftChangeSetCriteria
public void addFilterCategory(DriftChangeSetCategory filterCategory)
DriftChangeSetCriteria
DriftChangeSetCategory.DRIFT
which means that the query results
should only include delta change sets.
addFilterCategory
in interface DriftChangeSetCriteria
filterCategory
- The change set type filterpublic DriftChangeSetCategory getFilterCategory()
getFilterCategory
in interface DriftChangeSetCriteria
public void addFilterDriftCategories(DriftCategory... filterDriftCategories)
DriftChangeSetCriteria
addFilterDriftCategories
in interface DriftChangeSetCriteria
filterDriftCategories
- Drift type or categories on which to filter.DriftCategory
public List<DriftCategory> getFilterDriftCategories()
getFilterDriftCategories
in interface DriftChangeSetCriteria
DriftCategory
filters or an empty list if not set.public void addFilterDriftPath(String filterDriftPath)
DriftChangeSetCriteria
Drift
with a path that
contains the specified substring.
addFilterDriftPath
in interface DriftChangeSetCriteria
filterDriftPath
- A path substring on which to filterpublic String getFilterDriftPath()
getFilterDriftPath
in interface DriftChangeSetCriteria
public void addFilterDriftDirectory(String filterDriftDirectory)
DriftChangeSetCriteria
Drift
with a directory that
IS CASE SENSITIVE EQUAL TO the specified string. All substring matching should use the
DriftChangeSetCriteria.addFilterDriftPath(String)
. Setting this filter non-null will force
BaseCriteria.setStrict(boolean)
to true.
addFilterDriftDirectory
in interface DriftChangeSetCriteria
filterDriftDirectory
- A directory substring on which to filterpublic String getFilterDriftDirectory()
getFilterDriftDirectory
in interface DriftChangeSetCriteria
public void fetchDrifts(boolean fetchDrifts)
fetchDrifts
in interface DriftChangeSetCriteria
fetchDrifts
- set to true if the drifts that make up the change set should be
loaded and returned with the change set.public boolean isFetchDrifts()
isFetchDrifts
in interface DriftChangeSetCriteria
public void addSortVersion(PageOrdering sortVersion)
DriftChangeSetCriteria
addSortVersion
in interface DriftChangeSetCriteria
sortVersion
- Specifies whether the sort is ascending or descendingpublic PageOrdering getSortVersion()
getSortVersion
in interface DriftChangeSetCriteria
public PageControl getPageControlOverrides()
getPageControlOverrides
in interface BaseCriteria
public void setPageControl(PageControl pageControl)
setPageControl
in interface BaseCriteria
public void setStrict(boolean strict)
setStrict
in interface BaseCriteria
public boolean isStrict()
isStrict
in interface BaseCriteria
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |