Class CatalogueEvent
java.lang.Object
org.gcube.social_networking.socialnetworking.model.beans.catalogue.CatalogueEvent
The CatalogueEvent super class
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected booleanoptionl field, set to true if the idsToNotify are contexts, default is falseprotected @NotNull(message="recipients cannot be missing, use usernames or contexts") String[]the username of the user you wish to notifyprotected @NotNull(message="itemId cannot be missing") Stringthe item identifier or name (it is used in the subject of the email)protected @NotNull(message="itemURL cannot be missing, use catalogue resolver URL") URLthe URL to redirect when clicking on the notificationprotected @NotNull(message="notifyText cannot be missing") Stringthe text that you want to write in the notification (text/plain format)protected CatalogueEventType -
Constructor Summary
ConstructorsConstructorDescriptionCatalogueEvent(CatalogueEventType type, String[] idsToNotify, String itemId, String notifyText, URL itemURL) for sending to usersCatalogueEvent(CatalogueEventType type, String[] idsToNotify, String itemId, String notifyText, URL itemURL, boolean idsAsGroup) for sending to users or groups -
Method Summary
Modifier and TypeMethodDescriptionString[]getType()booleanbooleanvoidsetIdsAsGroup(boolean idsAsGroup) voidsetIdsToNotify(String[] idsToNotify) voidvoidsetItemURL(URL itemURL) voidsetNotifyText(String notifyText) voidsetType(CatalogueEventType type) toString()
-
Field Details
-
type
-
idsToNotify
@NotNull(message="recipients cannot be missing, use usernames or contexts") protected @NotNull(message="recipients cannot be missing, use usernames or contexts") String[] idsToNotifythe username of the user you wish to notify -
itemId
@NotNull(message="itemId cannot be missing") protected @NotNull(message="itemId cannot be missing") String itemIdthe item identifier or name (it is used in the subject of the email) -
notifyText
@NotNull(message="notifyText cannot be missing") protected @NotNull(message="notifyText cannot be missing") String notifyTextthe text that you want to write in the notification (text/plain format) -
itemURL
@NotNull(message="itemURL cannot be missing, use catalogue resolver URL") protected @NotNull(message="itemURL cannot be missing, use catalogue resolver URL") URL itemURLthe URL to redirect when clicking on the notification -
idsAsGroup
@DefaultValue("false") protected boolean idsAsGroupoptionl field, set to true if the idsToNotify are contexts, default is false
-
-
Constructor Details
-
CatalogueEvent
public CatalogueEvent() -
CatalogueEvent
public CatalogueEvent(CatalogueEventType type, String[] idsToNotify, String itemId, String notifyText, URL itemURL, boolean idsAsGroup) for sending to users or groups- Parameters:
type-idsToNotify-itemId-notifyText-itemURL-idsAsGroup-
-
CatalogueEvent
public CatalogueEvent(CatalogueEventType type, String[] idsToNotify, String itemId, String notifyText, URL itemURL) for sending to users- Parameters:
type-idsToNotify-itemId-notifyText-itemURL-
-
-
Method Details
-
getType
-
setType
-
getIdsToNotify
-
setIdsToNotify
-
idsAsGroup
public boolean idsAsGroup()- Returns:
- true whether the idsToNotify have to be interpreted as groups and not usernames
-
setIdsAsGroup
public void setIdsAsGroup(boolean idsAsGroup) - Parameters:
idsAsGroup- set true whether the idsToNotify have to be interpreted as groups and not usernames, false otherwise
-
getItemId
-
setItemId
-
getNotifyText
-
setNotifyText
-
getItemURL
-
setItemURL
-
isIdsAsGroup
public boolean isIdsAsGroup() -
toString
-