Class LicenceConstants


  • public class LicenceConstants
    extends Object
    This class contains editions for a licence as well as the features that can be licensed (and are not part of the Basic Edition. It also provides the standard features for the other editions.
    • Constructor Detail

      • LicenceConstants

        public LicenceConstants()
    • Method Detail

      • isLicensed

        public static boolean isLicensed​(String feature,
                                         LicenceInformation licInf)
        Gets whether the designated feature is included in the designated licence.
        Parameters:
        feature - The feature which to check for whether it is licensed.
        licInf - The licence including features (or not).
        Returns:
        Whether the designated feature is included in the designated licence.
      • getLicensedFeatures

        protected static final Collection<String> getLicensedFeatures​(LicenceInformation licInf)
        Gets all features for the designated licence, this includes the default features of the corresponding edition as well as the features that are additionally licensed.
        Parameters:
        licInf - The licence for which to get all included features.
        Returns:
        All features included in the designated licence or null if the licence has neither a valid edition nor additional features.
      • getDefaultFeaturesFor

        protected static final Collection<String> getDefaultFeaturesFor​(String edition)
        Gets the default features for the designated edition. If the designated string is not a valid edition, null will be returned.
        Parameters:
        edition - The edition for which to get the default features. If this is not a valid edition, null will be returned.
        Returns:
        The default features for the designated edition. If the designated string is not a valid edition, null will be returned.