Package com.atlassian.jira.license
Class LicenseMaintenancePredicateImpl
java.lang.Object
com.atlassian.jira.license.LicenseMaintenancePredicateImpl
- All Implemented Interfaces:
LicenseMaintenancePredicate,Predicate<LicenseDetails>
public final class LicenseMaintenancePredicateImpl
extends Object
implements LicenseMaintenancePredicate
Predicate to indicate whether or not the the passed license is within maintenance.
- Since:
- v7.0
-
Constructor Summary
ConstructorsConstructorDescriptionLicenseMaintenancePredicateImpl(com.atlassian.application.api.ApplicationManager applicationManager, BuildUtilsInfo info) -
Method Summary
Modifier and TypeMethodDescriptionbooleantest(LicenseDetails details) Checks whether the license is within the maintenance date.
-
Constructor Details
-
LicenseMaintenancePredicateImpl
@Inject public LicenseMaintenancePredicateImpl(com.atlassian.application.api.ApplicationManager applicationManager, BuildUtilsInfo info)
-
-
Method Details
-
test
Description copied from interface:LicenseMaintenancePredicateChecks whether the license is within the maintenance date. Note, this checks the application and platform build dates.- Specified by:
testin interfaceLicenseMaintenancePredicate- Specified by:
testin interfacePredicate<LicenseDetails>- Parameters:
details- the license to check- Returns:
- true if the license is within maintenance
-