public interface BuildFilterService
| Modifier and Type | Method and Description |
|---|---|
void |
copyToBranch(ID sourceBranchId,
ID targetBranchId)
Copies all the filters from one branch to another
|
BuildFilterProviderData<?> |
defaultFilterProviderData()
Gets the default filter to use when none is defined.
|
Ack |
deleteFilter(ID branchId,
java.lang.String name)
Deletes a filter for a branch.
|
java.util.Collection<BuildFilterForm> |
getBuildFilterForms(ID branchId)
Gets the list of forms to create new filters
|
<T> BuildFilterProviderData<T> |
getBuildFilterProviderData(java.lang.String filterType,
com.fasterxml.jackson.databind.JsonNode parameters)
Gets a build filter provider for the given type.
|
<T> BuildFilterProviderData<T> |
getBuildFilterProviderData(java.lang.String filterType,
T parameters)
Gets a build filter provider for the given type.
|
java.util.Collection<BuildFilterResource<?>> |
getBuildFilters(ID branchId)
Gets the list of all existing filters.
|
BuildFilterForm |
getEditionForm(ID branchId,
java.lang.String name)
Gets the form to edit an existing filter.
|
BuildFilterProviderData<?> |
lastPromotedBuildsFilterData()
Builds a last promotion filter
|
Ack |
saveFilter(ID branchId,
boolean shared,
java.lang.String name,
java.lang.String type,
com.fasterxml.jackson.databind.JsonNode parameters)
Saves a filter for a branch.
|
StandardFilterProviderDataBuilder |
standardFilterProviderData(int count)
Builds a standard build filter
|
BuildFilterProviderData<?> |
standardFilterProviderData(com.fasterxml.jackson.databind.JsonNode node)
Builds a standard build filter given its parameters as a JSON node
|
BuildFilterProviderData<?> defaultFilterProviderData()
BuildFilterProviderData<?> lastPromotedBuildsFilterData()
StandardFilterProviderDataBuilder standardFilterProviderData(int count)
BuildFilterProviderData<?> standardFilterProviderData(com.fasterxml.jackson.databind.JsonNode node)
java.util.Collection<BuildFilterResource<?>> getBuildFilters(ID branchId)
branchId - Branch to get the filters forjava.util.Collection<BuildFilterForm> getBuildFilterForms(ID branchId)
branchId - Branch to get the forms for<T> BuildFilterProviderData<T> getBuildFilterProviderData(java.lang.String filterType, com.fasterxml.jackson.databind.JsonNode parameters)
filterType - Qualified type for the filterparameters - Parameters for the filterBuildFilterProviderNotFoundException - If the type cannot be resolvedBuildFilterProviderDataParsingException - If the parameters cannot be parsed<T> BuildFilterProviderData<T> getBuildFilterProviderData(java.lang.String filterType, T parameters)
filterType - Qualified type for the filterparameters - Parameters for the filterBuildFilterProviderNotFoundException - If the type cannot be resolvedBuildFilterProviderDataParsingException - If the parameters cannot be parsedBuildFilterForm getEditionForm(ID branchId, java.lang.String name) throws BuildFilterNotFoundException, BuildFilterNotLoggedException
branchId - Branch to get the form onname - name of the filter on the branchBuildFilterNotFoundException - If the filter is not definedBuildFilterNotLoggedException - If the user is not loggedAck saveFilter(ID branchId, boolean shared, java.lang.String name, java.lang.String type, com.fasterxml.jackson.databind.JsonNode parameters)
branchId - Branch to save the filter forshared - If the filter must be shared in the branch (needs specific authorisation)name - Name of the filtertype - Type of the filterparameters - Parameters for the filterAck deleteFilter(ID branchId, java.lang.String name)
branchId - Branch to save the filter forname - Name of the filter