public class IdCookieCollection
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static int |
MAX_ID_COOKIES
Max number of ID cookies.
|
Constructor and Description |
---|
IdCookieCollection() |
Modifier and Type | Method and Description |
---|---|
protected IdCookieModel |
add(IdCookieModel idCookie)
Stores the given IdCookie.
|
protected IdCookieModel |
findWithStudyResultId(long studyResultId)
Returns the IdCookie to which the specified study result ID is mapped, or
null if nothing maps to the ID.
|
protected java.util.Collection<IdCookieModel> |
getAll() |
protected int |
getNextAvailableIdCookieIndex()
Returns a number from 0 to 10.
|
protected boolean |
isFull() |
protected IdCookieModel |
put(IdCookieModel idCookie)
Stores the given IdCookie.
|
protected IdCookieModel |
remove(IdCookieModel idCookie) |
protected int |
size() |
java.lang.String |
toString() |
public static final int MAX_ID_COOKIES
Important note: jatos.js supports only up to 10 cookies so far.
protected boolean isFull()
protected int size()
protected IdCookieModel add(IdCookieModel idCookie) throws IdCookieAlreadyExistsException
IdCookieAlreadyExistsException
protected IdCookieModel put(IdCookieModel idCookie) throws IdCookieCollectionFullException
IdCookieCollectionFullException
protected IdCookieModel remove(IdCookieModel idCookie)
protected java.util.Collection<IdCookieModel> getAll()
protected int getNextAvailableIdCookieIndex()
protected IdCookieModel findWithStudyResultId(long studyResultId)
public java.lang.String toString()
toString
in class java.lang.Object