Package com.iizix.server.agreement
Class LicenseAgreements
- java.lang.Object
- com.iizix.server.agreement.LicenseAgreements
public class LicenseAgreements extends java.lang.Object
Methods for license agreements ---- Author:
- Christopher Mindus
Field Summary
Fields Modifier and Type Field Description static java.lang.String
IIZI_GO
The latest standard license agreement for iiziGo: "go".static java.lang.String
IIZI_RUN
The latest standard license agreement for iiziRun.static java.lang.String
IIZI_SERVER
The latest standard license agreement for iiziServer: "srv".static java.lang.String
NOT_APPLICABLE
The "Not Applicable" standard license agreement: "n/a".
Constructor Summary
Constructors Constructor Description LicenseAgreements()
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.util.ArrayList<LicenseAgreement>
getLicenseAgreementIDs(java.lang.String name, boolean latest)
Gets all the license agreement IDs, and only the latest depending on the flag.
Field Detail
NOT_APPLICABLE
public static final java.lang.String NOT_APPLICABLE
The "Not Applicable" standard license agreement: "n/a".- See Also:
- Constant Field Values
IIZI_GO
public static final java.lang.String IIZI_GO
The latest standard license agreement for iiziGo: "go".- See Also:
- Constant Field Values
IIZI_RUN
public static final java.lang.String IIZI_RUN
The latest standard license agreement for iiziRun.- See Also:
- Constant Field Values
IIZI_SERVER
public static final java.lang.String IIZI_SERVER
The latest standard license agreement for iiziServer: "srv".- See Also:
- Constant Field Values
Method Detail
getLicenseAgreementIDs
public static java.util.ArrayList<LicenseAgreement> getLicenseAgreementIDs(java.lang.String name, boolean latest) throws java.sql.SQLException, NotFoundException
Gets all the license agreement IDs, and only the latest depending on the flag.- Parameters:
name
- The short name of the agreement, null for all.latest
- true to get only the latest, false for all.- Returns:
- An array with all license agreement IDs. No item in the array is null.
- Throws:
NotFoundException
- If none is found.java.sql.SQLException
- For SQL exceptions.