|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectedu.vt.middleware.ed.AbstractNamedDataObject
edu.vt.middleware.ed.Ticket
public class Ticket
One-time-use security token implementation.
| Field Summary | |
|---|---|
static String |
FIND_BY_EXPIRATION_DATE
Constant for named query |
static String |
FIND_BY_ID
Constant for named query |
static String |
FIND_BY_PERSON_UID
Constant for named query |
static String |
FIND_BY_PERSON_UID_AND_TYPE
Constant for named query |
static String |
FIND_BY_UUID
Constant for named query |
private Set<Person> |
people
People associated with this ticket |
private Boolean |
processed
Flag indicating whether or not this ticket has been processed |
private static long |
serialVersionUID
Serialization marker |
private TicketType |
ticketType
Ticket type |
private String |
uuid
Ticket identifier |
| Fields inherited from class edu.vt.middleware.ed.AbstractNamedDataObject |
|---|
createdBy, creationDate, expirationDate, HASH_CODE_SEED, modificationDate, modifiedBy, uid |
| Constructor Summary | |
|---|---|
Ticket()
|
|
| Method Summary | |
|---|---|
ManagedSet<Person> |
getPeople()
Gets an immutable set of people associated with this ticket. |
private Set<Person> |
getPeopleInternal()
Gets the people associated with this ticket. |
Boolean |
getProcessed()
Gets the value of the processed flag. |
TicketType |
getTicketType()
Gets the ticket type. |
Long |
getUid()
This returns the uid. |
String |
getUuid()
Gets the unique string ID for this object. |
void |
init(IdGenerator generator)
Initializes this ticket with a cryptographically unique ID that can be accessed by calling getUuid(). |
Boolean |
isProcessed()
Determines whether or not this ticket has been processed. |
private void |
setPeopleInternal(Set<Person> s)
Sets the people associated with this ticket. |
void |
setProcessed(Boolean b)
Gets the value of the processed flag. |
void |
setTicketType(TicketType type)
Sets the ticket type. |
private void |
setUuid(String id)
Sets the ticket unique string identifier. |
| Methods inherited from class edu.vt.middleware.ed.AbstractNamedDataObject |
|---|
compareTo, getCreatedBy, getCreationDate, getExpirationDate, getModificationDate, getModifiedBy, setCreatedBy, setCreationDate, setExpirationDate, setModificationDate, setModifiedBy, setUid, toString, validateProperties |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final String FIND_BY_UUID
public static final String FIND_BY_ID
public static final String FIND_BY_PERSON_UID
public static final String FIND_BY_PERSON_UID_AND_TYPE
public static final String FIND_BY_EXPIRATION_DATE
private static final long serialVersionUID
private String uuid
private Boolean processed
private TicketType ticketType
private Set<Person> people
| Constructor Detail |
|---|
public Ticket()
| Method Detail |
|---|
public void init(IdGenerator generator)
throws IdGenerationException
getUuid(). Subsequent calls to this method
have no effect.
generator - id generator used to generate secure random ticket
identifier for this ticket.
IdGenerationException - if id generation failspublic Long getUid()
getUid in interface DataObjectgetUid in class AbstractNamedDataObjectLong - uidpublic String getUuid()
Examples of unique IDs:
getUuid in interface NamedDataObjectprivate void setUuid(String id)
id - Unique string identifier.public Boolean getProcessed()
public Boolean isProcessed()
public void setProcessed(Boolean b)
b - Processed flag value.public TicketType getTicketType()
public void setTicketType(TicketType type)
type - Ticket type.private Set<Person> getPeopleInternal()
private void setPeopleInternal(Set<Person> s)
s - People on this ticket.public ManagedSet<Person> getPeople()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||