Reference·Java · nl.bimbase.bimworks.client.apisJava

WorkspacesApi

CLASS in nl.bimbase.bimworks.client.apis.

API catalogue · nl.bimbase.bimworks.client.apis · CLASS

Java#
public class WorkspacesApi

Workspaces: 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)#

Parameters#

Name Type Description
bimWorksClient BimWorksClient

create(String, UUID, String)#

Java#
public void create(java.lang.String name, java.util.UUID parentWorkspaceUuid, java.lang.String filter) throws nl.bimbase.bimworks.client.BimWorksException

Create 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)#

Java#
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.BimWorksException

Parameters#

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)#

Java#
public void update(java.util.UUID uuid, java.lang.String name, java.lang.String filter) throws nl.bimbase.bimworks.client.BimWorksException

Parameters#

Name Type Description
uuid java.util.UUID
name java.lang.String
filter java.lang.String

update(UUID, String, String, ObjectNode, boolean)#

Java#
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.BimWorksException

Update 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)#

Java#
public void delete(java.util.UUID uuid) throws nl.bimbase.bimworks.client.BimWorksException

Soft-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()#

Java#
public com.fasterxml.jackson.databind.node.ArrayNode list() throws nl.bimbase.bimworks.client.BimWorksException

Root workspaces (children nested under children); the active one is flagged active.

setCurrent(UUID)#

Java#
public void setCurrent(java.util.UUID workspaceUuid) throws nl.bimbase.bimworks.client.BimWorksException

Switch the session's current workspace; null (or "DEFAULT") returns to the plain account view.

Parameters#

Name Type Description
workspaceUuid java.util.UUID

getInfo()#

Java#
public com.fasterxml.jackson.databind.node.ObjectNode getInfo() throws nl.bimbase.bimworks.client.BimWorksException

Info about the workspace behind a workspace credential.

publish(UUID)#

Java#
public void publish(java.util.UUID uuid) throws nl.bimbase.bimworks.client.BimWorksException

Parameters#

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()