Uses of Class
com.sun.identity.sm.SMSException
Package
Description
Provides classes for accessing the Service Management Service (SMS).
The AM supporting classes for centrally configuring secrets.
This package contains exception types for service management error scenarios.
-
Uses of SMSException in com.sun.identity.sm
Modifier and TypeClassDescriptionclass
TheInvalidAttributeNameException
is thrown to indicate that an invalid attribute name was used.class
class
TheOrganizationAlreadyExistsException
is thrown if the organization already exists.class
TheSchemaException
is thrown if the error encountered is related to the schema.class
TheServiceAlreadyExistsException
is thrown if the service already exists.class
TheServiceNotFoundException
is thrown if the service does not exist.Modifier and TypeMethodDescriptionvoid
ServiceConfig.addAttribute
(String attrName, Set<String> values) Adds a configuration parameter to the service configuration.void
ServiceInstance.addAttribute
(String attrName, Set<String> values) Adds the given attribute name and values to the attribute set.void
ServiceSchema.addAttributeSchema
(InputStream xmlAttrSchema) Adds the attribute schema to this service.void
OrganizationConfigManager.addAttributeValues
(String serviceName, String attrName, Set<String> values) Adds organization attributes for the service.void
AttributeSchema.addChoiceValue
(String value, String i18nKey) Adds a choice value and its i18n key to the existing set of choice values.void
ServiceConfigManager.addConfiguration
(InputStream in) Adds instances, global and organization configurationsvoid
AttributeSchema.addDefaultValue
(String value) Adds a default value to the existing set of default values.void
ServiceConfig.addExportedOrganizationNames
(Set<String> names) Adds the organization names to the list of organization names that can import this service configutation.OrganizationConfigManager.addServiceConfig
(String serviceName, org.forgerock.openam.sm.ConfigurationAttributes attributes) Adds a service configuration object for the given service name for this organization.void
ServiceConfig.addSubConfig
(String subConfigName, String subConfigId, int priority, org.forgerock.openam.sm.ConfigurationAttributes attrs) Adds a service sub-configuration with configuration parameters.void
ServiceConfig.addSubConfig
(String subConfigName, String subConfigId, int priority, org.forgerock.openam.sm.ConfigurationAttributes attrs, boolean isNewRealm) Adds a service sub-configuration with configuration parameters.void
ServiceConfig.addSubConfig
(String subConfigName, String subConfigId, org.forgerock.openam.sm.ConfigurationAttributes attrs) Adds a service sub-configuration with configuration parameters.void
ServiceSchema.addSubSchema
(InputStream xmlSubSchema) Adds the service's sub-schema given the XML input stream that follows the SMS DTD.void
ServiceSchema.addSubSchema
(Document xmlSubSchema) Adds the service's sub-schema given the XML document that follows the SMS DTD.void
OrganizationConfigManager.assignService
(String serviceName, org.forgerock.openam.sm.ConfigurationAttributes attributes) Assigns the given service to the orgnization with the respective attributes.void
ServiceConfig.checkAndCreateGroup
(String dn, String groupName, org.forgerock.openam.services.datastore.DataStoreId dataStoreId) ServiceConfigManager.createGlobalConfig
(Map<String, Set<String>> attrs) Creates global configuration for the default instance of the service given the configuration attributes.ServiceConfigManager.createGlobalConfig
(Map<String, Set<String>> attrs, org.forgerock.openam.services.datastore.DataStoreId dataStoreId) Creates global configuration for the default instance of the service given the configuration attributes.ServiceConfigManager.createOrganizationConfig
(String orgName, org.forgerock.openam.sm.ConfigurationAttributes attrs, org.forgerock.openam.services.datastore.DataStoreId dataStoreId) Creates organization configuration for the default instance of the service given configuration attributes.OrganizationConfigManager.createSubOrganization
(String subOrgName, Map<String, ?> attributes) Creates a sub-organization under the current organization and sets the specified attributes.OrganizationConfigManager.createSubOrganization
(String subOrgName, org.forgerock.openam.services.datastore.DataStoreId dataStoreId) Creates a sub-organization under the current organization, without any child entries.void
ServiceConfig.deleteLabeledUri
(String luri) Deprecated.The labeledURI setting shall not be used for storing configuration data.void
ServiceConfigManager.deleteOrganizationConfig
(String orgName) Deletes the organization configuration data for the given organization.void
OrganizationConfigManager.deleteSubOrganization
(String subOrgName, boolean recursive) Deletes the given sub-organization.OrganizationConfigManager.getAssignableServices()
Returns a set of service names that can be assigned to a realm.OrganizationConfigManager.getAssignedServices()
Returns a set of service names that are assigned to a realm.OrganizationConfigManager.getAssignedServices
(boolean includeMandatory) Returns a set of service names that are assigned to a realm.OrganizationConfigManager.getAttributes
(String serviceName) Returns the organization creation attributes for the service.ServiceManager.getConfigManager
(String serviceName, String version) Returns theServiceConfigManager
for the given service name and version.OrganizationConfigManager.getConfiguredServices()
Deprecated.This method has been deprecated, usegetAssignedServices()
instead.ServiceSchemaManager.getDynamicSchema()
Returns the dynamic service configuration schema.ServiceConfig.getExportedSubConfigNames
(String serviceId) Returns a set of exported fully qualified sub-configuration names that can be imported used locally as service configurationServiceConfigManager.getGlobalConfig
(String instanceName) Returns the global configuration for the given service instance.ServiceConfigManager.getGlobalConfig
(String instanceName, org.forgerock.openam.services.datastore.DataStoreId dataStoreId) Returns the global configuration for the given service instance.ServiceSchemaManager.getGlobalSchema()
Returns the global service configuration schema.ServiceConfigManager.getGroupNames()
Returns the configuration group namesServiceConfigManager.getInstance
(String instanceName) Returns the service instance given the instance nameServiceConfigManager.getInstanceNames()
Returns the service instance namesServiceConfigManager.getInstanceNames
(org.forgerock.openam.services.datastore.DataStoreId dataStoreId) ServiceConfig.getLastModifiedTime()
Returns the last modified time stamp of this configuration This method is expensive because it does not cache the modified time stamp but goes directly to the data store to obtain the value of this entryServiceConfigManager.getOrganizationConfig
(String orgName, String instanceName) Returns the organization configuration for the given organization and instance name.ServiceConfigManager.getOrganizationConfig
(String orgName, String instanceName, org.forgerock.openam.services.datastore.DataStoreId dataStoreId) Returns the organization configuration for the given organization and instance name.ServiceSchemaManager.getOrganizationSchema()
Returns the organization service configuration schema.OrganizationConfigManager.getParentOrgConfigManager()
Returns theOrganizationConfigManager
of the parent for the given organization name.OrganizationConfigManager.getPeerOrganizationNames()
Returns the names of all peer-organizations.ServiceSchemaManager.getPolicySchema()
Returns the policy service configuration schema.ServiceSchemaManager.getSchema()
Returns the service schema in XML for this service.ServiceSchemaManager.getSchema
(SchemaType type) Returns the configuration schema for the given schema typeReturns the configuration schema for the given schema typeServiceManager.getSchemaManager
(String serviceName, String version) Returns theServiceSchemaManager
for the given service name and version.ServiceSchemaManager.getSchemaTypes()
Returns the schema types available with this service.ServiceSchemaManager.getServiceAttributeNames
(SchemaType type) Returns the attribute schemas for the given schema type excluding status and service identifier attributes.OrganizationConfigManager.getServiceAttributes
(String serviceName) Returns attributes configured for the service.OrganizationConfigManager.getServiceConfig
(String serviceName) Returns the service configuration object for the given service name.ServiceManager.getServiceNames()
Returns all the service names that have been registered.OrganizationConfigManager.getServiceSchemas()
Returns a set of service schemas to be used for creation of an organization.ServiceManager.getServiceVersions
(String serviceName) Returns all versions supported by the service.ServiceConfig.getSubConfig
(String subConfigName) Returns the service's sub-configuration given the service's sub-configuration name.ServiceConfig.getSubConfigEntity
(String entityName) Method to retrieve a single service sub-configuration entry by name.ServiceConfig.getSubConfigNames()
Returns the names of all service's sub-configurations.ServiceConfig.getSubConfigNames
(String pattern) Method to get names of service's sub-configurations that match the given pattern.ServiceConfig.getSubConfigNames
(String pattern, String schemaName) Method to get names of service's sub-configurations that match the given pattern and belongs to the specified service schema name.OrganizationConfigManager.getSubOrganizationNames()
Returns the names of all sub-organizations.OrganizationConfigManager.getSubOrganizationNames
(String pattern, boolean recursive) Returns names of sub-organizations matching the given pattern.OrganizationConfigManager.getSubOrganizationNames
(String pattern, boolean recursive, org.forgerock.openam.services.datastore.DataStoreId dataStoreId) Returns names of sub-organizations matching the given pattern.OrganizationConfigManager.getSubOrgConfigManager
(String subOrgName) Returns theOrganizationConfigManager
for the given organization name.ServiceSchema.getSubSchema
(String subSchemaName) ReturnsServiceSchema
object given the name of the service's sub-schema.ServiceSchemaManager.getUserSchema()
Returns the user service configuration schema.void
ServiceConfig.importSubConfig
(String subConfigName, String exportedSubConfigName) Imports a service sub-configuration to the list of localy defined sub-configuration.boolean
ServiceConfig.isAttributePresentInSubConfigs
(String attributeName, String attributeValue, String... subSchemaNamesToSearchIn) Checks whether a config attribute value exists in any of thisServiceConfig
's sub-configurations.static void
OrganizationConfigManager.loadDefaultServices
(OrganizationConfigManager ocm) Loads default services to a newly created realmvoid
OrganizationConfigManager.modifyService
(String serviceName, org.forgerock.openam.sm.ConfigurationAttributes attributes) Sets the attributes related to provided service.ServiceManager.registerServices
(InputStream xmlServiceSchema) Registers one or more services, defined by the XML input stream that follows the SMS DTD.void
OrganizationConfigManager.removeAttribute
(String serviceName, String attrName) Removes the given organization creation attribute for the service.void
ServiceConfig.removeAttribute
(String attrName) Removes a configuration parameter from the service configuration.void
ServiceInstance.removeAttribute
(String attrName) Removes the specified attribute name and its values from the attribute set.void
ServiceSchema.removeAttributeDefaults
(Set<String> attrs) Removes the default values of attributes in the schema.void
ServiceConfig.removeAttributes
(Set<String> attrNames) Removes a configuration parameters from the service configuration.void
ServiceSchema.removeAttributeSchema
(String attrName) Removes the attribute schema from this service.void
OrganizationConfigManager.removeAttributeValues
(String serviceName, String attrName, Set<String> values) Removes the given organization creation attribute values for the service.void
ServiceConfig.removeAttributeValues
(String attrName, Set<String> values) Removes the specific values for the given configuration parameter.void
ServiceInstance.removeAttributeValues
(String attrName, Set<String> values) Removes the specified attribute's values.void
AttributeSchema.removeChoiceValue
(String value) Removes the given value from the set of choice values.void
AttributeSchema.removeDefaultValue
(String value) Removes the given value from the set of default values.void
AttributeSchema.removeDefaultValues()
Removes the all the default values for the attribute.void
ServiceConfigManager.removeGlobalConfiguration
(String groupName) Deletes the global configuration data for the given group name.void
ServiceConfigManager.removeInstance
(String instanceName) Removes the instance form the servicevoid
ServiceConfigManager.removeOrganizationConfiguration
(String orgName, String groupName) Deprecated.void
ServiceConfigManager.removeOrganizationConfiguration
(String orgName, String groupName, org.forgerock.openam.services.datastore.DataStoreId dataStoreId) Deletes the organization's group configuration data.void
ServiceManager.removeService
(String serviceName, String version) Removes the service schema and configuration for the given service name.void
OrganizationConfigManager.removeServiceConfig
(String serviceName) Removes the service configuration object for the given service name for this organization.void
ServiceConfig.removeSharedOrganizationNames
(Set<String> names) Removes the organization names from the list of organization names that can import the service configuration.void
ServiceConfig.removeSubConfig
(String subConfigName) Removes the service sub-configuration.void
ServiceSchema.removeSubSchema
(String subSchemaName) Removes the service's sub-schema from the service.void
ServiceSchema.replaceAttributeSchema
(String attrName, Node attributeSchemaNode) Removes the attribute schema from this service.void
ServiceConfig.replaceAttributeValue
(String attrName, String oldValue, String newValue) Replaces old value of the configuration parameter with new value.void
ServiceInstance.replaceAttributeValue
(String attrName, String oldValue, String newValue) Replaces the attribute's old value with the new value.void
Replaces the old values of the configuration parameter with the new values.void
ServiceInstance.replaceAttributeValues
(String attrName, Set<String> oldValues, Set<String> newValues) Replaces the attribute's old values with the new valuesvoid
ServiceSchemaManager.replaceSchema
(InputStream xmlServiceSchema) Replaces the existing service schema with the given schema defined by the XML input stream that follows the SMS DTD.void
ServiceSchema.replaceSubSchema
(String subSchemaName, Document xmlSubSchema) Replaces the service's sub-schema given the XML document that follows the SMS DTD.void
Sets the any attribute.void
Sets/Creates organization attributes for the service.void
ServiceConfig.setAttributes
(Map attrs) void
ServiceConfig.setAttributes
(org.forgerock.openam.sm.ConfigurationAttributes attrs) Sets the service configuration parameters.void
ServiceInstance.setAttributes
(org.forgerock.openam.sm.ConfigurationAttributes attrs) Sets the attributes that are specific to the service instance.void
AttributeSchema.setBooleanValues
(String trueValue, String trueValueI18nKey, String falseValue, String falseValueI18nKey) Sets the boolean values of the attribute.void
AttributeSchema.setCosQualifier
(String cosq) Sets thecosQualifier
attributevoid
AttributeSchema.setDefaultValues
(Set<String> values) Sets the default values of the attribute.void
AttributeSchema.setEndRange
(String edRange) Sets the end range Attribute.void
ServiceConfig.setExportedOrganizationNames
(Set<String> names) Sets the organization names that can import the service configuration.void
Sets the group name for this instance.void
ServiceSchema.setI18NFileName
(String url) Sets the I18N properties file name for the service schemavoid
ServiceSchemaManager.setI18NFileName
(String url) Sets the I18N properties file name for the servicevoid
ServiceSchemaManager.setI18NJarURL
(String url) Sets the URL of the JAR file that contains the I18N propertiesvoid
ServiceSchema.setI18Nkey
(String key) Sets the value of the I18N key in the service schema.void
AttributeSchema.setI18NKey
(String i18nKey) Sets the I18N key to describe the configuration attribute.void
ServiceSchemaManager.setI18NKey
(String i18nKey) Sets the i18nKey of the schema.void
ServiceSchema.setInheritance
(String value) Set the value of inheritance attribute in service schema.void
ServiceConfig.setLabeledUri
(String luri) Deprecated.The labeledURI setting shall not be used for storing configuration data.void
AttributeSchema.setMaxValue
(String maxV) Sets the maximum value attribute.void
AttributeSchema.setMinValue
(String minV) Sets the minimum value attribute.void
Sets the order of this attribute.void
ServiceConfig.setPriority
(int priority) Sets the priority to the service configuration.void
AttributeSchema.setPropertiesViewBeanUR
(String prop) Sets the URL of the view bean for the attribute.void
ServiceSchemaManager.setPropertiesViewBeanURL
(String url) Sets the URL of the view bean for the service.void
AttributeSchema.setResourceName
(String name) Sets the CREST representation name for the attribute.void
ServiceSchema.setResourceName
(String name) Sets the CREST resource name for the service schema.void
ServiceSchemaManager.setResourceName
(String name) Sets the service's resource name for CREST representation.void
AttributeSchema.setSearchable
(String value) Sets the attribute isSearchable, if value is set totrue
, orfalse
.void
ServiceSchemaManager.setServiceHierarchy
(String newhierarchy) Sets the service's hierarchyvoid
AttributeSchema.setStartRange
(String stRange) Sets the start range attribute.void
Sets the Syntax attribute.void
Sets the type.void
Sets theUIType
attribute.void
Sets the URI for the service instance.void
AttributeSchema.setValidator
(String valid) Sets the Validator attributeServiceConfig.toXML
(String NodeTag, com.iplanet.services.util.AMEncryption encryptObj, String orgName) void
OrganizationConfigManager.unassignService
(String serviceName) Unassigns the service from the organization.protected void
AttributeSchema.updateBooleanValues
(String trueValue, String trueValueI18nKey, String falseValue, String falseValueI18nKey, Document doc) protected void
AttributeSchema.updateChoiceValues
(Map<String, String> choiceValues) protected void
AttributeSchema.updateChoiceValues
(Map<String, String> choiceValues, Document doc) protected void
AttributeSchema.updateDefaultValues
(Set<String> defaultValues) Method for modifying default valuesprotected void
AttributeSchema.updateDefaultValues
(Set<String> defaultValues, Document doc) Method for modifying default values given the XML documentprotected void
AttributeSchema.updateXMLDocument
(StringBuffer sb, String elementName, Document updateDoc) protected void
AttributeSchema.updateXMLDocument
(String attrName, String attrValue) update attribute value in attribute schema elementorg.forgerock.openam.sm.ConfigurationAttributes
ServiceSchema.validateAndInheritDefaults
(org.forgerock.openam.sm.ConfigurationAttributes attrMap, boolean inherit, org.forgerock.openam.sm.ConfigurationAttributes defaults) Validates theattrMap
against the attributes defined in this schema of the service.org.forgerock.openam.sm.ConfigurationAttributes
ServiceSchema.validateAndInheritDefaults
(org.forgerock.openam.sm.ConfigurationAttributes attrMap, String orgName, boolean inherit, org.forgerock.openam.sm.ConfigurationAttributes defaults) Validates theattrMap
against the attributes defined in this schema of the service for the given organization.boolean
Determines whether each attribute in the attribute set is valid.boolean
ServiceSchema.validateAttributes
(List<String> configPath, Map<String, Set<String>> attributeSet, String orgName) Determines whether each attribute in the attribute set is valid for the given organization.boolean
ServiceSchema.validateAttributes
(Map<String, Set<String>> attributeSet) Determines whether each attribute in the attribute set is valid.boolean
Determines whether each attribute in the attribute set is valid for the given organization.boolean
ServiceSchema.validateAttributes
(Map<String, Set<String>> attributeSet, String orgName, boolean encodePassword) Determines whether each attribute in the attribute set is valid for the given organization.void
OrganizationConfigManager.validateOrgAliasCollision
(Collection<String> aliases) Checks org alias name for collisionsprotected void
ServiceInstance.validateServiceInstance()
ModifierConstructorDescriptionOrganizationConfigManager
(SSOToken token, String orgName) Constructor to obtain an instance ofOrganizationConfigManager
for an organization by providing an authenticated identity of the user.ServiceConfigManager
(SSOToken token, String serviceName, String version) Creates an instance ofServiceConfigManager
for the given service and version.ServiceManager
(SSOToken token) Creates an instance ofServiceManager
.ServiceSchemaManager
(SSOToken token, String serviceName, String version, org.forgerock.openam.services.datastore.DataStoreId dataStoreId, boolean isSaved) Creates an instance ofServiceSchemaManager
for the given service and version pair. -
Uses of SMSException in org.forgerock.openam.secrets
Modifier and TypeMethodDescriptionstatic void
SecretsUtils.createKeyStorePurposeMapping
(org.forgerock.openam.secrets.config.SecretIdRegistry secretIdRegistry, org.forgerock.openam.secrets.config.KeyStoreSecretStore keyStore, String purposeLabel, List<String> aliases, Optional<Realm> realm, SSOToken authorizationToken) Creates a global purpose and adds a mapping for it to the given key alias in the given keystore.static org.forgerock.openam.secrets.config.KeyStoreSecretStore
SecretsUtils.getDefaultKeyStore
(AnnotatedServiceRegistry serviceRegistry) Gets the default keystore from the global scope. -
Uses of SMSException in org.forgerock.openam.sm
Modifier and TypeClassDescriptionclass
A sub-exception ofSMSException
for theServiceConfigValidator
.class
A sub-exception ofSMSException
for theServiceConfigValidator
.