public class MongoDBSubmodelAPI extends Object implements org.eclipse.basyx.submodel.restapi.api.ISubmodelAPI
| Constructor and Description |
|---|
MongoDBSubmodelAPI(BaSyxMongoDBConfiguration config,
String smId)
Receives the path of the configuration.properties file in it's constructor.
|
MongoDBSubmodelAPI(String smId)
Constructor using default sql connections
|
MongoDBSubmodelAPI(String resourceConfigPath,
String smId)
Receives the path of the .properties file in it's constructor from a resource.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addSubmodelElement(org.eclipse.basyx.submodel.metamodel.api.submodelelement.ISubmodelElement elem) |
void |
addSubmodelElement(String idShortPath,
org.eclipse.basyx.submodel.metamodel.api.submodelelement.ISubmodelElement elem) |
void |
deleteSubmodelElement(String idShortPath) |
Object |
getOperationResult(String idShort,
String requestId) |
Collection<org.eclipse.basyx.submodel.metamodel.api.submodelelement.operation.IOperation> |
getOperations() |
org.eclipse.basyx.submodel.metamodel.api.ISubModel |
getSubmodel() |
org.eclipse.basyx.submodel.metamodel.api.submodelelement.ISubmodelElement |
getSubmodelElement(String idShortPath) |
Collection<org.eclipse.basyx.submodel.metamodel.api.submodelelement.ISubmodelElement> |
getSubmodelElements() |
Object |
getSubmodelElementValue(String idShortPath) |
Object |
invokeAsync(String idShortPath,
Object... params) |
Object |
invokeOperation(String idShortPath,
Object... params) |
void |
setConfiguration(BaSyxMongoDBConfiguration config)
Sets the db configuration for the submodel API.
|
void |
setSubModel(org.eclipse.basyx.submodel.metamodel.map.SubModel sm)
Depending on whether the model is already in the db, this method inserts or replaces the existing data.
|
void |
setSubmodelId(String smId)
Sets the submodel id, so that this API points to the submodel with smId.
|
void |
updateSubmodelElement(String idShortPath,
Object newValue) |
public MongoDBSubmodelAPI(BaSyxMongoDBConfiguration config, String smId)
configFilePath - public MongoDBSubmodelAPI(String resourceConfigPath, String smId)
public MongoDBSubmodelAPI(String smId)
public void setConfiguration(BaSyxMongoDBConfiguration config)
config - public void setSubmodelId(String smId)
smId - public void setSubModel(org.eclipse.basyx.submodel.metamodel.map.SubModel sm)
sm - public org.eclipse.basyx.submodel.metamodel.api.ISubModel getSubmodel()
getSubmodel in interface org.eclipse.basyx.submodel.restapi.api.ISubmodelAPIpublic void addSubmodelElement(org.eclipse.basyx.submodel.metamodel.api.submodelelement.ISubmodelElement elem)
addSubmodelElement in interface org.eclipse.basyx.submodel.restapi.api.ISubmodelAPIpublic Collection<org.eclipse.basyx.submodel.metamodel.api.submodelelement.operation.IOperation> getOperations()
getOperations in interface org.eclipse.basyx.submodel.restapi.api.ISubmodelAPIpublic Collection<org.eclipse.basyx.submodel.metamodel.api.submodelelement.ISubmodelElement> getSubmodelElements()
getSubmodelElements in interface org.eclipse.basyx.submodel.restapi.api.ISubmodelAPIpublic Object getOperationResult(String idShort, String requestId)
getOperationResult in interface org.eclipse.basyx.submodel.restapi.api.ISubmodelAPIpublic org.eclipse.basyx.submodel.metamodel.api.submodelelement.ISubmodelElement getSubmodelElement(String idShortPath)
getSubmodelElement in interface org.eclipse.basyx.submodel.restapi.api.ISubmodelAPIpublic void deleteSubmodelElement(String idShortPath)
deleteSubmodelElement in interface org.eclipse.basyx.submodel.restapi.api.ISubmodelAPIpublic void updateSubmodelElement(String idShortPath, Object newValue)
updateSubmodelElement in interface org.eclipse.basyx.submodel.restapi.api.ISubmodelAPIpublic Object getSubmodelElementValue(String idShortPath)
getSubmodelElementValue in interface org.eclipse.basyx.submodel.restapi.api.ISubmodelAPIpublic Object invokeOperation(String idShortPath, Object... params)
invokeOperation in interface org.eclipse.basyx.submodel.restapi.api.ISubmodelAPIpublic Object invokeAsync(String idShortPath, Object... params)
invokeAsync in interface org.eclipse.basyx.submodel.restapi.api.ISubmodelAPIpublic void addSubmodelElement(String idShortPath, org.eclipse.basyx.submodel.metamodel.api.submodelelement.ISubmodelElement elem)
addSubmodelElement in interface org.eclipse.basyx.submodel.restapi.api.ISubmodelAPICopyright © 2021. All rights reserved.