Package org.apache.guacamole.net.auth
Class AbstractSharingProfile
java.lang.Object
org.apache.guacamole.net.auth.AbstractSharingProfile
- All Implemented Interfaces:
Attributes,Identifiable,Nameable,ReadableAttributes,SharingProfile
Base implementation of a sharing profile which can be used to share a
Guacamole connection.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the unique identifier assigned to this object.getName()Returns the human-readable name assigned to this object.Returns a map which contains connection parameter name/value pairs as key/value pairs.Returns the identifier of the primary connection associated with this connection.inthashCode()voidsetIdentifier(String identifier) Sets the identifier assigned to this object.voidSets the human-readable name assigned to this object.voidsetParameters(Map<String, String> parameters) Replaces all current parameters with the parameters defined within the given map.voidsetPrimaryConnectionIdentifier(String primaryConnectionIdentifier) Sets the identifier of the primary connection associated with this connection.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.guacamole.net.auth.Attributes
setAttributesMethods inherited from interface org.apache.guacamole.net.auth.ReadableAttributes
getAttributes
-
Constructor Details
-
AbstractSharingProfile
public AbstractSharingProfile()
-
-
Method Details
-
getName
Description copied from interface:NameableReturns the human-readable name assigned to this object. -
setName
Description copied from interface:NameableSets the human-readable name assigned to this object. -
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
Description copied from interface:IdentifiableSets the identifier assigned to this object.- Specified by:
setIdentifierin interfaceIdentifiable- Parameters:
identifier- The identifier to assign.
-
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
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:
primaryConnectionIdentifier- The identifier of the primary connection associated with this connection.
-
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
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.
-
hashCode
public int hashCode() -
equals
-