Class InMemoryDataModelDiagramStorage
java.lang.Object
io.jmix.datatoolsflowui.datamodel.impl.InMemoryDataModelDiagramStorage
- All Implemented Interfaces:
DataModelDiagramStorage
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()Removes all stored diagram data from the storage.byte[]Retrieves the diagram data associated with the specified unique identifier.voidStores the specified diagram data associated with the provided unique identifier.booleanRemoves the diagram data associated with the specified unique identifier.
-
Field Details
-
diagrams
-
-
Constructor Details
-
InMemoryDataModelDiagramStorage
-
-
Method Details
-
get
Description copied from interface:DataModelDiagramStorageRetrieves the diagram data associated with the specified unique identifier.- Specified by:
getin interfaceDataModelDiagramStorage- Parameters:
id- the uniqueUUIDidentifying the diagram data to retrieve- Returns:
- a byte array representing the diagram data if found, or null if no data is associated with the given ID
-
put
Description copied from interface:DataModelDiagramStorageStores the specified diagram data associated with the provided unique identifier.- Specified by:
putin interfaceDataModelDiagramStorage- Parameters:
id- the uniqueUUIDused to identify the diagram datadiagramData- a byte array representing the diagram data to be stored
-
remove
Description copied from interface:DataModelDiagramStorageRemoves the diagram data associated with the specified unique identifier.- Specified by:
removein interfaceDataModelDiagramStorage- Parameters:
id- the uniqueUUIDidentifying the diagram data to be removed- Returns:
- true if the diagram data was found and removed, false otherwise
-
clear
public void clear()Description copied from interface:DataModelDiagramStorageRemoves all stored diagram data from the storage.- Specified by:
clearin interfaceDataModelDiagramStorage
-