ActionsApi
CLASS in nl.bimbase.bimworks.client.apis.
API catalogue · nl.bimbase.bimworks.client.apis · CLASS
public class ActionsApiThe 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)#
public ActionsApi(nl.bimbase.bimworks.client.BimWorksClient bimWorksClient)Parameters#
| Name | Type | Description |
|---|---|---|
bimWorksClient |
BimWorksClient |
getRootAction()#
public com.fasterxml.jackson.databind.node.ObjectNode getRootAction() throws nl.bimbase.bimworks.client.BimWorksExceptionThe account's root action (its top-level folder), with uuid, editable and full_path.
listActions(UUID)#
public com.fasterxml.jackson.databind.node.ArrayNode listActions(java.util.UUID folderUuid) throws nl.bimbase.bimworks.client.BimWorksExceptionThe children of an action folder.
Parameters#
| Name | Type | Description |
|---|---|---|
folderUuid |
java.util.UUID |
listActions(String)#
public com.fasterxml.jackson.databind.node.ArrayNode listActions(java.lang.String path) throws nl.bimbase.bimworks.client.BimWorksExceptionActions 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)#
public java.util.UUID addFolder(java.util.UUID parentUuid, java.lang.String name) throws nl.bimbase.bimworks.client.BimWorksExceptionCreate 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)#
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.BimWorksExceptionSave 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)#
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.BimWorksExceptionUpdate 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)#
public com.fasterxml.jackson.databind.node.ObjectNode getAction(java.util.UUID uuid) throws nl.bimbase.bimworks.client.BimWorksExceptionParameters#
| Name | Type | Description |
|---|---|---|
uuid |
java.util.UUID |
getActionByPath(String)#
public com.fasterxml.jackson.databind.node.ObjectNode getActionByPath(java.lang.String path) throws nl.bimbase.bimworks.client.BimWorksExceptionThe 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)#
public void deleteAction(java.util.UUID uuid) throws nl.bimbase.bimworks.client.BimWorksExceptionSoft-delete an action (folders included).
Parameters#
| Name | Type | Description |
|---|---|---|
uuid |
java.util.UUID |
undeleteAction(UUID)#
public void undeleteAction(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()