|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectit.dtt.ca.history.History
public class History
Container class used to keep an history of items of various kind.
Histories will depend upon the current user.
The current user is defined and retrieved using the org.dvb.user.GeneralPreference("UserName", String userName).
The user name is stored by:
And can be read by:
Field Summary | |
---|---|
static int |
MESSAGE_HISTORY
Identifies a history of messages from the broadcaster |
static int |
PPV_HISTORY
Identifies an history collecting bought packages. |
static int |
RECHARGE_HISTORY
Identifies an history of card recharges |
Constructor Summary | |
---|---|
History(int type)
Create an History object. |
Method Summary | |
---|---|
int |
getHistoryLength()
Returns the length of the history items. |
int |
getHistoryType()
Identifies the type of history carried within the specific object |
HistoryItem |
getItem(int index)
Retrieves a History Item at the specified index. |
HistoryItem[] |
getItems()
Retrieves all items collected in this history object. |
void |
setItems(HistoryItem[] items)
Sets an array of HistoryItem within an History instance. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int PPV_HISTORY
public static final int RECHARGE_HISTORY
public static final int MESSAGE_HISTORY
Constructor Detail |
---|
public History(int type)
type
- the type of history to create.Method Detail |
---|
public int getHistoryType()
public HistoryItem[] getItems()
public int getHistoryLength()
public HistoryItem getItem(int index)
public void setItems(HistoryItem[] items) throws java.lang.IllegalArgumentException, java.lang.NullPointerException
items
- The items to set.
java.lang.IllegalArgumentException
- if any of the items in the array are not of the appropriate sub-class of HistoryItem for the type of this History instance
java.lang.NullPointerException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |