Interface IServerLicenseSystem
- All Superinterfaces:
IBasicUserInfoDetailNames, IGenericLicenseSystem
The license system interface of an iiziServer: what the server reads of its licence (
LICENSE-V2-DESIGN.md sections 6 and 8) and what it reports (6.5).- Author:
- Christopher Mindus
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final recordThe counting state an iiziServer keeps in its license file (LICENSE-V2-DESIGN.mdsections 6.3, 6.5 and 8.4): written by the server's licence counter (B-5d) and read back when the server starts again, so that a restart neither opens a second grace episode nor starts the 14 days of an unlicensed server again, and the days not yet reported are reported after a restart.static interfaceWhat the server reports to the license server at every REFRESH (6.5): the peaks of the days since the last report.static final recordThe peak use of one UTC day (6.5, ruling LV-17): counts only, never a user name.Field Summary
Fields inherited from interface IBasicUserInfoDetailNames
DETAIL_AccountNotices, DETAIL_AdditionalEmail, DETAIL_Address, DETAIL_Address_2, DETAIL_Address_3, DETAIL_City, DETAIL_CompanyDivision, DETAIL_CompanyName, DETAIL_Country, DETAIL_CroppedUploadedProfileImage, DETAIL_DBAdministrationUserName, DETAIL_Descr, DETAIL_DeveloperGroupID, DETAIL_DeveloperID, DETAIL_Email, DETAIL_EmailChange, DETAIL_EmailVerify, DETAIL_FirstName, DETAIL_FixedPassword, DETAIL_FullName, DETAIL_HomeFax, DETAIL_HomeMobile, DETAIL_HomePhone, DETAIL_JobTitle, DETAIL_LargeProfileImage, DETAIL_LastName, DETAIL_LocalizedFirstName, DETAIL_LocalizedFullName, DETAIL_LocalizedLastName, DETAIL_LocalizedMiddleName, DETAIL_LocalizedTitle, DETAIL_MiddleName, DETAIL_Phone, DETAIL_Phone_2, DETAIL_PinCode, DETAIL_RecoveryAnswer, DETAIL_RecoveryQuestion, DETAIL_SecondFactorFirst, DETAIL_StateProvince, DETAIL_ThumbnailProfileImage, DETAIL_Title, DETAIL_UploadedProfileImage, DETAIL_UploadedProfileImageCrop, DETAIL_WorkFax, DETAIL_WorkMobile, DETAIL_WorkPhone, DETAIL_ZipCode, detailsSet, profilePictureDetailsListMethod Summary
Modifier and TypeMethodDescriptionvoidAssigns the source of the usage the REFRESH reports (6.5).Gets the counting state the license file holds (6.3, 6.5, 8.4).Gets the current licence document: the verified document the server holds.voidStores the counting state in the license file: a changed grace episode start or start of an unlicensed period is saved at once, the days with the file's next save.Methods inherited from interface IGenericLicenseSystem
activate, addListener, assignCallback, assignFeedBack, completeRegistration, dispose, extendTrial, getDatabaseAdministratorUser, getDetails, getInstallationID, getProfilePicture, getProfilePicture, getSignature, getSignedInUser, getTrialDuration, getTrialExtension, getTrialStarted, getValidityPeriod, initialize, isConnected, isLicenseServerConfigured, isTrialMode, performOfflineRegistration, preClose, preOpen, removeListener, removeProfilePictures, requestEmailVerification, resetPassword, save, setProfilePicture, setRecoveryEmail, signIn, signOut, signUp, validate, verifyEmailCode, verifyEmailTaken
Method Details
getLicenseDocument
LicenseDocument getLicenseDocument()Gets the current licence document: the verified document the server holds.- Returns:
- The document, or null when the server holds none or the stored one is refused.
assignUsageSource
Assigns the source of the usage the REFRESH reports (6.5).- Parameters:
source- The source, null for none.
getCounterState
IServerLicenseSystem.CounterState getCounterState()Gets the counting state the license file holds (6.3, 6.5, 8.4).- Returns:
- The state,
IServerLicenseSystem.CounterState.NONEwhen nothing is stored or the server keeps no license file (the development server, LV-21).
storeCounterState
Stores the counting state in the license file: a changed grace episode start or start of an unlicensed period is saved at once, the days with the file's next save. Ignored by a server that keeps no license file.- Parameters:
state- The state.- Throws:
NullPointerException- Ifstateis null.