public class WorkspaceStore extends Object
| Modifier and Type | Field and Description |
|---|---|
static io.cdap.cdap.spi.data.table.StructuredTableSpecification |
WORKSPACE_TABLE_SPEC |
| Constructor and Description |
|---|
WorkspaceStore(io.cdap.cdap.spi.data.transaction.TransactionRunner transactionRunner) |
| Modifier and Type | Method and Description |
|---|---|
void |
deleteWorkspace(WorkspaceId workspaceId)
Delete the given workspace
|
Workspace |
getWorkspace(WorkspaceId workspaceId)
Get the workspace about the given workspace id
|
WorkspaceDetail |
getWorkspaceDetail(WorkspaceId workspaceId)
Get the workspace detail about the given workspace id
|
List<Workspace> |
listWorkspaces(NamespaceSummary namespace)
Get all the workspaces in the given namespace
|
void |
saveWorkspace(WorkspaceId workspaceId,
WorkspaceDetail workspace)
Create/update the workspace from given workspace.
|
void |
updateWorkspace(WorkspaceId workspaceId,
Workspace workspace)
Save the new workspace metadata
|
public static final io.cdap.cdap.spi.data.table.StructuredTableSpecification WORKSPACE_TABLE_SPEC
public WorkspaceStore(io.cdap.cdap.spi.data.transaction.TransactionRunner transactionRunner)
public Workspace getWorkspace(WorkspaceId workspaceId) throws WorkspaceNotFoundException
workspaceId - the id of the workspace to look upWorkspaceNotFoundException - if the workspace is not foundpublic WorkspaceDetail getWorkspaceDetail(WorkspaceId workspaceId) throws WorkspaceNotFoundException
workspaceId - the id of the workspace to look upWorkspaceNotFoundException - if the workspace is not foundpublic List<Workspace> listWorkspaces(NamespaceSummary namespace)
namespace - the namespace to look uppublic void saveWorkspace(WorkspaceId workspaceId, WorkspaceDetail workspace)
workspaceId - the id of the workspaceworkspace - workspace to create/updatepublic void updateWorkspace(WorkspaceId workspaceId, Workspace workspace)
workspaceId - the workspace idworkspace - the new workspace meta to savepublic void deleteWorkspace(WorkspaceId workspaceId) throws WorkspaceNotFoundException
workspaceId - the workspace id to deleteWorkspaceNotFoundException - if the workspace is not foundCopyright © 2024 CDAP Licensed under the Apache License, Version 2.0.