Package org.osid.configuration
The Open Service Interface Definitions for the org.osid.configuration service.
The Configuration OSID defines a set of interfaces for configuration retrieval and management. The Configuration service may be used to store user profiles or as a means to assist OSID implementors modularize configuration data.
Parameters
Configuration data is expressed through a set of Parameters and
Values . A Parameter is an OsidRule with a unique
Id and a syntax that indicates a primitive type. A
Parameter may map to zero or more Values of the same syntax. An
application requesting a configuration looks up Values given a
Parameter Id through a ValueLookupSession .
As an OsidRule , Parameters may resolve to implicitly
created Values based on external rule evaluations.
Values
Values represent primitive types that are assigned to
Parameters and constrained by the syntax specified in its
Parameter . In the most basic case, a single Value is created for
a Parameter and returned when the Parameter is resolved.
Parameters can have multiple Values where the Configuration
OSID Consumer can request all Values , or a single Value
selected by the OSID Provider.
Values are Operable such that Values in multi-valued
Parameter may be enabled or disabled manually or based on a rule. For
example, the configuration of a service may change based on time of day or
may change based on some out-of-band context. Value retrievals in
the ValueRetrievalSession support passing of a
ValueCondition to supply contextual information to feed the rule
evaluation.
Configuration Cataloging
To create a configuration for an application, a Configuration
object is created. The Configuration maps a set of
Parameters and their Values . A Configuration may be
positioned as a child of another Configuration to inherit its
Parameters and Values . The desired Parameters are
then mapped to the Configuration and Values assigned.
Parameters may be stored without values in separate
Configurations for reuse or standardization.
OSID Provider implementations should get their configurations via the
OsidRuntimeManager .
Sub Packages
The Configuration OSID includes a rules subpackage for governing the
available Values for a Parameter based on a set of rules
and an Configuration Batch OSID for managing parameters and values in bulk.
Example
Id colorParameterId = what I'm looking for; ValueRetrievalSession valueSession = mgr.getValueRetrievalSession(); Value value = valueSession.getApplicableValueForParameter(colorParamId); String color = value.getStringValue();
Copyright © 2009-2010 Ingenescus. All Rights Reserved.
This Work is being provided by the copyright holder(s) subject to the following license. By obtaining, using and/or copying this Work, you agree that you have read, understand, and will comply with the following terms and conditions.
Permission to use, copy and distribute unmodified versions of this Work, for any purpose, without fee or royalty is hereby granted, provided that you include the above copyright notices and the terms of this license on ALL copies of the Work or portions thereof.
You may nodify or create Derivatives of this Work only for your internal purposes. You shall not distribute or transfer any such Derivative of this Work to any location or to any third party. For the purposes of this license, "Derivative" shall mean any derivative of the Work as defined in the United States Copyright Act of 1976, such as a translation or modification.
This Work and the information contained herein is provided on an "AS IS" basis WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE WORK OR THE USE OR OTHER DEALINGS IN THE WORK.
The export of software employing encryption technology may require a specific license from the United States Government. It is the responsibility of any person or organization contemplating export to obtain such a license before exporting this Work.
-
InterfacesClassDescription
Configurationrepresents a configuration object.This session creates, updates, and deletesConfiguration.This is the form for creating and updating configurations.This session defines methods for managing a hierarchy ofConfigurationobjects.This session defines methods for traversing a hierarchy ofConfigurations.Like allOsidLists,ConfigurationListprovides a means for accessingConfigurationelements sequentially either one at a time or many at a time.This session provides methods for retrievingConfigurations.The configuration manager provides access sessions to retrieve and manage configurations.This interface is a container for a partial hierarchy retrieval.Like allOsidLists,ConfigurationNodeListprovides a means for accessingConfigurationNodeelements sequentially either one at a time or many at a time.This session defines methods to receive notifications on adds/changes toConfigurations.TheConfigurationProfiledescribes the profile of the configuration service.The configuration manager provides access to sessions to retrieve and manage configurations.This is the query for searching configurations.This is the query inspector for examining configuration queries.This session provides methods for searching amongConfigurations.The configuration receiver is the consumer supplied interface for receiving notifications pertaining to new, updated or deletedConfigurationobjects.The search interface to query a configuration.An interface for specifying the ordering of search results.This interface provides a means to capture results of a search.This session provides methods for searching amongConfigurations.A parameter is used to map configuration values to an identifier and syntax.This session creates, updates, and deletesParameters.This session provides methods to re-assignParameterstoConfigurations.This session defines methods for accessing the configurations of a parameter.This is the form for creating and updatingParameters.Like allOsidLists,ParameterListprovides a means for accessingParameterelements sequentially either one at a time or many at a time.This session is used to retrieve parameters from a configuration registry of parameters.This session defines methods to receive notifications on adds/changes toConfigurationsand their properties.TheParameterQueryis used to assemble search queries.Inspects a parameter query.This session provides methods for searchingParameters.The parameter receiver is the consumer supplied interface for receiving notifications pertaining to new, updated or deletedParameterobjects.ParameterSearchspecifies the interface for specifying parameter search options.This interface specifies options for ordering search results.This interface provides a means to capture results of a search.This session provides methods for searchingParameters.This session manages queries and sequencing to create "smart" dynamic catalogs.This interface specifies the value of a configuration parameter.This session creates, updates, and deletesValuesThe data for create and update is provided by the consumer via the form object.A value condition interface.This is the form for creating and updatingValues.Like allOsidLists,ValueListprovides a means for accessingValueelements sequentially either one at a time or many at a time.This session is used to retrieve configuration values.This session defines methods to receive notifications on changes toValues.The interface to query a value.The interface to inspect a value query.This session provides methods for searchingValues.The value receiver is the consumer supplied interface for receiving notifications pertaining to new, updated or deletedValues.This session is used to retrieve active and applicable configuration values through evaluation of active and pertinent values based on the context or conditional input.The interface for governing value searches.This interface specifies options for ordering search results.This interface provides a means to capture results of a search.This session provides methods for searchingValues.