|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.starhope.appius.util.SimpleDataRecord<Passport>
org.starhope.appius.user.Passport
public class Passport
| Field Summary | |
|---|---|
private static long |
serialVersionUID
WRITEME: Document this brpocock@star-hope.org |
private int |
userID
The user ID of the owner of this passport |
private Set<String> |
visitedRooms
the set of room monikers which the user has visited |
| Fields inherited from class org.starhope.appius.util.SimpleDataRecord |
|---|
myLoader, timeLastChanged, timeLastSaved |
| Constructor Summary | |
|---|---|
Passport()
nil constructor |
|
Passport(GeneralUser user)
|
|
| Method Summary | |
|---|---|
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. |
int |
getOwnerID()
|
String |
getSubversionRevision()
Return the Subversion revision level of this class's source code file, as supplied via the special "$Rev: " sequence. |
Collection<String> |
getVisitedRooms()
|
boolean |
hasVisited(String moniker)
|
void |
setOwnerID(int userIDForLogin)
|
org.json.JSONObject |
toJSON()
|
void |
visited(String moniker)
|
| 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 int userID
private final Set<String> visitedRooms
| Constructor Detail |
|---|
public Passport()
public Passport(GeneralUser user)
user - the owner| Method Detail |
|---|
public int getCacheableID()
throws NotFoundException
DataRecordDataRecord.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
DataRecordDataRecord.getCacheableID() or a string identifier (
DataRecord.getCacheableIdent() or both.
NotFoundException - if the item doesn't have a distinct
string identifierDataRecord.getCacheableIdent()public int getOwnerID()
public String getSubversionRevision()
HasSubversionRevisionReturn 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 Collection<String> getVisitedRooms()
public boolean hasVisited(String moniker)
moniker - of a room
public void setOwnerID(int userIDForLogin)
userIDForLogin - to be setpublic org.json.JSONObject toJSON()
public void visited(String moniker)
moniker - the room that the user has now visited
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||