IdentifierType
- The type of identifier used to identify objects
stored within this Directory.ObjectType
- The type of objects stored within this Directory.public interface Directory<IdentifierType,ObjectType>
Modifier and Type | Method and Description |
---|---|
void |
add(ObjectType object)
Adds the given object to the overall set.
|
ObjectType |
get(IdentifierType identifier)
Returns the object having the given identifier.
|
Set<IdentifierType> |
getIdentifiers()
Returns a Set containing all identifiers for all objects within this
Directory.
|
void |
remove(IdentifierType 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(IdentifierType identifier) throws net.sourceforge.guacamole.GuacamoleException
identifier
- The identifier to use when locating the object to
return.net.sourceforge.guacamole.GuacamoleException
- If an error occurs while retrieving the
object, or if permission for retrieving the
object is denied.Set<IdentifierType> getIdentifiers() throws net.sourceforge.guacamole.GuacamoleException
net.sourceforge.guacamole.GuacamoleException
- If an error occurs while retrieving
the identifiers.void add(ObjectType object) throws net.sourceforge.guacamole.GuacamoleException
object
- The object to add.net.sourceforge.guacamole.GuacamoleException
- If an error occurs while adding the object , or
if adding the object is not allowed.void update(ObjectType object) throws net.sourceforge.guacamole.GuacamoleException
object
- The object which will supply the data for the update.net.sourceforge.guacamole.GuacamoleException
- If an error occurs while updating the object,
or if updating the object is not allowed.void remove(IdentifierType identifier) throws net.sourceforge.guacamole.GuacamoleException
identifier
- The identifier of the object to remove.net.sourceforge.guacamole.GuacamoleException
- If an error occurs while removing the object,
or if removing object is not allowed.Copyright © 2013. All Rights Reserved.