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.
|
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, Exception
folderId - the folder idscope - the scopeuserToken - the user tokenorg.gcube.portal.wssynclibrary.shared.ItemNotSynched - the item not synchedException - 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 © 2018. All Rights Reserved.