Uses of Class
com.sun.identity.sm.SMSException
Packages that use 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
Subclasses of SMSException in com.sun.identity.smModifier and TypeClassDescriptionclassTheInvalidAttributeNameExceptionis thrown to indicate that an invalid attribute name was used.classclassTheOrganizationAlreadyExistsExceptionis thrown if the organization already exists.classTheSchemaExceptionis thrown if the error encountered is related to the schema.classTheServiceAlreadyExistsExceptionis thrown if the service already exists.classTheServiceNotFoundExceptionis thrown if the service does not exist.Methods in com.sun.identity.sm that throw SMSExceptionModifier and TypeMethodDescriptionvoidServiceConfig.addAttribute(String attrName, Set<String> values) Adds a configuration parameter to the service configuration.voidServiceInstance.addAttribute(String attrName, Set<String> values) Adds the given attribute name and values to the attribute set.voidServiceSchema.addAttributeSchema(InputStream xmlAttrSchema) Adds the attribute schema to this service.voidOrganizationConfigManager.addAttributeValues(String serviceName, String attrName, Set<String> values) Adds organization attributes for the service.voidAttributeSchema.addChoiceValue(String value, String i18nKey) Adds a choice value and its i18n key to the existing set of choice values.voidServiceConfigManager.addConfiguration(InputStream in) Adds instances, global and organization configurationsvoidAttributeSchema.addDefaultValue(String value) Adds a default value to the existing set of default values.voidServiceConfig.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.voidServiceConfig.addSubConfig(String subConfigName, String subConfigId, int priority, org.forgerock.openam.sm.ConfigurationAttributes attrs) Adds a service sub-configuration with configuration parameters.voidServiceConfig.addSubConfig(String subConfigName, String subConfigId, int priority, org.forgerock.openam.sm.ConfigurationAttributes attrs, boolean isNewRealm) Adds a service sub-configuration with configuration parameters.voidServiceConfig.addSubConfig(String subConfigName, String subConfigId, org.forgerock.openam.sm.ConfigurationAttributes attrs) Adds a service sub-configuration with configuration parameters.voidServiceSchema.addSubSchema(InputStream xmlSubSchema) Adds the service's sub-schema given the XML input stream that follows the SMS DTD.voidServiceSchema.addSubSchema(Document xmlSubSchema) Adds the service's sub-schema given the XML document that follows the SMS DTD.voidOrganizationConfigManager.assignService(String serviceName, org.forgerock.openam.sm.ConfigurationAttributes attributes) Assigns the given service to the orgnization with the respective attributes.voidServiceConfig.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.voidServiceConfig.deleteLabeledUri(String luri) Deprecated.The labeledURI setting shall not be used for storing configuration data.voidServiceConfigManager.deleteOrganizationConfig(String orgName) Deletes the organization configuration data for the given organization.voidOrganizationConfigManager.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 theServiceConfigManagerfor 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 theOrganizationConfigManagerof 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 theServiceSchemaManagerfor 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 theOrganizationConfigManagerfor the given organization name.ServiceSchema.getSubSchema(String subSchemaName) ReturnsServiceSchemaobject given the name of the service's sub-schema.ServiceSchemaManager.getUserSchema()Returns the user service configuration schema.voidServiceConfig.importSubConfig(String subConfigName, String exportedSubConfigName) Imports a service sub-configuration to the list of localy defined sub-configuration.booleanServiceConfig.isAttributePresentInSubConfigs(String attributeName, String attributeValue, String... subSchemaNamesToSearchIn) Checks whether a config attribute value exists in any of thisServiceConfig's sub-configurations.static voidOrganizationConfigManager.loadDefaultServices(OrganizationConfigManager ocm) Loads default services to a newly created realmvoidOrganizationConfigManager.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.voidOrganizationConfigManager.removeAttribute(String serviceName, String attrName) Removes the given organization creation attribute for the service.voidServiceConfig.removeAttribute(String attrName) Removes a configuration parameter from the service configuration.voidServiceInstance.removeAttribute(String attrName) Removes the specified attribute name and its values from the attribute set.voidServiceSchema.removeAttributeDefaults(Set<String> attrs) Removes the default values of attributes in the schema.voidServiceConfig.removeAttributes(Set<String> attrNames) Removes a configuration parameters from the service configuration.voidServiceSchema.removeAttributeSchema(String attrName) Removes the attribute schema from this service.voidOrganizationConfigManager.removeAttributeValues(String serviceName, String attrName, Set<String> values) Removes the given organization creation attribute values for the service.voidServiceConfig.removeAttributeValues(String attrName, Set<String> values) Removes the specific values for the given configuration parameter.voidServiceInstance.removeAttributeValues(String attrName, Set<String> values) Removes the specified attribute's values.voidAttributeSchema.removeChoiceValue(String value) Removes the given value from the set of choice values.voidAttributeSchema.removeDefaultValue(String value) Removes the given value from the set of default values.voidAttributeSchema.removeDefaultValues()Removes the all the default values for the attribute.voidServiceConfigManager.removeGlobalConfiguration(String groupName) Deletes the global configuration data for the given group name.voidServiceConfigManager.removeInstance(String instanceName) Removes the instance form the servicevoidServiceConfigManager.removeOrganizationConfiguration(String orgName, String groupName) Deprecated.voidServiceConfigManager.removeOrganizationConfiguration(String orgName, String groupName, org.forgerock.openam.services.datastore.DataStoreId dataStoreId) Deletes the organization's group configuration data.voidServiceManager.removeService(String serviceName, String version) Removes the service schema and configuration for the given service name.voidOrganizationConfigManager.removeServiceConfig(String serviceName) Removes the service configuration object for the given service name for this organization.voidServiceConfig.removeSharedOrganizationNames(Set<String> names) Removes the organization names from the list of organization names that can import the service configuration.voidServiceConfig.removeSubConfig(String subConfigName) Removes the service sub-configuration.voidServiceSchema.removeSubSchema(String subSchemaName) Removes the service's sub-schema from the service.voidServiceSchema.replaceAttributeSchema(String attrName, Node attributeSchemaNode) Removes the attribute schema from this service.voidServiceConfig.replaceAttributeValue(String attrName, String oldValue, String newValue) Replaces old value of the configuration parameter with new value.voidServiceInstance.replaceAttributeValue(String attrName, String oldValue, String newValue) Replaces the attribute's old value with the new value.voidReplaces the old values of the configuration parameter with the new values.voidServiceInstance.replaceAttributeValues(String attrName, Set<String> oldValues, Set<String> newValues) Replaces the attribute's old values with the new valuesvoidServiceSchemaManager.replaceSchema(InputStream xmlServiceSchema) Replaces the existing service schema with the given schema defined by the XML input stream that follows the SMS DTD.voidServiceSchema.replaceSubSchema(String subSchemaName, Document xmlSubSchema) Replaces the service's sub-schema given the XML document that follows the SMS DTD.voidSets the any attribute.voidSets/Creates organization attributes for the service.voidServiceConfig.setAttributes(Map attrs) voidServiceConfig.setAttributes(org.forgerock.openam.sm.ConfigurationAttributes attrs) Sets the service configuration parameters.voidServiceInstance.setAttributes(org.forgerock.openam.sm.ConfigurationAttributes attrs) Sets the attributes that are specific to the service instance.voidAttributeSchema.setBooleanValues(String trueValue, String trueValueI18nKey, String falseValue, String falseValueI18nKey) Sets the boolean values of the attribute.voidAttributeSchema.setCosQualifier(String cosq) Sets thecosQualifierattributevoidAttributeSchema.setDefaultValues(Set<String> values) Sets the default values of the attribute.voidAttributeSchema.setEndRange(String edRange) Sets the end range Attribute.voidServiceConfig.setExportedOrganizationNames(Set<String> names) Sets the organization names that can import the service configuration.voidSets the group name for this instance.voidServiceSchema.setI18NFileName(String url) Sets the I18N properties file name for the service schemavoidServiceSchemaManager.setI18NFileName(String url) Sets the I18N properties file name for the servicevoidServiceSchemaManager.setI18NJarURL(String url) Sets the URL of the JAR file that contains the I18N propertiesvoidServiceSchema.setI18Nkey(String key) Sets the value of the I18N key in the service schema.voidAttributeSchema.setI18NKey(String i18nKey) Sets the I18N key to describe the configuration attribute.voidServiceSchemaManager.setI18NKey(String i18nKey) Sets the i18nKey of the schema.voidServiceSchema.setInheritance(String value) Set the value of inheritance attribute in service schema.voidServiceConfig.setLabeledUri(String luri) Deprecated.The labeledURI setting shall not be used for storing configuration data.voidAttributeSchema.setMaxValue(String maxV) Sets the maximum value attribute.voidAttributeSchema.setMinValue(String minV) Sets the minimum value attribute.voidSets the order of this attribute.voidServiceConfig.setPriority(int priority) Sets the priority to the service configuration.voidAttributeSchema.setPropertiesViewBeanUR(String prop) Sets the URL of the view bean for the attribute.voidServiceSchemaManager.setPropertiesViewBeanURL(String url) Sets the URL of the view bean for the service.voidAttributeSchema.setResourceName(String name) Sets the CREST representation name for the attribute.voidServiceSchema.setResourceName(String name) Sets the CREST resource name for the service schema.voidServiceSchemaManager.setResourceName(String name) Sets the service's resource name for CREST representation.voidAttributeSchema.setSearchable(String value) Sets the attribute isSearchable, if value is set totrue, orfalse.voidServiceSchemaManager.setServiceHierarchy(String newhierarchy) Sets the service's hierarchyvoidAttributeSchema.setStartRange(String stRange) Sets the start range attribute.voidSets the Syntax attribute.voidSets the type.voidSets theUITypeattribute.voidSets the URI for the service instance.voidAttributeSchema.setValidator(String valid) Sets the Validator attributeServiceConfig.toXML(String NodeTag, com.iplanet.services.util.AMEncryption encryptObj, String orgName) voidOrganizationConfigManager.unassignService(String serviceName) Unassigns the service from the organization.protected voidAttributeSchema.updateBooleanValues(String trueValue, String trueValueI18nKey, String falseValue, String falseValueI18nKey, Document doc) protected voidAttributeSchema.updateChoiceValues(Map<String, String> choiceValues) protected voidAttributeSchema.updateChoiceValues(Map<String, String> choiceValues, Document doc) protected voidAttributeSchema.updateDefaultValues(Set<String> defaultValues) Method for modifying default valuesprotected voidAttributeSchema.updateDefaultValues(Set<String> defaultValues, Document doc) Method for modifying default values given the XML documentprotected voidAttributeSchema.updateXMLDocument(StringBuffer sb, String elementName, Document updateDoc) protected voidAttributeSchema.updateXMLDocument(String attrName, String attrValue) update attribute value in attribute schema elementorg.forgerock.openam.sm.ConfigurationAttributesServiceSchema.validateAndInheritDefaults(org.forgerock.openam.sm.ConfigurationAttributes attrMap, boolean inherit, org.forgerock.openam.sm.ConfigurationAttributes defaults) Validates theattrMapagainst the attributes defined in this schema of the service.org.forgerock.openam.sm.ConfigurationAttributesServiceSchema.validateAndInheritDefaults(org.forgerock.openam.sm.ConfigurationAttributes attrMap, String orgName, boolean inherit, org.forgerock.openam.sm.ConfigurationAttributes defaults) Validates theattrMapagainst the attributes defined in this schema of the service for the given organization.booleanDetermines whether each attribute in the attribute set is valid.booleanServiceSchema.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.booleanServiceSchema.validateAttributes(Map<String, Set<String>> attributeSet) Determines whether each attribute in the attribute set is valid.booleanDetermines whether each attribute in the attribute set is valid for the given organization.booleanServiceSchema.validateAttributes(Map<String, Set<String>> attributeSet, String orgName, boolean encodePassword) Determines whether each attribute in the attribute set is valid for the given organization.voidOrganizationConfigManager.validateOrgAliasCollision(Collection<String> aliases) Checks org alias name for collisionsprotected voidServiceInstance.validateServiceInstance()Constructors in com.sun.identity.sm that throw SMSExceptionModifierConstructorDescriptionOrganizationConfigManager(SSOToken token, String orgName) Constructor to obtain an instance ofOrganizationConfigManagerfor an organization by providing an authenticated identity of the user.ServiceConfigManager(SSOToken token, String serviceName, String version) Creates an instance ofServiceConfigManagerfor 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 ofServiceSchemaManagerfor the given service and version pair. -
Uses of SMSException in org.forgerock.openam.secrets
Methods in org.forgerock.openam.secrets that throw SMSExceptionModifier and TypeMethodDescriptionstatic voidSecretsUtils.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.KeyStoreSecretStoreSecretsUtils.getDefaultKeyStore(AnnotatedServiceRegistry serviceRegistry) Gets the default keystore from the global scope. -
Uses of SMSException in org.forgerock.openam.sm
Subclasses of SMSException in org.forgerock.openam.smModifier and TypeClassDescriptionclassA sub-exception ofSMSExceptionfor theServiceConfigValidator.classA sub-exception ofSMSExceptionfor theServiceConfigValidator.