org.alfresco.service.license
Interface LicenseDescriptor


public interface LicenseDescriptor

Provides access to License information.


Method Summary
 java.lang.Integer getDays()
          Gets the length (in days) of license validity
 java.lang.String getHeartBeatUrl()
          Gets an alternative URL that the heart beat should post data to, or null if the default URL is to be used.
 java.security.Principal getHolder()
          Gets the holder of the license
 java.util.Date getIssued()
          Gets the date license was issued
 java.security.Principal getIssuer()
          Gets the issuer of the license
 java.lang.Integer getRemainingDays()
          Ges the number of remaining days left on license
 java.lang.String getSubject()
          Gets the subject of the license
 java.util.Date getValidUntil()
          Gets the date license is valid till
 boolean isHeartBeatDisabled()
          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

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:
true if 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, or null if the default URL is to be used.

Returns:
a URL or null


Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.