public class PluginConfig extends Object
PluginConfig
provides interfaces to manage the
plugin configuration information of a service. It provides methods to get and
set plugin configuration parameters for this service plugins.Modifier | Constructor and Description |
---|---|
protected |
PluginConfig(String name,
ServiceConfigManager scm,
com.sun.identity.sm.PluginConfigImpl pc)
Protected constructor
|
Modifier and Type | Method and Description |
---|---|
void |
addAttribute(String attrName,
Set values)
Adds a configuration parameter to the service plugin.
|
Map |
getAttributes()
Returns the service plugin parameters.
|
String |
getDN()
Returns the LDAP DN represented by this plugin object.
|
String |
getName()
Returns the name of this service plugin.
|
int |
getPriority()
Returns the priority assigned to the service plugin.
|
String |
getServiceName()
Returns the name of this service configuration.
|
String |
getVersion()
Returns the service version
|
void |
removeAttribute(String attrName)
Removes a configuration parameter from the service plugin.
|
void |
removeAttributeValues(String attrName,
Set values)
Removes the specific values for the given configuration plugin.
|
void |
replaceAttributeValue(String attrName,
String oldValue,
String newValue)
Replaces old value of the configuration parameter with new value.
|
void |
replaceAttributeValues(String attrName,
Set oldValues,
Set newValues)
Replaces the old values of the configuration parameter with the new
values.
|
void |
setAttributes(Map attrs)
Sets the service plugin parameters.
|
void |
setPriority(int priority)
Sets the priority to the service plugin.
|
String |
toString()
Returns String representation of the plugin object.
|
protected void |
validate() |
protected void |
validatePluginConfig() |
protected PluginConfig(String name, ServiceConfigManager scm, com.sun.identity.sm.PluginConfigImpl pc) throws SMSException, SSOException
SMSException
SSOException
public String getName()
public String getServiceName()
public String getVersion()
public int getPriority()
public void setPriority(int priority) throws SSOException, SMSException
priority
- the priority to be assigned to the pluginSSOException
SMSException
public Map getAttributes()
Map
contains the attribute names and their corresponding values in the
Map
is a Set
that contains the values for
the attribute.Map
where key is the attribute name and value
is the Set
of attribute valuespublic void setAttributes(Map attrs) throws SMSException, SSOException
Map
contains the attribute names and their corresponding values in the
Map
is a Set
that contains the values for
the attribute.attrs
- the Map
where key is the attribute name and
value is the Set
of attribute valuesSMSException
SSOException
public void addAttribute(String attrName, Set values) throws SMSException, SSOException
attrName
- the name of the attribute to addvalues
- the set of values to addSMSException
SSOException
public void removeAttribute(String attrName) throws SMSException, SSOException
attrName
- the name of the attribute to removeSMSException
SSOException
public void removeAttributeValues(String attrName, Set values) throws SMSException, SSOException
attrName
- the name of the attributevalues
- set of attribute values to remove from the given attributeSMSException
SSOException
public void replaceAttributeValue(String attrName, String oldValue, String newValue) throws SMSException, SSOException
attrName
- the name of the attributeoldValue
- the old value to remove from the attributenewValue
- the new value to add to the attributeSMSException
SSOException
public void replaceAttributeValues(String attrName, Set oldValues, Set newValues) throws SMSException, SSOException
attrName
- the name of the attributeoldValues
- the set of old values to remove from the attributenewValues
- the set of new values to add to the attributeSMSException
SSOException
public String getDN()
public String toString()
protected void validate()
protected void validatePluginConfig() throws SMSException
SMSException
Copyright © 2010–2025 Open Identity Platform Community. All rights reserved.