public class NotificationsUtil extends Object
Modifier and Type | Field and Description |
---|---|
protected static org.slf4j.Logger |
logger |
Constructor and Description |
---|
NotificationsUtil() |
Modifier and Type | Method and Description |
---|---|
static boolean |
checkIsRootFolderShared(String itemId,
String rootFolderSharedId) |
static void |
checkSendNotifyChangedItemToShare(javax.servlet.http.HttpSession httpSession,
org.gcube.common.homelibrary.home.workspace.WorkspaceItem sourceItem,
String sourceSharedId,
org.gcube.common.homelibrary.home.workspace.WorkspaceItem folderDestinationItem,
boolean isOverwrite)
Send a notification if an item is added or updated to sharing folder
|
static void |
checkSendNotifyRemoveItemToShare(javax.servlet.http.HttpSession httpSession,
boolean sourceItemIsShared,
String oldItemName,
String oldItemId,
String sourceFolderSharedId) |
static List<InfoContactModel> |
getListUserSharedByFolderSharedId(org.gcube.common.homelibrary.home.workspace.Workspace workspace,
String idSharedFolder) |
static boolean |
isASharedFolder(org.gcube.common.homelibrary.home.workspace.WorkspaceItem wsItem) |
static boolean |
isASharedFolderForId(javax.servlet.http.HttpSession httpSession,
String itemId) |
public static void checkSendNotifyChangedItemToShare(javax.servlet.http.HttpSession httpSession, org.gcube.common.homelibrary.home.workspace.WorkspaceItem sourceItem, String sourceSharedId, org.gcube.common.homelibrary.home.workspace.WorkspaceItem folderDestinationItem, boolean isOverwrite)
httpSession
- sourceItem
- sourceSharedId
- folderDestinationItem
- public static List<InfoContactModel> getListUserSharedByFolderSharedId(org.gcube.common.homelibrary.home.workspace.Workspace workspace, String idSharedFolder) throws Exception
workspace
- idSharedFolder
- Exception
public static void checkSendNotifyRemoveItemToShare(javax.servlet.http.HttpSession httpSession, boolean sourceItemIsShared, String oldItemName, String oldItemId, String sourceFolderSharedId)
httpSession
- sourceItemIsShared
- oldItemName
- oldItemId
- sourceFolderSharedId
- public static boolean isASharedFolder(org.gcube.common.homelibrary.home.workspace.WorkspaceItem wsItem)
wsItem
- public static boolean isASharedFolderForId(javax.servlet.http.HttpSession httpSession, String itemId)
wsItem
- Copyright © 2014. All Rights Reserved.