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 Details

    • TYPE

      protected final WorkspaceEventType TYPE
    • idsToNotify

      @NotNull(message="recipients cannot be missing, use usernames or contexts") protected @NotNull(message="recipients cannot be missing, use usernames or contexts") String[] idsToNotify
      the username of the user you wish to notify
    • idsAsGroup

      @DefaultValue("false") protected boolean idsAsGroup
      optionl field, set to true if the idsToNotify are contexts, default is false
  • Method Details

    • 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