public class SimpleRelatedObjectSet extends Object implements RelatedObjectSet
EMPTY_SET
Constructor and Description |
---|
SimpleRelatedObjectSet()
Creates a new empty SimpleRelatedObjectSet.
|
SimpleRelatedObjectSet(Set<String> identifiers)
Creates a new SimpleRelatedObjectSet which contains the objects having
the identifiers within the given Set.
|
Modifier and Type | Method and Description |
---|---|
void |
addObjects(Set<String> identifiers)
Adds the objects having the given identifiers, if not already present.
|
Set<String> |
getObjects()
Returns a Set which contains the identifiers of all objects contained
within this RelatedObjectSet.
|
void |
removeObjects(Set<String> identifiers)
Removes each of the objects having the specified identifiers, if
present.
|
protected void |
setObjects(Set<String> identifiers)
Replaces the Set of object identifiers which backs this
SimpleRelatedObjectSet.
|
public SimpleRelatedObjectSet()
RelatedObjectSet.EMPTY_SET
instead.public SimpleRelatedObjectSet(Set<String> identifiers)
identifiers
- The Set containing the identifiers of all objects which should be
present within the new SimpleRelatedObjectSet.protected void setObjects(Set<String> identifiers)
identifiers
- The Set containing the identifiers of all objects which should be
present within this SimpleRelatedObjectSet.public Set<String> getObjects()
RelatedObjectSet
getObjects
in interface RelatedObjectSet
public void addObjects(Set<String> identifiers) throws org.apache.guacamole.GuacamoleException
RelatedObjectSet
addObjects
in interface RelatedObjectSet
identifiers
- The identifiers of all objects being added.org.apache.guacamole.GuacamoleException
- If an error occurs while adding the objects, or if permission to add
objects is denied.public void removeObjects(Set<String> identifiers) throws org.apache.guacamole.GuacamoleException
RelatedObjectSet
removeObjects
in interface RelatedObjectSet
identifiers
- The identifiers of all objects being removed.org.apache.guacamole.GuacamoleException
- If an error occurs while removing the objects, or if permission to
remove objects is denied.Copyright © 2018. All rights reserved.