public class DelegatingSharingProfile extends Object implements SharingProfile
| Constructor and Description |
|---|
DelegatingSharingProfile(SharingProfile sharingProfile)
Wraps the given SharingProfile such that all function calls against this
DelegatingSharingProfile will be delegated to it.
|
| Modifier and Type | Method and Description |
|---|---|
Map<String,String> |
getAttributes()
Returns all attributes associated with this object.
|
protected SharingProfile |
getDelegateSharingProfile()
Returns the underlying SharingProfile wrapped by this
DelegatingSharingProfile.
|
String |
getIdentifier()
Returns the unique identifier assigned to this object.
|
String |
getName()
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.
|
String |
getPrimaryConnectionIdentifier()
Returns the identifier of the primary connection associated with this
connection.
|
void |
setAttributes(Map<String,String> attributes)
Sets the given attributes.
|
void |
setIdentifier(String identifier)
Sets the identifier assigned to this object.
|
void |
setName(String name)
Sets the human-readable name assigned to this SharingProfile.
|
void |
setParameters(Map<String,String> parameters)
Replaces all current parameters with the parameters defined within the
given map.
|
void |
setPrimaryConnectionIdentifier(String identifier)
Sets the identifier of the primary connection associated with this
connection.
|
public DelegatingSharingProfile(SharingProfile sharingProfile)
sharingProfile - The SharingProfile to wrap.protected SharingProfile getDelegateSharingProfile()
public String getIdentifier()
IdentifiablegetIdentifier in interface Identifiablepublic void setIdentifier(String identifier)
IdentifiablesetIdentifier in interface Identifiableidentifier - The identifier to assign.public String getName()
SharingProfilegetName in interface SharingProfilepublic void setName(String name)
SharingProfilesetName in interface SharingProfilename - The name to assign.public String getPrimaryConnectionIdentifier()
SharingProfilegetPrimaryConnectionIdentifier in interface SharingProfilepublic void setPrimaryConnectionIdentifier(String identifier)
SharingProfilesetPrimaryConnectionIdentifier in interface SharingProfileidentifier - The identifier of the primary connection associated with this
connection.public Map<String,String> getParameters()
SharingProfilegetParameters in interface SharingProfilepublic void setParameters(Map<String,String> parameters)
SharingProfilesetParameters in interface SharingProfileparameters - A map which contains all connection parameter name/value pairs as
key/value pairs.public Map<String,String> getAttributes()
AttributesgetAttributes in interface Attributespublic void setAttributes(Map<String,String> attributes)
AttributessetAttributes in interface Attributesattributes - A map of all attribute identifiers to their corresponding values.Copyright © 2020. All rights reserved.