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
public abstract class WorkspaceEvent extends Object
The CatalogueEvent super class
-
-
Field Summary
Fields Modifier and Type Field Description protected booleanidsAsGroupoptionl field, set to true if the idsToNotify are contexts, default is falseprotected String[]idsToNotifythe username of the user you wish to notifyprotected WorkspaceEventTypeTYPE
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String[]getIdsToNotify()WorkspaceEventTypegetType()booleanidsAsGroup()voidsetIdsAsGroup(boolean idsAsGroup)voidsetIdsToNotify(String[] idsToNotify)
-
-
-
Field Detail
-
TYPE
protected final WorkspaceEventType TYPE
-
idsToNotify
@NotNull(message="recipients cannot be missing, use usernames or contexts") protected String[] idsToNotify
the 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 Detail
-
getType
public WorkspaceEventType getType()
-
getIdsToNotify
public String[] getIdsToNotify()
-
setIdsToNotify
public void setIdsToNotify(String[] idsToNotify)
-
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
-
-