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

ActionsApi

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

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

Java#
public class ActionsApi

The Actions tree: saved queries, folders and the other action types the UI keeps per account. Actions are the "predefined queries" panel — a saved BQL query is an action of main type QUERY3, executed with BimApi#query(UUID, java.util.Set).

Inheritance and interfaces#

Members#

Member Kind Description
ActionsApi(BimWorksClient) CONSTRUCTOR
getRootAction() METHOD The account's root action (its top-level folder), with uuid, editable and full_path.
listActions(UUID) METHOD The children of an action folder.
listActions(String) METHOD Actions under a path like "Favourites" or "Load queries/Walls", relative to the account root.
addFolder(UUID, String) METHOD Create a folder. @return the new action's uuid
addQuery(UUID, String, String, ActionsApi.OutputHint, boolean) METHOD Save a BQL query as an action of main type QUERY3. @return the new action's uuid
updateQuery(UUID, String, String, ActionsApi.SaveMode, String) METHOD Update a saved query's name and/or BQL; NEW_VERSION keeps the history.
getAction(UUID) METHOD
getActionByPath(String) METHOD The action at a path relative to the account root, or null when it does not exist.
deleteAction(UUID) METHOD Soft-delete an action (folders included).
undeleteAction(UUID) METHOD

ActionsApi(BimWorksClient)#

Parameters#

Name Type Description
bimWorksClient BimWorksClient

getRootAction()#

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

The account's root action (its top-level folder), with uuid, editable and full_path.

listActions(UUID)#

Java#
public com.fasterxml.jackson.databind.node.ArrayNode listActions(java.util.UUID folderUuid) throws nl.bimbase.bimworks.client.BimWorksException

The children of an action folder.

Parameters#

Name Type Description
folderUuid java.util.UUID

listActions(String)#

Java#
public com.fasterxml.jackson.databind.node.ArrayNode listActions(java.lang.String path) throws nl.bimbase.bimworks.client.BimWorksException

Actions under a path like "Favourites" or "Load queries/Walls", relative to the account root.

Parameters#

Name Type Description
path java.lang.String

addFolder(UUID, String)#

Java#
public java.util.UUID addFolder(java.util.UUID parentUuid, java.lang.String name) throws nl.bimbase.bimworks.client.BimWorksException

Create a folder. @return the new action's uuid

Parameters#

Name Type Description
parentUuid java.util.UUID
name java.lang.String

addQuery(UUID, String, String, ActionsApi.OutputHint, boolean)#

Java#
public java.util.UUID addQuery(java.util.UUID parentUuid, java.lang.String name, java.lang.String bql, nl.bimbase.bimworks.client.apis.ActionsApi.OutputHint outputHint, boolean favourite) throws nl.bimbase.bimworks.client.BimWorksException

Save a BQL query as an action of main type QUERY3. @return the new action's uuid

Parameters#

Name Type Description
parentUuid java.util.UUID
name java.lang.String
bql java.lang.String
outputHint ActionsApi.OutputHint
favourite boolean

updateQuery(UUID, String, String, ActionsApi.SaveMode, String)#

Java#
public com.fasterxml.jackson.databind.node.ObjectNode updateQuery(java.util.UUID uuid, java.lang.String name, java.lang.String bql, nl.bimbase.bimworks.client.apis.ActionsApi.SaveMode saveMode, java.lang.String comment) throws nl.bimbase.bimworks.client.BimWorksException

Update a saved query's name and/or BQL; NEW_VERSION keeps the history.

Parameters#

Name Type Description
uuid java.util.UUID
name java.lang.String
bql java.lang.String
saveMode ActionsApi.SaveMode
comment java.lang.String

getAction(UUID)#

Java#
public com.fasterxml.jackson.databind.node.ObjectNode getAction(java.util.UUID uuid) throws nl.bimbase.bimworks.client.BimWorksException

Parameters#

Name Type Description
uuid java.util.UUID

getActionByPath(String)#

Java#
public com.fasterxml.jackson.databind.node.ObjectNode getActionByPath(java.lang.String path) throws nl.bimbase.bimworks.client.BimWorksException

The action at a path relative to the account root, or null when it does not exist.

Parameters#

Name Type Description
path java.lang.String

deleteAction(UUID)#

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

Soft-delete an action (folders included).

Parameters#

Name Type Description
uuid java.util.UUID

undeleteAction(UUID)#

Java#
public void undeleteAction(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()