Class ActionsApi
java.lang.Object
nl.bimbase.bimworks.client.apis.SubApi
nl.bimbase.bimworks.client.apis.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).-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumWhere the UI shows a query's result; sent asoutput_hint.static enumHowupdateQuery(UUID, String, String, ActionsApi.SaveMode, String)stores the change. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionCreate a folder.addQuery(UUID parentUuid, String name, String bql, ActionsApi.OutputHint outputHint, boolean favourite) Save a BQL query as an action of main type QUERY3.voiddeleteAction(UUID uuid) Soft-delete an action (folders included).com.fasterxml.jackson.databind.node.ObjectNodecom.fasterxml.jackson.databind.node.ObjectNodegetActionByPath(String path) The action at a path relative to the account root, or null when it does not exist.com.fasterxml.jackson.databind.node.ObjectNodeThe account's root action (its top-level folder), withuuid,editableandfull_path.com.fasterxml.jackson.databind.node.ArrayNodelistActions(String path) Actions under a path like"Favourites"or"Load queries/Walls", relative to the account root.com.fasterxml.jackson.databind.node.ArrayNodelistActions(UUID folderUuid) The children of an action folder.voidundeleteAction(UUID uuid) com.fasterxml.jackson.databind.node.ObjectNodeupdateQuery(UUID uuid, String name, String bql, ActionsApi.SaveMode saveMode, String comment) Update a saved query's name and/or BQL;NEW_VERSIONkeeps the history.Methods inherited from class SubApi
getBimWorksClient
-
Constructor Details
-
ActionsApi
-
-
Method Details
-
getRootAction
The account's root action (its top-level folder), withuuid,editableandfull_path.- Throws:
BimWorksException
-
listActions
public com.fasterxml.jackson.databind.node.ArrayNode listActions(UUID folderUuid) throws BimWorksException The children of an action folder.- Throws:
BimWorksException
-
listActions
public com.fasterxml.jackson.databind.node.ArrayNode listActions(String path) throws BimWorksException Actions under a path like"Favourites"or"Load queries/Walls", relative to the account root.- Throws:
BimWorksException
-
addFolder
Create a folder. @return the new action's uuid- Throws:
BimWorksException
-
addQuery
public UUID addQuery(UUID parentUuid, String name, String bql, ActionsApi.OutputHint outputHint, boolean favourite) throws BimWorksException Save a BQL query as an action of main type QUERY3. @return the new action's uuid- Throws:
BimWorksException
-
updateQuery
public com.fasterxml.jackson.databind.node.ObjectNode updateQuery(UUID uuid, String name, String bql, ActionsApi.SaveMode saveMode, String comment) throws BimWorksException Update a saved query's name and/or BQL;NEW_VERSIONkeeps the history.- Throws:
BimWorksException
-
getAction
- Throws:
BimWorksException
-
getActionByPath
public com.fasterxml.jackson.databind.node.ObjectNode getActionByPath(String path) throws BimWorksException The action at a path relative to the account root, or null when it does not exist.- Throws:
BimWorksException
-
deleteAction
Soft-delete an action (folders included).- Throws:
BimWorksException
-
undeleteAction
- Throws:
BimWorksException
-