Package org.apache.guacamole.net.auth
Class DelegatingSharingProfile
- java.lang.Object
-
- org.apache.guacamole.net.auth.DelegatingSharingProfile
-
- All Implemented Interfaces:
Attributes,Identifiable,SharingProfile
public class DelegatingSharingProfile extends Object implements SharingProfile
SharingProfile implementation which simply delegates all function calls to an underlying SharingProfile.
-
-
Constructor Summary
Constructors Constructor Description DelegatingSharingProfile(SharingProfile sharingProfile)Wraps the given SharingProfile such that all function calls against this DelegatingSharingProfile will be delegated to it.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<String,String>getAttributes()Returns all attributes associated with this object.protected SharingProfilegetDelegateSharingProfile()Returns the underlying SharingProfile wrapped by this DelegatingSharingProfile.StringgetIdentifier()Returns the unique identifier assigned to this object.StringgetName()Returns the human-readable name assigned to this SharingProfile.Map<String,String>getParameters()Returns a map which contains connection parameter name/value pairs as key/value pairs.StringgetPrimaryConnectionIdentifier()Returns the identifier of the primary connection associated with this connection.voidsetAttributes(Map<String,String> attributes)Sets the given attributes.voidsetIdentifier(String identifier)Sets the identifier assigned to this object.voidsetName(String name)Sets the human-readable name assigned to this SharingProfile.voidsetParameters(Map<String,String> parameters)Replaces all current parameters with the parameters defined within the given map.voidsetPrimaryConnectionIdentifier(String identifier)Sets the identifier of the primary connection associated with this connection.
-
-
-
Constructor Detail
-
DelegatingSharingProfile
public DelegatingSharingProfile(SharingProfile sharingProfile)
Wraps the given SharingProfile such that all function calls against this DelegatingSharingProfile will be delegated to it.- Parameters:
sharingProfile- The SharingProfile to wrap.
-
-
Method Detail
-
getDelegateSharingProfile
protected SharingProfile getDelegateSharingProfile()
Returns the underlying SharingProfile wrapped by this DelegatingSharingProfile.- Returns:
- The SharingProfile wrapped by this DelegatingSharingProfile.
-
getIdentifier
public String getIdentifier()
Description copied from interface:IdentifiableReturns the unique identifier assigned to this object. All identifiable objects must have a deterministic, unique identifier which may not be null.- Specified by:
getIdentifierin interfaceIdentifiable- Returns:
- The unique identifier assigned to this object, which may not be null.
-
setIdentifier
public void setIdentifier(String identifier)
Description copied from interface:IdentifiableSets the identifier assigned to this object.- Specified by:
setIdentifierin interfaceIdentifiable- Parameters:
identifier- The identifier to assign.
-
getName
public String getName()
Description copied from interface:SharingProfileReturns the human-readable name assigned to this SharingProfile.- Specified by:
getNamein interfaceSharingProfile- Returns:
- The name assigned to this SharingProfile.
-
setName
public void setName(String name)
Description copied from interface:SharingProfileSets the human-readable name assigned to this SharingProfile.- Specified by:
setNamein interfaceSharingProfile- Parameters:
name- The name to assign.
-
getPrimaryConnectionIdentifier
public String getPrimaryConnectionIdentifier()
Description copied from interface:SharingProfileReturns the identifier of the primary connection associated with this connection. The primary connection is the connection that this sharing profile can be used to share.- Specified by:
getPrimaryConnectionIdentifierin interfaceSharingProfile- Returns:
- The identifier of the primary connection associated with this connection.
-
setPrimaryConnectionIdentifier
public void setPrimaryConnectionIdentifier(String identifier)
Description copied from interface:SharingProfileSets the identifier of the primary connection associated with this connection. The primary connection is the connection that this sharing profile can be used to share.- Specified by:
setPrimaryConnectionIdentifierin interfaceSharingProfile- Parameters:
identifier- The identifier of the primary connection associated with this connection.
-
getParameters
public Map<String,String> getParameters()
Description copied from interface:SharingProfileReturns a map which contains connection parameter name/value pairs as key/value pairs. Changes to this map will affect the parameters stored within this sharing profile. The differences in these parameters compared to those of the associated primary connection yield different levels of access to users joining the primary connection via this sharing profile. Note that because configurations may contain sensitive information, some data in this map may be omitted or tokenized.- Specified by:
getParametersin interfaceSharingProfile- Returns:
- A map which contains all connection parameter name/value pairs as key/value pairs.
-
setParameters
public void setParameters(Map<String,String> parameters)
Description copied from interface:SharingProfileReplaces all current parameters with the parameters defined within the given map. Key/value pairs within the map represent parameter name/value pairs. The differences in these parameters compared to those of the associated primary connection yield different levels of access to users joining the primary connection via this sharing profile.- Specified by:
setParametersin interfaceSharingProfile- Parameters:
parameters- A map which contains all connection parameter name/value pairs as key/value pairs.
-
getAttributes
public Map<String,String> getAttributes()
Description copied from interface:AttributesReturns all attributes associated with this object. The returned map may not be modifiable.- Specified by:
getAttributesin interfaceAttributes- Returns:
- A map of all attribute identifiers to their corresponding values, for all attributes associated with this object, which may not be modifiable.
-
setAttributes
public void setAttributes(Map<String,String> attributes)
Description copied from interface:AttributesSets the given attributes. If an attribute within the map is not supported, it will simply be dropped. Any attributes not within the given map will be left untouched. Attributes which are not declared within the associated UserContext MUST NOT be submitted, but other extensions may manipulate the declared attributes through decorate() and redecorate(). Implementations may optionally allow storage of unsupported attributes. Extensions which rely on other extensions to store their attribute values should verify that such storage is supported by first testing that the attribute value is retrievable via getAttributes() after being set.- Specified by:
setAttributesin interfaceAttributes- Parameters:
attributes- A map of all attribute identifiers to their corresponding values.
-
-