com.jamasoftware.contour.domain
Class LicenseSnapshot

java.lang.Object
  extended by com.jamasoftware.contour.domain.DomainObjectBaseSupport
      extended by com.jamasoftware.contour.domain.DomainObjectSupport
          extended by com.jamasoftware.contour.domain.LicenseSnapshot
All Implemented Interfaces:
DomainObject, DomainObjectBase, OrganizationAware, java.io.Serializable

@Entity
public class LicenseSnapshot
extends DomainObjectSupport

Represents a snapshot in time of the state of licenses for a certain organization

See Also:
Serialized Form

Field Summary
 
Fields inherited from interface com.jamasoftware.contour.domain.DomainObjectBase
ORGANIZATION_COLUMN_NAME
 
Constructor Summary
LicenseSnapshot()
           
 
Method Summary
 void addProperty(java.lang.String key, java.lang.String value)
           
 java.lang.Integer getId()
           
 int getIntegerProperty(java.lang.String key)
           
static java.lang.String getMaxLicensesProperty(com.jamasoftware.contour.util.license.OrgLicenseType licenseType)
           
static java.lang.String getNonReservedActiveLicensesProperty(com.jamasoftware.contour.util.license.OrgLicenseType licenseType)
           
 java.lang.Integer getOrganizationId()
           
 java.util.Map<java.lang.String,java.lang.String> getProperties()
           
 java.lang.String getProperty(java.lang.String key)
           
static java.lang.String getReservedLicensesProperty(com.jamasoftware.contour.util.license.OrgLicenseType licenseType)
           
 java.util.Date getSnapshotDate()
           
 java.lang.String getXmlToString()
           
 void setId(java.lang.Integer id)
           
 void setOrganizationId(java.lang.Integer organizationId)
           
 void setProperties(java.util.Map<java.lang.String,java.lang.String> properties)
           
 void setSnapshotDate(java.util.Date snapshotDate)
           
 
Methods inherited from class com.jamasoftware.contour.domain.DomainObjectSupport
getCreatedBy, getCreatedDate, getModifiedBy, getModifiedDate, setCreatedBy, setCreatedDate, setModifiedBy, setModifiedDate
 
Methods inherited from class com.jamasoftware.contour.domain.DomainObjectBaseSupport
equals, hashCode, isNewObject, obtainAclObjectIdentity
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LicenseSnapshot

public LicenseSnapshot()
Method Detail

getReservedLicensesProperty

public static java.lang.String getReservedLicensesProperty(com.jamasoftware.contour.util.license.OrgLicenseType licenseType)

getNonReservedActiveLicensesProperty

public static java.lang.String getNonReservedActiveLicensesProperty(com.jamasoftware.contour.util.license.OrgLicenseType licenseType)

getMaxLicensesProperty

public static java.lang.String getMaxLicensesProperty(com.jamasoftware.contour.util.license.OrgLicenseType licenseType)

getId

public java.lang.Integer getId()

setId

public void setId(java.lang.Integer id)

getOrganizationId

public java.lang.Integer getOrganizationId()

setOrganizationId

public void setOrganizationId(java.lang.Integer organizationId)

getSnapshotDate

public java.util.Date getSnapshotDate()

setSnapshotDate

public void setSnapshotDate(java.util.Date snapshotDate)

getProperties

public java.util.Map<java.lang.String,java.lang.String> getProperties()

setProperties

public void setProperties(java.util.Map<java.lang.String,java.lang.String> properties)

addProperty

public void addProperty(java.lang.String key,
                        java.lang.String value)

getProperty

public java.lang.String getProperty(java.lang.String key)

getIntegerProperty

public int getIntegerProperty(java.lang.String key)

getXmlToString

public java.lang.String getXmlToString()


Copyright (c) 2010 Jama Software, Inc. All Rights Reserved.