|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object jimm.twice.syndicator.ProtoOffers
This class represents the prototypical subscriptions that are offered to subscribers. It knows how to load the prototypical instance descriptions from an XML file and generate content for each subscription.
Field Summary | |
protected static java.lang.String |
DATE_URL_STRING
|
protected static java.lang.String |
DT_SUFFIX
|
protected static java.lang.String |
LOGGER_PREFIX
|
protected static java.lang.String |
TIME_URL_STRING
|
protected static java.lang.String |
XML_FILE_PROPERTY
|
protected static java.lang.String |
XML_NEWS_PROPERTY
|
Constructor Summary | |
ProtoOffers()
|
Method Summary | |
static OfferType |
find(java.lang.String identifier)
Returns the prototype subscription offer with the specified identifier. |
protected static PackageType |
generateItems(SubscriptionType subscription,
java.lang.String currentState)
|
static void |
load()
Loads all offers. |
static int |
numOffers()
For testing. |
static java.util.Iterator |
offers()
Returns an iterator over the list of available offers. |
static java.util.Iterator |
pushOffers()
Returns an iterator over the list of available push offers. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected static final java.lang.String TIME_URL_STRING
protected static final java.lang.String DATE_URL_STRING
protected static final java.lang.String DT_SUFFIX
protected static final java.lang.String XML_FILE_PROPERTY
protected static final java.lang.String XML_NEWS_PROPERTY
protected static final java.lang.String LOGGER_PREFIX
Constructor Detail |
public ProtoOffers()
Method Detail |
public static java.util.Iterator offers() throws StatusCode
StatusCode
public static java.util.Iterator pushOffers() throws StatusCode
StatusCode
public static int numOffers()
public static OfferType find(java.lang.String identifier) throws StatusCode
null
if not found.
identifier
- the subscription offer id
null
if not found
StatusCode
public static void load() throws StatusCode
StatusCode
protected static PackageType generateItems(SubscriptionType subscription, java.lang.String currentState) throws StatusCode
StatusCode
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |