Class WorkspaceEvent
java.lang.Object
org.gcube.social_networking.socialnetworking.model.beans.workspace.WorkspaceEvent
- Direct Known Subclasses:
AddedItemEvent,DeletedItemEvent,FolderAddedUserEvent,FolderAdminDowngradeEvent,FolderAdminUpgradeEvent,FolderRemovedUserEvent,RenamedFolderEvent,SharedFolderEvent,UnsharedFolderEvent,UpdatedItemEvent
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 final WorkspaceEventType -
Method Summary
Modifier and TypeMethodDescriptionString[]getType()booleanvoidsetIdsAsGroup(boolean idsAsGroup) voidsetIdsToNotify(String[] idsToNotify)
-
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 -
idsAsGroup
@DefaultValue("false") protected boolean idsAsGroupoptionl field, set to true if the idsToNotify are contexts, default is false
-
-
Method Details
-
getType
-
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
-