public class EnvValueQuery
extends OwnerQuery
Constructor and Description |
---|
EnvValueQuery(Set<String> resourceTypes, Set<String> envValueTypes, Set<Ref> refsToSearch, boolean includeOnlyModifiedResources, String searchString, boolean isCompleteMatch)
Constuctor for creating a query for finding env values that conform to a particular criteria as constituted by the parameters given.
|
Modifier and Type | Method and Description |
---|---|
Set<String> |
getEnvValueTypes() |
String |
getSearchString() |
boolean |
isCompleteMatch() |
boolean |
isIncludeOnlyModifiedResources() |
boolean |
matches(QualifiedEnvValue envValue)
Checks if the given
QualifiedEnvValue object matches the query Use the values in the QualifiedEnvValue object to check if it is a match of the query. |
public EnvValueQuery(Set<String> resourceTypes, Set<String> envValueTypes, Set<Ref> refsToSearch, boolean includeOnlyModifiedResources, String searchString, boolean isCompleteMatch)
resourceTypes
- Types of resources to consider. if null the search is performed accross all resource types.envValueTypes
- Types of environment values to consider. if null the search is performed accross all env value types.refsToSearch
- references to projects, folders or resources to consider. All project and folder references are expanded into resources that are in those projects / folders. This set can contain a mixture of projects/ folders and resources. If the value is null, the search is performed on all the resources subject to other search criteria.includeOnlyModifiedResources
- only include resources that are actually modified in the session. This flag can be useful when importing new configuration into a domain, and only the newly imported data needs to be modified.searchString
- return only env values that contain this string. A null value matches any environment value.isCompleteMatch
- whether the searchString is a complete match (equals) or a partial match (contains)public boolean matches(QualifiedEnvValue envValue)
QualifiedEnvValue
object matches the query Use the values in the QualifiedEnvValue object to check if it is a match of the query. This method doesn't take includeOnlyModifiedResources flag into account.envValue
-public boolean isIncludeOnlyModifiedResources()
public String getSearchString()
public boolean isCompleteMatch()