ObjectType
- The type of objects stored within this Directory.public interface Directory<ObjectType extends Identifiable>
Modifier and Type | Method and Description |
---|---|
void |
add(ObjectType object)
Adds the given object to the overall set.
|
ObjectType |
get(String identifier)
Returns the object having the given identifier.
|
Collection<ObjectType> |
getAll(Collection<String> identifiers)
Returns the objects having the given identifiers.
|
Set<String> |
getIdentifiers()
Returns a Set containing all identifiers for all objects within this
Directory.
|
void |
remove(String identifier)
Removes the object with the given identifier from the overall set.
|
void |
update(ObjectType object)
Updates the stored object with the data contained in the given object.
|
ObjectType get(String identifier) throws org.apache.guacamole.GuacamoleException
identifier
- The identifier to use when locating the object to
return.org.apache.guacamole.GuacamoleException
- If an error occurs while retrieving the
object, or if permission for retrieving the
object is denied.Collection<ObjectType> getAll(Collection<String> identifiers) throws org.apache.guacamole.GuacamoleException
identifiers
- The identifiers to use when locating the objects to return.org.apache.guacamole.GuacamoleException
- If an error occurs while retrieving the objects, or if permission
to retrieve the requested objects is denied.Set<String> getIdentifiers() throws org.apache.guacamole.GuacamoleException
org.apache.guacamole.GuacamoleException
- If an error occurs while retrieving
the identifiers.void add(ObjectType object) throws org.apache.guacamole.GuacamoleException
object
- The object to add.org.apache.guacamole.GuacamoleException
- If an error occurs while adding the object, or if adding the object
is not allowed.void update(ObjectType object) throws org.apache.guacamole.GuacamoleException
object
- The object which will supply the data for the update.org.apache.guacamole.GuacamoleException
- If an error occurs while updating the object,
or if updating the object is not allowed.void remove(String identifier) throws org.apache.guacamole.GuacamoleException
identifier
- The identifier of the object to remove.org.apache.guacamole.GuacamoleException
- If an error occurs while removing the object,
or if removing object is not allowed.Copyright © 2016. All rights reserved.