|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.sciplore.resources.Resource
org.sciplore.resources.Alert
@Entity public class Alert
Resource class for Alerts.
Resource
Constructor Summary | |
---|---|
Alert()
|
Method Summary | |
---|---|
static Alert |
getAlert(Alert a)
Returns an Alert object from the database for an Alert object. |
static Alert |
getAlert(Integer id)
Gets the Alert object from the database. |
static Alert |
getAlert(User u,
Document d)
Gets the Alert object from the database for a User and a Document . |
Document |
getDocument()
Returns the associated Document . |
Short |
getFrequency()
Returns the frequency how often to alert the user. |
Boolean |
getFulltextAvailable()
Returns whether to alert on the fulltext becoming available. |
Integer |
getId()
Returns the identifier. |
Boolean |
getMetadataChanges()
Returns wheter to alert on metadata changes. |
Boolean |
getNewUsageData()
Returns whether to alert on new usage data becoming available. |
Boolean |
getRelatedDocuments()
Returns whether to alert on new related documents becoming available. |
User |
getUser()
Returns the User . |
Short |
getValid()
Returns information about the validity of the record. |
void |
setDocument(Document document)
Sets the Document . |
void |
setFrequency(Short frequency)
Sets the frequency how often to alert the user. |
void |
setFulltextAvailable(Boolean fulltextAvailable)
Sets whether to alert on the fulltext becoming available. |
void |
setId(Integer id)
Sets the identifier. |
void |
setMetadataChanges(Boolean metadataChanges)
Sets whether to alert on metadata changes. |
void |
setNewUsageData(Boolean newUsageData)
Sets whether to alert on new usage data becoming available. |
void |
setRelatedDocuments(Boolean relatedDocuments)
Sets whether to alert on new related documents becoming available. |
void |
setUser(User user)
Sets the User . |
void |
setValid(Short valid)
Sets information about the validity of the record. |
static Alert |
sync(Alert alert)
Synchronizes an Alert object with a record from the database. |
Methods inherited from class org.sciplore.resources.Resource |
---|
save |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Alert()
Method Detail |
---|
public static Alert getAlert(Alert a)
a
- the Alert object
public static Alert getAlert(Integer id)
id
- The identifier of the Alert object
public static Alert getAlert(User u, Document d)
User
and a Document
.
u
- the User
d
- the Document
User
,
Document
public static Alert sync(Alert alert)
alert
- the Alert
public Document getDocument()
Document
.
Document
Document
public Short getFrequency()
public Boolean getFulltextAvailable()
public Integer getId()
public Boolean getMetadataChanges()
public Boolean getNewUsageData()
public Boolean getRelatedDocuments()
public User getUser()
User
.
User
User
public Short getValid()
public void setDocument(Document document)
Document
.
document
- the Document
Document
public void setFrequency(Short frequency)
frequency
- the frequencypublic void setFulltextAvailable(Boolean fulltextAvailable)
fulltextAvailable
- whether to alert on the fulltext becoming availablepublic void setId(Integer id)
id
- the identifierpublic void setMetadataChanges(Boolean metadataChanges)
metadataChanges
- whether to alert on metadata chanespublic void setNewUsageData(Boolean newUsageData)
newUsageData
- whether to alert on new usage data becoming availablepublic void setRelatedDocuments(Boolean relatedDocuments)
relatedDocuments
- whether to alert on new related documents becoming availablepublic void setUser(User user)
User
.
user
- the User
User
public void setValid(Short valid)
valid
- the information about the validity of the record
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |