com.atlassian.jira.license
Class LicenseDetailsFactoryImpl
java.lang.Object
com.atlassian.jira.license.LicenseDetailsFactoryImpl
- All Implemented Interfaces:
- LicenseDetailsFactory
public class LicenseDetailsFactoryImpl
- extends Object
- implements LicenseDetailsFactory
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LicenseDetailsFactoryImpl
public LicenseDetailsFactoryImpl(ApplicationProperties applicationProperties,
ExternalLinkUtil externalLinkUtil,
BuildUtilsInfo buildUtilsInfo,
I18nHelper.BeanFactory i18Factory,
DateTimeFormatter dateTimeFormatter,
com.atlassian.extras.decoder.api.LicenseDecoder decoder,
com.atlassian.extras.api.LicenseManager licenseManager,
ClusterManager clusterManager,
com.atlassian.core.util.Clock clock)
getLicense
@Nonnull
public LicenseDetails getLicense(@Nullable
String licenseString)
- Description copied from interface:
LicenseDetailsFactory
- Converts an encrypted license string to a license details. This method never returns null, instead it returns a
placeholder license details if the license string cannot be converted to a valid license. This placeholder is
typically a
NullLicenseDetails
.
- Specified by:
getLicense
in interface LicenseDetailsFactory
- Parameters:
licenseString
- the (usually encrypted) license string
- Returns:
- the corresponding license details
isDecodeable
public boolean isDecodeable(String licenseString)
- Description copied from interface:
LicenseDetailsFactory
- Determines whether a license string can be decoded by this factory. If this returns true, then getLicense is
guaranteed t return a valid non-placeholder LicenseDetails object.
- Specified by:
isDecodeable
in interface LicenseDetailsFactory
- Parameters:
licenseString
- the (usually encrypted) license string to test
- Returns:
- true if the license string can be interpreted by this factory, false otherwise
Copyright © 2002-2014 Atlassian. All Rights Reserved.