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()
Identifiable
getIdentifier
in interface Identifiable
public void setIdentifier(String identifier)
Identifiable
setIdentifier
in interface Identifiable
identifier
- The identifier to assign.public String getName()
SharingProfile
getName
in interface SharingProfile
public void setName(String name)
SharingProfile
setName
in interface SharingProfile
name
- The name to assign.public String getPrimaryConnectionIdentifier()
SharingProfile
getPrimaryConnectionIdentifier
in interface SharingProfile
public void setPrimaryConnectionIdentifier(String identifier)
SharingProfile
setPrimaryConnectionIdentifier
in interface SharingProfile
identifier
- The identifier of the primary connection associated with this
connection.public Map<String,String> getParameters()
SharingProfile
getParameters
in interface SharingProfile
public void setParameters(Map<String,String> parameters)
SharingProfile
setParameters
in interface SharingProfile
parameters
- A map which contains all connection parameter name/value pairs as
key/value pairs.public Map<String,String> getAttributes()
Attributes
getAttributes
in interface Attributes
public void setAttributes(Map<String,String> attributes)
Attributes
setAttributes
in interface Attributes
attributes
- A map of all attribute identifiers to their corresponding values.Copyright © 2018. All rights reserved.