Class SearchParameters
java.lang.Object
com.xebialabs.deployit.plugin.api.services.SearchParameters
Declarative query parameters for searching the JCR repository for Configuration Items.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaddProperty
(String property, String value) Search for the value of a property.getAfter()
int
getDepth()
getId()
getName()
long
getPage()
long
getType()
boolean
boolean
void
Sets the search parameters to search for CIs modified after the given date.setAncestor
(String ancestor) The desired ancestor of the CI.void
Sets the search parameters to search for CIs modified before the given date.setDepth
(int depth) Set the depth of the search.setExactIdSearch
(boolean exactIdSearch) Set to true for exact id search, default is false.setExactNameSearch
(boolean isExactNameSearch) Set to true for exact name search, default is false.A search pattern for the id.A search pattern for the name.setPage
(long page) Sets the page to be retrieved.The desired parent of the CI.setResultsPerPage
(long nrOfResults) Sets the number of results to be retrieved per page.The desired type of the CI.toString()
-
Constructor Details
-
SearchParameters
public SearchParameters()
-
-
Method Details
-
setType
The desired type of the CI. -
addProperty
Search for the value of a property. This may be a property of type String or Enum. Atype
is required to be able to use this filter. -
setParent
The desired parent of the CI. -
setAncestor
The desired ancestor of the CI. -
setName
A search pattern for the name. This is like the SQL "LIKE" pattern: the character '%' represents any string of zero or more characters, and the character '_' (underscore) represents any single character. -
setId
A search pattern for the id. This is like the SQL "LIKE" pattern: the character '%' represents any string of zero or more characters, and the character '_' (underscore) represents any single character. -
setBefore
Sets the search parameters to search for CIs modified before the given date. -
setAfter
Sets the search parameters to search for CIs modified after the given date. -
setPage
Sets the page to be retrieved. -
setResultsPerPage
Sets the number of results to be retrieved per page. -
setDepth
Set the depth of the search. By default it searches the full depth of the tree. -
setExactNameSearch
Set to true for exact name search, default is false. -
setExactIdSearch
Set to true for exact id search, default is false. -
getType
- Returns:
- The CI type.
-
getParent
- Returns:
- The CI parent id.
-
getAncestor
- Returns:
- The CI ancestor id.
-
getName
- Returns:
- The CI name.
-
getId
- Returns:
- The CI id.
-
getProperties
-
getBefore
- Returns:
- The specified date for CIs modified before this date.
-
getAfter
- Returns:
- The specified date for CIs modified after this date.
-
getPage
public long getPage()- Returns:
- The retrieved page.
-
getResultsPerPage
public long getResultsPerPage()- Returns:
- The number of results retrieved per page.
-
getDepth
public int getDepth()- Returns:
- The depth of the search. Default is full depth.
-
isExactNameSearch
public boolean isExactNameSearch()- Returns:
- true for exactNameSearch
-
isExactIdSearch
public boolean isExactIdSearch()- Returns:
- true for exactIdSearch
-
toString
-