Location.LocationType
SHARED_PATH_PREFIX
Constructor and Description |
---|
ISLocation(java.net.URI serverURL,
java.lang.String username,
java.lang.String password) |
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
|
boolean |
equals(java.lang.Object o) |
AccessType |
getAccessability(java.lang.String id,
int version,
LoginableUser user) |
java.util.Set<User> |
getAnnotators(java.lang.String id) |
java.lang.String |
getAtticPath(SingleUser user)
Get path to the attic directory
|
java.util.Set<User> |
getEditors(java.lang.String id) |
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
|
ServerModel |
getModel(java.lang.String id) |
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
|
java.lang.String |
getOwner(java.lang.String id) |
java.lang.String |
getPwd() |
Location.LocationType |
getType()
Get the type of this location
|
java.lang.String |
getURL() |
java.lang.String |
getUser() |
java.util.Set<User> |
getViewers(java.lang.String id) |
int |
hashCode()
this hashcode ensures that no ISLocation with the same user/URL combination can be added
|
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
|
ServerModel |
saveProcessModel(ProcessModel pm,
java.lang.String id,
int version) |
boolean |
setOwner(java.lang.String id,
SingleUser owner,
SingleUser admin) |
java.lang.String |
toString() |
public ISLocation(java.net.URI serverURL, java.lang.String username, java.lang.String password)
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public boolean checkConnection()
Location
checkConnection
in interface Location
public ServerModel saveProcessModel(ProcessModel pm, java.lang.String id, int version)
public boolean removeModel(java.lang.String id, SingleUser user)
Location
removeModel
in interface Location
id
- the model iduser
- the user that requested the deletionpublic java.lang.String getAtticPath(SingleUser user)
Location
getAtticPath
in interface Location
user
- the userpublic java.util.Map<java.lang.String,java.util.List<ServerModel>> getIndex(java.util.Set<java.lang.String> usedIDs, boolean forceRefresh)
Location
public ServerModel getModel(java.lang.String id)
public MetaDataHandler getMetaDataHandler()
Location
getMetaDataHandler
in interface Location
public Location.LocationType getType()
Location
public java.lang.String getName()
Location
public java.util.Set<java.lang.String> listPaths()
Location
public java.util.Set<java.lang.String> listPaths(SingleUser user)
Location
public java.util.Map<java.lang.String,AccessType> getModelsForUser(SingleUser user)
Location
getModelsForUser
in interface Location
user
- the userpublic ServerModel createNewModel(java.io.File model, java.lang.String path, java.lang.String id, SingleUser user, java.lang.String comment)
Location
createNewModel
in interface Location
public AccessType getAccessability(java.lang.String id, int version, LoginableUser user)
public java.lang.String getOwner(java.lang.String id)
public java.util.Set<User> getViewers(java.lang.String id)
public java.util.Set<User> getEditors(java.lang.String id)
public java.util.Set<User> getAnnotators(java.lang.String id)
public boolean setOwner(java.lang.String id, SingleUser owner, SingleUser admin)
public java.lang.String getURL() throws java.lang.Exception
java.lang.Exception
public java.lang.String getUser()
public java.lang.String getPwd()
public java.lang.String toString()
toString
in class java.lang.Object