Class LicenceInfo


  • public class LicenceInfo
    extends java.lang.Object
    This class provides detailed information about a licence term. A LicenceInfo contains a status (INFO, WARNING, ERROR), the current sytem value, the allowed licence value and a readable message.
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      protected static class  LicenceInfo.Status  
    • Constructor Summary

      Constructors 
      Constructor Description
      LicenceInfo​(LicenceInfo.Status st, java.lang.String cValue, java.lang.String aValue, java.lang.String mes)
      Only method to create a LicenceInfo object.
    • Constructor Detail

      • LicenceInfo

        public LicenceInfo​(LicenceInfo.Status st,
                           java.lang.String cValue,
                           java.lang.String aValue,
                           java.lang.String mes)
        Only method to create a LicenceInfo object. Is used by AccessManager.checkLicence()
        Parameters:
        st - the status, can be INFO, WARNING, ERROR
        cValue - the current value in the system
        aValue - the allowed value by the licence
        mes - the message which is more significant
    • Method Detail

      • toString

        public java.lang.String toString()
        returns all information of this object as a string.
        Overrides:
        toString in class java.lang.Object
      • getAllowedValue

        public java.lang.String getAllowedValue()
      • getCurrentValue

        public java.lang.String getCurrentValue()
      • getMessage

        public java.lang.String getMessage()
      • getStatus

        public java.lang.String getStatus()