Package org.alfresco.service.license
Interface LicenseDescriptor
public interface LicenseDescriptor
Provides access to License information.
- Author:
- davidc
-
Method Summary
Modifier and TypeMethodDescriptiongetDays()Gets the length (in days) of license validityGet the extra public parameters in the license.Gets an alternative URL that the heart beat should post data to, ornullif the default URL is to be used.Gets the holder of the licenseGets the Organisation that the license was granted to.Gets the date license was issuedGets the issuer of the licenseGet the license mode e.g TEAM or ENTERPRISE or any future license mode.Gets the maximum number of documents.Gets the maximum number of users.Ges the number of remaining days left on licenseGets the subject of the licenseATS Transformation Server Expiry DateGets the date license is valid tillbooleanDoes this license allow clustering?booleanDoes this license allow cryptodocdefault booleanDoes this license allow custom embedded workflows?booleanDoes this license allow the heartbeat to be disabled?
-
Method Details
-
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.
-
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
-
isCustomEmbeddedWorkflowEnabled
default boolean isCustomEmbeddedWorkflowEnabled()Does this license allow custom embedded workflows?- Returns:
trueif the license allows custom embedded workflows
-
getTransformationServerExpiryDate
String getTransformationServerExpiryDate()ATS Transformation Server Expiry Date- Returns:
- the ATS Transformation Server Expiry Date or
null
-
getExtras
Get the extra public parameters in the license.- Returns:
- the parameters
-