WorkspacesApi
CLASS in nl.bimbase.bimworks.client.apis.
API catalogue · nl.bimbase.bimworks.client.apis · CLASS
public class WorkspacesApiWorkspaces: named, optionally filtered views over an account's tree that can be published and switched between.
Inheritance and interfaces#
Members#
| Member | Kind | Description |
|---|---|---|
| WorkspacesApi(BimWorksClient) | CONSTRUCTOR | |
| create(String, UUID, String) | METHOD | Create a workspace. The server answers with the new uuid, which this method does not pass on; use #list() to find it. |
| create(String, UUID, String, ObjectNode) | METHOD | |
| update(UUID, String, String) | METHOD | |
| update(UUID, String, String, ObjectNode, boolean) | METHOD | Update with the visible-features rule: an object sets it, clearFeatureVisibility removes it (everything visible again); both false = leave it as it is. |
| delete(UUID) | METHOD | Soft-delete a workspace and its sub-workspaces: they leave #list() and their published links stop working; the models and actions are kept. |
| list() | METHOD | Root workspaces (children nested under children); the active one is flagged active. |
| setCurrent(UUID) | METHOD | Switch the session's current workspace; null (or "DEFAULT") returns to the plain account view. |
| getInfo() | METHOD | Info about the workspace behind a workspace credential. |
| publish(UUID) | METHOD |
WorkspacesApi(BimWorksClient)#
public WorkspacesApi(nl.bimbase.bimworks.client.BimWorksClient bimWorksClient)Parameters#
| Name | Type | Description |
|---|---|---|
bimWorksClient |
BimWorksClient |
create(String, UUID, String)#
public void create(java.lang.String name, java.util.UUID parentWorkspaceUuid, java.lang.String filter) throws nl.bimbase.bimworks.client.BimWorksExceptionCreate a workspace. The server answers with the new uuid, which this method does not pass on; use #list() to find it.
Parameters#
| Name | Type | Description |
|---|---|---|
name |
java.lang.String |
|
parentWorkspaceUuid |
java.util.UUID |
|
filter |
java.lang.String |
an optional BQL filter applied inside the workspace |
create(String, UUID, String, ObjectNode)#
public void create(java.lang.String name, java.util.UUID parentWorkspaceUuid, java.lang.String filter, com.fasterxml.jackson.databind.node.ObjectNode featureVisibility) throws nl.bimbase.bimworks.client.BimWorksExceptionParameters#
| Name | Type | Description |
|---|---|---|
name |
java.lang.String |
|
parentWorkspaceUuid |
java.util.UUID |
|
filter |
java.lang.String |
|
featureVisibility |
com.fasterxml.jackson.databind.node.ObjectNode |
the white-list or black-list of the features a visitor of the published workspace sees: {"mode": "allow" | "deny", "features": ["attribute.Name", "property.Pset_WallCommon.*", ...]} (docs/feature-list-and-visibility-design.md par 8.2); null = everything visible |
update(UUID, String, String)#
public void update(java.util.UUID uuid, java.lang.String name, java.lang.String filter) throws nl.bimbase.bimworks.client.BimWorksExceptionParameters#
| Name | Type | Description |
|---|---|---|
uuid |
java.util.UUID |
|
name |
java.lang.String |
|
filter |
java.lang.String |
update(UUID, String, String, ObjectNode, boolean)#
public void update(java.util.UUID uuid, java.lang.String name, java.lang.String filter, com.fasterxml.jackson.databind.node.ObjectNode featureVisibility, boolean clearFeatureVisibility) throws nl.bimbase.bimworks.client.BimWorksExceptionUpdate with the visible-features rule: an object sets it, clearFeatureVisibility
removes it (everything visible again); both false = leave it as it is.
Parameters#
| Name | Type | Description |
|---|---|---|
uuid |
java.util.UUID |
|
name |
java.lang.String |
|
filter |
java.lang.String |
|
featureVisibility |
com.fasterxml.jackson.databind.node.ObjectNode |
|
clearFeatureVisibility |
boolean |
delete(UUID)#
public void delete(java.util.UUID uuid) throws nl.bimbase.bimworks.client.BimWorksExceptionSoft-delete a workspace and its sub-workspaces: they leave #list() and their published links stop working; the models and actions are kept.
Parameters#
| Name | Type | Description |
|---|---|---|
uuid |
java.util.UUID |
list()#
public com.fasterxml.jackson.databind.node.ArrayNode list() throws nl.bimbase.bimworks.client.BimWorksExceptionRoot workspaces (children nested under children); the active one is flagged active.
setCurrent(UUID)#
public void setCurrent(java.util.UUID workspaceUuid) throws nl.bimbase.bimworks.client.BimWorksExceptionSwitch the session's current workspace; null (or "DEFAULT") returns to the plain account view.
Parameters#
| Name | Type | Description |
|---|---|---|
workspaceUuid |
java.util.UUID |
getInfo()#
public com.fasterxml.jackson.databind.node.ObjectNode getInfo() throws nl.bimbase.bimworks.client.BimWorksExceptionInfo about the workspace behind a workspace credential.
publish(UUID)#
public void publish(java.util.UUID uuid) throws nl.bimbase.bimworks.client.BimWorksExceptionParameters#
| Name | Type | Description |
|---|---|---|
uuid |
java.util.UUID |
Inherited members#
java.lang.Object#equals(java.lang.Object)java.lang.Object#toString()java.lang.Object#wait(long)java.lang.Object#wait(long,int)java.lang.Object#wait()java.lang.Object#finalize()java.lang.Object#getClass()java.lang.Object#hashCode()java.lang.Object#clone()java.lang.Object#notify()java.lang.Object#notifyAll()- getBimWorksClient()