public class WorkspaceFolderManager extends Object
| Constructor and Description |
|---|
WorkspaceFolderManager(String folderId) |
| Modifier and Type | Method and Description |
|---|---|
SyncFolderDescriptor |
check(boolean recursively) |
void |
configure(SynchFolderConfiguration toSet) |
void |
dismiss(boolean deleteRemote) |
void |
forceUnlock() |
static SynchronizedElementInfo |
getInfo(String elementId) |
String |
getLockId() |
SynchFolderConfiguration |
getSynchConfiguration() |
org.gcube.common.storagehub.client.dsl.FolderContainer |
getTheFolder() |
ThreddsController |
getThreddsController() |
boolean |
isLocked() |
boolean |
isRoot() |
boolean |
isSynched() |
File |
loadCatalogFile() |
void |
lock(String processId) |
void |
setLastUpdateTime() |
void |
unlock() |
void |
unlock(String processId) |
void |
updateCatalogFile(File toUpload) |
public WorkspaceFolderManager(String folderId) throws WorkspaceInteractionException
WorkspaceInteractionExceptionpublic static SynchronizedElementInfo getInfo(String elementId)
public org.gcube.common.storagehub.client.dsl.FolderContainer getTheFolder()
public ThreddsController getThreddsController() throws WorkspaceNotSynchedException, WorkspaceInteractionException, InternalException
public boolean isRoot()
throws WorkspaceNotSynchedException,
WorkspaceInteractionException
public SynchFolderConfiguration getSynchConfiguration() throws WorkspaceInteractionException, WorkspaceNotSynchedException
public boolean isSynched()
public SyncFolderDescriptor check(boolean recursively) throws WorkspaceInteractionException, InternalException
public String getLockId() throws WorkspaceNotSynchedException, WorkspaceInteractionException, InternalException
public boolean isLocked()
throws WorkspaceNotSynchedException,
WorkspaceInteractionException,
InternalException
public void configure(SynchFolderConfiguration toSet) throws WorkspaceInteractionException, InternalException
public void dismiss(boolean deleteRemote)
throws WorkspaceInteractionException,
InternalException
public void setLastUpdateTime()
throws org.gcube.common.storagehub.model.exceptions.StorageHubException
org.gcube.common.storagehub.model.exceptions.StorageHubExceptionpublic void forceUnlock()
throws InternalException,
WorkspaceInteractionException
public void lock(String processId) throws WorkspaceNotSynchedException, WorkspaceInteractionException, InternalException
public void unlock()
throws WorkspaceNotSynchedException,
WorkspaceInteractionException,
InternalException
public void unlock(String processId) throws WorkspaceNotSynchedException, WorkspaceInteractionException, InternalException
public File loadCatalogFile()
public void updateCatalogFile(File toUpload)
Copyright © 2021. All Rights Reserved.