public interface Loader<T extends Identifiable>
| Modifier and Type | Method and Description |
|---|---|
boolean |
contains(Path directory,
String objectId)
Find if an object is used in another objects.
|
List<T> |
findByObjectId(Path directory,
String objectId)
Find all the objects which contain an object id.
|
Map<String,List<T>> |
findByObjectIds(Path directory,
List<String> objectIds)
Returns a Map of object ids, with all the objects which contain an object id.
|
T |
get(Path path) |
List<T> |
getAll(Path directory) |
T |
getByUUID(Path directory,
String uuid) |
String |
getNextAvailableObjectId(Path directory,
String objectName) |
T |
load(Path path)
Use to load the component in the path directory
|
T get(Path path) throws IOException
IOExceptionList<T> getAll(Path directory) throws IOException
IOExceptionString getNextAvailableObjectId(Path directory, String objectName) throws IOException
IOExceptionT getByUUID(Path directory, String uuid) throws IOException
IOExceptionList<T> findByObjectId(Path directory, String objectId) throws IOException
IOExceptionMap<String,List<T>> findByObjectIds(Path directory, List<String> objectIds) throws IOException
IOExceptionboolean contains(Path directory, String objectId) throws IOException
IOExceptionCopyright © 2021. All rights reserved.