Class License.PluginLicense

    • Constructor Summary

      Constructors 
      Constructor Description
      PluginLicense​(java.lang.String key, java.lang.String name, int trialVersion, int trialLength)  
    • Constructor Detail

      • PluginLicense

        public PluginLicense​(java.lang.String key,
                             java.lang.String name,
                             int trialVersion,
                             int trialLength)
        Parameters:
        key - Unique key identifying this license. Biomatters must supply this. Must not be null or zero length
        name - A user-friendly name for the plugin/feature which can be displayed to the user when asking for a license key etc. must not be null or zero length
        trialVersion - Version number which is used to determine if a user should be elegible for a new trial when this plugin is updated. This number is recorded when the user starts a trial of the plugin then when the plugin is updated the user is offered a new trial if the new value is greater than the recorded one. The actual number is not important. Must not be Integer.MIN_VALUE, this is reserved
        trialLength - Length of trial that this license allows in days, 0 means no trial
    • Method Detail

      • getKey

        public java.lang.String getKey()
        Returns:
        a unique key identifying this license.
      • getName

        public java.lang.String getName()
        Returns:
        A user-friendly name for the plugin or feature which can be displayed to the user when asking for a license key etc.
      • getTrialVersion

        public int getTrialVersion()
        Returns:
        Version number which is used to determine if a user should be elegible for a new trial when this plugin is updated.
      • getTrialLength

        public int getTrialLength()
        Returns:
        Length of trial that this license allows in days, 0 means no trial
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object