@Entity
public class Study
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static int |
SERIAL_VERSION
Version of this model used for serialisation (e.g.
|
static java.lang.String |
STUDY |
static java.lang.String |
USERS |
Constructor and Description |
---|
Study() |
Modifier and Type | Method and Description |
---|---|
void |
addBatch(Batch batch) |
void |
addComponent(Component component) |
void |
addUser(User user) |
boolean |
equals(java.lang.Object obj) |
java.util.List<Batch> |
getBatchList() |
java.lang.String |
getComments() |
Component |
getComponent(int position)
Gets the component of this study at the given position.
|
java.util.List<Component> |
getComponentList() |
java.lang.Integer |
getComponentPosition(Component component)
Returns the position (index+1) of the component in the list of components of this study or null if it doesn't
exist.
|
java.sql.Timestamp |
getDate() |
Batch |
getDefaultBatch() |
java.lang.String |
getDescription() |
java.lang.String |
getDescriptionHash() |
java.lang.String |
getDirName() |
java.lang.String |
getEndRedirectUrl() |
java.util.Optional<Component> |
getFirstComponent() |
java.lang.Long |
getId() |
java.lang.String |
getJsonData() |
java.util.Optional<Component> |
getLastComponent() |
java.util.Optional<Component> |
getNextComponent(Component component) |
java.lang.String |
getStudyEntryMsg() |
java.lang.String |
getTitle() |
java.util.Set<User> |
getUserList() |
java.lang.String |
getUuid() |
boolean |
hasBatch(Batch batch) |
boolean |
hasComponent(Component component) |
int |
hashCode() |
boolean |
hasUser(User user) |
boolean |
isActive() |
boolean |
isAllowPreview() |
boolean |
isGroupStudy() |
boolean |
isLinearStudy() |
boolean |
isLocked() |
void |
removeBatch(Batch batch) |
void |
removeComponent(Component component) |
void |
removeUser(User user) |
void |
setActive(boolean active) |
void |
setAllowPreview(boolean allowPreview) |
void |
setBatchList(java.util.List<Batch> batchList) |
void |
setComments(java.lang.String comments) |
void |
setComponentList(java.util.List<Component> componentList) |
void |
setDate(java.sql.Timestamp timestamp) |
void |
setDescription(java.lang.String description) |
void |
setDirName(java.lang.String dirName) |
void |
setEndRedirectUrl(java.lang.String endRedirectUrl) |
void |
setGroupStudy(boolean groupStudy) |
void |
setId(java.lang.Long id) |
void |
setJsonData(java.lang.String jsonData) |
void |
setLinearStudy(boolean linearStudy) |
void |
setLocked(boolean locked) |
void |
setStudyEntryMsg(java.lang.String studyEntryMsg) |
void |
setTitle(java.lang.String title) |
void |
setUserList(java.util.Set<User> userList) |
void |
setUuid(java.lang.String uuid) |
java.lang.String |
toString() |
public static final int SERIAL_VERSION
public static final java.lang.String USERS
public static final java.lang.String STUDY
public void setId(java.lang.Long id)
public java.lang.Long getId()
public void setUuid(java.lang.String uuid)
public java.lang.String getUuid()
public void setTitle(java.lang.String title)
public java.lang.String getTitle()
public void setDescription(java.lang.String description)
public java.lang.String getDescription()
public java.lang.String getDescriptionHash()
public void setDirName(java.lang.String dirName)
public java.lang.String getDirName()
public void setComments(java.lang.String comments)
public java.lang.String getComments()
public void setDate(java.sql.Timestamp timestamp)
public java.sql.Timestamp getDate()
public void setLocked(boolean locked)
public boolean isLocked()
public boolean isActive()
public void setActive(boolean active)
public boolean isGroupStudy()
public void setGroupStudy(boolean groupStudy)
public boolean isLinearStudy()
public void setLinearStudy(boolean linearStudy)
public boolean isAllowPreview()
public void setAllowPreview(boolean allowPreview)
public java.lang.String getJsonData()
public void setJsonData(java.lang.String jsonData)
public java.lang.String getEndRedirectUrl()
public void setEndRedirectUrl(java.lang.String endRedirectUrl)
public java.lang.String getStudyEntryMsg()
public void setStudyEntryMsg(java.lang.String studyEntryMsg)
public void setUserList(java.util.Set<User> userList)
public java.util.Set<User> getUserList()
public void addUser(User user)
public void removeUser(User user)
public boolean hasUser(User user)
public void setComponentList(java.util.List<Component> componentList)
public java.util.List<Component> getComponentList()
public Component getComponent(int position)
public java.lang.Integer getComponentPosition(Component component)
public void addComponent(Component component)
public void removeComponent(Component component)
public boolean hasComponent(Component component)
public java.util.Optional<Component> getFirstComponent()
public java.util.Optional<Component> getLastComponent()
public void setBatchList(java.util.List<Batch> batchList)
public java.util.List<Batch> getBatchList()
public boolean hasBatch(Batch batch)
public void addBatch(Batch batch)
public void removeBatch(Batch batch)
public Batch getDefaultBatch()
public java.lang.String toString()
toString
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object