public class LicenseValidator extends Object
Constructor and Description |
---|
LicenseValidator() |
Modifier and Type | Method and Description |
---|---|
static void |
validateJobsLimit(TopLevelPlan plan,
com.atlassian.bamboo.specs.api.model.plan.PlanProperties planProperties,
int allowedNumberOfJobs,
int jobsCount) |
public static void validateJobsLimit(@Nullable TopLevelPlan plan, com.atlassian.bamboo.specs.api.model.plan.PlanProperties planProperties, int allowedNumberOfJobs, int jobsCount) throws IllegalArgumentException
plan
- existing plan in DBplanProperties
- import propertiesallowedNumberOfJobs
- license limit for jobsjobsCount
- current count of jobs in DBIllegalArgumentException
- when validation failsCopyright © 2021 Atlassian Software Systems Pty Ltd. All rights reserved.