public interface Location
Modifier and Type | Interface and Description |
---|---|
static class |
Location.LocationType |
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
SHARED_PATH_PREFIX |
Modifier and Type | Method and Description |
---|---|
boolean |
checkConnection()
Checks if this location is currently available.
|
ServerModel |
createNewModel(java.io.File model,
java.lang.String path,
java.lang.String id,
SingleUser user,
java.lang.String comment)
Create new model
|
java.lang.String |
getAtticPath(SingleUser user)
Get path to the attic directory
|
java.util.Map<java.lang.String,java.util.List<ServerModel>> |
getIndex(java.util.Set<java.lang.String> usedIDs,
boolean forceRefresh)
Get index of this location.
|
MetaDataHandler |
getMetaDataHandler()
Get meta data handler for this location
|
java.util.Map<java.lang.String,AccessType> |
getModelsForUser(SingleUser user)
Get all models belonging to a certain user withing this location
|
java.lang.String |
getName()
Get this location's name
|
Location.LocationType |
getType()
Get the type of this location
|
java.util.Set<java.lang.String> |
listPaths()
Get all paths belonging to this location
|
java.util.Set<java.lang.String> |
listPaths(SingleUser user)
Get all paths belonging to a certain user within this location
|
boolean |
removeModel(java.lang.String id,
SingleUser user)
Remove a certain model
|
static final java.lang.String SHARED_PATH_PREFIX
boolean checkConnection()
boolean removeModel(java.lang.String id, SingleUser user)
id
- the model iduser
- the user that requested the deletionjava.lang.String getAtticPath(SingleUser user)
user
- the userjava.util.Map<java.lang.String,java.util.List<ServerModel>> getIndex(java.util.Set<java.lang.String> usedIDs, boolean forceRefresh)
MetaDataHandler getMetaDataHandler()
Location.LocationType getType()
java.lang.String getName()
java.util.Set<java.lang.String> listPaths()
java.util.Set<java.lang.String> listPaths(SingleUser user)
user
- the userjava.util.Map<java.lang.String,AccessType> getModelsForUser(SingleUser user)
user
- the userServerModel createNewModel(java.io.File model, java.lang.String path, java.lang.String id, SingleUser user, java.lang.String comment)