public interface StructuralConfig
Modifier and Type | Method and Description |
---|---|
void |
addModel(java.lang.String id,
java.lang.String path,
SingleUser user)
Add a model at a certain path, for a certain user
|
StructuralConfig |
createUserHome(SingleUser user)
Create a user home
|
java.util.Set<java.lang.String> |
getModelIDs(java.lang.String path,
boolean recursive)
Get all model IDs belonging to a specific path.
|
java.lang.String |
getPathForModel(java.lang.String id)
Get the path of a model
|
java.util.Set<java.lang.String> |
getSharedModels(User user)
Get all models a user has shared access.
|
java.lang.String |
getUserHome(SingleUser user)
Get the path of the user's home.
|
java.util.Set<java.lang.String> |
listPaths()
List all paths
|
java.util.Set<java.lang.String> |
listSharedPaths(User user)
List the paths for which a user has shared access at least to one model
|
java.util.Set<java.lang.String> |
listUserHome(SingleUser user)
List all paths belonging to the user's home
|
boolean |
moveDirectory(java.lang.String dirPath,
java.lang.String targetPath,
SingleUser user)
Move a complete directory to another path
|
void |
remove(java.lang.String id)
Remove a certain model
|
void |
removeDirectory(java.lang.String path,
SingleUser user)
Remove a complete directory with all its models
|
void |
setPath(java.lang.String id,
java.lang.String path,
SingleUser user)
Set the path of a model
|
java.lang.String getPathForModel(java.lang.String id)
id
- the model's IDvoid addModel(java.lang.String id, java.lang.String path, SingleUser user)
id
- the model's IDpath
- the path of the modeluser
- the user the model is added forvoid setPath(java.lang.String id, java.lang.String path, SingleUser user)
id
- the model's idpath
- the new pathuser
- the user that requests the change of the pathboolean moveDirectory(java.lang.String dirPath, java.lang.String targetPath, SingleUser user)
dirPath
- the path of the directory that will be movedtargetPath
- the path were the directory will be moved touser
- the user that requests the movement of the directoryvoid remove(java.lang.String id)
id
- the model's IDvoid removeDirectory(java.lang.String path, SingleUser user)
path
- the path of the directoryuser
- the user that requests deletionjava.util.Set<java.lang.String> listSharedPaths(User user)
user
- the userjava.util.Set<java.lang.String> getSharedModels(User user)
user
- the userStructuralConfig createUserHome(SingleUser user)
user
- the userjava.lang.String getUserHome(SingleUser user)
user
- the userjava.util.Set<java.lang.String> listUserHome(SingleUser user)
user
- the userjava.util.Set<java.lang.String> listPaths()
java.util.Set<java.lang.String> getModelIDs(java.lang.String path, boolean recursive)
path
- the path of the directoryrecursive
-