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.ThSyncFolderDescriptor |
checkItemSynched(String folderId,
String scope,
String userToken)
Check item synched.
|
org.gcube.portal.wssynclibrary.shared.thredds.ThSyncStatus |
doSyncFolder(String folderId,
org.gcube.portal.wssynclibrary.shared.thredds.ThSynchFolderConfiguration thConfig,
String scope,
String userToken)
Do sync folder.
|
Boolean |
doUnSync(String folderId,
boolean deleteRemoteContent,
String scope,
String userToken)
Do un sync.
|
List<org.gcube.portal.wssynclibrary.shared.thredds.ThCatalogueBean> |
getAvailableCataloguesByToken(String scope,
String userToken,
String targetToken)
Gets the available catalogues by token.
|
org.gcube.portal.wssynclibrary.shared.thredds.Sync_Status |
getSynchedStatusFromItemProperty(String folderId,
String scope,
String username)
Gets the synched status from item property.
|
boolean |
isItemSynched(String folderId,
String scope,
String username)
Checks if is item synched.
|
org.gcube.portal.wssynclibrary.shared.thredds.ThSyncStatus |
monitorSyncStatus(String itemId,
String scope,
String userToken)
Gets the sync status.
|
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 org.gcube.portal.wssynclibrary.shared.thredds.ThSyncStatus doSyncFolder(String folderId, org.gcube.portal.wssynclibrary.shared.thredds.ThSynchFolderConfiguration thConfig, String scope, String userToken) throws Exception
folderId - the folder idthConfig - the th configscope - the scopeuserToken - the user tokenException - the exceptionpublic org.gcube.portal.wssynclibrary.shared.thredds.Sync_Status getSynchedStatusFromItemProperty(String folderId, String scope, String username) throws Exception
folderId - the folder idscope - the scopeusername - the usernameException - the exceptionpublic boolean isItemSynched(String folderId, String scope, String username) throws org.gcube.portal.wssynclibrary.shared.ItemNotSynched, Exception
folderId - the folder idscope - the scopeusername - the usernameorg.gcube.portal.wssynclibrary.shared.ItemNotSynched - the item not synchedException - the exceptionpublic org.gcube.portal.wssynclibrary.shared.thredds.ThSyncFolderDescriptor checkItemSynched(String folderId, String scope, String userToken) throws org.gcube.portal.wssynclibrary.shared.ItemNotSynched, org.gcube.portal.wssynclibrary.shared.WorkspaceFolderLocked, Exception
folderId - the folder idscope - the scopeuserToken - the user tokenorg.gcube.portal.wssynclibrary.shared.ItemNotSynched - the item not synchedorg.gcube.portal.wssynclibrary.shared.WorkspaceFolderLocked - the workspace folder lockedException - 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 exceptionpublic Boolean doUnSync(String folderId, boolean deleteRemoteContent, String scope, String userToken) throws Exception
folderId - the folder iddeleteRemoteContent - the delete remote contentscope - the scopeuserToken - the user tokenException - the exceptionpublic void registerCallbackForId(String folderId, String scope, String userToken) throws Exception
folderId - the folder idscope - the scopeuserToken - the user tokenException - the exceptionpublic List<org.gcube.portal.wssynclibrary.shared.thredds.ThCatalogueBean> getAvailableCataloguesByToken(String scope, String userToken, String targetToken) throws Exception
scope - the scopeuserToken - the user tokentargetToken - the target tokenException - the exceptionCopyright © 2018. All Rights Reserved.