|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.starhope.appius.util.SimpleDataRecord<Enrolment>
org.starhope.appius.mb.Enrolment
public class Enrolment
An Enrolment object represents a potential type of enrolment or subscription into which an User can be subscribed. This does not represent an actual commitment by the user to a particular subscription, only that one is potentially possible.
UserEnrolment for actual
subscriptions/registrations
,
Serialized FormField Summary | |
---|---|
private boolean |
autoRenew
WRITEME |
private boolean |
autoRenewAsk
WRITEME: Document this brpocock@star-hope.org |
private boolean |
available
WRITEME |
private int |
id
WRITEME |
private BigDecimal |
price
WRITEME |
private String |
productCode
WRITEME |
private int |
renewDays
WRITEME |
private int |
renewMonths
WRITEME |
private static long |
serialVersionUID
WRITEME: document this field (twheys@gmail.com, Oct 5, 2009) serialVersionUID (long) |
private String |
title
WRITEME |
Fields inherited from class org.starhope.appius.util.SimpleDataRecord |
---|
myLoader, timeLastChanged, timeLastSaved |
Constructor Summary | |
---|---|
Enrolment(BigDecimal d)
|
|
Enrolment(RecordLoader<Enrolment> loader)
WRITEME: Document this constructor brpocock@star-hope.org |
Method Summary | |
---|---|
boolean |
askToAutoRenew()
WRITEME: Document this method brpocock@star-hope.org |
static Enrolment[] |
getAvailableEnrolments()
Returns all products in the products table that are flagged as Available AND Visible |
static Enrolment |
getByID(int productID)
Deprecated. use Nomenclator.getDataRecord(Class, int) with Enrolment.class |
static Enrolment |
getByProductCode(String productCode2)
Deprecated. use Nomenclator.getDataRecord(Class, String) |
int |
getCacheableID()
Note that all records must have either a numeric ID ( DataRecord.getCacheableID() or a string identifier (
DataRecord.getCacheableIdent() or both. |
String |
getCacheableIdent()
Note that all records must have either a numeric ID ( DataRecord.getCacheableID() or a string identifier (
DataRecord.getCacheableIdent() or both. |
Currency |
getCurrency()
|
int |
getId()
WRITEME WRITEME: document this method (brpocock@star-hope.org, Oct 13, 2009) |
int |
getID()
|
BigDecimal |
getPrice()
WRITEME: document this method (brpocock@star-hope.org, Oct 13, 2009) |
int |
getPrivilegeDays()
|
int |
getPrivilegeMonths()
|
String |
getProductCode()
WRITEME: document this method (brpocock@star-hope.org, Oct 13, 2009) |
int |
getProductID()
|
int |
getRenewalDays()
|
int |
getRenewalMonths()
|
int |
getRenewMonths()
WRITEME WRITEME: document this method (brpocock@star-hope.org, Oct 13, 2009) |
String |
getSubversionRevision()
Return the Subversion revision level of this class's source code file, as supplied via the special "$Rev: " sequence. |
String |
getTitle()
|
boolean |
isAutoRenew()
WRITEME: document this method (brpocock@star-hope.org, Oct 13, 2009) |
boolean |
isAutoRenewed()
|
boolean |
isAvailable()
|
void |
setAutoRenewalAsk(boolean equals)
WRITEME: Document this method brpocock@star-hope.org |
void |
setAutoRenewed(boolean alwaysAutoRenew)
|
void |
setAvailable(boolean nowAvailable)
|
void |
setID(int newID)
|
void |
setPrice(BigDecimal price1)
WRITEME: document this method (brpocock@star-hope.org, Sep 23, 2009) |
void |
setProductCode(String newProductCode)
|
void |
setRenewalDays(int newRenewDays)
|
void |
setRenewalMonths(int newRenewMonths)
|
void |
setTitle(String newTitle)
|
Methods inherited from class org.starhope.appius.util.SimpleDataRecord |
---|
changed, checkStale, compareTo, equals, finalize, getRecordLoader, getTimeLastChanged, getTimeLastSaved, hashCode, isBeingLoaded, markAsLoaded, markAsSaved, markForReload, onRemove, onRetrieve, onStore, save, setRecordLoader, toString |
Methods inherited from class java.lang.Object |
---|
clone, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
private static final long serialVersionUID
private boolean autoRenew
private boolean available
private int id
private BigDecimal price
private String productCode
private int renewDays
private int renewMonths
private String title
private boolean autoRenewAsk
Constructor Detail |
---|
public Enrolment(BigDecimal d)
d
- WRITEMEpublic Enrolment(RecordLoader<Enrolment> loader)
loader
- loaderMethod Detail |
---|
public static Enrolment[] getAvailableEnrolments()
XXX contains SQL
@Deprecated public static Enrolment getByID(int productID) throws NotFoundException
Nomenclator.getDataRecord(Class, int)
with Enrolment.class
productID
- WRITEME
NotFoundException
- WRITEME@Deprecated public static Enrolment getByProductCode(String productCode2) throws NotFoundException
Nomenclator.getDataRecord(Class, String)
productCode2
- the product code for that enrolment type
NotFoundException
- if the enrolment type is not foundpublic boolean askToAutoRenew()
public int getCacheableID() throws NotFoundException
DataRecord
DataRecord.getCacheableID()
or a string identifier (
DataRecord.getCacheableIdent()
or both.
NotFoundException
- if the item doesn't have a distinct
numeric IDDataRecord.getCacheableID()
public String getCacheableIdent() throws NotFoundException
DataRecord
DataRecord.getCacheableID()
or a string identifier (
DataRecord.getCacheableIdent()
or both.
NotFoundException
- if the item doesn't have a distinct
string identifierDataRecord.getCacheableIdent()
public Currency getCurrency()
public int getId()
public int getID()
public BigDecimal getPrice()
public int getPrivilegeDays()
public int getPrivilegeMonths()
public String getProductCode()
public int getProductID()
public int getRenewalDays()
public int getRenewalMonths()
public int getRenewMonths()
public String getSubversionRevision()
HasSubversionRevision
Return the Subversion revision level of this class's source code file, as supplied via the special "$Rev: " sequence.
As an example,the Subversion revision string for this file is "$Rev: 1968 $"
@Override public String getSubversionRevision () { return "$Rev: "; }
HasSubversionRevision.getSubversionRevision()
public String getTitle()
public boolean isAutoRenew()
public boolean isAutoRenewed()
public boolean isAvailable()
public void setAutoRenewalAsk(boolean equals)
equals
- WRITEMEpublic void setAutoRenewed(boolean alwaysAutoRenew)
alwaysAutoRenew
- the autoRenew to setpublic void setAvailable(boolean nowAvailable)
nowAvailable
- the available to setpublic void setID(int newID)
newID
- the id to setpublic void setPrice(BigDecimal price1)
price1
- WRITEMEpublic void setProductCode(String newProductCode)
newProductCode
- the productCode to setpublic void setRenewalDays(int newRenewDays)
newRenewDays
- the renewDays to setpublic void setRenewalMonths(int newRenewMonths)
newRenewMonths
- the renewMonths to setpublic void setTitle(String newTitle)
newTitle
- the title to set
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |