public class ThreddsWorkspaceSyncServiceImpl extends com.google.gwt.user.server.rpc.RemoteServiceServlet implements ThreddsWorkspaceSyncService
| Constructor and Description |
|---|
ThreddsWorkspaceSyncServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
org.gcube.portal.wssynclibrary.shared.thredds.ThSyncStatus |
doSyncFolder(String folderId,
WsThreddsSynchFolderConfiguration clientConfig)
Do sync folder.
|
Boolean |
doUnSyncFolder(String folderId)
Do un sync folder.
|
List<org.gcube.portal.wssynclibrary.shared.thredds.ThCatalogueBean> |
getAvailableCataloguesForScope(String targetFullScope)
Gets the available THREDDS catalogues for target scope.
|
WsThreddsSynchFolderDescriptor |
getConfiguration(String folderId,
boolean loadStatus)
Gets the configuration.
|
WsThreddsSynchFolderDescriptor |
getConfiguration(String folderId,
boolean loadStatus,
javax.servlet.http.HttpServletRequest httpRequest,
org.gcube.vomanagement.usermanagement.model.GCubeUser user)
Gets the configuration.
|
List<GcubeScope> |
getListOfDataManagerScopesForLoggedUser()
Gets the list scope with the role Data-Manager for logged user.
|
Map<String,GatewayRolesThredds> |
getScopesWithThreddsRolesForLoggedUser()
Gets the list of Scopes (Root-VO, VOs and VREs) for user and the Thredds
roles that user has in them.
|
SyncronizeWithThredds |
getSyncService()
Gets the sync service.
|
static boolean |
isWithinPortal()
Checks if is within portal.
|
org.gcube.portal.wssynclibrary.shared.thredds.ThSyncStatus |
monitorSyncStatus(String folderId)
Monitor sync status.
|
checkPermutationStrongName, doGetSerializationPolicy, getCodeServerPolicyUrl, getRequestModuleBasePath, getSerializationPolicy, init, loadPolicyFromCodeServer, onAfterResponseSerialized, onBeforeRequestDeserialized, processCall, processCall, processPost, shouldCompressResponsedoPost, doUnexpectedFailure, getPermutationStrongName, getThreadLocalRequest, getThreadLocalResponse, onAfterRequestDeserialized, readContentdoDelete, doGet, doHead, doOptions, doPut, doTrace, getLastModified, service, servicepublic SyncronizeWithThredds getSyncService()
public static boolean isWithinPortal()
public List<org.gcube.portal.wssynclibrary.shared.thredds.ThCatalogueBean> getAvailableCataloguesForScope(String targetFullScope) throws Exception
getAvailableCataloguesForScope in interface ThreddsWorkspaceSyncServicetargetFullScope - the target scopeException - the exceptionpublic WsThreddsSynchFolderDescriptor getConfiguration(String folderId, boolean loadStatus) throws org.gcube.portal.wssynclibrary.shared.WorkspaceFolderLocked, Exception
getConfiguration in interface ThreddsWorkspaceSyncServicefolderId - the folder idloadStatus - the load status. If true it loads the status by calling the
SyncEngine.check(String, boolean) but it is time
consuming. No otherwise.org.gcube.portal.wssynclibrary.shared.WorkspaceFolderLocked - the workspace folder lockedException - the exceptionpublic WsThreddsSynchFolderDescriptor getConfiguration(String folderId, boolean loadStatus, javax.servlet.http.HttpServletRequest httpRequest, org.gcube.vomanagement.usermanagement.model.GCubeUser user) throws Exception
folderId - the folder idloadStatus - the load statushttpRequest - the http requestuser - the userException - the exceptionpublic org.gcube.portal.wssynclibrary.shared.thredds.ThSyncStatus doSyncFolder(String folderId, WsThreddsSynchFolderConfiguration clientConfig) throws Exception
doSyncFolder in interface ThreddsWorkspaceSyncServicefolderId - the folder idclientConfig - the client configException - the exceptionpublic Boolean doUnSyncFolder(String folderId) throws Exception
doUnSyncFolder in interface ThreddsWorkspaceSyncServicefolderId - the folder idException - the exceptionpublic Map<String,GatewayRolesThredds> getScopesWithThreddsRolesForLoggedUser() throws Exception
getScopesWithThreddsRolesForLoggedUser in interface ThreddsWorkspaceSyncServiceException - the exceptionpublic List<GcubeScope> getListOfDataManagerScopesForLoggedUser() throws Exception
getListOfDataManagerScopesForLoggedUser in interface ThreddsWorkspaceSyncServiceException - the exceptionpublic org.gcube.portal.wssynclibrary.shared.thredds.ThSyncStatus monitorSyncStatus(String folderId) throws org.gcube.portal.wssynclibrary.shared.ItemNotSynched, Exception
monitorSyncStatus in interface ThreddsWorkspaceSyncServicefolderId - the folder idorg.gcube.portal.wssynclibrary.shared.ItemNotSynched - the item not synchedException - the exceptionCopyright © 2021. All Rights Reserved.