Package jetbrains.buildServer.serverSide
Interface BuildTypeTemplateUsagesCollector
-
- All Known Implementing Classes:
BuildTypeTemplateUsagesCollectorImpl
public interface BuildTypeTemplateUsagesCollector
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description int
getNumberOfUsages(BuildTypeTemplateEx template, boolean includingAsDefaultTemplate)
Returns number of build configurations attached to a template.int
getNumberOfUsagesAsDefaultTemplate(BuildTypeTemplateEx template)
Returns a number of projects in which the given template is explicitly configured as default template.int
getNumberOfUsagesAsEnforcedSettings(BuildTypeTemplateEx template)
Returns a number of projects in which the given template is explicitly used to define enforced settings.Collection<SBuildType>
getUsages(BuildTypeTemplateEx template, boolean includingAsDefaultTemplate)
Returns a collection of build configurations attached to a template.Collection<SProject>
getUsagesAsDefaultTemplate(BuildTypeTemplateEx template)
Returns a collection of projects in which the given template is explicitly configured as default template.Collection<SProject>
getUsagesAsEnforcedSettings(BuildTypeTemplateEx template)
Returns a collection of projects in which the given template is explicitly used to define enforced settings.
-
-
-
Method Detail
-
getUsages
Collection<SBuildType> getUsages(BuildTypeTemplateEx template, boolean includingAsDefaultTemplate)
Returns a collection of build configurations attached to a template.- Parameters:
template
- templateincludingAsDefaultTemplate
- if true the result will include build configurations using it as a default template in their projects- Returns:
- see above
-
getNumberOfUsages
int getNumberOfUsages(BuildTypeTemplateEx template, boolean includingAsDefaultTemplate)
Returns number of build configurations attached to a template.- Parameters:
template
- templateincludingAsDefaultTemplate
- if true the result will include build configurations using it as a default template in their projects- Returns:
- see above
-
getUsagesAsDefaultTemplate
Collection<SProject> getUsagesAsDefaultTemplate(BuildTypeTemplateEx template)
Returns a collection of projects in which the given template is explicitly configured as default template.- Parameters:
template
- template- Returns:
- see above
-
getNumberOfUsagesAsDefaultTemplate
int getNumberOfUsagesAsDefaultTemplate(BuildTypeTemplateEx template)
Returns a number of projects in which the given template is explicitly configured as default template.- Parameters:
template
- template- Returns:
- see above
-
getUsagesAsEnforcedSettings
Collection<SProject> getUsagesAsEnforcedSettings(BuildTypeTemplateEx template)
Returns a collection of projects in which the given template is explicitly used to define enforced settings.- Parameters:
template
- template- Returns:
- see above
-
getNumberOfUsagesAsEnforcedSettings
int getNumberOfUsagesAsEnforcedSettings(BuildTypeTemplateEx template)
Returns a number of projects in which the given template is explicitly used to define enforced settings.- Parameters:
template
- template- Returns:
- see above
-
-