Package org.alfresco.service.license
Interface LicenseDescriptor
-
public interface LicenseDescriptorProvides access to License information.- Author:
- davidc
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description StringgetCloudSyncKey()Get the cloud sync key ornullIntegergetDays()Gets the length (in days) of license validityMap<String,Object>getExtras()Get the extra public parameters in the license.StringgetHeartBeatUrl()Gets an alternative URL that the heart beat should post data to, ornullif the default URL is to be used.PrincipalgetHolder()Gets the holder of the licenseStringgetHolderOrganisation()Gets the Organisation that the license was granted to.DategetIssued()Gets the date license was issuedPrincipalgetIssuer()Gets the issuer of the licenseRepoUsage.LicenseModegetLicenseMode()Get the license mode e.g TEAM or ENTERPRISE or any future license mode.LonggetMaxDocs()Gets the maximum number of documents.LonggetMaxUsers()Gets the maximum number of users.IntegergetRemainingDays()Ges the number of remaining days left on licenseStringgetSubject()Gets the subject of the licenseStringgetTransformationServerExpiryDate()ATS Transformation Server Expiry DateDategetValidUntil()Gets the date license is valid tillbooleanisClusterEnabled()Does this license allow clustering?booleanisCryptodocEnabled()Does this license allow cryptodocbooleanisHeartBeatDisabled()Does this license allow the heartbeat to be disabled?
-
-
-
Method Detail
-
getIssued
Date getIssued()
Gets the date license was issued- Returns:
- issue date
-
getValidUntil
Date getValidUntil()
Gets the date license is valid till- Returns:
- valid until date (or null, if no time limit)
-
getDays
Integer getDays()
Gets the length (in days) of license validity- Returns:
- length in days of license validity (or null, if no time limit)
-
getRemainingDays
Integer getRemainingDays()
Ges the number of remaining days left on license- Returns:
- remaining days (or null, if no time limit)
-
getSubject
String getSubject()
Gets the subject of the license- Returns:
- the subject
-
getHolder
Principal getHolder()
Gets the holder of the license- Returns:
- the holder
-
getHolderOrganisation
String getHolderOrganisation()
Gets the Organisation that the license was granted to.- Returns:
- the holder
-
getIssuer
Principal getIssuer()
Gets the issuer of the license- Returns:
- the issuer
-
isHeartBeatDisabled
boolean isHeartBeatDisabled()
Does this license allow the heartbeat to be disabled?- Returns:
trueif this license allow the heartbeat to be disabled
-
getHeartBeatUrl
String getHeartBeatUrl()
Gets an alternative URL that the heart beat should post data to, ornullif the default URL is to be used.- Returns:
- a URL or
null
-
getMaxDocs
Long getMaxDocs()
Gets the maximum number of documents.- Returns:
- the maximum number of documents or
nullif there is no limit
-
getMaxUsers
Long getMaxUsers()
Gets the maximum number of users.- Returns:
- the maximum number of users or
nullif there is no limit
-
getLicenseMode
RepoUsage.LicenseMode getLicenseMode()
Get the license mode e.g TEAM or ENTERPRISE or any future license mode.- Returns:
- the license mode.
-
getCloudSyncKey
String getCloudSyncKey()
Get the cloud sync key ornull- Returns:
- the cloud sync key
-
isClusterEnabled
boolean isClusterEnabled()
Does this license allow clustering?- Returns:
trueif the license allows clustering
-
isCryptodocEnabled
boolean isCryptodocEnabled()
Does this license allow cryptodoc- Returns:
trueif the license allows cryptodoc
-
getTransformationServerExpiryDate
String getTransformationServerExpiryDate()
ATS Transformation Server Expiry Date- Returns:
- the ATS Transformation Server Expiry Date or
null
-
-