Package nl.bimbase.bimworks.client
Class BimWorksClient
java.lang.Object
nl.bimbase.bimworks.client.BimWorksClient
- All Implemented Interfaces:
AutoCloseable
BimWorksClient object can be short-lived objects (but long-lived objects are fine too).
BimWorksClient objects are usually authenticated by either a username/password combination, a BIM.works API Token, or some other type of auth.
BimWorksClient objects cannot be constructed directly, but only through the BimWorksClientFactory.
-
Field Summary
Modifier and TypeFieldDescriptionfinal AdminApi
final AuthApi
final BcfApi
final BimApi
final FileSystemApi
final Geometry2d
final Geometry3d
final GisApi
final IfcApi
final ModelChecksApi
static final com.fasterxml.jackson.databind.ObjectMapper
final RenderApi
final TokensApi
final UploadApi
-
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
nl.sascom.backplane.common.ClientTask
createAsyncTask
(nl.sascom.backplane.common.Request request) nl.sascom.backplane.common.Request
com.fasterxml.jackson.databind.JsonNode
executeAsyncTask
(nl.sascom.backplane.common.Request request) com.fasterxml.jackson.databind.node.ArrayNode
executeForArray
(Task taskInput) com.fasterxml.jackson.databind.node.ObjectNode
executeForObject
(Task taskInput) nl.sascom.backplane.common.Response
executeForResponse
(Task taskInput) com.fasterxml.jackson.databind.node.ObjectNode
generateDownloadToken
(UUID newNodeUuid, Duration duration) com.fasterxml.jackson.databind.node.ObjectNode
com.fasterxml.jackson.databind.node.ObjectNode
generateUploadToken
(UUID parentUuid, Duration duration, Path path) nl.sascom.backplane.client.NodeClient
getApi()
nl.bimbase.bimworks.common.HashManager
getLastScreenshotNew
(UUID lastVersionUuid) nl.sascom.backplane.client.NodeClient
com.fasterxml.jackson.databind.node.ArrayNode
registerStream
(String filename, long filesize, String contentType, InputStream inputStream) registerStream
(String filename, String contentType, String url, long filesize) registerStream
(Path path) void
setAuthToken
(com.fasterxml.jackson.databind.node.ObjectNode auth)
-
Field Details
-
OBJECT_MAPPER
public static final com.fasterxml.jackson.databind.ObjectMapper OBJECT_MAPPER -
fs
-
gis
-
auth
-
ifc
-
upload
-
tokens
-
bim
-
bcf
-
admin
-
modelChecks
-
geometry2d
-
geometry3d
-
render
-
-
Method Details
-
close
- Specified by:
close
in interfaceAutoCloseable
- Throws:
InterruptedException
-
getNodeClient
public nl.sascom.backplane.client.NodeClient getNodeClient() -
generateUploadToken
public com.fasterxml.jackson.databind.node.ObjectNode generateUploadToken(UUID parentUuid, Duration duration, Path path) throws BimWorksException - Throws:
BimWorksException
-
generateDownloadToken
public com.fasterxml.jackson.databind.node.ObjectNode generateDownloadToken(UUID newNodeUuid, Duration duration) throws BimWorksException - Throws:
BimWorksException
-
generateQueryToken
public com.fasterxml.jackson.databind.node.ObjectNode generateQueryToken(Set<UUID> versionUuids, BimQuery bimQuery, String[] paths, Duration duration) throws BimWorksException - Throws:
BimWorksException
-
getApplicationVersion
public String getApplicationVersion() throws IOException, nl.sascom.backplane.common.ExecuteException- Throws:
IOException
nl.sascom.backplane.common.ExecuteException
-
listModelsForGis
- Throws:
BimWorksException
-
getApi
public nl.sascom.backplane.client.NodeClient getApi() -
getLastScreenshotNew
- Throws:
BimWorksException
-
executeAsyncTask
public com.fasterxml.jackson.databind.JsonNode executeAsyncTask(nl.sascom.backplane.common.Request request) throws BimWorksException - Throws:
BimWorksException
-
createRequest
public nl.sascom.backplane.common.Request createRequest() -
createAsyncTask
public nl.sascom.backplane.common.ClientTask createAsyncTask(nl.sascom.backplane.common.Request request) -
registerStream
public String registerStream(Path path) throws nl.sascom.backplane.common.StreamAlreadyRegisteredException - Throws:
nl.sascom.backplane.common.StreamAlreadyRegisteredException
-
registerStream
public String registerStream(String filename, String contentType, String url, long filesize) throws MalformedURLException, nl.sascom.backplane.common.StreamAlreadyRegisteredException - Throws:
MalformedURLException
nl.sascom.backplane.common.StreamAlreadyRegisteredException
-
registerStream
public String registerStream(String filename, long filesize, String contentType, InputStream inputStream) throws nl.sascom.backplane.common.StreamAlreadyRegisteredException - Throws:
nl.sascom.backplane.common.StreamAlreadyRegisteredException
-
setAuthToken
public void setAuthToken(com.fasterxml.jackson.databind.node.ObjectNode auth) -
executeForObject
public com.fasterxml.jackson.databind.node.ObjectNode executeForObject(Task taskInput) throws BimWorksException - Throws:
BimWorksException
-
executeForArray
public com.fasterxml.jackson.databind.node.ArrayNode executeForArray(Task taskInput) throws BimWorksException - Throws:
BimWorksException
-
executeForResponse
public nl.sascom.backplane.common.Response executeForResponse(Task taskInput) throws BimWorksException - Throws:
BimWorksException
-
getFactory
-
getHashManager
public nl.bimbase.bimworks.common.HashManager getHashManager()
-