Class WorkspacesApi
java.lang.Object
nl.bimbase.bimworks.client.apis.SubApi
nl.bimbase.bimworks.client.apis.WorkspacesApi
Workspaces: named, optionally filtered views over an account's tree that can be published
and switched between.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidCreate a workspace.voidcreate(String name, UUID parentWorkspaceUuid, String filter, com.fasterxml.jackson.databind.node.ObjectNode featureVisibility) voidSoft-delete a workspace and its sub-workspaces: they leavelist()and their published links stop working; the models and actions are kept.com.fasterxml.jackson.databind.node.ObjectNodegetInfo()Info about the workspace behind a workspace credential.com.fasterxml.jackson.databind.node.ArrayNodelist()Root workspaces (children nested underchildren); the active one is flaggedactive.voidvoidsetCurrent(UUID workspaceUuid) Switch the session's current workspace; null (or "DEFAULT") returns to the plain account view.voidvoidupdate(UUID uuid, String name, String filter, com.fasterxml.jackson.databind.node.ObjectNode featureVisibility, boolean clearFeatureVisibility) Update with the visible-features rule: an object sets it,clearFeatureVisibilityremoves it (everything visible again); both false = leave it as it is.Methods inherited from class SubApi
getBimWorksClient
-
Constructor Details
-
WorkspacesApi
-
-
Method Details
-
create
Create a workspace. The server answers with the new uuid, which this method does not pass on; uselist()to find it.- Parameters:
filter- an optional BQL filter applied inside the workspace- Throws:
BimWorksException
-
create
public void create(String name, UUID parentWorkspaceUuid, String filter, com.fasterxml.jackson.databind.node.ObjectNode featureVisibility) throws BimWorksException - Parameters:
featureVisibility- 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- Throws:
BimWorksException
-
update
- Throws:
BimWorksException
-
update
public void update(UUID uuid, String name, String filter, com.fasterxml.jackson.databind.node.ObjectNode featureVisibility, boolean clearFeatureVisibility) throws BimWorksException Update with the visible-features rule: an object sets it,clearFeatureVisibilityremoves it (everything visible again); both false = leave it as it is.- Throws:
BimWorksException
-
delete
Soft-delete a workspace and its sub-workspaces: they leavelist()and their published links stop working; the models and actions are kept.- Throws:
BimWorksException
-
list
Root workspaces (children nested underchildren); the active one is flaggedactive.- Throws:
BimWorksException
-
setCurrent
Switch the session's current workspace; null (or "DEFAULT") returns to the plain account view.- Throws:
BimWorksException
-
getInfo
Info about the workspace behind a workspace credential.- Throws:
BimWorksException
-
publish
- Throws:
BimWorksException
-