Package de.hybris.platform.jalo.security
Class LicenceInfo
- java.lang.Object
-
- de.hybris.platform.jalo.security.LicenceInfo
-
public class LicenceInfo extends java.lang.ObjectThis 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 classLicenceInfo.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.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetAllowedValue()java.lang.StringgetCurrentValue()java.lang.StringgetMessage()java.lang.StringgetStatus()java.lang.StringtoString()returns all information of this object as a string.
-
-
-
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 byAccessManager.checkLicence()- Parameters:
st- the status, can be INFO, WARNING, ERRORcValue- the current value in the systemaValue- the allowed value by the licencemes- the message which is more significant
-
-
Method Detail
-
toString
public java.lang.String toString()
returns all information of this object as a string.- Overrides:
toStringin classjava.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()
-
-