public class SyncronizeWithThredds extends Object
| Constructor and Description |
|---|
SyncronizeWithThredds()
Instantiates a new publish on thredds.
|
| Modifier and Type | Method and Description |
|---|---|
org.gcube.portal.wssynclibrary.shared.thredds.ThSyncStatus |
doSyncFolder(String folderId,
org.gcube.portal.wssynclibrary.shared.thredds.ThSynchFolderConfiguration thConfig,
javax.servlet.http.HttpServletRequest httpRequest,
org.gcube.vomanagement.usermanagement.model.GCubeUser user)
Do sync folder.
|
Boolean |
doUnSync(String folderId,
boolean deleteRemoteContent,
org.gcube.portal.wssynclibrary.shared.thredds.ThSynchFolderConfiguration thConfig,
javax.servlet.http.HttpServletRequest httpRequest,
org.gcube.vomanagement.usermanagement.model.GCubeUser user)
Do un sync.
|
List<org.gcube.portal.wssynclibrary.shared.thredds.ThCatalogueBean> |
getAvailableCatalogues(javax.servlet.http.HttpServletRequest httpRequest,
org.gcube.vomanagement.usermanagement.model.GCubeUser user,
String targetScope)
Gets the available catalogues.
|
org.gcube.portal.wssynclibrary.shared.thredds.ThSyncFolderDescriptor |
getConfiguration(String folderId,
boolean loadStatus,
javax.servlet.http.HttpServletRequest httpRequest,
org.gcube.vomanagement.usermanagement.model.GCubeUser user)
Gets the configuration.
|
boolean |
isItemSynched(String folderId,
String scope,
String userToken,
Map<String,Object> itemProperties,
org.gcube.usecases.ws.thredds.model.ContainerType itemType)
Checks if is item synched.
|
org.gcube.portal.wssynclibrary.shared.thredds.ThSyncStatus |
monitorSyncStatus(String itemId,
String scope,
String userToken)
Gets the sync status.
|
protected void |
registerCallbackForId(String folderId,
String scope,
String userToken)
Register callback for id.
|
public SyncronizeWithThredds()
wsScopeUserToken - the ws scope user tokenusername - the usernamehttpSession - the http sessionpublic boolean isItemSynched(String folderId, String scope, String userToken, Map<String,Object> itemProperties, org.gcube.usecases.ws.thredds.model.ContainerType itemType) throws org.gcube.portal.wssynclibrary.shared.ItemNotSynched, Exception
folderId - the folder idscope - the scopeuserToken - the user tokenitemProperties - the item propertiesitemType - the item typeorg.gcube.portal.wssynclibrary.shared.ItemNotSynched - the item not synchedException - the exceptionpublic org.gcube.portal.wssynclibrary.shared.thredds.ThSyncFolderDescriptor getConfiguration(String folderId, boolean loadStatus, javax.servlet.http.HttpServletRequest httpRequest, org.gcube.vomanagement.usermanagement.model.GCubeUser user) throws org.gcube.portal.wssynclibrary.shared.ItemNotSynched, Exception
folderId - the folder idloadStatus - the load status. If true it loads the status by calling
the SyncEngine.check(String, boolean) but it is
time consuming. Otherwise it calls the
SyncEngine.getConfig(String) without sync statushttpRequest - the http requestuser - the userorg.gcube.portal.wssynclibrary.shared.ItemNotSynched - the item not synchedException - the exceptionpublic List<org.gcube.portal.wssynclibrary.shared.thredds.ThCatalogueBean> getAvailableCatalogues(javax.servlet.http.HttpServletRequest httpRequest, org.gcube.vomanagement.usermanagement.model.GCubeUser user, String targetScope) throws Exception
httpRequest - the http requestuser - the usertargetScope - the target scopeException - the exceptionpublic org.gcube.portal.wssynclibrary.shared.thredds.ThSyncStatus doSyncFolder(String folderId, org.gcube.portal.wssynclibrary.shared.thredds.ThSynchFolderConfiguration thConfig, javax.servlet.http.HttpServletRequest httpRequest, org.gcube.vomanagement.usermanagement.model.GCubeUser user) throws Exception
folderId - the folder idthConfig - the th confighttpRequest - the http requestuser - the userException - the exceptionpublic Boolean doUnSync(String folderId, boolean deleteRemoteContent, org.gcube.portal.wssynclibrary.shared.thredds.ThSynchFolderConfiguration thConfig, javax.servlet.http.HttpServletRequest httpRequest, org.gcube.vomanagement.usermanagement.model.GCubeUser user) throws Exception
folderId - the folder iddeleteRemoteContent - the delete remote contentthConfig - the th confighttpRequest - the http requestuser - the userException - the exceptionpublic org.gcube.portal.wssynclibrary.shared.thredds.ThSyncStatus monitorSyncStatus(String itemId, String scope, String userToken) throws org.gcube.portal.wssynclibrary.shared.ItemNotSynched, Exception
itemId - the item idscope - the scopeuserToken - the user tokenorg.gcube.portal.wssynclibrary.shared.ItemNotSynched - the item not synchedException - the exceptionCopyright © 2021. All Rights Reserved.