public class OCMSLicenseInfo
extends java.lang.Object
Constructor and Description |
---|
OCMSLicenseInfo() |
Modifier and Type | Method and Description |
---|---|
int |
getDaysRemainingUntilExpiration() |
java.util.Date |
getExpirationDate() |
java.lang.String |
getLicenseType() |
int |
getMaxUserCount() |
int |
getRepoUserCount() |
boolean |
isExpiringSoon() |
protected void |
setDaysRemainingUntilExpiration(int expDate) |
protected void |
setExpirationDate(java.util.Date expirationDate) |
protected void |
setExpiringSoon(boolean expiringSoon) |
protected void |
setLicenseType(java.lang.String licenseType) |
protected void |
setMaxUserCount(int maxUserCount) |
protected void |
setRepoUserCount(int repoUserCount) |
public java.lang.String getLicenseType()
protected void setLicenseType(java.lang.String licenseType)
licenseType
- - the license type (either text or floating)public java.util.Date getExpirationDate()
protected void setExpirationDate(java.util.Date expirationDate)
expirationDate
- the date the license becomes invalidpublic int getDaysRemainingUntilExpiration()
protected void setDaysRemainingUntilExpiration(int expDate)
expDate
- the number of days of valid use left on the active licensepublic boolean isExpiringSoon()
protected void setExpiringSoon(boolean expiringSoon)
expiringSoon
- boolean - true if license expires within 30 days, false otherwisepublic int getMaxUserCount()
protected void setMaxUserCount(int maxUserCount)
maxUserCount
- the maximum allowed users on the current licensepublic int getRepoUserCount()
protected void setRepoUserCount(int repoUserCount)
repoUserCount
- - int representing the number of users in the repository