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 java.lang.StringgetCloudSyncKey()Get the cloud sync key ornulljava.lang.IntegergetDays()Gets the length (in days) of license validityjava.util.Map<java.lang.String,java.lang.Object>getExtras()Get the extra public parameters in the license.java.lang.StringgetHeartBeatUrl()Gets an alternative URL that the heart beat should post data to, ornullif the default URL is to be used.java.security.PrincipalgetHolder()Gets the holder of the licensejava.lang.StringgetHolderOrganisation()Gets the Organisation that the license was granted to.java.util.DategetIssued()Gets the date license was issuedjava.security.PrincipalgetIssuer()Gets the issuer of the licenseRepoUsage.LicenseModegetLicenseMode()Get the license mode e.g TEAM or ENTERPRISE or any future license mode.java.lang.LonggetMaxDocs()Gets the maximum number of documents.java.lang.LonggetMaxUsers()Gets the maximum number of users.java.lang.IntegergetRemainingDays()Ges the number of remaining days left on licensejava.lang.StringgetSubject()Gets the subject of the licensejava.lang.StringgetTransformationServerExpiryDate()ATS Transformation Server Expiry Datejava.util.DategetValidUntil()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
java.util.Date getIssued()
Gets the date license was issued- Returns:
- issue date
-
getValidUntil
java.util.Date getValidUntil()
Gets the date license is valid till- Returns:
- valid until date (or null, if no time limit)
-
getDays
java.lang.Integer getDays()
Gets the length (in days) of license validity- Returns:
- length in days of license validity (or null, if no time limit)
-
getRemainingDays
java.lang.Integer getRemainingDays()
Ges the number of remaining days left on license- Returns:
- remaining days (or null, if no time limit)
-
getSubject
java.lang.String getSubject()
Gets the subject of the license- Returns:
- the subject
-
getHolder
java.security.Principal getHolder()
Gets the holder of the license- Returns:
- the holder
-
getHolderOrganisation
java.lang.String getHolderOrganisation()
Gets the Organisation that the license was granted to.- Returns:
- the holder
-
getIssuer
java.security.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
java.lang.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
java.lang.Long getMaxDocs()
Gets the maximum number of documents.- Returns:
- the maximum number of documents or
nullif there is no limit
-
getMaxUsers
java.lang.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
java.lang.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
java.lang.String getTransformationServerExpiryDate()
ATS Transformation Server Expiry Date- Returns:
- the ATS Transformation Server Expiry Date or
null
-
getExtras
java.util.Map<java.lang.String,java.lang.Object> getExtras()
Get the extra public parameters in the license.- Returns:
- the parameters
-
-