public class CatalogueEvent extends Object
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
idsAsGroup
optionl field, set to true if the idsToNotify are contexts, default is false
|
protected String[] |
idsToNotify
the username of the user you wish to notify
|
protected String |
itemId
the item identifier or name
|
protected URL |
itemURL
the URL to redirect when clicking on the notification
|
protected String |
notifyText
the text that you want to write in the notification (text/plain)
|
protected CatalogueEventType |
type |
| Constructor and Description |
|---|
CatalogueEvent() |
CatalogueEvent(CatalogueEventType type,
String[] idsToNotify,
String itemId,
String notifyText,
URL itemURL)
for sending to users
|
CatalogueEvent(CatalogueEventType type,
String[] idsToNotify,
String itemId,
String notifyText,
URL itemURL,
boolean idsAsGroup)
for sending to users or groups
|
| Modifier and Type | Method and Description |
|---|---|
String[] |
getIdsToNotify() |
String |
getItemId() |
URL |
getItemURL() |
String |
getNotifyText() |
CatalogueEventType |
getType() |
boolean |
idsAsGroup() |
boolean |
isIdsAsGroup() |
void |
setIdsAsGroup(boolean idsAsGroup) |
void |
setIdsToNotify(String[] idsToNotify) |
void |
setItemId(String itemId) |
void |
setItemURL(URL itemURL) |
void |
setNotifyText(String notifyText) |
void |
setType(CatalogueEventType type) |
String |
toString() |
protected CatalogueEventType type
@NotNull(message="recipients cannot be missing, use usernames or contexts") protected String[] idsToNotify
protected String itemId
protected String notifyText
protected URL itemURL
@DefaultValue(value="false") protected boolean idsAsGroup
public CatalogueEvent()
public CatalogueEvent(CatalogueEventType type, String[] idsToNotify, String itemId, String notifyText, URL itemURL, boolean idsAsGroup)
type - idsToNotify - itemId - notifyText - itemURL - idsAsGroup - public CatalogueEvent(CatalogueEventType type, String[] idsToNotify, String itemId, String notifyText, URL itemURL)
type - idsToNotify - itemId - notifyText - itemURL - public CatalogueEventType getType()
public void setType(CatalogueEventType type)
public String[] getIdsToNotify()
public void setIdsToNotify(String[] idsToNotify)
public boolean idsAsGroup()
public void setIdsAsGroup(boolean idsAsGroup)
idsAsGroup - set true whether the idsToNotify have to be interpreted as groups and not usernames, false otherwisepublic String getItemId()
public void setItemId(String itemId)
public String getNotifyText()
public void setNotifyText(String notifyText)
public URL getItemURL()
public void setItemURL(URL itemURL)
public boolean isIdsAsGroup()
Copyright © 2022. All rights reserved.