Oracle® Fusion Middleware Developer's Guide for Oracle WebCenter 11g Release 1 (11.1.1.4.0) E10148-12 |
|
![]() Previous |
![]() Next |
WebCenter Personalization delivers targeted content based on both user and application context. WebCenter Personalization also provides a run-time system and associated tools that allow the declarative definition of application flow.
This chapter describes how to integrate WebCenter Personalization into a WebCenter Portal application and includes the following sections:
For more information about WebCenter Personalization, see:
"Managing the Personalization Service" in the Oracle Fusion Middleware Administrator's Guide for Oracle WebCenter
WebCenter Personalization provides a dynamically derived user experience for your WebCenter Portal application. WebCenter Personalization evaluates defined sources of input data, generates a decision based on that evaluation, and applies this information to a declaratively defined Personalization scenario. WebCenter Personalization, for example, can return content or change application flow based on information about a user in a Human Resources database, targeting the application experience for that specific user.
This section provides an overview of the features and requirements of WebCenter Personalization, and contains the following subsections:
Figure 62-1 shows the architecture and out-of-the box services and components that comprise WebCenter Personalization. These and other WebCenter Personalization components are described in:
Figure 62-1 WebCenter Personalization Services Architecture
This section describes the role of the WebCenter Personalization Conductor. The Conductor is the heart of the WebCenter Personalization engine, and contains and runs the units of work called scenarios. The Conductor runs the prepared scenarios, and provides access to provider extensions that plug into the Conductor. These aspects of the Conductor are described in the following sections:
A scenario is defined by a script you create using the Scenario Editor in JDeveloper (or provide as an XML file) based on a simple syntax that allows conditional statement evaluation resulting in the return (to the client) of some form of content. Based on function provider expressions, a script action may then return filtered content to the client application using a Data Provider and a query. A scenario, rather than returning targeted content, can also be used to make dynamic changes to application flow, resulting in a personalized user experience within the application.
In JDeveloper, you can use the Scenario Editor to graphically design your scenario. You can also create XML file-based scenarios. See Section 62.2.2.4, "Specifying Scenario Flow Using Node Types" and Section 62.2.3, "Creating File-Based Scenarios" for more information about creating scenarios.
As well as returning content targeted to a specific user, scenarios executing within the Conductor can also control application flow, render user interface components, and execute application-related events. Using the Conductor's public Java and Expression Language (EL) API, you can provide seamless integration with an existing Java or Web-based application. See Section 62.4, "Using Personalization APIs Externally" for more information about using Java and EL APIs.
The Property Service uses property sets to organize sets of user or application data, and property definitions to assign a data type to property data. You can extend the Property Service to access additional user profile data in an enterprise LDAP repository, or to access additional repositories such as Oracle MDS. For more information about the Property Service and property sets, see Section 62.1.3, "WebCenter Personalization Property Service."
Providers provide a way to access external resources within your scenario. As well as three out-of-the-box providers for the Property Service, Content Server Provider (CMIS), and Activity Graph, the Conductor also supports an extensible architecture that lets you implement and access custom providers from within your Scenarios. For more information about providers, see Section 62.1.4, "WebCenter Personalization Providers."
This section describes the WebCenter Personalization Property Service. The Property Service provides a simple yet scalable way for developers to access user data.
This section includes the following subsections:
The Property Service uses Java and REST APIs to store and retrieve properties about a user, such as their age or gender, or other information such as the current time. These properties are part of a property set. A property set can have a schema defined (the schema defines types for properties), or it can be created on demand without a schema. A property set can have properties that are retrieved from different locations such as the Identity Store LDAP server, a file, or using a SQL query. For more information about using Java and REST APIs, see Section 62.4, "Using Personalization APIs Externally."
The Property Service uses the default WebCenter Personalization cache (or Coherence cache if available) and by default stores property sets in a database. The Property Service is also extensible allowing additional repositories such as Oracle MDS to be configured.
Figure 62-2 Property Service Architecture
The Property Service uses property sets to organize sets of user or application data, and property definitions to assign a data type to property data. The existing user profile data in an enterprise LDAP repository can also be made accessible by extending the Property Service. See Section 62.2.2.5, "Defining Property Sets and Property Locators" for more information about the property sets. In a JDeveloper project for a WebCenter Portal application, the PropertySet Editor creates property namespace files containing namespace
, PropertySet
, and Property
definitions.
A property locator is invoked by the Property Service to access external stores of properties. For example, WebCenter Personalization provides an out-of-the-box People Connections property locator that uses the People Connections REST service to access profile information for users. For more information about property locators, see Section 62.2.2.5, "Defining Property Sets and Property Locators." For more information about the People Connections property locator, see Section 62.1.4.1.4, "People Connections Locator."
A provider is an interface point for the Conductor that lets it communicate with external services. WebCenter Personalization provides out-of-the-box providers for the Property Service, Oracle Content Server, and Activity Graph, and a locator used by the Property Service provider to allow integration with People Connections. There are also two types of custom providers you can implement: data providers and function providers.
This section describes the out-of-the-box providers and the two types of custom providers in the following subsections:
This section describes the out-of-the-box providers you can access from within your scenarios, and a locator used by the Property Service provider to allow integration with People Connections.
This section contains the following subsections:
The Property Service Provider allows integration with the Property Service. This provider allows you to retrieve property sets for a particular property set definition, retrieve a property set by name, or return a specific property from a property set. For more information about the Property Service Provider, see Section 62.2.2.8.1, "Using the Property Service Provider."
The CMIS Provider provides services to retrieve and search for content from standards-based CMIS (Content Management Interoperability Services) content servers, specifically provided by the Oracle Content Server. The CMIS Provider also has utility function providers to convert results to simplified form. For information about integrating the CMIS Provider, see Section 62.2.2.8.2, "Using the CMIS Provider." For information about creating and editing connection configuration for the Content Server provider, see "Configuring the REST Service Identity Asserter" in the Oracle Fusion Middleware Administrator's Guide for Oracle WebCenter.
The Activity Graph Provider (ActivityGraphProvider) provides integration with the Activity Graph engine (the basis for the WebCenter Activity Graph service), which provides recommendations about what a user may be interested in connecting with based on analytics within WebCenter. For example, the Activity Graph Provider method recommendedUsers
, queries the Activity Graph engine for a list of users that a given user might want to connect with.
The Activity Graph engine provides a central repository for actions that are collected by enterprise applications. For more information about the Activity Graph service and the Activity Graph engine, see Section 41, "Integrating the Activity Graph Service."
The Activity Graph provider is built on two REST services for Activity Graph running on the WebCenter Spaces server, and consequently requires that WebCenter Spaces be installed in your environment. For more information about integrating the Activity Graph provider in your scenario, see Section 62.2.2.8.3, "Using the Activity Graph Provider." For information about creating and editing connection configuration for the Activity Graph provider, see "Configuring the Activity Graph Provider" in the Oracle Fusion Middleware Administrator's Guide for Oracle WebCenter.
Although The People Connections locator is an ILocator used by the Property Provider to interface with the WebCenter People Connections service. One of the benefits of the People Connections service is that it can access user profile information stored on WebCenter Spaces. For more information about the People Connections service, see Section 35, "Integrating the People Connections Service." For more information about the People Connections locator, see Section 62.2.2.8.1, "Using the Property Service Provider." For information about creating and editing connection configuration for the People Connections locator, see "Configuring the Oracle People Connections Locator" in the Oracle Fusion Middleware Administrator's Guide for Oracle WebCenter.
A data provider is a component that plugs into the Conductor architecture and acts as a delegate for some service. Data returned from a data provider can be used as-is (Java classes), or chained to be used as input to other data providers in the same scenario.
The Property Service Provider, Activity Graph Provider, and the CMIS Provider are all examples of data providers that are available out-of-the-box. But data providers (oracle.wcps.conductor.provider.IDataProvider
) also provide an extension point for the Conductor so that you can write a custom data provider to, for example, integrate with legacy systems or external data stores. You can then call your custom (or out-of-the-box) data provider using the Invoke Provider
node from within a scenario.
Data providers typically operate on the input context of a given user or an external application data set (or both). WebCenter Personalization includes a Property Service that can provide typed data storage for user or application data, and is accessible as input to providers. For more information about creating your own data provider, see Section 62.3.1, "Adding Custom Providers."
Function providers (oracle.wcps.conductor.provider.IFunctionProvider
) also provide an extension point for the Conductor to create utility methods (for example, for data manipulation or transformation, or business rule calculation) that can be invoked using Expression Language (EL) expressions. A simple example might be: ${strings:concat('string1','string2')}
). The CMIS and Activity Graph providers each have their own function provider to facilitate data transformations, among other utilities. For more information about Personalization ELs, see Appendix G, "ELs Related to the Personalization Service."
This section describes how to integrate WebCenter Personalization in your WebCenter Portal application.
This section contains the following subsections:
This section describes the design-time system requirements and dependencies for developing WebCenter Portal applications with JDeveloper that integrate WebCenter Personalization services. For a complete list of requirements, dependencies, and options for WebCenter Personalization, see "WebCenter Personalization Prerequisites" in the Oracle Fusion Middleware Administrator's Guide for Oracle WebCenter.
WebCenter Spaces must be installed if the CMIS Provider, Activity Graph Provider, or People Connections locator are being used in a scenario. Note that for basic iterative development WebCenter Spaces is not required to be installed on your domain.
WebCenter Personalization relies on WebCenter Trust Services to provide single sign-on (SSO) between different managed servers within the WebCenter domain, including the Oracle Content Server that is accessed through the CMIS Provider. For JDeveloper's integrated domain, the Trust Services must be configured using a WLST script (configureWCPS.py
) located in the DefaultDomain/scrpts-wcps
directory. For more information about configuring the WebCenter Trust Services and single sign-on using this script see "Configuring Single Sign-on" in the Oracle Fusion Middleware Administrator's Guide for Oracle WebCenter.
The REST service must be configured. For information about how to configure the REST service, see the chapter "Managing REST Services" in the Oracle Fusion Middleware Administrator's Guide for Oracle WebCenter.
Note: Although you can optionally include the out-of-the-box providers for Activity Graph and People Connections in your application, you will not be able to test results in JDeveloper. Note also that these providers are only partially configured, and you must complete their configuration as described in the Oracle Fusion Middleware Administrator's Guide for Oracle WebCenter in the sections on "Configuring the Oracle People Connections Service" and "Configuring the Activity Graph Service." |
This section describes how to author personalized scenarios using the WebCenter Personalization tools in JDeveloper, and includes the following subsections:
Section 62.2.2.2, "Creating Property Sets and Property Definitions"
Section 62.2.2.3, "Creating a New Scenario in the Scenario Editor"
Section 62.2.2.4, "Specifying Scenario Flow Using Node Types"
Section 62.2.2.5, "Defining Property Sets and Property Locators"
Section 62.2.2.6, "Implementing and Calling Function Providers"
The Properties Namespace file contains the property definitions and property set definitions you define.
To create a Properties Namespace file in JDeveloper:
From within your application in JDeveloper, right-click the application in the navigation bar.
The New Gallery dialog displays (see Figure 62-3).
Note: If the Personalization category doesn't display, open the All Technologies tab and select it, or click selected technologies and add the WebCenter Personalization technology to the project. |
Choose Properties Namespace and click OK.
The Create Namespace dialog displays (see Figure 62-4).
Enter a name for the namespace, select the Include default property definitions checkbox to add initial default property definitions to the namespace, and click OK.
The Include default property definitions checkbox controls whether initial default property definitions are added to the namespace file. These are: IntDef
, NumberDef
, StringDef
, BooleanDef
, DateTimeDef
, ClobDef
, IntArrayDef
, NumberArrayDef
, StringArrayDef
, BooleanArrayDef
, DateTimeArrayDef
, ClobArrayDef
.The property definitions can be removed, if needed afterwards. Or, you can leave the checkbox unselected to start with no initial property definitions and create them as needed in the Scenario Editor.
A graphic representation of the namespace file displays in the Design pane (see Figure 62-5).
Figure 62-5 Design Pane - Namespace Definition
Continue by defining the property sets and properties that you will need in your scenario as described in Section 62.2.2.2, "Creating Property Sets and Property Definitions."
Properties are the bits of data about someone or something on which, for example, you can base evaluations of conditionals in your scenario's flow. A property, for example, could contain a person's age or gender. A property set is simply a collection or container of related properties.
To define a property set and associated properties:
From within your application in JDeveloper, right-click the namespace in the Design pane, select Create New Property Set Definition, and click OK.
The Create New Property Set dialog displays (see Figure 62-6).
Figure 62-6 Create New Property Set Dialog
Enter a name for the property set and click OK.
A node for the new property set displays in the Design pane (see Figure 62-7).
Figure 62-7 Design Pane - New Property Set Definition
To add properties to the new property set, right-click the property set, and select Create New Property Definition Mapping.
The Create Property Definition dialog displays (see Figure 62-8).
Enter a Property Name and Definition (the value type), and click OK.
To create a new property definition, select New Definition
in the Definition drop down list.
The new property appears as part of the property set's graphic representation (see Figure 62-9).
Figure 62-9 Design Pane - Property Definition
Add any additional properties required to the property set (or create new property sets) and then continue by creating the scenario as described in Section 62.2.2.3, "Creating a New Scenario in the Scenario Editor."
The Conductor's Scenario Editor provides a visual tool for viewing and editing scenario definitions managed by the Conductor. The Scenario Editor stores scenarios in both file and visual formats and is available from within JDeveloper. Before creating a scenario, you should have created a namespace and at least some of the property sets and properties you need for the scenario.
To create a new scenario using the Scenario Editor in JDeveloper:
From within your application in JDeveloper, right-click the application in the navigation bar.
The New Gallery dialog displays (see Figure 62-10).
Note: If the Personalization category doesn't display, open the All Technologies tab and select it, or click selected technologies and add the WebCenter Personalization technology to the project. |
Select Conductor Scenario and click OK.
The Scenario Definition dialog displays (see Figure 62-11).
Select Create a new conductor scenario file and modify the file name and where the file is stored if necessary. Note that the scenario name's extension (.scenarios_diagram
) cannot be changed.
The Scenario Editor displays with a new Start node (see Figure 62-12).
Figure 62-12 Scenario Editor - Start Node
To add nodes to the scenario, right-click the node to which you want to add a new node, select Add Following Statement, and chose the node type from the list as shown in Figure 62-13.
Figure 62-13 Adding a Node in the Scenario Editor
Right-click the new node to expose options for setting node properties and extending the flow. For a description of available node types, see Section 62.2.2.4, "Specifying Scenario Flow Using Node Types."
The Scenario Editor uses a tree-structured fixed layout where the flow is represented by a combination of subtrees (for decisions) and internal label references to represent flow for loops and complex nested if/else decisions.
Node Types
Start: The Start node is a root level node that defines where a scenario begins.
Return: The Return node halts execution of the scenario, and returns the specified results of evaluation of an EL expression to the caller.
Variable Assignment: The variable assignment node lets you define a variable that is scoped within the context of the currently running scenario and initialize it with an expression.
Execute: The Execute node invokes a specified EL expression with no expected return value. Similar to Variable Assignment, only the results of the expression are not stored within the Scenario context.
Condition/Otherwise: The Condition node evaluates an EL expression and executes the contained statements if the EL expression evaluate to true. Statements within the Otherwise block will only execute if all condition statements evaluate to false.
For Each: For Each nodes are a matched pair of nodes that provide looping/iterating functionality over a collection of things.
While: Provides looping/iterating functionality as long as a specified EL expression evaluates to true.
Raise Error: Raise and throw an error with the specified error message
Invoke Provider: Invokes a named implementation of IDataProvider. Results are stored within the context of the currently running Scenario.
Invoke Scenario: Invokes another named Scenario within the same namespace. Results are stored within the context of the currently running Scenario
The Property Editor lets you view and edit the property set definitions and their associated property definitions managed by the Property Service. The Property Editor communicates and persists data through the Property Service.
Property sets and properties within a property set can be stored in many different locations and formats, so a locator facility is needed to retrieve them. A default property set locator is provided that retrieves and stores property set data to a pre-configured database. This default locator is used when no other is specified for the property set.
A custom locator for the People Connections service is also provided out-of-the-box (for more information, see Section 62.1.4.1.4, "People Connections Locator"), but you may want to define additional locators for other data sources. You can define multiple locators for properties and property sets, and they can also be defined in order of precedence. For step-by-step instructions for how to implement a locator see Section 62.3.2, "Adding Custom Locators."
The IFunctionProvider
is a marker interface that allows utility code to be accessible from the Expression Language services within the Conductor. Implementations of IFunctionProvider
contain annotated public and static methods. Example 62-1 shows an example function provider:
Example 62-1 Example Function Provider
@FunctionProvider ( prefix="interpreter", resourceBundle="sample.InterpreterResources", nameBundleKey="provider.name", descriptionBundleKey="provider.description" ) public class InterpreterProvider implements IFunctionProvider { @PublicFunction ( functionName="english", descriptionBundleKey="english.description" ) public static String interpretEnglish(@PublicParameter(parameterName="phrase", descriptionBundleKey="phrase.description")String phrase) { String result = "Not Understood"; if ("Bonjour".equals(phrase)) { result = "Hello"; } return result; } @PublicFunction ( functionName="french", descriptionBundleKey="french.description" ) public static String interpretFrench(@PublicParameter(parameterName="phrase", descriptionBundleKey="phrase.description")String phrase) { String result = "Non compris"; if ("Hello".equals(phrase)) { result = "Bonjour"; } return result; } }
You would call the function provider in Example 62-1 using the following expression syntax:
${interpreter:english("Bonjour")} ${interpreter:french("Hello")}
Here is an example of how to assign a variable to the results of a function provider based on Example 62-1:
<assign-variable> <variable>greetings</variable> <expression>${interpreter:english("Bonjour")}</expression> </assign-variable>
Data provider implementations are a more structured way of integrating custom functionality with scenario execution. Unlike function providers, data providers have access to a connection configuration framework built into the Conductor so that environment-specific configuration data can be used. The following diagram illustrates the class interaction for data providers:
Figure 62-14 Class Interaction for Data Providers
IDataProvider
Data providers are responsible for returning abstract named connection implementations of IConnection
. These named connections are usually backed by environmental configurations provided by the Conductor's connection configuration service, but do not have to be. Should the data provider happen to use the configuration service, the implementation must return a class that extends oracle.wcps.connection.configuration.AnnotatedConfiguration
from the getConnectionConfigClass()
method. This class must contain public annotated fields that represent configuration data specific to the data provider.
IConnection
Implementations of oracle.wcps.conductor.provider.IConnection
are responsible for returning (named and default) Executable Resources. Each instance of IConnection
can represent a single connection configuration and should be constructed within the instance of IDataProvider
(not static).
IExecutableResource
Implementations of oracle.wcps.conductor.provider.IExecutableResource
contain most of the integration code with the external system and the instance should be constructed within the instance of IConnection
(not static). The default method from within IExecutableResource
is the execute
method that takes no arguments, but custom annotated methods can be written within the implementation if IExecutableResource
and exposed to scenario execution. For example, the following custom method can be invoked from a scenario:
@PublicFunction ( functionName="custom", descriptionBundleKey="customFunction.description" ) public String callCustomMethod(@PublicParameter(parameterName="customParam", descriptionBundleKey="customParam.description") String param) { return param + " Results"; }
Here is how the provider with the custom method is invoked from within the scenario:
<call-provider> <provider-name>myCustomProvider</provider-name> <connection-name>${connectionName}</connection-name> <method-name>custom</method-name> <variable>searchResults</variable> <input> <parameter> <common:name>customParam</common:name> <common:value>${someScenarioVariable}</common:value> </parameter> </input> </call-provider>
WebCenter Personalization provides three providers out-of-the-box providers for use within scenarios: the Property Service Provider, the Content Server Provider (CMIS), and Activity Graph. This section describes how you can integrate these providers in your application in the following subsections:
The Property Service Provider (oracle.PropertiesServiceProvider
) allows integration with the Personalization Server Property Service. This provider lets you to retrieve property sets for a particular property set definition, retrieve a property set by name, or return a specific property from a property set. If you are using the People Connections locator to integrate profile data into your scenario, then you must configure the Property Service before using it. For more information about the People Connections locator, see Section 62.1.4.1.4, "People Connections Locator." For information about configuring the Property Service provider, see "Configuring the Oracle People Connections Locator" in the Oracle Fusion Middleware Administrator's Guide for Oracle WebCenter.
The CMIS provider (CMISProvider
) provides services to search for and retrieve content from standards-based CMIS (Content Management Interoperability Services) content servers. For WebCenter, this is specifically provided by the Oracle Content Server. The CMIS provider also has a utility function provider (CMISFunctionProvider
) to convert results to simplified form. Before trying the examples below, be sure to configure your CMIS provider connection as shown in the section on "Configuring the CMIS Provider" in the Oracle Fusion Middleware Administrator's Guide for Oracle WebCenter.
Example CMIS Provider Scenario
Create a scenario using the following (remember to set the content-type
of application/xml
):
Request URI:
POST http://localhost:8891/wcps/api/conductor/namespaces/myNameSpace/scenarios
Request Body:
<scenarioMetadata> <scenario xmlns:common="http://xmlns.oracle.com/wcps/conductor/common/1.0.0" xmlns:scenario="http://xmlns.oracle.com/wcps/conductor/scenarios/1.0.0"> <body> <call-provider> <provider-name>CMISProvider</provider-name> <connection-name>CmisConfigConnection</connection-name> <variable>exprString</variable> <input> <parameter> <common:name>search</common:name> <common:value>SELECT * FROM cmis:document WHERE cmis:name LIKE 'flowers'</common:value> </parameter> </input> </call-provider> <return> <expression>${exprString}</expression> </return> </body> <name>CMIS Scenario</name> <comments>CMIS Scenario comments</comments> <tags> <tag>CMIS Scenario tag</tag> </tags> </scenario> </scenarioMetadata>
Executing the Scenario
Request URI:
POST http://localhost:8891/wcps/api/conductor/namespaces/myNameSpace/scenarios/CMIS%20Scenario
Request Body:
<parameters/>
Using the CMISFunctionProvider
A function provider is a utility class that can be invoked from within a scenario. The CMISFunctionProvider
supports several methods (see the JavaDoc for the class for more information). Here are two example methods:
/** * Convert the array of input IDs to a CMIS query in the form of 'IN' * @param ids Array of document IDs, in the form of dDocName only * @return CMIS query String */ public static String getCMISQueryForDocIDs( @PublicParameter(parameterName="repository",descriptionBundleKey="getCMISQueryForDocIDs.parameter.description.inputList") String repository, @PublicParameter(parameterName="ids",descriptionBundleKey="getCMISQueryForDocIDs.parameter.description.inputList") List<String> ids)) ... /** * Convert the array of input IDs to a CMIS query in the form of 'IN' * @param ids, in the form of a WebCenter document ObjectURN. For example: stanl18-ucm11g#dDocName:MOUNTAINS * @return CMIS query String */ public static String getCMISQueryForDocIDsFromFullID(@PublicParameter(parameterName="ids", descriptionBundleKey="getCMISQueryForDocIDs.parameter.description.inputList") List<String> ids)
Using the CMISFunctionProvider in a Scenario
The following scenario snippet shows how data might be fed into the CMISFunctionProvider
to create a CMIS query for multiple nodes, where the query is then sent to the CMIS provider. (In a more realistic case, rather than generate the data, we could have passed the results from an Activity Graph provider call, for example.)
<scenario:scenario xmlns:common="http://xmlns.oracle.com/wcps/conductor/common/1.0.0" xmlns:scenario="http://xmlns.oracle.com/wcps/conductor/scenarios/1.0.0"> <comments>testFunctionProviderScenario4 comments</comments> <body> <assign-variable> <variable>ids</variable> <expression>${collections:new()}</expression> </assign-variable> <execute> <expression>${collections:append(ids,'StellentRepository#dDocName:MOUNTAINS')}</expression> </execute> <execute> <expression>${collections:append(ids,'StellentRepository#dDocName:PARKS')}</expression> </execute> <execute> <expression>${collections:append(ids,'StellentRepository#dDocName:PATAGONIAPARKS')}</expression> </execute> <!-- Assign those as IDs to send to CMIS --> <assign-variable> <variable>cmisQuery</variable> <expression>${cmisfunction:getCMISQueryForDocIDsFromFullID(ids)}</expression> </assign-variable> <!-- Make the call to CMIS --> <call-provider> <provider-name>CMISProvider</provider-name> <connection-name>NonProxyConnection</connection-name> <variable>cmisResults</variable> <input> <parameter> <common:name>search</common:name> <common:value>${cmisQuery}</common:value> </parameter> </input> </call-provider> <return> <expression>${cmisResults}</expression> </return> </body> <name>testFunctionProviderScenario4</name> </scenario:scenario>
The Activity Graph Provider (ActivityGraphProvider
) provides integration with the Activity Graph service, which provides recommendations based on analytics within WebCenter. Before attempting the examples below, be sure to configure the connection for the Activity Graph service as shown in the section on "Configuring the Activity Graph Provider" in the Oracle Fusion Middleware Administrator's Guide for Oracle WebCenter.
Example Activity Graph Provider Scenario
Create a scenario using the following (remember to set the content-type
of application/xml
):
Request URI:
POST http://localhost:8891/wcps/api/conductor/namespaces/default/scenarios
Request Body:
<scenarioMetadata> <scenario xmlns:common="http://xmlns.oracle.com/wcps/conductor/common/1.0.0"> <body> <call-provider> <provider-name>ActivityGraphProvider</provider-name> <connection-name>ActivityGraphConfigConnection</connection-name> <resource-name>QueryCommonItems</resource-name> <method-name>queryCommonItems</method-name> <variable>providerResults</variable> <input> <parameter> <common:name>sourceClassURN</common:name> <common:value>WC.user</common:value> </parameter> <parameter> <common:name>sourceObjectURN</common:name> <common:value>carl</common:value> </parameter> <parameter> <common:name>targetClassURN</common:name> <common:value>WC.user</common:value> </parameter> <parameter> <common:name>targetObjectURN</common:name> <common:value>monty</common:value> </parameter> <parameter> <common:name>similarityURN</common:name> <common:value>user-edit</common:value> </parameter> </input> </call-provider> <return> <expression>${providerResults}</expression> </return> </body> <name>QueryCommonItemsScenario</name> <comments>QueryCommonItemsScenario comments</comments> <tags> <tag>invoke</tag> <tag>sample</tag> <tag>provider</tag> <tag>resource</tag> <tag>input</tag> <tag>parameters</tag> <tag>overloaded</tag> </tags> </scenario> </scenarioMetadata>
Executing the Scenario
Before continuing, you must set the header values: Accept=application/xml
and content-type=application/xml
.
Request URI:
POST http://localhost:8891/wcps/api/conductor/namespaces/default/scenarios/QueryCommonItemsScenario
Request Body:
<parameters/>
Using the AGFunctionProvider
A function provider is a utility class that can be invoked from within a scenario. The AGFunctionProvider
supports these methods:
/** * Return the value of 'ObjectURN', only for WC.document, from the input Object. * @param agResults From call to 'QueryRecommendations' or QueryItems. Can be one of the following Classes: * * From AG REST 'recommendations' * <ul> * <li> Recommendations * <li> RecommendedItems * <li> List<Recommendation> * </ul> * * From AG REST 'items' (common items) * <ul> * <li> Results * <li> Items * <li> List<Item> * </ul> * * @param dDocNameOnly If true, just the last part of the ObjectURN for document will be returned; otherwise, the * entire ObjectURN will be. For example, if ObjectURN is stanl18-ucm11g#dDocName:STANL18USORACL000116, if this value * is 'true', then only STANL18USORACL000116 will be returned. Otherwise, all of stanl18-ucm11g#dDocName:STANL18USORACL000116 * is returned. * * @return a List of ObjectURN representing the document ID */ @PublicFunction public static List<String> getDocumentIDs( @PublicParameter(parameterName="agResults",descriptionBundleKey="getContentIDs.parameter.description.inputList")Object agResults, @PublicParameter(parameterName="dDocNameOnly", descriptionBundleKey="getContentIDs.parameter.description.inputList")boolean dDocNameOnly) { ... /** * Return the value of 'ObjectURN' for the 'ClassURN' from the input Object. * @param agResults From call to 'QueryRecommendations' or QueryItems. Can be one of the following Classes: * * From AG REST 'recommendations' * <ul> * <li> Recommendations * <li> RecommendedItems * <li> List<Recommendation> * </ul> * * From AG REST 'items' (common items) * <ul> * <li> Results * <li> Items * <li> List<Item> * </ul> * * param filterClassURN return content only of this type. Examples are: WC.wiki-page, WC.group-space, WC.user, WC.blog, * WC.topic, WC.document. If this is null, return all types. * * @return a List of ObjectURN representing the item identifier. */ @PublicFunction ( functionName="getContentIDs", descriptionBundleKey="getContentIDs.method.description" ) public static List<String> getContentIDs(@PublicParameter(parameterName="agResults", descriptionBundleKey="getContentIDs.parameter.description.inputList")Object agResults, @PublicParameter(parameterName="filterClassURN", descriptionBundleKey="getContentIDs.parameter.description.filterClassURN") String filterClassURN) ... /** * Filter recommendations by score. Only those recommendations with a score >= the cutoff will be preserved. */ @PublicFunction ( functionName="filterRecsByScore", descriptionBundleKey="filterRecsByScore.method.description" ) public static Recommendations filterRecsByScore( @PublicParameter(parameterName="recommendations", descriptionBundleKey="filterRecsByScore.parameter.description.agRecs") Recommendations recs, @PublicParameter(parameterName="cutoffScore", descriptionBundleKey="filterRecsByScore.parameter.description.cutoffScore") float cutoffScore ) {
Using the AGFunctionProvider in a Scenario
In the following scenario, a call is first made to the Activity Graph REST service. The results of that call are in the agRecommendations
variable. The next call in the scenario is to the AGFunctionProvider.getContentIDs()
method, passing in the results of the agRecommendations
(an Activity Graph object), and returning a List<String>
of document IDs, held in the evaluation of the expressions
call.
<expression>${agfunction:getContentIDs(agRecommendations,'WC.user')}</expression> <scenario:scenario xmlns:common="http://xmlns.oracle.com/wcps/conductor/common/1.0.0" xmlns:scenario="http://xmlns.oracle.com/wcps/conductor/scenarios/1.0.0"> <comments>CallProviderScenario comments</comments> <body> <call-provider> <provider-name>ActivityGraphProvider</provider-name> <connection-name>AgTestServerConnection</connection-name> <resource-name>QueryRecommendations</resource-name> <method-name>getRecommendationsUsingDefaultRecipe</method-name> <variable>agRecommendations</variable> <input> <parameter> <common:name>classURN</common:name> <common:value>WC.user</common:value> </parameter> <parameter> <common:name>objectURN</common:name> <common:value>carl</common:value> </parameter> </input> </call-provider> <!-- Now call function provider to translate into user IDs. A more specific call is available for WC.document; this just tests the ability of the function provider to handle different types of content --> <return> <expression>${agfunction:getContentIDs(agRecommendations,'WC.user')}</expression> </return> </body> <name>CallProviderScenario</name> </scenario:scenario>
As well as using the Scenario Editor, you can also create file-based scenarios in XML format. Note that file-based scenarios are only supported through the Conductor's import/export function and JDeveloper MDS integration. To import a file-based scenario into the Scenario Editor, select the Create from file option when you create the scenario.
Table 62-1 shows the statements that make up the contents of a scenario file. For more detailed information about the statements, refer to the node descriptions in Section 62.2.2.4, "Specifying Scenario Flow Using Node Types."
Table 62-1 Scenario Statements
Statement | Description | Example |
---|---|---|
Variable Assignment |
Creates a variable that is scoped within the context of the currently running scenario. |
<assign-variable> <variable>index</variable> <expression>3</expression> </assign-variable> |
Execute |
Invokes a specified EL Expression with no expected return value. Similar to Variable Assignment, only results of the expression are not stored within the Scenario Context. |
<execute> <comments>Adds to an existing collection.</comments> <expression>${collections:append(responses,'The outlook is not so good.')}</expression> </execute> |
Condition/Otherwise |
Evaluates an EL expression and executes the contained statements should the EL expression evaluate to true. Statements within the otherwise block will only execute if all condition statements evaluate to false. |
<conditions> <body> <condition> <body> <assign-variable> <variable>customerType</variable> <expression>Great Customer</expression> </assign-variable> </body> <expression>${customer.totalMoneySpent >= 100000}</expression> </condition> <otherwise> <body> <assign-variable> <variable>customerType</variable> <expression>Good Customer</expression> </assign-variable> </body> </otherwise> </body> </conditions> |
ForEach |
Provides looping/iterating functionality over a collection of things. |
<for-each> <body> <execute> <comments> Let's send each great customer an email, thanking them for their loyalty. </comments> <expression> ${emailService:sendMail(customer,'Subject:Thanks for being a great customer')} </expression> </execute> </body> <variable>customer</variable> <max-iterations>10</max-iterations> <items>${greatCustomers}</items> </for-each> |
While |
Provides looping/iterating functionality as long as the specified EL expression evaluates to true. |
<while> <body> <assign-variable> <comments>Sum up customer invoices to arrive at customer total expenditure.</comments> <variable>customerTotalSpent</variable> <expression>${customerTotalSpent+order.invoiceTotal}</expression> </assign-variable> </body> <expression>${customer.id = currentCustomerId }</expression> <max-iterations>-1</max-iterations> </while> |
Invoke Scenario |
Invokes another named scenario within the same namespace. Results are stored within the context of the currently running scenario. |
<call-scenario > <variable>greeting</variable> <scenario>randomGreetingGenerator</scenario> <input> <parameter> <ns2:name>greetingsList</ns2:name> <ns2:value>hello, Bonjour, Buenos días</ns2:value> </parameter> </input> </call-scenario> |
Invoke Provider |
Invokes a named implementation of IDataProvider. Results are stored within the context of the currently running scenario |
<call-provider> <provider-name>CRM_Provider</provider-name> <connection-name>crm_db</connection-name> <resource-name>getGreatCustomers</resource-name> <variable>greatCustomers</variable> <input> <parameter> <ns2:name>minMoneySpent</ns2:name> <ns2:value>100000</ns2:value> </parameter> </input> </call-provider> |
Return |
Returns the specified results of evaluation of an EL Expression. |
<return> <comments>Return the sales rep who sold the most widgets this month.</comments> <expression>${bestSalesRep.id}</expression> </return> |
Raise Error |
Raise and throw an error with the specified error message |
<raise-error> <comments>User is unathorized, so let's return a 401.</comments> <statusCode>401</statusCode> <message>User ${ScenarioContext.scenarioRequest.userPrincipal.name} is unauthorized to execute this scenario.</message> </raise-error> |
Example 62-2 Example File-based Scenario
<scenario:scenario xmlns:common="http://xmlns.oracle.com/wcps/conductor/common/1.0.0" xmlns:scenario="http://xmlns.oracle.com/wcps/conductor/scenarios/1.0.0"> <comments>sampleScenarioWithIf comments</comments> <body> <assign-variable> <variable>index</variable> <expression>3</expression> </assign-variable> <conditions> <body> <condition> <body> <assign-variable> <variable>ResultVar</variable> <expression>conditionSatisfied</expression> </assign-variable> </body> <expression>${index == 3}</expression> </condition> <otherwise> <body> <assign-variable> <variable>ResultVar</variable> <expression>otherwiseInvoked</expression> </assign-variable> </body> </otherwise> </body> </conditions> <return> <expression>${ResultVar}</expression> </return> </body> <name>sampleScenarioWithIf</name> <tags> <tag>if</tag> <tag>condition</tag> <tag>otherwise</tag> </tags> </scenario:scenario>
This section describes how targeted content is displayed using the Content Presenter to the user at runtime for WebCenter Spaces and WebCenter Portal applications. It also describes how you can use REST APIs to create your own user interface for presenting content.
This section contains the following subsections:
Section 62.2.4.1, "Presenting Content with Content Presenter"
Section 62.2.4.2, "Presenting Content with a Custom User Interface"
Content Presenter is tightly integrated with the Conductor's dynamic content query generation and enables simple surfacing of dynamic content. For more information about using Content Presenter in your application, see Chapter 28, "Creating Content Presenter Display Templates."
For information about using Expression Language expressions in WebCenter Spaces to access a Personalization server scenario, see "Personalizing Pages" in the Oracle Fusion Middleware User's Guide for Oracle WebCenter Spaces.
Using REST APIs, you can create your own user interface for presenting content rather than using Content Presenter. For more information about REST APIs, see Chapter 51, "Using Oracle WebCenter REST APIs."
This section describes how you can create new ways to personalize application flow or content by adding custom providers and locators.
This section includes the following sub-sections:
Providers provide an extension point to WebCenter Personalization, with which you can add custom function providers and custom data providers. Table 62-2 shows the available extension points for Function and Data Providers.
Table 62-2 Extension Points
Extension | Description |
---|---|
oracle.wcps.provider.IFunctionProvider |
A Function Provider extension point for the Conductor to create utility methods for data manipulation/transformation, business rule calculation, and so forth that can be invoked using EL. A simple example might be: ${strings:concat('string1','string2')} |
oracle.wcps.provider.IDataProvider |
A Data Provider extension point for the Conductor. Custom data providers can be written to integrate with legacy systems or external data stores. |
The AnnotatedConfiguration
class describes the connection parameters required for a data provider, and can be found in:
Location: \Oracle\Middleware\jdeveloper\webcenter\modules\wcps-services_11.1.1.4.0\connections-service-1.0.jar
You will need to extend this class and add any other properties your custom provider may require. Create this class first, as the other components will build upon it (see Example 62-3).
Example 62-3 HelloWorldConnectionConfig
import oracle.wcps.connection.annotation.ConnectionProperty; import oracle.wcps.connection.configuration.AnnotatedConfiguration; @ConnectionConfiguration (connectionType="hello.world.provider.connection") @L10n (bundle="demo.provider.resources.HelloWorldProviderResources") public class HelloWorldConnectionConfig extends AnnotatedConfiguration { @ConnectionProperty(propertyName="sampleProperty", required=true) String sampleProperty; }
IMetadata
Location: \Oracle\Middleware\jdeveloper\webcenter\modules\wcps-services_11.1.1.4.0\conductor-server-1.0.0.0.jar
public interface IMetadata { public String getName(); public Set<? extends IMetadata> getMetadata(); }
Next, implement the IMetadata interface. This provides information to the tools to surface the connection parameters, essentially representing the information in your HelloWorldConnectionConfig
class as metadata (see Example 62-4). Each of the properties in the HelloWorldConnectionConfig
class becomes a child metadata object. This is not so intuitive for simple structures, but is useful when the connection configuration may contain nested classes that relate to other components in the 'model'.
Example 62-4 HelloWorldConfigMetadata
public class HelloWorldConfigMetadata implements IMetadata { private String name; private Object value ; private Map<String, IMetadata> childMDataMap = new HashMap<String, IMetadata>(); public HelloWorldConfigMetadata(HelloWorldConnectionConfig config) { name = config.name; } public HelloWorldConfigMetadata(String name, Object value) { this.name = name; this.value = value; } public void addMetadata(IMetadata childMetadata) { childMDataMap.put(childMetadata.getName(), childMetadata); } public String getName() { return name; } public Object getValue() { return value; } public Object getProperty(String propName) { IMetadata md = childMDataMap.get(propName); if (md != null) { return ((HelloWorldConfigMetadata)md).getValue(); } return null; } public Set<IMetadata> getMetadata() { Set<IMetadata> rv = new HashSet<IMetadata>(); Set<String> childKeySet = childMDataMap.keySet(); for (String key : childKeySet) { rv.add(childMDataMap.get(key)); } return rv; } public Properties getProperties() { Properties props = new Properties(); Set<String> childKeySet = childMDataMap.keySet(); for (String key : childKeySet) { HelloWorldConfigMetadata cmd = (HelloWorldConfigMetadata)childMDataMap.get(key); props.put(key, cmd.getValue()); } return props; } @Override public String toString() { return (name + ", properties: " + getProperties()); } }
IExecutableResource
An executable resource is a class having public methods annotated to designate them as executable by the Conductor. These methods could execute code directly, or delegate the call to an external REST service.
Location:
\Oracle\Middleware\jdeveloper\webcenter\modules\wcps-services_11.1.1.4.0\conductor-server-1.0.0.0.jar
public interface IExecutableResource { public Object execute(); }
Your ExecutableResources
can specify additional methods for execution by virtue of this annotation. Note the use of resource bundles (see section on Resource Bundles for more info). You can create any number of ExecutableResources
and add them to your connection (see Example 62-5).
Example 62-5 SayHelloExecutableResource
package demo.provider; import oracle.wcps.annotation.PublicFunction; import oracle.wcps.annotation.PublicParameter; import oracle.wcps.provider.IExecutableResource; public class SayHelloExecutableResource implements IExecutableResource { // This method will execute if no specific method is given public Object execute() { return "Hello from my custom provider"; } // This method can be named explicitly in a Scenario to be invoked @PublicFunction(functionName = "sayHello", descriptionBundleKey = "provider.method.sayHello.description") public String sayHello(@PublicParameter(parameterName = "user", descriptionBundleKey = "provider.parameter.sayHello.user.description") String user) { return "Hello, " + user + ". Enjoy using the new Personalization feature!"; } }
IConnection
Once you have implemented your IExecutableResources
and IMetadata
, you can construct your actual connection object. Each connection has a specific set of configuration parameters, so your provider could possibly have multiple connection objects (see Example 62-6).
Location:
\Oracle\Middleware\jdeveloper\webcenter\modules\wcps-services_11.1.1.4.0\conductor-server-1.0.0.0.jar
public interface IConnection { public void setScenarioContext(IScenarioContext context); public Map<String, IExecutableResource> getNamedResources(); public IExecutableResource getDefaultResource(); public Map<String, IMetadata> getConnectionMetadata(); }
Example 62-6 HelloWorldConnection
package demo.provider; import java.util.Collections; import java.util.HashMap; import java.util.Iterator; import java.util.Map; import java.util.concurrent.ConcurrentHashMap; import oracle.wcps.provider.IConnection; import oracle.wcps.provider.IExecutableResource; import oracle.wcps.provider.IMetadata; import oracle.wcps.scenario.IScenarioContext; public class HelloWorldConnection implements IConnection { private IScenarioContext scenarioContext; private Map<String, IExecutableResource> executableResources = new ConcurrentHashMap<String, IExecutableResource>(); private IExecutableResource defaultResource; private HelloWorldConfigMetadata configMetadata; private Map<String, IMetadata> metadataMap = new HashMap<String, IMetadata>(); /** * Create metadata about this connection from the incoming config * @param config */ public HelloWorldConnection(HelloWorldConnectionConfig config) { configMetadata = new HelloWorldConfigMetadata(config); // Loop over config properties and add as child metadata Iterator<Map.Entry<String, Object>> iter = config.entrySet().iterator(); while (iter.hasNext()) { Map.Entry<String, Object> entry = iter.next(); String key = entry.getKey(); Object value = entry.getValue(); if (value != null) { configMetadata.addMetadata(new HelloWorldConfigMetadata(key, value)); } } metadataMap.put(config.name, configMetadata); // Now create the executable resources for this connection createExecutableResources(config); } public void setScenarioContext(IScenarioContext scenarioContext) { this.scenarioContext = scenarioContext; } public Map<String, IExecutableResource> getNamedResources() { return executableResources; } public IExecutableResource getDefaultResource() { return defaultResource; } public Map<String, IMetadata> getConnectionMetadata() { return metadataMap; } /** * Create the IExecutableResources for this connection. An executable resource * is a class having one or more public methods. * @param config */ private void createExecutableResources(HelloWorldConnectionConfig config) { // NOTE: you may or may not need to use the config information with your executable resources IExecutableResource helloResource = new SayHelloExecutableResource(); IExecutableResource addingResource = new AddingExecutableResource(); executableResources.put("HelloResource", helloResource); executableResources.put("AddingResource", addingResource); // Make one of them the default defaultResource = helloResource; } }
An instance of your HelloWorldConnection
will be instantiated for each entry in your provider-connections.xml
file that corresponds to the connection type specified in HelloWorldConnectionConfig
(connectionType="hello.world.provider.connection"
).
IDataProvider
Finally, we are ready to roll all this into our top-level provider class HelloWorldProvider
. This is the access point for the Conductor to configure our connections and invoke our IExecutableResource
(s).
Location:
\Oracle\Middleware\jdeveloper\webcenter\modules\wcps-services_11.1.1.4.0\conductor-server-1.0.0.0.jar
Project Properties -> Libraries and Classpath -> add Jar/Directory -> (point to above conductor-server-1.0.0.0.jar)
Example 62-7 IDataProvider
public interface IDataProvider { /** * Returns a map of connections keyed by connection name */ public Map<String, ? extends IConnection> getNamedConnections(); /** * Returns the "default" connection to use */ public IConnection getDefaultConnection(); /** * Called by the framework to set the current scenario context. */ public void setScenarioContext(IScenarioContext scenarioContext); /** * Return the annotated class used to house connection configuration. * * <p> * Returning null disables this feature. */ public Class<?> getConnectionConfigClass(); /** * If getConnectionConfigClass returns a valid configuration class, * configurations are provided through this method, if any exist. * @param configurations The collection of configurations. */ public void setConnectionConfigurations(List<?> configurations); }
Required annotations:
@ContextualProvider ( contextName="HelloWorldProvider", resourceBundle="demo.provider.resources.HelloWorldProviderResources", nameBundleKey="provider.name", descriptionBundleKey="provider.description" )
See Example 62-8 on resource bundles below for more information.
Example 62-8 Resource Bundles
package demo.provider; import java.util.Collections; import java.util.List; import java.util.Map; import java.util.concurrent.ConcurrentHashMap; import oracle.wcps.annotation.ContextualProvider; import oracle.wcps.provider.IConnection; import oracle.wcps.provider.IDataProvider; import oracle.wcps.scenario.IScenarioContext; @ContextualProvider ( contextName="HelloWorldProvider", resourceBundle="demo.provider.resources.HelloWorldProviderResources", nameBundleKey="provider.name", descriptionBundleKey="provider.description" ) public class HelloWorldProvider implements IDataProvider { // Never used, but there is a required public method to set this. private IScenarioContext scenarioContext; // ConnectionConfigurations may come in via classes/META-INF/connection-providers.xml private List<HelloWorldConnectionConfig> connectionConfigurations; // Each IConnection is uniquely identified via the AGConnectionConfig private static Map<String, HelloWorldConnection> connections = new ConcurrentHashMap<String, HelloWorldConnection>(); // One of the connections will become the default private IConnection defaultConnection; public HelloWorldProvider() { super(); } /** * Return a map of all our Connections, keyed by config.name. * @return */ public Map<String, HelloWorldConnection> getNamedConnections() { return connections; } /** * One of the connections will be designated the default * @return */ public IConnection getDefaultConnection() { return defaultConnection; } /** * Used to hold parameters specific to a given scenario * @param scenarioContext */ public void setScenarioContext(IScenarioContext scenarioContext) { this.scenarioContext = scenarioContext; } /** * The config class is specific to each data provider * @return */ public Class<HelloWorldConnectionConfig> getConnectionConfigClass() { return HelloWorldConnectionConfig.class; } /** * Create a HelloWorldConnection instance from each of the incoming configs. * These configs are created when the provider-connections.xml file is loaded. * @param configs */ public void setConnectionConfigurations(List<?> configurations) { List<HelloWorldConnectionConfig> configs = (List<HelloWorldConnectionConfig>)configurations; for (HelloWorldConnectionConfig config : configs) { // Create a HelloWorldConnection from the config HelloWorldConnection connection = new HelloWorldConnection(config); if (config.isDefault) { defaultConnection = connection; } connections.put(config.name, connection); } } }
These files also go in the same directory as your classes, so they will be added to your final JAR file. The location of the files must correspond to the package name given in HelloWorldProvider:bundle="demo.provider.resources.HelloWorldProviderResources"
File name: HelloWorldProviderResources.properties File contents: provider.name=Hello World provider.description=Data provider for Hello World provider.parameter.sayHello.user.description=Method to say hello to a named user provider.parameter.addTwoIntegers.int1.description=First number to add provider.parameter.addTwoIntegers.int2.description=Second number to add
Configure your connection in as described in
Name your provider for the Conductor by creating this file in the META-INF/services
directory (in the same directory structure as your classes, so they will be added to your final jar file):
file name: oracle.wcps.provider.IDataProvider file contents: demo.provider.HelloWorldProvider (fully-qualified name of your provider)
Note the resource name is the same as in your HelloWorldConnections
source code.
Example 62-9 Scenario Calling the Provider
<scenario:scenario xmlns:common="http://xmlns.oracle.com/wcps/conductor/common/1.0.0" xmlns:scenario="http://xmlns.oracle.com/wcps/conductor/scenarios/1.0.0"> <body> <call-provider> <provider-name>HelloWorldProvider</provider-name> <connection-name>HelloWorldConnection</connection-name> <resource-name>HelloResource</resource-name> <method-name>sayHello</method-name> <variable>providerResults</variable> <input> <parameter> <common:name>user</common:name> <common:value>cindymc</common:value> </parameter> </input> </call-provider> <return> <expression>${providerResults}</expression> </return> </body> <name>TestMyProviderScenario</name> </scenario:scenario>
This section describes how you can extend your personalized WebCenter application by adding custom locators.
This section contains the following subsections:
A property locator is invoked by the Property Service to access external stores of properties. For example, WebCenter Personalization provides an out-of-the-box PeoplePropertyLocator
that uses the People Connections REST service to access profile information for users. The locator is not invoked directly by the Conductor/Scenario, but is instantiated by the Property Set service, which then delegates calls for retrieving properties and property sets to the underlying locator implementation.
The example in the following sections will walk you through creating your own BookPropertyLocator
to find a book by title in a library, and load its attributes into a property set you have created to represent a Book object.
There are two major steps to implementing this example:
Define the PropertySet for Book, and let the Property Set service know about it
Implement the IPropertyLocator
to load properties from a Book object.
Location:
\Oracle\Middleware\jdeveloper\webcenter\modules\wcps-services_11.1.1.4.0\properties-common-1.0.0.0.jar
public interface IPropertyLocator { public void loadProperties(IContext context, IPropertySet propertySet, IPropertySetDefinition propertySetDefinition, List<IPropertyName> propertyNames); public void storeProperties(IContext context, propertySet, IPropertySetDefinition propertySetDefinition, List<IPropertyName> propertyNames); public void removeProperties(IContext context, propertySet, List<IPropertyName> propertyNames); public void removeProperties(IContext context, nameSpaceName, IPropertySetDefinitionName name); public IPagedList<IPropertySet> filter(IContext context, nameSpaceName, IPropertySetDefinitionName setDefinitionName, PropertySetFilterContext filterContext); public int count(IContext context, nameSpaceName, PropertySetExpression expression); }
The IContext
object is the vehicle for authentication, passed in from the Property Service. There are two ways you can access the credentials:
Using the request: HttpServletRequest request = context.getProperty(IContext.HTTP_REQUEST_KEY)
Using the user/password: String user = context.getProperty(IContext.USERNAME_KEY); String pw = context.getProperty(IContext.PASSWORD_KEY);
This section describes how to create a PropertySetDefinition
that will be used with your locator.
Follow the steps below to create the PropertySetDefinition
:
Create a new JDeveloper project for your source files.
Add the required WebCenter Personalization classes to the project classpath.
Right-click on the project name and select Project Properties.
Select Libraries and Classpath, then select Add Library.
Enter the name of the library to search for (for example, IPropertyLocator) and select it when it appears.
Repeat these steps for other classes your source code will need to reference.
Compile the project and deploy it to a JAR file.
Copy the JAR file to the WebCenter Personalization extensions directory in /DefaultDomain/locator-extensions-library/WEB-INF/lib
.
This section describes how to implement the property locator, data object, and data layer.
Implement the IPropertyLocator
(read-only for demo simplicity)
/** * Our locator will be read-only */ public class BookPropertyLocator implements IPropertyLocator { // Let's delegate all the hard work to a BookPropertyDAO private BookPropertyDAO dao; // Must have a public default constructor, since the Property Service instantiates // this public BookPropertyLocator() { // todo: show how connection properties could be initialized and passed in dao = new BookPropertyDAO(); } /** * Load property values, optionally returning only a subset of those. * @param iPropertySet The PropertySet into which the retrieved values will be loaded * @param iPropertySetDefinition The PropertySetDefinition defining the 'shape' of the properties * @param list List of PropertyNames to load. If null, all will be loaded. */ public void loadProperties(IContext context, IPropertySet iPropertySet, IPropertySetDefinition iPropertySetDefinition, List<IPropertyName> list) { try { // Delegate to BookProperDAO dao.loadProperties(iPropertySet, list); } catch (Exception e) { throw new RuntimeException("Cannot load properties ", e); } } /** * Filter properties; load/return those properties that only match the filter criteria. * @param iNameSpaceName * @param iPropertySetDefinitionName * @param propertySetFilterContext * @return */ public IPagedList<IPropertySet> filter(IContext context, INameSpaceName iNameSpaceName, IPropertySetDefinitionName iPropertySetDefinitionName, PropertySetFilterContext propertySetFilterContext) { return null; // todo: possibly implement for demo } public int count(IContext context, INameSpaceName iNameSpaceName, PropertySetExpression propertySetExpression) { return 0; } // As a read-only implementation, we don't support this public void storeProperties(IContext context, IPropertySet iPropertySet, IPropertySetDefinition iPropertySetDefinition, List<IPropertyName> list) { throw new UnsupportedOperationException("BookPropertyLocator is read-only"); } // As a read-only implementation, we don't support this public void removeProperties(IContext context, IPropertySet iPropertySet, List<IPropertyName> list) { throw new UnsupportedOperationException("BookPropertyLocator is read-only"); } // As a read-only implementation, we don't support this public void removeProperties(IContext context, INameSpaceName iNameSpaceName, IPropertySetDefinitionName iPropertySetDefinitionName) { throw new UnsupportedOperationException("BookPropertyLocator is read-only"); } }
Implement the Data Access Object for retrieving property values
/** * Data access class, to load books from a backing store (perhaps a database or * some REST service) */ class BookPropertyDAO { // Generate the library that will provide our backing store. static { Library.generateLibrary(); } /** * Assume the name of the PropertySet is the title of the book. * @param propertySet * @param list */ void loadProperties(IContext context, IPropertySet propertySet, List<IPropertyName> list) throws Exception { String title = propertySet.getPropertySetName().getName(); Book book = Library.getBook(title); loadProperties(book, propertySet, list); } private void loadProperties(IContext context, Book book, IPropertySet propertySet, List<IPropertyName> propertyNames) throws Exception { // Loop over all property names, create a Property value, and add it to the Property set for (IPropertyName pname : propertyNames) { // System.err.println("Getting property: " + pname + ", with name: " + pname.getName()); String value = book.getProperty(pname.getName()); if (value != null) { addProperty(value, pname, propertySet); } } } private void addProperty(IContext context, String value, IPropertyName pname, IPropertySet propertySet) { IProperty<String> ps = Property.<String>builder().withProperty(pname, value).buildWithOutValidation(); propertySet.putProperty(pname, ps); } }
Implement the data layer (Books within a Library)
/** * Simple class to demonstrate loading properties. It could be improved by adding * support for non-String attributes (Date, arrays, etc) and using Java Bean * Introspection/Reflection to get the property values. */ public class Book { String title; String author; String ISBN; public Book(String title, String author, String ISBN) { setTitle(title); setAuthor(author); setISBN(ISBN); } public void setTitle(String title) { this.title = title; } public String getTitle() { return title; } public void setAuthor(String author) { this.author = author; } public String getAuthor() { return author; } public void setISBN(String ISBN) { this.ISBN = ISBN; } public String getISBN() { return ISBN; } String getProperty(String propName) { // Here, we could use introspection on the Book class, but since there are only // three properties, we can code it simpler if (propName.equals("ISBN")) { return getISBN(); } if (propName.equals("title")) { return getTitle(); } if (propName.equals("author")) { return getAuthor(); } return null; // todo: perhaps throw Exception here } }
/** * Class to generate a library of Books */ class Library { static String [] titles = {"Into Thin Air", "Climbing Everest", "Rocky Mountains"}; static String [] ISBNs = {"0-201-69581-2", "0-423-78123-1", "0-321-23425-2"}; static String [] authors = {"Jon Krakauer", "Fooey Handley", "Rick Bicknell"}; // Keyed by title private static Map<String, Book> library = new HashMap<String,Book>(); static void generateLibrary() { for (int i=0; i<titles.length; i++) { Book book = new Book(titles[i], authors[i], ISBNs[i]); library.put(book.getTitle(), book); } } static Book getBook(String title) { return library.get(title); } }
The PropertyLocator
is invoked by the Property Service, which is itself part of the PropertiesServiceProvider
. We can invoke the GetProperties
method on that provider in a scenario, as shown below:
<scenario:scenario xmlns:common="http://xmlns.oracle.com/wcps/conductor/common/1.0.0" xmlns:scenario="http://xmlns.oracle.com/wcps/conductor/scenarios/1.0.0"> <body> <call-provider> <provider-name>oracle.PropertiesServiceProvider</provider-name> <method-name>GetProperty</method-name> <variable>property</variable> <input> <parameter> <common:name>namespace</common:name> <common:value>book.property.locator</common:value> </parameter> <parameter> <common:name>definition</common:name> <common:value>BookPropertySetDefinition</common:value> </parameter> <parameter> <common:name>set</common:name> <common:value>Into Thin Air</common:value> </parameter> <parameter> <common:name>property</common:name> <common:value>ISBN</common:value> </parameter> </input> </call-provider> <return> <expression>${property}</expression> </return> </body> <name>BookPropertyScenario</name> </scenario:scenario>
A client can access the WebCenter Personalization public APIs using Java APIs or public Rest APIs as described in the following sections:
The service interfaces shown in Table 62-3 define the remote Conductor API.
Table 62-3 Remote Conductor APIs
Interface/Service | Description |
---|---|
oracle.wcps.conductor.services.IScenariosService |
General management, retrieval, and execution of stored Scenarios. |
oracle.wcps.conductor.services.INamespaceService |
General management of stored namespaces known to the Conductor. |
oracle.wcps.conductor.services.IProviderService |
Retrieval of provider metadata known to the Conductor server. |
For more information about WebCenter Personalization Java APIs, see the JavaDoc for WebCenter in the Oracle Fusion Middleware Java API Reference for Oracle WebCenter.
This section provides examples of how you can use the Property Service's REST APIs to programatically carry out basic WebCenter Personalization tasks, such as:
Creating a namespace
Viewing and creating property set definitions
Viewing and creating property definitions
Viewing, creating, and executing scenarios
Viewing data provider details
This section contains the following subsections:
Section 62.4.2.2, "Creating a Namespace Using the Property Service"
Section 62.4.2.3, "Viewing Property Set Definitions Within a Namespace Using the Property Service"
Section 62.4.2.4, "Creating a Property Definition Within a Namespace Using the Property Service"
Section 62.4.2.5, "Viewing Property Definitions Within a Namespace Using the Property Service"
Section 62.4.2.6, "Creating a Property Set Definition Within a Namespace Using the Property Service"
Section 62.4.2.7, "Creating a Property Set Within a Namespace Using the Property Service"
Section 62.4.2.8, "Viewing a Property Set Within a Namespace Using the Property Service"
Section 62.4.2.10, "Accessing Namespaces Using the Conductor"
Section 62.4.2.11, "Creating a Scenario Within a Namespace Using the Conductor"
Section 62.4.2.12, "Viewing Scenarios Within a Namespace Using the Conductor"
Section 62.4.2.13, "Executing a Scenario Using the Conductor"
Section 62.4.2.14, "Viewing Data Providers Within a Namespace Using the Conductor"
Section 62.4.2.16, "Viewing Data Provider Connections Within a Namespace Using the Conductor"
Section 62.4.2.19, "Viewing Function Providers Within a Namespace Using the Conductor"
Note that in the example below the Property Service will be adding a ResourceIndex.
Request URI: GET http://localhost:8891/wcps/api/property/namespaces Response: <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <nameSpaces resourceType="urn:oracle:wcps:property:namespaces"> <links> <link resourceType="urn:oracle:wcps:property:namespaces" rel="self" href="http://localhost:8891/wcps/api/property/namespaces" capabilities="urn:oracle:restframework:create urn:oracle:restframework:read"/> </links> <items> <nameSpace resourceType="urn:oracle:wcps:property:namespace"> <links> <link resourceType="urn:oracle:wcps:property:namespace" rel="self" href="http://localhost:8891/wcps/api/property/namespaces/Demo_WCPS_Namespace" capabilities="urn:oracle:restframework:read"/> <link resourceType="urn:oracle:wcps:property:propertysetdefinitions" href="http://localhost:8891/wcps/api/property/namespaces/Demo_WCPS_Namespace/propertysetdefinitions" capabilities="urn:oracle:restframework:create urn:oracle:restframework:read"/> <link resourceType="urn:oracle:wcps:property:propertydefinitions" href="http://localhost:8891/wcps/api/property/namespaces/Demo_WCPS_Namespace/propertydefinitions" capabilities="urn:oracle:restframework:create urn:oracle:restframework:read"/> </links> <name>Demo_WCPS_Namespace</name> <createdOn>2010-05-11T15:09:30.645-07:00</createdOn> <updatedOn>2010-05-11T15:09:30.645-07:00</updatedOn> </nameSpace> </items> </nameSpaces>
Note that in the examples below creating an object using the REST HTTP interface requires setting the request method to POST
and adding a header content-type
with the value application/xml
.
Request URI: POST http://localhost:8891/wcps/api/property/namespaces Request Body: <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <nameSpace resourceType="urn:oracle:wcps:property:namespace"> <name>FeatureReview_Namespace</name> </nameSpace> Response: <nameSpace resourceType="urn:oracle:wcps:property:namespace"> <links> <link resourceType="urn:oracle:wcps:property:namespace" rel="self" href="http://localhost:8891/wcps/api/property/namespaces" capabilities="urn:oracle:restframework:read"/> <link resourceType="urn:oracle:wcps:property:propertysetdefinitions" href="http://localhost:8891/wcps/api/property/namespaces/FeatureReview_Namespace/propertysetdefinitions" capabilities="urn:oracle:restframework:create urn:oracle:restframework:read"/> <link resourceType="urn:oracle:wcps:property:propertydefinitions" href="http://localhost:8891/wcps/api/property/namespaces/FeatureReview_Namespace/propertydefinitions" capabilities="urn:oracle:restframework:create urn:oracle:restframework:read"/> </links> <name>FeatureReview_Namespace</name> <createdOn>2010-05-11T15:30:48.049-07:00</createdOn> <updatedOn>2010-05-11T15:30:48.049-07:00</updatedOn> </nameSpace>
Request URI: GET http://localhost:8891/wcps/api/property/namespaces/FeatureReview_Namespace/propertysetdefinitions Response: <propertySetDefinitions resourceType="urn:oracle:wcps:property:propertysetdefinitions"> <links> <link resourceType="urn:oracle:wcps:property:propertysetdefinitions" rel="self" href="http://localhost:8891/wcps/api/property/namespaces/FeatureReview_Namespace/propertysetdefinitions" capabilities="urn:oracle:restframework:create urn:oracle:restframework:read"/> </links> <nameSpaceName>FeatureReview_Namespace</nameSpaceName> <items> <propertySetDefinition resourceType="urn:oracle:wcps:property:propertysetdefinition"> <links> <link resourceType="urn:oracle:wcps:property:propertysetdefinition" rel="self" href="http://localhost:8891/wcps/api/property/namespaces/FeatureReview_Namespace/propertysetdefinitions/ScenarioMetadataDefinition" capabilities="urn:oracle:restframework:read"/> <link resourceType="urn:oracle:wcps:property:propertysets" href="http://localhost:8891/wcps/api/property/namespaces/FeatureReview_Namespace/propertysetdefinitions/ScenarioMetadataDefinition/propertysets" capabilities="urn:oracle:restframework:read"/> </links> <nameSpaceName>FeatureReview_Namespace</nameSpaceName> <propertySetDefinitionName>ScenarioMetadataDefinition</propertySetDefinitionName> <createdOn>2010-05-11T15:39:33.625-07:00</createdOn> <updatedOn>2010-05-11T15:39:33.625-07:00</updatedOn> <propertyMapping> <links> <link resourceType="urn:oracle:wcps:property:propertydefinition" href="http://localhost:8891/wcps/api/property/namespaces/FeatureReview_Namespace/propertydefinitions/ScenarioString" capabilities="urn:oracle:restframework:read"/> </links> <propertyName>ScenarioComments</propertyName> <propertyDefinitionName>ScenarioString</propertyDefinitionName> </propertyMapping> <propertyMapping> <links> <link resourceType="urn:oracle:wcps:property:propertydefinition" href="http://localhost:8891/wcps/api/property/namespaces/FeatureReview_Namespace/propertydefinitions/ScenarioTimestamp" capabilities="urn:oracle:restframework:read"/> </links> <propertyName>ScenarioCreatedOn</propertyName> <propertyDefinitionName>ScenarioTimestamp</propertyDefinitionName> </propertyMapping> <propertyMapping> <links> <link resourceType="urn:oracle:wcps:property:propertydefinition" href="http://localhost:8891/wcps/api/property/namespaces/FeatureReview_Namespace/propertydefinitions/ScenarioStatus" capabilities="urn:oracle:restframework:read"/> </links> <propertyName>ScenarioStatus</propertyName> <propertyDefinitionName>ScenarioStatus</propertyDefinitionName> </propertyMapping> <propertyMapping> <links> <link resourceType="urn:oracle:wcps:property:propertydefinition" href="http://localhost:8891/wcps/api/property/namespaces/FeatureReview_Namespace/propertydefinitions/ScenarioString" capabilities="urn:oracle:restframework:read"/> </links> <propertyName>ScenarioUpdatedAuthor</propertyName> <propertyDefinitionName>ScenarioString</propertyDefinitionName> </propertyMapping> <propertyMapping> <links> <link resourceType="urn:oracle:wcps:property:propertydefinition" href="http://localhost:8891/wcps/api/property/namespaces/FeatureReview_Namespace/propertydefinitions/ScenarioString" capabilities="urn:oracle:restframework:read"/> </links> <propertyName>ScenarioCreatedAuthor</propertyName> <propertyDefinitionName>ScenarioString</propertyDefinitionName> </propertyMapping> <propertyMapping> <links> <link resourceType="urn:oracle:wcps:property:propertydefinition" href="http://localhost:8891/wcps/api/property/namespaces/FeatureReview_Namespace/propertydefinitions/ScenarioTags" capabilities="urn:oracle:restframework:read"/> </links> <propertyName>ScenarioTags</propertyName> <propertyDefinitionName>ScenarioTags</propertyDefinitionName> </propertyMapping> <propertyMapping> <links> <link resourceType="urn:oracle:wcps:property:propertydefinition" href="http://localhost:8891/wcps/api/property/namespaces/FeatureReview_Namespace/propertydefinitions/ScenarioTimestamp" capabilities="urn:oracle:restframework:read"/> </links> <propertyName>ScenarioUpdatedOn</propertyName> <propertyDefinitionName>ScenarioTimestamp</propertyDefinitionName> </propertyMapping> <propertyMapping> <links> <link resourceType="urn:oracle:wcps:property:propertydefinition" href="http://localhost:8891/wcps/api/property/namespaces/FeatureReview_Namespace/propertydefinitions/ScenarioDefinition" capabilities="urn:oracle:restframework:read"/> </links> <propertyName>ScenarioDefinition</propertyName> <propertyDefinitionName>ScenarioDefinition</propertyDefinitionName> </propertyMapping> <propertyMapping> <links> <link resourceType="urn:oracle:wcps:property:propertydefinition" href="http://localhost:8891/wcps/api/property/namespaces/FeatureReview_Namespace/propertydefinitions/ScenarioString" capabilities="urn:oracle:restframework:read"/> </links> <propertyName>ScenarioName</propertyName> <propertyDefinitionName>ScenarioString</propertyDefinitionName> </propertyMapping> </propertySetDefinition> </items> </propertySetDefinitions>
Request URI: POST http://localhost:8891/wcps/api/property/namespaces/FeatureReview_Namespace/propertydefinitions Request Body: <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <propertyDefinition resourceType="urn:oracle:wcps:property:propertydefinition"> <nameSpaceName>FeatureReview_Namespace</nameSpaceName> <propertyDefinitionName>FeatureReviewPropDefn</propertyDefinitionName> <type>STRING</type> <restricted>false</restricted> </propertyDefinition> Response: <propertyDefinition resourceType="urn:oracle:wcps:property:propertydefinition"> <links> <link resourceType="urn:oracle:wcps:property:propertydefinition" rel="self" href="http://localhost:8891/wcps/api/property/namespaces/FeatureReview_Namespace/propertydefinitions" capabilities="urn:oracle:restframework:read"/> </links> <nameSpaceName>FeatureReview_Namespace</nameSpaceName> <propertyDefinitionName>FeatureReviewPropDefn</propertyDefinitionName> <createdOn>2010-05-11T16:48:38.914-07:00</createdOn> <updatedOn>2010-05-11T16:48:38.914-07:00</updatedOn> <type>STRING</type> <restricted>false</restricted> </propertyDefinition>
Request URI: GET http://localhost:8891/wcps/api/property/namespaces/FeatureReview_Namespace/propertydefinitions Response: <propertyDefinitions resourceType="urn:oracle:wcps:property:propertydefinitions"> <links> <link resourceType="urn:oracle:wcps:property:propertydefinitions" rel="self" href="http://localhost:8891/wcps/api/property/namespaces/FeatureReview_Namespace/propertydefinitions" capabilities="urn:oracle:restframework:create urn:oracle:restframework:read"/> </links> <nameSpaceName>FeatureReview_Namespace</nameSpaceName> <items> <propertyDefinition resourceType="urn:oracle:wcps:property:propertydefinition"> <links> <link resourceType="urn:oracle:wcps:property:propertydefinition" rel="self" href="http://localhost:8891/wcps/api/property/namespaces/FeatureReview_Namespace/propertydefinitions/FeatureReviewPropDefn" capabilities="urn:oracle:restframework:read"/> </links> <nameSpaceName>FeatureReview_Namespace</nameSpaceName> <propertyDefinitionName>FeatureReviewPropDefn</propertyDefinitionName> <createdOn>2010-05-11T16:48:38.914-07:00</createdOn> <updatedOn>2010-05-11T16:48:38.914-07:00</updatedOn> <type>STRING</type> <restricted>false</restricted> </propertyDefinition> </items> </propertyDefinitions>
Request URI: POST http://localhost:8891/wcps/api/property/namespaces/FeatureReview_Namespace/propertysetdefinitions Request Body: <propertySetDefinition resourceType="urn:oracle:wcps:property:propertysetdefinition"> <nameSpaceName>FeatureReview_Namespace</nameSpaceName> <propertySetDefinitionName>FeatureReviewPropSetDefn</propertySetDefinitionName> <propertyMapping> <propertyName>FeaturePropertyFoo</propertyName> <propertyDefinitionName>FeatureReviewPropDefn</propertyDefinitionName> </propertyMapping> </propertySetDefinition> Response: <propertySetDefinition resourceType="urn:oracle:wcps:property:propertysetdefinition"> <links> <link resourceType="urn:oracle:wcps:property:propertysetdefinition" rel="self" href="http://localhost:8891/wcps/api/property/namespaces/FeatureReview_Namespace/propertysetdefinitions" capabilities="urn:oracle:restframework:read"/> <link resourceType="urn:oracle:wcps:property:propertysets" href="http://localhost:8891/wcps/api/property/namespaces/FeatureReview_Namespace/propertysetdefinitions/FeatureReviewPropSetDefn/propertysets" capabilities="urn:oracle:restframework:read"/> </links> <nameSpaceName>FeatureReview_Namespace</nameSpaceName> <propertySetDefinitionName>FeatureReviewPropSetDefn</propertySetDefinitionName> <createdOn>2010-05-11T17:24:28.098-07:00</createdOn> <updatedOn>2010-05-11T17:24:28.098-07:00</updatedOn> <propertyMapping> <links> <link resourceType="urn:oracle:wcps:property:propertydefinition" href="http://localhost:8891/wcps/api/property/namespaces/FeatureReview_Namespace/propertydefinitions/FeatureReviewPropDefn" capabilities="urn:oracle:restframework:read"/> </links> <propertyName>FeaturePropertyFoo</propertyName> <propertyDefinitionName>FeatureReviewPropDefn</propertyDefinitionName> </propertyMapping> </propertySetDefinition>
Request URI: POST http://localhost:8891/wcps/api/property/namespaces/FeatureReview_Namespace/propertysetdefinitions/FeatureReviewPropSetDefn/propertysets Request Body: <propertySet resourceType="urn:oracle:wcps:property:propertyset"> <nameSpaceName>FeatureReview_Namespace</nameSpaceName> <propertySetDefinitionName>FeatureReviewPropSetDefn</propertySetDefinitionName> <propertySetName>FeatureReviewPropSet</propertySetName> <items> <property multiValue="false" resourceType="urn:oracle:wcps:property:property"> <propertyName>FeaturePropertyFoo</propertyName> <propertyValues> <value xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xs="http://www.w3.org/2001/XMLSchema" xsi:type="xs:string">Hello, Property World</value> </propertyValues> </property> </items> </propertySet> Response: <propertySet resourceType="urn:oracle:wcps:property:propertyset"> <links> <link resourceType="urn:oracle:wcps:property:propertyset" rel="self" href="http://localhost:8891/wcps/api/property/namespaces/FeatureReview_Namespace/propertysetdefinitions/FeatureReviewPropSetDefn/propertysets" capabilities="urn:oracle:restframework:create urn:oracle:restframework:read urn:oracle:restframework:update urn:oracle:restframework:delete"/> </links> <nameSpaceName>FeatureReview_Namespace</nameSpaceName> <propertySetDefinitionName>FeatureReviewPropSetDefn</propertySetDefinitionName> <propertySetName>FeatureReviewPropSet</propertySetName> <items> <property multiValue="false" resourceType="urn:oracle:wcps:property:property"> <links> <link resourceType="urn:oracle:wcps:property:property" rel="self" href="http://localhost:8891/wcps/api/property/namespaces/FeatureReview_Namespace/propertysetdefinitions/FeatureReviewPropSetDefn/propertysets/FeatureReviewPropSet/properties/FeaturePropertyFoo" capabilities="urn:oracle:restframework:read urn:oracle:restframework:update urn:oracle:restframework:delete"/> </links> <propertyName>FeaturePropertyFoo</propertyName> <propertyValues> <value xsi:type="xs:string" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xs="http://www.w3.org/2001/XMLSchema">Hello, Property World</value> </propertyValues> <createdOn>2010-05-11T17:35:47.431-07:00</createdOn> <updatedOn>2010-05-11T17:35:47.431-07:00</updatedOn> </property> </items> <createdOn>2010-05-11T17:35:47.431-07:00</createdOn> <updatedOn>2010-05-11T17:35:47.431-07:00</updatedOn> </propertySet>
Request URI: GET http://localhost:8891/wcps/api/property/namespaces/FeatureReview_Namespace/propertysetdefinitions/FeatureReviewPropSetDefn/propertysets Response: <propertySets resourceType="urn:oracle:wcps:property:propertysets"> <links> <link resourceType="urn:oracle:wcps:property:propertysets" rel="self" href="http://localhost:8891/wcps/api/property/namespaces/FeatureReview_Namespace/propertysetdefinitions/FeatureReviewPropSetDefn/propertysets" capabilities="urn:oracle:restframework:read"/> </links> <nameSpaceName>FeatureReview_Namespace</nameSpaceName> <propertySetDefinitionName>FeatureReviewPropSetDefn</propertySetDefinitionName> <items> <propertySet resourceType="urn:oracle:wcps:property:propertyset"> <links> <link resourceType="urn:oracle:wcps:property:propertyset" rel="self" href="http://localhost:8891/wcps/api/property/namespaces/FeatureReview_Namespace/propertysetdefinitions/FeatureReviewPropSetDefn/propertysets/FeatureReviewPropSet" capabilities="urn:oracle:restframework:create urn:oracle:restframework:read urn:oracle:restframework:update urn:oracle:restframework:delete"/> </links> <nameSpaceName>FeatureReview_Namespace</nameSpaceName> <propertySetDefinitionName>FeatureReviewPropSetDefn</propertySetDefinitionName> <propertySetName>FeatureReviewPropSet</propertySetName> <items> <property multiValue="false" resourceType="urn:oracle:wcps:property:property"> <links> <link resourceType="urn:oracle:wcps:property:property" rel="self" href="http://localhost:8891/wcps/api/property/namespaces/FeatureReview_Namespace/propertysetdefinitions/FeatureReviewPropSetDefn/propertysets/FeatureReviewPropSet/properties/FeaturePropertyFoo" capabilities="urn:oracle:restframework:read urn:oracle:restframework:update urn:oracle:restframework:delete"/> </links> <propertyName>FeaturePropertyFoo</propertyName> <propertyValues> <value xsi:type="xs:string" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xs="http://www.w3.org/2001/XMLSchema">Hello, Property World</value> </propertyValues> <createdOn>2010-05-11T17:35:47.431-07:00</createdOn> <updatedOn>2010-05-11T17:35:47.431-07:00</updatedOn> </property> </items> <createdOn>2010-05-11T17:35:47.431-07:00</createdOn> <updatedOn>2010-05-11T17:35:47.431-07:00</updatedOn> </propertySet> </items> </propertySets>
Note that in the example below the link templates and ResourceIndex will be modified to comply with best practice guidelines.
Request URI: GET http://localhost:8891/wcps/api/conductor/resourceIndex Response: <resourceIndex resourceType="urn:oracle:wcps:conductor:resourceIndex"> <links> <link resourceType="urn:oracle:wcps:conductor:namespaces" rel="urn:oracle:wcps:conductor:namespaces" href="http://localhost:8891/wcps/api/conductor/namespaces" capabilities="urn:oracle:restframework:read urn:oracle:restframework:create"/> <link template="http://localhost:8891/wcps/api/conductor/namespaces/%7Bnamespace%7D" resourceType="urn:oracle:wcps:conductor:namespace" rel="urn:oracle:wcps:conductor:namespace" capabilities="urn:oracle:restframework:read"/> <link template="http://localhost:8891/wcps/api/conductor/namespaces/%7Bnamespace%7D/scenarios?tag={tag}&projection={projection}&startIndex={startIndex}&itemsPerPage={itemsPerPage}" resourceType="urn:oracle:wcps:conductor:scenarioMetadatas" rel="urn:oracle:wcps:conductor:scenarioMetadatas" capabilities="urn:oracle:restframework:read"/> <link template="http://localhost:8891/wcps/api/conductor/namespaces/%7Bnamespace%7D/scenarios/%7Bscenario-name%7D?projection={projection}&startIndex={startIndex}&itemsPerPage={itemsPerPage}" resourceType="urn:oracle:wcps:conductor:scenario" rel="urn:oracle:wcps:conductor:scenario" capabilities="urn:oracle:restframework:read"/> <link template="http://localhost:8891/wcps/api/conductor/namespaces/%7Bnamespace%7D/dataProviders?projection={projection}&startIndex={startIndex}&itemsPerPage={itemsPerPage}" resourceType="urn:oracle:wcps:conductor:provider:dataProviders" rel="urn:oracle:wcps:conductor:provider:dataProviders" capabilities="urn:oracle:restframework:read"/> <link template="http://localhost:8891/wcps/api/conductor/namespaces/%7Bnamespace%7D/dataProviders/%7Bprovider-name%7D?projection={projection}" resourceType="urn:oracle:wcps:conductor:provider:dataProvider" rel="urn:oracle:wcps:conductor:provider:dataProvider" capabilities="urn:oracle:restframework:read"/> <link template="http://localhost:8891/wcps/api/conductor/namespaces/%7Bnamespace%7D/functionProviders?projection={projection}&startIndex={startIndex}&itemsPerPage={itemsPerPage}" resourceType="urn:oracle:wcps:conductor:provider:functionProviders" rel="urn:oracle:wcps:conductor:provider:functionProviders" capabilities="urn:oracle:restframework:read"/> <link template="http://localhost:8891/wcps/api/conductor/namespaces/%7Bnamespace%7D/functionProviders/%7Bcategory-name%7D:%7Bfunction-name%7D?projection={projection}" resourceType="urn:oracle:wcps:conductor:provider:functionProvider" rel="urn:oracle:wcps:conductor:provider:functionProvider" capabilities="urn:oracle:restframework:read"/> </links> </resourceIndex>
Request URI: GET http://localhost:8891/wcps/api/conductor/namespaces Response: <namespaces resourceType="urn:oracle:wcps:conductor:namespaces"> <links> <link resourceType="urn:oracle:wcps:conductor:resourceIndex" rel="urn:oracle:webcenter:parent" href="http://localhost:8891/wcps/api/conductor/resourceIndex" capabilities="urn:oracle:restframework:read"/> <link resourceType="urn:oracle:wcps:conductor:namespaces" rel="self" href="http://localhost:8891/wcps/api/conductor/namespaces" capabilities="urn:oracle:restframework:read urn:oracle:restframework:create"/> </links> <items> <namespace resourceType="urn:oracle:wcps:conductor:namespace"> <links> <link resourceType="urn:oracle:wcps:conductor:namespaces" rel="urn:oracle:webcenter:parent" href="http://localhost:8891/wcps/api/conductor/namespaces" capabilities="urn:oracle:restframework:read"/> <link resourceType="urn:oracle:wcps:conductor:namespace" rel="self" href="http://localhost:8891/wcps/api/conductor/namespaces/people.connections.person" capabilities="urn:oracle:restframework:read urn:oracle:restframework:delete"/> <link template="http://localhost:8891/wcps/api/conductor/namespaces/people.connections.person/scenarios?tag={tag}&projection={projection}&startIndex={startIndex}&itemsPerPage={itemsPerPage}" resourceType="urn:oracle:wcps:conductor:scenarioMetadatas" rel="urn:oracle:wcps:conductor:scenarioMetadatas" href="http://localhost:8891/wcps/api/conductor/namespaces/people.connections.person/scenarios" capabilities="urn:oracle:restframework:read urn:oracle:restframework:create"/> <link template="http://localhost:8891/wcps/api/conductor/namespaces/people.connections.person/dataProviders?projection={projection}" resourceType="urn:oracle:wcps:conductor:provider:dataProviders" rel="urn:oracle:wcps:conductor:provider:dataProviders" href="http://localhost:8891/wcps/api/conductor/namespaces/people.connections.person/dataProviders" capabilities="urn:oracle:restframework:read"/> <link template="http://localhost:8891/wcps/api/conductor/namespaces/people.connections.person/functionProviders?projection={projection}" resourceType="urn:oracle:wcps:conductor:provider:functionProviders" rel="urn:oracle:wcps:conductor:provider:functionProviders" href="http://localhost:8891/wcps/api/conductor/namespaces/people.connections.person/functionProviders" capabilities="urn:oracle:restframework:read"/> </links> <name>people.connections.person</name> </namespace> <namespace resourceType="urn:oracle:wcps:conductor:namespace"> <links> <link resourceType="urn:oracle:wcps:conductor:namespaces" rel="urn:oracle:webcenter:parent" href="http://localhost:8891/wcps/api/conductor/namespaces" capabilities="urn:oracle:restframework:read"/> <link resourceType="urn:oracle:wcps:conductor:namespace" rel="self" href="http://localhost:8891/wcps/api/conductor/namespaces/JDEV" capabilities="urn:oracle:restframework:read urn:oracle:restframework:delete"/> <link template="http://localhost:8891/wcps/api/conductor/namespaces/JDEV/scenarios?tag={tag}&projection={projection}&startIndex={startIndex}&itemsPerPage={itemsPerPage}" resourceType="urn:oracle:wcps:conductor:scenarioMetadatas" rel="urn:oracle:wcps:conductor:scenarioMetadatas" href="http://localhost:8891/wcps/api/conductor/namespaces/JDEV/scenarios" capabilities="urn:oracle:restframework:read urn:oracle:restframework:create"/> <link template="http://localhost:8891/wcps/api/conductor/namespaces/JDEV/dataProviders?projection={projection}" resourceType="urn:oracle:wcps:conductor:provider:dataProviders" rel="urn:oracle:wcps:conductor:provider:dataProviders" href="http://localhost:8891/wcps/api/conductor/namespaces/JDEV/dataProviders" capabilities="urn:oracle:restframework:read"/> <link template="http://localhost:8891/wcps/api/conductor/namespaces/JDEV/functionProviders?projection={projection}" resourceType="urn:oracle:wcps:conductor:provider:functionProviders" rel="urn:oracle:wcps:conductor:provider:functionProviders" href="http://localhost:8891/wcps/api/conductor/namespaces/JDEV/functionProviders" capabilities="urn:oracle:restframework:read"/> </links> <name>JDEV</name> </namespace> </items> </namespaces>
Request URI: POST http://localhost:8891/wcps/api/conductor/namespaces/FeatureReview_Namespace/scenarios Request Body: <scenarioMetadata> <scenario xmlns:ns2="http://xmlns.oracle.com/webcenter/conductor/common/1.0.0" xmlns:ns3="http://xmlns.oracle.com/webcenter/conductor/scenarios/1.0.0"> <body> <assign-variable> <variable>var1</variable> <expression>${ScenarioContext.scenarioRequest.parameters['param1']}</expression> </assign-variable> <assign-variable> <variable>var2</variable> <expression>${var1}</expression> </assign-variable> <return> <expression>${var2}</expression> </return> </body> <name>FeatureCompleteScenario</name> <comments>FeatureCompleteScenario comments</comments> <tags> <tag>FeatureScenario</tag> <tag>ScenarioExample</tag> <tag>Simple</tag> </tags> </scenario> </scenarioMetadata> Response: <scenarioMetadata xmlns:ns2="http://xmlns.oracle.com/wcps/conductor/common/1.0.0" xmlns:ns3="http://xmlns.oracle.com/wcps/conductor/scenarios/1.0.0"> <links> <link template="http://localhost:8891/wcps/api/conductor/namespaces/FeatureReview_Namespace/scenarios/FeatureCompleteScenario?projection={projection}&startIndex={startIndex}&itemsPerPage={itemsPerPage}" resourceType="urn:oracle:wcps:conductor:scenario-metadata" rel="self" href="http://localhost:8891/wcps/api/conductor/namespaces/FeatureReview_Namespace/scenarios" capabilities="urn:oracle:restframework:read urn:oracle:restframework:read urn:oracle:restframework:update urn:oracle:restframework:delete urn:oracle:restframework:execute"/> <link resourceType="urn:oracle:wcps:conductor:scenario" rel="alternate" href="http://localhost:8891/wcps/api/conductor/namespaces/FeatureReview_Namespace/scenarios/FeatureCompleteScenario/definition" capabilities="urn:oracle:restframework:read"/> </links> <status>PUBLISHED</status> <created-author>anonymous</created-author> <created-date-time>2010-05-11T15:52:30.729-07:00</created-date-time> <updated-author>anonymous</updated-author> <updated-date-time>2010-05-11T15:52:30.729-07:00</updated-date-time> <scenario> <type>Scenario</type> <body> <assign-variable> <type>VariableAssignment</type> <variable>var1</variable> <expression>${ScenarioContext.scenarioRequest.parameters['param1']}</expression> </assign-variable> <assign-variable> <type>VariableAssignment</type> <variable>var2</variable> <expression>${var1}</expression> </assign-variable> <return> <type>Return</type> <expression>${var2}</expression> </return> </body> <name>FeatureCompleteScenario</name> <comments>FeatureCompleteScenario comments</comments> <tags> <tag>FeatureScenario</tag> <tag>ScenarioExample</tag> <tag>Simple</tag> </tags> <input-parameters/> </scenario> </scenarioMetadata>
Request URI: GET http://localhost:8891/wcps/api/conductor/namespaces/FeatureReview_Namespace/scenarios Response: <scenarios xmlns:ns2="http://xmlns.oracle.com/wcps/conductor/common/1.0.0" xmlns:ns3="http://xmlns.oracle.com/wcps/conductor/scenarios/1.0.0"> <links> <link template="http://localhost:8891/wcps/api/conductor/namespaces/FeatureReview_Namespace/scenarios?tag={tag}&projection={projection}&startIndex={startIndex}&itemsPerPage={itemsPerPage}" resourceType="urn:oracle:wcps:conductor:scenarios" rel="self" href="http://localhost:8891/wcps/api/conductor/namespaces/FeatureReview_Namespace/scenarios" capabilities="urn:oracle:restframework:read urn:oracle:restframework:read urn:oracle:restframework:create"/> </links> <items> <scenarioMetadata> <links> <link template="http://localhost:8891/wcps/api/conductor/namespaces/FeatureReview_Namespace/scenarios/FeatureCompleteScenario?projection={projection}&startIndex={startIndex}&itemsPerPage={itemsPerPage}" resourceType="urn:oracle:wcps:conductor:scenario-metadata" rel="self" href="http://localhost:8891/wcps/api/conductor/namespaces/FeatureReview_Namespace/scenarios/FeatureCompleteScenario" capabilities="urn:oracle:restframework:read urn:oracle:restframework:read urn:oracle:restframework:update urn:oracle:restframework:delete urn:oracle:restframework:execute"/> <link resourceType="urn:oracle:wcps:conductor:scenario" rel="alternate" href="http://localhost:8891/wcps/api/conductor/namespaces/FeatureReview_Namespace/scenarios/FeatureCompleteScenario/definition" capabilities="urn:oracle:restframework:read"/> </links> <status>PUBLISHED</status> <created-author>anonymous</created-author> <created-date-time>2010-05-11T15:52:30.729-07:00</created-date-time> <updated-author>anonymous</updated-author> <updated-date-time>2010-05-11T15:52:30.729-07:00</updated-date-time> <scenario> <type>Scenario</type> <name>FeatureCompleteScenario</name> <comments>FeatureCompleteScenario comments</comments> <tags> <tag>FeatureScenario</tag> <tag>ScenarioExample</tag> <tag>Simple</tag> </tags> <input-parameters/> </scenario> </scenarioMetadata> </items> </scenarios>
Request URI: POST http://localhost:8891/wcps/api/conductor/namespaces/FeatureReview_Namespace/scenarios/FeatureCompleteScenario Request Body: <parameters> <parameter> <name>param1</name> <value>param1Value</value> </parameter> <parameter> <name>param2</name> <value>param2Value</value> </parameter> </parameters> Response: <conductorExecutionResults resourceType="urn:oracle:wcps:conductor:genericType"> <type>java.lang.String</type> <results xsi:type="xs:string" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xs="http://www.w3.org/2001/XMLSchema">param1Value</results> </conductorExecutionResults>
Three IDataProvider implementations are provided out-of-the-box and are accessible in every namespace: ActivityGraphProvider
; CMISDataProvider
; PropertiesProvider
.
Request URI: http://localhost:8891/wcps/api/conductor/namespaces/FeatureReview_Namespace/dataProviders Response: <dataProviders resourceType="urn:oracle:wcps:conductor:provider:dataProviders"> <links> <link template="http://localhost:8891/wcps/api/conductor/namespaces/FeatureReview_Namespace/dataProviders?projection={projection}" resourceType="urn:oracle:wcps:conductor:provider:dataProviders" rel="self" href="http://localhost:8891/wcps/api/conductor/namespaces/FeatureReview_Namespace/dataProviders" capabilities="urn:oracle:restframework:read"/> </links> <items> <dataProvider resourceType="urn:oracle:wcps:conductor:provider:dataProvider"> <links> <link template="http://localhost:8891/wcps/api/conductor/namespaces/FeatureReview_Namespace/dataProviders?projection={projection}" resourceType="urn:oracle:wcps:conductor:provider:dataProviders" rel="urn:oracle:webcenter:parent" href="http://localhost:8891/wcps/api/conductor/namespaces/FeatureReview_Namespace/dataProviders" capabilities="urn:oracle:restframework:read"/> <link template="http://localhost:8891/wcps/api/conductor/namespaces/FeatureReview_Namespace/dataProviders/CMISProvider?projection={projection}" resourceType="urn:oracle:wcps:conductor:provider:dataProvider" rel="self" href="http://localhost:8891/wcps/api/conductor/namespaces/FeatureReview_Namespace/dataProviders/CMISProvider" capabilities="urn:oracle:restframework:read"/> </links> <name>CMISProvider</name> <localizedName>Universal Content Provider (CMIS)</localizedName> <localizedDescription>Provides access to content over CMIS connections.</localizedDescription> </dataProvider> <dataProvider resourceType="urn:oracle:wcps:conductor:provider:dataProvider"> <links> <link template="http://localhost:8891/wcps/api/conductor/namespaces/FeatureReview_Namespace/dataProviders?projection={projection}" resourceType="urn:oracle:wcps:conductor:provider:dataProviders" rel="urn:oracle:webcenter:parent" href="http://localhost:8891/wcps/api/conductor/namespaces/FeatureReview_Namespace/dataProviders" capabilities="urn:oracle:restframework:read"/> <link template="http://localhost:8891/wcps/api/conductor/namespaces/FeatureReview_Namespace/dataProviders/ActivityGraphProvider?projection={projection}" resourceType="urn:oracle:wcps:conductor:provider:dataProvider" rel="self" href="http://localhost:8891/wcps/api/conductor/namespaces/FeatureReview_Namespace/dataProviders/ActivityGraphProvider" capabilities="urn:oracle:restframework:read"/> </links> <name>ActivityGraphProvider</name> <localizedName>Activity Graph</localizedName> <localizedDescription>Activity Graph Adapter</localizedDescription> </dataProvider> <dataProvider resourceType="urn:oracle:wcps:conductor:provider:dataProvider"> <links> <link template="http://localhost:8891/wcps/api/conductor/namespaces/FeatureReview_Namespace/dataProviders?projection={projection}" resourceType="urn:oracle:wcps:conductor:provider:dataProviders" rel="urn:oracle:webcenter:parent" href="http://localhost:8891/wcps/api/conductor/namespaces/FeatureReview_Namespace/dataProviders" capabilities="urn:oracle:restframework:read"/> <link template="http://localhost:8891/wcps/api/conductor/namespaces/FeatureReview_Namespace/dataProviders/oracle.PropertiesServiceProvider?projection={projection}" resourceType="urn:oracle:wcps:conductor:provider:dataProvider" rel="self" href="http://localhost:8891/wcps/api/conductor/namespaces/FeatureReview_Namespace/dataProviders/oracle.PropertiesServiceProvider" capabilities="urn:oracle:restframework:read"/> </links> <name>oracle.PropertiesServiceProvider</name> <localizedName>Property Service Data Provider</localizedName> <localizedDescription>Data provider implementation to integrate the properties service for use in scenarios.</localizedDescription> </dataProvider> </items> </dataProviders>
Request URI: GET http://localhost:8891/wcps/api/conductor/namespaces/FeatureReview_Namespace/dataProviders/oracle.PropertiesServiceProvider Response: <dataProvider resourceType="urn:oracle:wcps:conductor:provider:dataProvider"> <links> <link template="http://localhost:8891/wcps/api/conductor/namespaces/FeatureReview_Namespace/dataProviders?projection={projection}" resourceType="urn:oracle:wcps:conductor:provider:dataProviders" rel="urn:oracle:webcenter:parent" href="http://localhost:8891/wcps/api/conductor/namespaces/FeatureReview_Namespace/dataProviders" capabilities="urn:oracle:restframework:read"/> <link template="http://localhost:8891/wcps/api/conductor/namespaces/FeatureReview_Namespace/dataProviders/oracle.PropertiesServiceProvider?projection={projection}" resourceType="urn:oracle:wcps:conductor:provider:dataProvider" rel="self" href="http://localhost:8891/wcps/api/conductor/namespaces/FeatureReview_Namespace/dataProviders/oracle.PropertiesServiceProvider" capabilities="urn:oracle:restframework:read"/> <link template="http://localhost:8891/wcps/api/conductor/namespaces/%7Bnamespace%7D/dataProviders/%7Bprovider-name%7D/connections?projection={projection}" resourceType="urn:oracle:wcps:conductor:provider:providerConnections" rel="urn:oracle:wcps:conductor:provider:providerConnections" capabilities="urn:oracle:restframework:read"/> <link template="http://localhost:8891/wcps/api/conductor/namespaces/%7Bnamespace%7D/dataProviders/%7Bprovider-name%7D/connections/%7Bconnection-name%7D?projection={projection}" resourceType="urn:oracle:wcps:conductor:provider:providerConnection" rel="urn:oracle:wcps:conductor:provider:providerConnection" capabilities="urn:oracle:restframework:read"/> <link template="http://localhost:8891/wcps/api/conductor/namespaces/%7Bnamespace%7D/dataProviders/%7Bprovider-name%7D/connections/%7Bconnection-name%7D/resources?projection={projection}" resourceType="urn:oracle:wcps:conductor:provider:connectionResources" rel="urn:oracle:wcps:conductor:provider:connectionResources" capabilities="urn:oracle:restframework:read"/> <link template="http://localhost:8891/wcps/api/conductor/namespaces/%7Bnamespace%7D/dataProviders/%7Bprovider-name%7D/connections/%7Bconnection-name%7D/resources/%7Bresource-name%7D?projection={projection}" resourceType="urn:oracle:wcps:conductor:provider:connectionResource" rel="urn:oracle:wcps:conductor:provider:connectionResource" capabilities="urn:oracle:restframework:read"/> <link template="http://localhost:8891/wcps/api/conductor/namespaces/%7Bnamespace%7D/dataProviders/%7Bprovider-name%7D/connections/%7Bconnection-name%7D/resources/%7Bresource-name%7D/methods?projection={projection}" resourceType="urn:oracle:wcps:conductor:provider:resourceMethods" rel="urn:oracle:wcps:conductor:provider:resourceMethods" capabilities="urn:oracle:restframework:read"/> <link template="http://localhost:8891/wcps/api/conductor/namespaces/%7Bnamespace%7D/dataProviders/%7Bprovider-name%7D/connections/%7Bconnection-name%7D/resources/%7Bresource-name%7D/methods/%7Bmethod-name%7D?projection={projection}" resourceType="urn:oracle:wcps:conductor:provider:resourceMethod" rel="urn:oracle:wcps:conductor:provider:resourceMethod" capabilities="urn:oracle:restframework:read"/> </links> <name>oracle.PropertiesServiceProvider</name> <localizedName>Property Service Data Provider</localizedName> <localizedDescription>Data provider implementation to integrate the properties service for use in scenarios.</localizedDescription> <providerConnections resourceType="urn:oracle:wcps:conductor:provider:providerConnections"> <links> <link template="http://localhost:8891/wcps/api/conductor/namespaces/FeatureReview_Namespace/dataProviders/oracle.PropertiesServiceProvider?projection={projection}" resourceType="urn:oracle:wcps:conductor:provider:dataProvider" rel="urn:oracle:webcenter:parent" href="http://localhost:8891/wcps/api/conductor/namespaces/FeatureReview_Namespace/dataProviders/oracle.PropertiesServiceProvider" capabilities="urn:oracle:restframework:read"/> <link template="http://localhost:8891/wcps/api/conductor/namespaces/FeatureReview_Namespace/dataProviders/oracle.PropertiesServiceProvider/connections?projection={projection}" resourceType="urn:oracle:wcps:conductor:provider:providerConnections" rel="self" href="http://localhost:8891/wcps/api/conductor/namespaces/FeatureReview_Namespace/dataProviders/oracle.PropertiesServiceProvider/connections" capabilities="urn:oracle:restframework:read"/> </links> <items> <providerConnection resourceType="urn:oracle:wcps:conductor:provider:providerConnection"> <links> <link template="http://localhost:8891/wcps/api/conductor/namespaces/FeatureReview_Namespace/dataProviders/oracle.PropertiesServiceProvider/connections?projection={projection}" resourceType="urn:oracle:wcps:conductor:provider:providerConnections" rel="urn:oracle:webcenter:parent" href="http://localhost:8891/wcps/api/conductor/namespaces/FeatureReview_Namespace/dataProviders/oracle.PropertiesServiceProvider/connections" capabilities="urn:oracle:restframework:read"/> <link template="http://localhost:8891/wcps/api/conductor/namespaces/FeatureReview_Namespace/dataProviders/oracle.PropertiesServiceProvider/connections/LocalServerConnection/metadata?projection={projection}" resourceType="urn:oracle:wcps:conductor:provider:connectionMetadata" rel="urn:oracle:wcps:conductor:provider:connectionMetadata" href="http://localhost:8891/wcps/api/conductor/namespaces/FeatureReview_Namespace/dataProviders/oracle.PropertiesServiceProvider/connections/LocalServerConnection/metadata" capabilities="urn:oracle:restframework:read"/> <link template="http://localhost:8891/wcps/api/conductor/namespaces/FeatureReview_Namespace/dataProviders/oracle.PropertiesServiceProvider/connections/LocalServerConnection?projection={projection}" resourceType="urn:oracle:wcps:conductor:provider:providerConnection" rel="self" href="http://localhost:8891/wcps/api/conductor/namespaces/FeatureReview_Namespace/dataProviders/oracle.PropertiesServiceProvider/connections/LocalServerConnection" capabilities="urn:oracle:restframework:read"/> </links> <name>LocalServerConnection</name> </providerConnection> </items> </providerConnections> </dataProvider>
Request URI: GET http://localhost:8891/wcps/api/conductor/namespaces/FeatureReview_Namespace/dataProviders/oracle.PropertiesServiceProvider/connections Response: <providerConnections resourceType="urn:oracle:wcps:conductor:provider:providerConnections"> <links> <link template="http://localhost:8891/wcps/api/conductor/namespaces/FeatureReview_Namespace/dataProviders/oracle.PropertiesServiceProvider?projection={projection}" resourceType="urn:oracle:wcps:conductor:provider:dataProvider" rel="urn:oracle:webcenter:parent" href="http://localhost:8891/wcps/api/conductor/namespaces/FeatureReview_Namespace/dataProviders/oracle.PropertiesServiceProvider" capabilities="urn:oracle:restframework:read"/> <link template="http://localhost:8891/wcps/api/conductor/namespaces/FeatureReview_Namespace/dataProviders/oracle.PropertiesServiceProvider/connections?projection={projection}" resourceType="urn:oracle:wcps:conductor:provider:providerConnections" rel="self" href="http://localhost:8891/wcps/api/conductor/namespaces/FeatureReview_Namespace/dataProviders/oracle.PropertiesServiceProvider/connections" capabilities="urn:oracle:restframework:read"/> </links> <items> <providerConnection resourceType="urn:oracle:wcps:conductor:provider:providerConnection"> <links> <link template="http://localhost:8891/wcps/api/conductor/namespaces/FeatureReview_Namespace/dataProviders/oracle.PropertiesServiceProvider/connections?projection={projection}" resourceType="urn:oracle:wcps:conductor:provider:providerConnections" rel="urn:oracle:webcenter:parent" href="http://localhost:8891/wcps/api/conductor/namespaces/FeatureReview_Namespace/dataProviders/oracle.PropertiesServiceProvider/connections" capabilities="urn:oracle:restframework:read"/> <link template="http://localhost:8891/wcps/api/conductor/namespaces/FeatureReview_Namespace/dataProviders/oracle.PropertiesServiceProvider/connections/LocalServerConnection/metadata?projection={projection}" resourceType="urn:oracle:wcps:conductor:provider:connectionMetadata" rel="urn:oracle:wcps:conductor:provider:connectionMetadata" href="http://localhost:8891/wcps/api/conductor/namespaces/FeatureReview_Namespace/dataProviders/oracle.PropertiesServiceProvider/connections/LocalServerConnection/metadata" capabilities="urn:oracle:restframework:read"/> <link template="http://localhost:8891/wcps/api/conductor/namespaces/FeatureReview_Namespace/dataProviders/oracle.PropertiesServiceProvider/connections/LocalServerConnection?projection={projection}" resourceType="urn:oracle:wcps:conductor:provider:providerConnection" rel="self" href="http://localhost:8891/wcps/api/conductor/namespaces/FeatureReview_Namespace/dataProviders/oracle.PropertiesServiceProvider/connections/LocalServerConnection" capabilities="urn:oracle:restframework:read"/> </links> <name>LocalServerConnection</name> <connectionResources resourceType="urn:oracle:wcps:conductor:provider:connectionResources"> <links> <link template="http://localhost:8891/wcps/api/conductor/namespaces/FeatureReview_Namespace/dataProviders/oracle.PropertiesServiceProvider/connections/LocalServerConnection?projection={projection}" resourceType="urn:oracle:wcps:conductor:provider:providerConnection" rel="urn:oracle:webcenter:parent" href="http://localhost:8891/wcps/api/conductor/namespaces/FeatureReview_Namespace/dataProviders/oracle.PropertiesServiceProvider/connections/LocalServerConnection" capabilities="urn:oracle:restframework:read"/> <link template="http://localhost:8891/wcps/api/conductor/namespaces/FeatureReview_Namespace/dataProviders/oracle.PropertiesServiceProvider/connections/LocalServerConnection/resources?projection={projection}" resourceType="urn:oracle:wcps:conductor:provider:connectionResources" rel="self" href="http://localhost:8891/wcps/api/conductor/namespaces/FeatureReview_Namespace/dataProviders/oracle.PropertiesServiceProvider/connections/LocalServerConnection/resources" capabilities="urn:oracle:restframework:read"/> </links> <items> <connectionResource resourceType="urn:oracle:wcps:conductor:provider:connectionResource"> <links> <link template="http://localhost:8891/wcps/api/conductor/namespaces/FeatureReview_Namespace/dataProviders/oracle.PropertiesServiceProvider/connections/LocalServerConnection/resources?projection={projection}" resourceType="urn:oracle:wcps:conductor:provider:connectionResources" rel="urn:oracle:webcenter:parent" href="http://localhost:8891/wcps/api/conductor/namespaces/FeatureReview_Namespace/dataProviders/oracle.PropertiesServiceProvider/connections/LocalServerConnection/resources" capabilities="urn:oracle:restframework:read"/> <link template="http://localhost:8891/wcps/api/conductor/namespaces/FeatureReview_Namespace/dataProviders/oracle.PropertiesServiceProvider/connections/LocalServerConnection/resources/GetPropertiesResource?projection={projection}" resourceType="urn:oracle:wcps:conductor:provider:connectionResource" rel="self" href="http://localhost:8891/wcps/api/conductor/namespaces/FeatureReview_Namespace/dataProviders/oracle.PropertiesServiceProvider/connections/LocalServerConnection/resources/GetPropertiesResource" capabilities="urn:oracle:restframework:read"/> </links> <name>GetPropertiesResource</name> </connectionResource> </items> </connectionResources> </providerConnection> </items> </providerConnections>
Request URI: GET http://localhost:8891/wcps/api/conductor/namespaces/FeatureReview_Namespace/dataProviders/oracle.PropertiesServiceProvider/connections/LocalServerConnection/resources Response: <connectionResources resourceType="urn:oracle:wcps:conductor:provider:connectionResources"> <links> <link template="http://localhost:8891/wcps/api/conductor/namespaces/FeatureReview_Namespace/dataProviders/oracle.PropertiesServiceProvider/connections/LocalServerConnection?projection={projection}" resourceType="urn:oracle:wcps:conductor:provider:providerConnection" rel="urn:oracle:webcenter:parent" href="http://localhost:8891/wcps/api/conductor/namespaces/FeatureReview_Namespace/dataProviders/oracle.PropertiesServiceProvider/connections/LocalServerConnection" capabilities="urn:oracle:restframework:read"/> <link template="http://localhost:8891/wcps/api/conductor/namespaces/FeatureReview_Namespace/dataProviders/oracle.PropertiesServiceProvider/connections/LocalServerConnection/resources?projection={projection}" resourceType="urn:oracle:wcps:conductor:provider:connectionResources" rel="self" href="http://localhost:8891/wcps/api/conductor/namespaces/FeatureReview_Namespace/dataProviders/oracle.PropertiesServiceProvider/connections/LocalServerConnection/resources" capabilities="urn:oracle:restframework:read"/> </links> <items> <connectionResource resourceType="urn:oracle:wcps:conductor:provider:connectionResource"> <links> <link template="http://localhost:8891/wcps/api/conductor/namespaces/FeatureReview_Namespace/dataProviders/oracle.PropertiesServiceProvider/connections/LocalServerConnection/resources?projection={projection}" resourceType="urn:oracle:wcps:conductor:provider:connectionResources" rel="urn:oracle:webcenter:parent" href="http://localhost:8891/wcps/api/conductor/namespaces/FeatureReview_Namespace/dataProviders/oracle.PropertiesServiceProvider/connections/LocalServerConnection/resources" capabilities="urn:oracle:restframework:read"/> <link template="http://localhost:8891/wcps/api/conductor/namespaces/FeatureReview_Namespace/dataProviders/oracle.PropertiesServiceProvider/connections/LocalServerConnection/resources/GetPropertiesResource?projection={projection}" resourceType="urn:oracle:wcps:conductor:provider:connectionResource" rel="self" href="http://localhost:8891/wcps/api/conductor/namespaces/FeatureReview_Namespace/dataProviders/oracle.PropertiesServiceProvider/connections/LocalServerConnection/resources/GetPropertiesResource" capabilities="urn:oracle:restframework:read"/> </links> <name>GetPropertiesResource</name> <resourceMethods resourceType="urn:oracle:wcps:conductor:provider:resourceMethods"> <links> <link template="http://localhost:8891/wcps/api/conductor/namespaces/FeatureReview_Namespace/dataProviders/oracle.PropertiesServiceProvider/connections/LocalServerConnection/resources/GetPropertiesResource?projection={projection}" resourceType="urn:oracle:wcps:conductor:provider:connectionResource" rel="urn:oracle:webcenter:parent" href="http://localhost:8891/wcps/api/conductor/namespaces/FeatureReview_Namespace/dataProviders/oracle.PropertiesServiceProvider/connections/LocalServerConnection/resources/GetPropertiesResource" capabilities="urn:oracle:restframework:read"/> <link template="http://localhost:8891/wcps/api/conductor/namespaces/FeatureReview_Namespace/dataProviders/oracle.PropertiesServiceProvider/connections/LocalServerConnection/resources/GetPropertiesResource/methods?projection={projection}" resourceType="urn:oracle:wcps:conductor:provider:resourceMethods" rel="self" href="http://localhost:8891/wcps/api/conductor/namespaces/FeatureReview_Namespace/dataProviders/oracle.PropertiesServiceProvider/connections/LocalServerConnection/resources/GetPropertiesResource/methods" capabilities="urn:oracle:restframework:read"/> </links> <items> <resourceMethod resourceType="urn:oracle:wcps:conductor:provider:resourceMethod"> <links> <link template="http://localhost:8891/wcps/api/conductor/namespaces/FeatureReview_Namespace/dataProviders/oracle.PropertiesServiceProvider/connections/LocalServerConnection/resources/GetPropertiesResource/methods?projection={projection}" resourceType="urn:oracle:wcps:conductor:provider:resourceMethods" rel="urn:oracle:webcenter:parent" href="http://localhost:8891/wcps/api/conductor/namespaces/FeatureReview_Namespace/dataProviders/oracle.PropertiesServiceProvider/connections/LocalServerConnection/resources/GetPropertiesResource/methods" capabilities="urn:oracle:restframework:read"/> <link template="http://localhost:8891/wcps/api/conductor/namespaces/FeatureReview_Namespace/dataProviders/oracle.PropertiesServiceProvider/connections/LocalServerConnection/resources/GetPropertiesResource/methods/GetProperty(namespace,definition,set,property)?projection={projection}" resourceType="urn:oracle:wcps:conductor:provider:resourceMethod" rel="self" href="http://localhost:8891/wcps/api/conductor/namespaces/FeatureReview_Namespace/dataProviders/oracle.PropertiesServiceProvider/connections/LocalServerConnection/resources/GetPropertiesResource/methods/GetProperty(namespace,definition,set,property)" capabilities="urn:oracle:restframework:read"/> </links> <name>GetProperty</name> <uniqueName>GetProperty(namespace,definition,set,property)</uniqueName> <parameters/> </resourceMethod> <resourceMethod resourceType="urn:oracle:wcps:conductor:provider:resourceMethod"> <links> <link template="http://localhost:8891/wcps/api/conductor/namespaces/FeatureReview_Namespace/dataProviders/oracle.PropertiesServiceProvider/connections/LocalServerConnection/resources/GetPropertiesResource/methods?projection={projection}" resourceType="urn:oracle:wcps:conductor:provider:resourceMethods" rel="urn:oracle:webcenter:parent" href="http://localhost:8891/wcps/api/conductor/namespaces/FeatureReview_Namespace/dataProviders/oracle.PropertiesServiceProvider/connections/LocalServerConnection/resources/GetPropertiesResource/methods" capabilities="urn:oracle:restframework:read"/> <link template="http://localhost:8891/wcps/api/conductor/namespaces/FeatureReview_Namespace/dataProviders/oracle.PropertiesServiceProvider/connections/LocalServerConnection/resources/GetPropertiesResource/methods/GetProperty(definition,set,property)?projection={projection}" resourceType="urn:oracle:wcps:conductor:provider:resourceMethod" rel="self" href="http://localhost:8891/wcps/api/conductor/namespaces/FeatureReview_Namespace/dataProviders/oracle.PropertiesServiceProvider/connections/LocalServerConnection/resources/GetPropertiesResource/methods/GetProperty(definition,set,property)" capabilities="urn:oracle:restframework:read"/> </links> <name>GetProperty</name> <uniqueName>GetProperty(definition,set,property)</uniqueName> <parameters/> </resourceMethod> <resourceMethod resourceType="urn:oracle:wcps:conductor:provider:resourceMethod"> <links> <link template="http://localhost:8891/wcps/api/conductor/namespaces/FeatureReview_Namespace/dataProviders/oracle.PropertiesServiceProvider/connections/LocalServerConnection/resources/GetPropertiesResource/methods?projection={projection}" resourceType="urn:oracle:wcps:conductor:provider:resourceMethods" rel="urn:oracle:webcenter:parent" href="http://localhost:8891/wcps/api/conductor/namespaces/FeatureReview_Namespace/dataProviders/oracle.PropertiesServiceProvider/connections/LocalServerConnection/resources/GetPropertiesResource/methods" capabilities="urn:oracle:restframework:read"/> <link template="http://localhost:8891/wcps/api/conductor/namespaces/FeatureReview_Namespace/dataProviders/oracle.PropertiesServiceProvider/connections/LocalServerConnection/resources/GetPropertiesResource/methods/execute()?projection={projection}" resourceType="urn:oracle:wcps:conductor:provider:resourceMethod" rel="self" href="http://localhost:8891/wcps/api/conductor/namespaces/FeatureReview_Namespace/dataProviders/oracle.PropertiesServiceProvider/connections/LocalServerConnection/resources/GetPropertiesResource/methods/execute()" capabilities="urn:oracle:restframework:read"/> </links> <name>execute</name> <uniqueName>execute()</uniqueName> <parameters/> </resourceMethod> <resourceMethod resourceType="urn:oracle:wcps:conductor:provider:resourceMethod"> <links> <link template="http://localhost:8891/wcps/api/conductor/namespaces/FeatureReview_Namespace/dataProviders/oracle.PropertiesServiceProvider/connections/LocalServerConnection/resources/GetPropertiesResource/methods?projection={projection}" resourceType="urn:oracle:wcps:conductor:provider:resourceMethods" rel="urn:oracle:webcenter:parent" href="http://localhost:8891/wcps/api/conductor/namespaces/FeatureReview_Namespace/dataProviders/oracle.PropertiesServiceProvider/connections/LocalServerConnection/resources/GetPropertiesResource/methods" capabilities="urn:oracle:restframework:read"/> <link template="http://localhost:8891/wcps/api/conductor/namespaces/FeatureReview_Namespace/dataProviders/oracle.PropertiesServiceProvider/connections/LocalServerConnection/resources/GetPropertiesResource/methods/GetPropertySet(definition,set)?projection={projection}" resourceType="urn:oracle:wcps:conductor:provider:resourceMethod" rel="self" href="http://localhost:8891/wcps/api/conductor/namespaces/FeatureReview_Namespace/dataProviders/oracle.PropertiesServiceProvider/connections/LocalServerConnection/resources/GetPropertiesResource/methods/GetPropertySet(definition,set)" capabilities="urn:oracle:restframework:read"/> </links> <name>GetPropertySet</name> <uniqueName>GetPropertySet(definition,set)</uniqueName> <parameters/> </resourceMethod> <resourceMethod resourceType="urn:oracle:wcps:conductor:provider:resourceMethod"> <links> <link template="http://localhost:8891/wcps/api/conductor/namespaces/FeatureReview_Namespace/dataProviders/oracle.PropertiesServiceProvider/connections/LocalServerConnection/resources/GetPropertiesResource/methods?projection={projection}" resourceType="urn:oracle:wcps:conductor:provider:resourceMethods" rel="urn:oracle:webcenter:parent" href="http://localhost:8891/wcps/api/conductor/namespaces/FeatureReview_Namespace/dataProviders/oracle.PropertiesServiceProvider/connections/LocalServerConnection/resources/GetPropertiesResource/methods" capabilities="urn:oracle:restframework:read"/> <link template="http://localhost:8891/wcps/api/conductor/namespaces/FeatureReview_Namespace/dataProviders/oracle.PropertiesServiceProvider/connections/LocalServerConnection/resources/GetPropertiesResource/methods/GetPropertySet(namespace,definition,set)?projection={projection}" resourceType="urn:oracle:wcps:conductor:provider:resourceMethod" rel="self" href="http://localhost:8891/wcps/api/conductor/namespaces/FeatureReview_Namespace/dataProviders/oracle.PropertiesServiceProvider/connections/LocalServerConnection/resources/GetPropertiesResource/methods/GetPropertySet(namespace,definition,set)" capabilities="urn:oracle:restframework:read"/> </links> <name>GetPropertySet</name> <uniqueName>GetPropertySet(namespace,definition,set)</uniqueName> <parameters/> </resourceMethod> <resourceMethod resourceType="urn:oracle:wcps:conductor:provider:resourceMethod"> <links> <link template="http://localhost:8891/wcps/api/conductor/namespaces/FeatureReview_Namespace/dataProviders/oracle.PropertiesServiceProvider/connections/LocalServerConnection/resources/GetPropertiesResource/methods?projection={projection}" resourceType="urn:oracle:wcps:conductor:provider:resourceMethods" rel="urn:oracle:webcenter:parent" href="http://localhost:8891/wcps/api/conductor/namespaces/FeatureReview_Namespace/dataProviders/oracle.PropertiesServiceProvider/connections/LocalServerConnection/resources/GetPropertiesResource/methods" capabilities="urn:oracle:restframework:read"/> <link template="http://localhost:8891/wcps/api/conductor/namespaces/FeatureReview_Namespace/dataProviders/oracle.PropertiesServiceProvider/connections/LocalServerConnection/resources/GetPropertiesResource/methods/GetPropertySets(definition)?projection={projection}" resourceType="urn:oracle:wcps:conductor:provider:resourceMethod" rel="self" href="http://localhost:8891/wcps/api/conductor/namespaces/FeatureReview_Namespace/dataProviders/oracle.PropertiesServiceProvider/connections/LocalServerConnection/resources/GetPropertiesResource/methods/GetPropertySets(definition)" capabilities="urn:oracle:restframework:read"/> </links> <name>GetPropertySets</name> <uniqueName>GetPropertySets(definition)</uniqueName> <parameters/> </resourceMethod> <resourceMethod resourceType="urn:oracle:wcps:conductor:provider:resourceMethod"> <links> <link template="http://localhost:8891/wcps/api/conductor/namespaces/FeatureReview_Namespace/dataProviders/oracle.PropertiesServiceProvider/connections/LocalServerConnection/resources/GetPropertiesResource/methods?projection={projection}" resourceType="urn:oracle:wcps:conductor:provider:resourceMethods" rel="urn:oracle:webcenter:parent" href="http://localhost:8891/wcps/api/conductor/namespaces/FeatureReview_Namespace/dataProviders/oracle.PropertiesServiceProvider/connections/LocalServerConnection/resources/GetPropertiesResource/methods" capabilities="urn:oracle:restframework:read"/> <link template="http://localhost:8891/wcps/api/conductor/namespaces/FeatureReview_Namespace/dataProviders/oracle.PropertiesServiceProvider/connections/LocalServerConnection/resources/GetPropertiesResource/methods/GetPropertySets(namespace,definition)?projection={projection}" resourceType="urn:oracle:wcps:conductor:provider:resourceMethod" rel="self" href="http://localhost:8891/wcps/api/conductor/namespaces/FeatureReview_Namespace/dataProviders/oracle.PropertiesServiceProvider/connections/LocalServerConnection/resources/GetPropertiesResource/methods/GetPropertySets(namespace,definition)" capabilities="urn:oracle:restframework:read"/> </links> <name>GetPropertySets</name> <uniqueName>GetPropertySets(namespace,definition)</uniqueName> <parameters/> </resourceMethod> </items> </resourceMethods> </connectionResource> </items> </connectionResources>
Request URI: GET http://localhost:8891/wcps/api/conductor/namespaces/FeatureReview_Namespace/dataProviders/oracle.PropertiesServiceProvider/connections/LocalServerConnection/resources/GetPropertiesResource/methods/GetProperty(definition,set,property) Response: <resourceMethod resourceType="urn:oracle:wcps:conductor:provider:resourceMethod"> <links> <link template="http://localhost:8891/wcps/api/conductor/namespaces/FeatureReview_Namespace/dataProviders/oracle.PropertiesServiceProvider/connections/LocalServerConnection/resources/GetPropertiesResource/methods?projection={projection}" resourceType="urn:oracle:wcps:conductor:provider:resourceMethods" rel="urn:oracle:webcenter:parent" href="http://localhost:8891/wcps/api/conductor/namespaces/FeatureReview_Namespace/dataProviders/oracle.PropertiesServiceProvider/connections/LocalServerConnection/resources/GetPropertiesResource/methods" capabilities="urn:oracle:restframework:read"/> <link template="http://localhost:8891/wcps/api/conductor/namespaces/FeatureReview_Namespace/dataProviders/oracle.PropertiesServiceProvider/connections/LocalServerConnection/resources/GetPropertiesResource/methods/GetProperty(definition,set,property)?projection={projection}" resourceType="urn:oracle:wcps:conductor:provider:resourceMethod" rel="self" href="http://localhost:8891/wcps/api/conductor/namespaces/FeatureReview_Namespace/dataProviders/oracle.PropertiesServiceProvider/connections/LocalServerConnection/resources/GetPropertiesResource/methods/GetProperty(definition,set,property)" capabilities="urn:oracle:restframework:read"/> </links> <name>GetProperty</name> <uniqueName>GetProperty(definition,set,property)</uniqueName> <localizedDescription>Retrieves a property set for the current (or specified) namespace, property set definition name, and property set name, and property name. If no namespace, property set definition, property set and property exists null will be returned.</localizedDescription> <parameters> <parameter> <localizedDescription>The property set definition name.</localizedDescription> <name>definition</name> <type>java.lang.String</type> </parameter> <parameter> <localizedDescription>The property set name.</localizedDescription> <name>set</name> <type>java.lang.String</type> </parameter> <parameter> <localizedDescription>The property name.</localizedDescription> <name>property</name> <type>java.lang.String</type> </parameter> </parameters> <returnType>java.io.Serializable</returnType> </resourceMethod>
Request URI: GET http://localhost:8891/wcps/api/conductor/namespaces/FeatureReview_Namespace/functionProviders Response: <functionProviders resourceType="urn:oracle:wcps:conductor:provider:functionProviders"> <links> <link template="http://localhost:8891/wcps/api/conductor/namespaces/FeatureReview_Namespace/functionProviders?projection={projection}" resourceType="urn:oracle:wcps:conductor:provider:functionProviders" rel="self" href="http://localhost:8891/wcps/api/conductor/namespaces/FeatureReview_Namespace/functionProviders" capabilities="urn:oracle:restframework:read"/> </links> <items> <functionProvider resourceType="urn:oracle:wcps:conductor:provider:functionProvider"> <links> <link template="http://localhost:8891/wcps/api/conductor/namespaces/FeatureReview_Namespace/functionProviders?projection={projection}" resourceType="urn:oracle:wcps:conductor:provider:functionProviders" rel="urn:oracle:webcenter:parent" href="http://localhost:8891/wcps/api/conductor/namespaces/FeatureReview_Namespace/functionProviders" capabilities="urn:oracle:restframework:read"/> <link template="http://localhost:8891/wcps/api/conductor/namespaces/FeatureReview_Namespace/functionProviders/collections:new?projection={projection}" resourceType="urn:oracle:wcps:conductor:provider:functionProvider" rel="self" href="http://localhost:8891/wcps/api/conductor/namespaces/FeatureReview_Namespace/functionProviders/collections:new" capabilities="urn:oracle:restframework:read"/> </links> <category>collections</category> <example>${collections:new()}</example> <localizedDescription>Creates and returns a new collection.</localizedDescription> <name>new</name> <parameters/> <returnType>java.util.Collection</returnType> </functionProvider> <functionProvider resourceType="urn:oracle:wcps:conductor:provider:functionProvider"> <links> <link template="http://localhost:8891/wcps/api/conductor/namespaces/FeatureReview_Namespace/functionProviders?projection={projection}" resourceType="urn:oracle:wcps:conductor:provider:functionProviders" rel="urn:oracle:webcenter:parent" href="http://localhost:8891/wcps/api/conductor/namespaces/FeatureReview_Namespace/functionProviders" capabilities="urn:oracle:restframework:read"/> <link template="http://localhost:8891/wcps/api/conductor/namespaces/FeatureReview_Namespace/functionProviders/cmisfunction:getCMISQueryForDocIDs?projection={projection}" resourceType="urn:oracle:wcps:conductor:provider:functionProvider" rel="self" href="http://localhost:8891/wcps/api/conductor/namespaces/FeatureReview_Namespace/functionProviders/cmisfunction:getCMISQueryForDocIDs" capabilities="urn:oracle:restframework:read"/> </links> <category>cmisfunction</category> <example>${cmisfunction:getCMISQueryForDocIDs(repository,ids)}</example> <localizedDescription>Construct a CMIS query in the form of 'IN' query syntax that will retrieve the documents for the array of input doc IDs.</localizedDescription> <name>getCMISQueryForDocIDs</name> <parameters/> <returnType>java.lang.String</returnType> </functionProvider> <functionProvider resourceType="urn:oracle:wcps:conductor:provider:functionProvider"> <links> <link template="http://localhost:8891/wcps/api/conductor/namespaces/FeatureReview_Namespace/functionProviders?projection={projection}" resourceType="urn:oracle:wcps:conductor:provider:functionProviders" rel="urn:oracle:webcenter:parent" href="http://localhost:8891/wcps/api/conductor/namespaces/FeatureReview_Namespace/functionProviders" capabilities="urn:oracle:restframework:read"/> <link template="http://localhost:8891/wcps/api/conductor/namespaces/FeatureReview_Namespace/functionProviders/cmisfunction:getCMISQueryForDocIDsFromFullID?projection={projection}" resourceType="urn:oracle:wcps:conductor:provider:functionProvider" rel="self" href="http://localhost:8891/wcps/api/conductor/namespaces/FeatureReview_Namespace/functionProviders/cmisfunction:getCMISQueryForDocIDsFromFullID" capabilities="urn:oracle:restframework:read"/> </links> <category>cmisfunction</category> <example>${cmisfunction:getCMISQueryForDocIDsFromFullID(ids)}</example> <localizedDescription>Construct a CMIS query in the form of 'IN' query syntax that will retrieve the documents for the array of input doc IDs.</localizedDescription> <name>getCMISQueryForDocIDsFromFullID</name> <parameters/> <returnType>java.lang.String</returnType> </functionProvider> <functionProvider resourceType="urn:oracle:wcps:conductor:provider:functionProvider"> <links> <link template="http://localhost:8891/wcps/api/conductor/namespaces/FeatureReview_Namespace/functionProviders?projection={projection}" resourceType="urn:oracle:wcps:conductor:provider:functionProviders" rel="urn:oracle:webcenter:parent" href="http://localhost:8891/wcps/api/conductor/namespaces/FeatureReview_Namespace/functionProviders" capabilities="urn:oracle:restframework:read"/> <link template="http://localhost:8891/wcps/api/conductor/namespaces/FeatureReview_Namespace/functionProviders/agfunction:filterRecsByScore?projection={projection}" resourceType="urn:oracle:wcps:conductor:provider:functionProvider" rel="self" href="http://localhost:8891/wcps/api/conductor/namespaces/FeatureReview_Namespace/functionProviders/agfunction:filterRecsByScore" capabilities="urn:oracle:restframework:read"/> </links> <category>agfunction</category> <example>${agfunction:filterRecsByScore(recommendations,cutoffScore)}</example> <localizedDescription>Filter out Recommendations whose score is >= the input score</localizedDescription> <name>filterRecsByScore</name> <parameters/> <returnType>oracle.wcps.activity.agrest.spy.jaxb.Recommendations</returnType> </functionProvider> <functionProvider resourceType="urn:oracle:wcps:conductor:provider:functionProvider"> <links> <link template="http://localhost:8891/wcps/api/conductor/namespaces/FeatureReview_Namespace/functionProviders?projection={projection}" resourceType="urn:oracle:wcps:conductor:provider:functionProviders" rel="urn:oracle:webcenter:parent" href="http://localhost:8891/wcps/api/conductor/namespaces/FeatureReview_Namespace/functionProviders" capabilities="urn:oracle:restframework:read"/> <link template="http://localhost:8891/wcps/api/conductor/namespaces/FeatureReview_Namespace/functionProviders/agfunction:getContentIDs?projection={projection}" resourceType="urn:oracle:wcps:conductor:provider:functionProvider" rel="self" href="http://localhost:8891/wcps/api/conductor/namespaces/FeatureReview_Namespace/functionProviders/agfunction:getContentIDs" capabilities="urn:oracle:restframework:read"/> </links> <category>agfunction</category> <example>${agfunction:getContentIDs(agResults,filterClassURN)}</example> <localizedDescription>Extract content IDs from input objects</localizedDescription> <name>getContentIDs</name> <parameters/> <returnType>java.util.List</returnType> </functionProvider> <functionProvider resourceType="urn:oracle:wcps:conductor:provider:functionProvider"> <links> <link template="http://localhost:8891/wcps/api/conductor/namespaces/FeatureReview_Namespace/functionProviders?projection={projection}" resourceType="urn:oracle:wcps:conductor:provider:functionProviders" rel="urn:oracle:webcenter:parent" href="http://localhost:8891/wcps/api/conductor/namespaces/FeatureReview_Namespace/functionProviders" capabilities="urn:oracle:restframework:read"/> <link template="http://localhost:8891/wcps/api/conductor/namespaces/FeatureReview_Namespace/functionProviders/collections:append?projection={projection}" resourceType="urn:oracle:wcps:conductor:provider:functionProvider" rel="self" href="http://localhost:8891/wcps/api/conductor/namespaces/FeatureReview_Namespace/functionProviders/collections:append" capabilities="urn:oracle:restframework:read"/> </links> <category>collections</category> <example>${collections:append(collection,item)}</example> <localizedDescription>Appends</localizedDescription> <name>append</name> <parameters/> <returnType>java.util.Collection</returnType> </functionProvider> <functionProvider resourceType="urn:oracle:wcps:conductor:provider:functionProvider"> <links> <link template="http://localhost:8891/wcps/api/conductor/namespaces/FeatureReview_Namespace/functionProviders?projection={projection}" resourceType="urn:oracle:wcps:conductor:provider:functionProviders" rel="urn:oracle:webcenter:parent" href="http://localhost:8891/wcps/api/conductor/namespaces/FeatureReview_Namespace/functionProviders" capabilities="urn:oracle:restframework:read"/> <link template="http://localhost:8891/wcps/api/conductor/namespaces/FeatureReview_Namespace/functionProviders/collections:merge?projection={projection}" resourceType="urn:oracle:wcps:conductor:provider:functionProvider" rel="self" href="http://localhost:8891/wcps/api/conductor/namespaces/FeatureReview_Namespace/functionProviders/collections:merge" capabilities="urn:oracle:restframework:read"/> </links> <category>collections</category> <example>${collections:merge(allCollections)}</example> <localizedDescription>Concatenates all provided collections in the order in which they are provided.</localizedDescription> <name>merge</name> <parameters/> <returnType>java.util.Collection</returnType> </functionProvider> <functionProvider resourceType="urn:oracle:wcps:conductor:provider:functionProvider"> <links> <link template="http://localhost:8891/wcps/api/conductor/namespaces/FeatureReview_Namespace/functionProviders?projection={projection}" resourceType="urn:oracle:wcps:conductor:provider:functionProviders" rel="urn:oracle:webcenter:parent" href="http://localhost:8891/wcps/api/conductor/namespaces/FeatureReview_Namespace/functionProviders" capabilities="urn:oracle:restframework:read"/> <link template="http://localhost:8891/wcps/api/conductor/namespaces/FeatureReview_Namespace/functionProviders/collections:sort?projection={projection}" resourceType="urn:oracle:wcps:conductor:provider:functionProvider" rel="self" href="http://localhost:8891/wcps/api/conductor/namespaces/FeatureReview_Namespace/functionProviders/collections:sort" capabilities="urn:oracle:restframework:read"/> </links> <category>collections</category> <example>${collections:sort(list)}</example> <localizedDescription>Sorts the provided collection.</localizedDescription> <name>sort</name> <parameters/> <returnType>void</returnType> </functionProvider> <functionProvider resourceType="urn:oracle:wcps:conductor:provider:functionProvider"> <links> <link template="http://localhost:8891/wcps/api/conductor/namespaces/FeatureReview_Namespace/functionProviders?projection={projection}" resourceType="urn:oracle:wcps:conductor:provider:functionProviders" rel="urn:oracle:webcenter:parent" href="http://localhost:8891/wcps/api/conductor/namespaces/FeatureReview_Namespace/functionProviders" capabilities="urn:oracle:restframework:read"/> <link template="http://localhost:8891/wcps/api/conductor/namespaces/FeatureReview_Namespace/functionProviders/agfunction:getDocumentIDs?projection={projection}" resourceType="urn:oracle:wcps:conductor:provider:functionProvider" rel="self" href="http://localhost:8891/wcps/api/conductor/namespaces/FeatureReview_Namespace/functionProviders/agfunction:getDocumentIDs" capabilities="urn:oracle:restframework:read"/> </links> <category>agfunction</category> <example>${agfunction:getDocumentIDs(agResults,dDocNameOnly)}</example> <localizedDescription>Extract content IDs from input objects</localizedDescription> <name>getDocumentIDs</name> <parameters/> <returnType>java.util.List</returnType> </functionProvider> </items> </functionProviders>
This section includes the following subsections:
This section includes the following subsections:
ResourceIndex
XML
Request: GET http://localhost:8891/wcps/api/property/resourceIndex Content-Type: application/xml Accept: application/xml Response: Status Code:200 Content-Length: 3595 X-Oracle-RF-Token-Scheme: utoken X-Oracle-RF-Token: FC59cJkhnJPolzPwKsStfD0Dxjm8_w** X-Powered-By: Servlet/2.5 JSP/2.1 Set-Cookie: JSESSIONID=t0FKMnYDSzjRlshhs0sFX20nvnTZLQY8vnxNLkplyfYPcWgfb9y6!-1714998420; path=/wcps; HttpOnly X-Oracle-RF-Token-Location: header Content-Type: application/xml Date: Thu, 07 Oct 2010 23:31:15 GMT <?xml version="1.0" encoding="UTF-8"?> <resourceIndex resourceType="urn:oracle:wcps:property:resourceIndex"> <links> <link capabilities="urn:oracle:restframework:create urn:oracle:restframework:read urn:oracle:restframework:delete" href="http://localhost:8891/wcps/api/property/namespaces" resourceType="urn:oracle:wcps:property:namespaces" template="http://localhost:8891/wcps/api/property/namespaces?startIndex={startIndex}&q={q}&itemsPerPage={itemsPerPage}"/> <link capabilities="urn:oracle:restframework:read" href="http://localhost:8891/wcps/api/property/resourceIndex" rel="self" resourceType="urn:oracle:wcps:property:resourceIndex"/> <link capabilities="urn:oracle:restframework:read urn:oracle:restframework:update urn:oracle:restframework:delete" resourceType="urn:oracle:wcps:property:namespace" template="http://localhost:8891/wcps/api/property/namespaces/{namespaceName}"/> <link capabilities="urn:oracle:restframework:create urn:oracle:restframework:read urn:oracle:restframework:delete" resourceType="urn:oracle:wcps:property:propertydefinitions" template="http://localhost:8891/wcps/api/property/namespaces/{namespaceName}/propertydefinitions?startIndex={startIndex}&q={q}&itemsPerPage={itemsPerPage}"/> <link capabilities="urn:oracle:restframework:read urn:oracle:restframework:update urn:oracle:restframework:delete" resourceType="urn:oracle:wcps:property:propertydefinition" template="http://localhost:8891/wcps/api/property/namespaces/{namespaceName}/propertydefinitions/{definitionName}"/> <link capabilities="urn:oracle:restframework:create urn:oracle:restframework:read urn:oracle:restframework:delete" resourceType="urn:oracle:wcps:property:propertysetdefinitions" template="http://localhost:8891/wcps/api/property/namespaces/{namespaceName}/propertysetdefinitions?startIndex={startIndex}&q={q}&itemsPerPage={itemsPerPage}"/> <link capabilities="urn:oracle:restframework:read urn:oracle:restframework:update urn:oracle:restframework:delete" resourceType="urn:oracle:wcps:property:propertysetdefinition" template="http://localhost:8891/wcps/api/property/namespaces/{namespaceName}/propertysetdefinitions/{setDefinitionName}"/> <link capabilities="urn:oracle:restframework:create urn:oracle:restframework:read urn:oracle:restframework:delete" resourceType="urn:oracle:wcps:property:propertysets" template="http://localhost:8891/wcps/api/property/namespaces/{namespaceName}/propertysetdefinitions/{setDefinitionName}/propertysets?startIndex={startIndex}&dataFields={dataFields}&q={q}&itemsPerPage={itemsPerPage}"/> <link capabilities="urn:oracle:restframework:read urn:oracle:restframework:update urn:oracle:restframework:delete" resourceType="urn:oracle:wcps:property:propertyset" template="http://localhost:8891/wcps/api/property/namespaces/{namespaceName}/propertysetdefinitions/{setDefinitionName}/propertysets/{propertySetName}"/> <link capabilities="urn:oracle:restframework:read urn:oracle:restframework:delete" resourceType="urn:oracle:wcps:property:properties" template="http://localhost:8891/wcps/api/property/namespaces/{namespaceName}/propertysetdefinitions/{setDefinitionName}/propertysets/{propertySetName}/properties"/> <link capabilities="urn:oracle:restframework:create urn:oracle:restframework:read urn:oracle:restframework:update urn:oracle:restframework:delete" resourceType="urn:oracle:wcps:property:property" template="http://localhost:8891/wcps/api/property/namespaces/{namespaceName}/propertysetdefinitions/{setDefinitionName}/propertysets/{propertySetName}/properties/{propertyName}"/> </links> </resourceIndex>
JSON
Request: GET http://localhost:8891/wcps/api/property/resourceIndex Content-Type: application/json Accept: application/json Response: Status Code:200 X-Oracle-RF-Token-Scheme: utoken X-Oracle-RF-Token: FIxec1lmTFguxer9ZqZJpsXSnlZy_w** X-Powered-By: Servlet/2.5 JSP/2.1 Set-Cookie: JSESSIONID=WFGvMnyKP7nDBW1RQynhhphbQvWLDjLSbFJj2MQ1g6nFH2VQlgJ4!-609606431; path=/wcps; HttpOnly X-Oracle-RF-Token-Location: header Transfer-Encoding: chunked Content-Type: application/json Date: Fri, 08 Oct 2010 01:24:22 GMT { "resourceType" : "urn:oracle:wcps:property:resourceIndex", "links" : [ { "template" : "http://localhost:8891/wcps/api/property/namespaces?startIndex={startIndex}&q={q}&itemsPerPage={itemsPerPage}", "resourceType" : "urn:oracle:wcps:property:namespaces", "capabilities" : "urn:oracle:restframework:create urn:oracle:restframework:read urn:oracle:restframework:delete", "href" : "http://localhost:8891/wcps/api/property/namespaces" }, { "resourceType" : "urn:oracle:wcps:property:resourceIndex", "capabilities" : "urn:oracle:restframework:read", "href" : "http://localhost:8891/wcps/api/property/resourceIndex", "rel" : "self" }, { "template" : "http://localhost:8891/wcps/api/property/namespaces/{namespaceName}", "resourceType" : "urn:oracle:wcps:property:namespace", "capabilities" : "urn:oracle:restframework:read urn:oracle:restframework:update urn:oracle:restframework:delete" }, { "template" : "http://localhost:8891/wcps/api/property/namespaces/{namespaceName}/propertydefinitions?startIndex={startIndex}&q={q}&itemsPerPage={itemsPerPage}", "resourceType" : "urn:oracle:wcps:property:propertydefinitions", "capabilities" : "urn:oracle:restframework:create urn:oracle:restframework:read urn:oracle:restframework:delete" }, { "template" : "http://localhost:8891/wcps/api/property/namespaces/{namespaceName}/propertydefinitions/{definitionName}", "resourceType" : "urn:oracle:wcps:property:propertydefinition", "capabilities" : "urn:oracle:restframework:read urn:oracle:restframework:update urn:oracle:restframework:delete" }, { "template" : "http://localhost:8891/wcps/api/property/namespaces/{namespaceName}/propertysetdefinitions?startIndex={startIndex}&q={q}&itemsPerPage={itemsPerPage}", "resourceType" : "urn:oracle:wcps:property:propertysetdefinitions", "capabilities" : "urn:oracle:restframework:create urn:oracle:restframework:read urn:oracle:restframework:delete" }, { "template" : "http://localhost:8891/wcps/api/property/namespaces/{namespaceName}/propertysetdefinitions/{setDefinitionName}", "resourceType" : "urn:oracle:wcps:property:propertysetdefinition", "capabilities" : "urn:oracle:restframework:read urn:oracle:restframework:update urn:oracle:restframework:delete" }, { "template" : "http://localhost:8891/wcps/api/property/namespaces/{namespaceName}/propertysetdefinitions/{setDefinitionName}/propertysets?startIndex={startIndex}&dataFields={dataFields}&q={q}&itemsPerPage={itemsPerPage}", "resourceType" : "urn:oracle:wcps:property:propertysets", "capabilities" : "urn:oracle:restframework:create urn:oracle:restframework:read urn:oracle:restframework:delete" }, { "template" : "http://localhost:8891/wcps/api/property/namespaces/{namespaceName}/propertysetdefinitions/{setDefinitionName}/propertysets/{propertySetName}", "resourceType" : "urn:oracle:wcps:property:propertyset", "capabilities" : "urn:oracle:restframework:read urn:oracle:restframework:update urn:oracle:restframework:delete" }, { "template" : "http://localhost:8891/wcps/api/property/namespaces/{namespaceName}/propertysetdefinitions/{setDefinitionName}/propertysets/{propertySetName}/properties", "resourceType" : "urn:oracle:wcps:property:properties", "capabilities" : "urn:oracle:restframework:read urn:oracle:restframework:delete" }, { "template" : "http://localhost:8891/wcps/api/property/namespaces/{namespaceName}/propertysetdefinitions/{setDefinitionName}/propertysets/{propertySetName}/properties/{propertyName}", "resourceType" : "urn:oracle:wcps:property:property", "capabilities" : "urn:oracle:restframework:create urn:oracle:restframework:read urn:oracle:restframework:update urn:oracle:restframework:delete" } ] }
This section contains the following subsection:
CreateNamespace
XML
Request: POST http://localhost:8891/wcps/api/property/namespaces X-Oracle-RF-Token: FC59cJkhnJPolzPwKsStfD0Dxjm8_w** Cookie: JSESSIONID=t0FKMnYDSzjRlshhs0sFX20nvnTZLQY8vnxNLkplyfYPcWgfb9y6!-1714998420;Version=1 Content-Type: application/xml Accept: application/xml <?xml version="1.0" encoding="UTF-8"?> <namespace resourceType="urn:oracle:wcps:property:namespace"> <name>Oracle</name> </namespace> Response: Status Code:201 Content-Length: 1671 X-Oracle-RF-Token-Scheme: utoken X-Oracle-RF-Token: FC59cJkhnJPolzPwKsStfD0Dxjm8_w** X-Powered-By: Servlet/2.5 JSP/2.1 Cache-Control: no-cache X-Oracle-RF-Token-Location: header Content-Type: application/xml Location: http://localhost:8891/wcps/api/property/namespaces/Oracle Date: Thu, 07 Oct 2010 23:31:16 GMT ETag: "1286494276437" <?xml version="1.0" encoding="UTF-8"?> <namespace resourceType="urn:oracle:wcps:property:namespace"> <links> <link capabilities="urn:oracle:restframework:read urn:oracle:restframework:update urn:oracle:restframework:delete" href="http://localhost:8891/wcps/api/property/namespaces/Oracle" rel="self" resourceType="urn:oracle:wcps:property:namespace"/> <link capabilities="urn:oracle:restframework:create urn:oracle:restframework:read urn:oracle:restframework:delete" href="http://localhost:8891/wcps/api/property/namespaces/Oracle/propertysetdefinitions" resourceType="urn:oracle:wcps:property:propertysetdefinitions" template="http://localhost:8891/wcps/api/property/namespaces/Oracle/propertysetdefinitions?startIndex={startIndex}&q={q}&itemsPerPage={itemsPerPage}"/> <link capabilities="urn:oracle:restframework:create urn:oracle:restframework:read urn:oracle:restframework:delete" href="http://localhost:8891/wcps/api/property/namespaces/Oracle/propertydefinitions" resourceType="urn:oracle:wcps:property:propertydefinitions" template="http://localhost:8891/wcps/api/property/namespaces/Oracle/propertydefinitions?startIndex={startIndex}&q={q}&itemsPerPage={itemsPerPage}"/> <link capabilities="urn:oracle:restframework:read" resourceType="urn:oracle:wcps:property:propertysets" template="http://localhost:8891/wcps/api/property/namespaces/Oracle/propertysetdefinitions/{setDefinitionName}/propertysets?startIndex={startIndex}&dataFields={dataFields}&q={q}&itemsPerPage={itemsPerPage}"/> </links> <name>Oracle</name> <createdOn>2010-10-07T17:31:16.437-0600</createdOn> <updatedOn>2010-10-07T17:31:16.437-0600</updatedOn> </namespace>
JSON
Request: POST http://localhost:8891/wcps/api/property/namespaces X-Oracle-RF-Token: FIxec1lmTFguxer9ZqZJpsXSnlZy_w** Cookie: JSESSIONID=WFGvMnyKP7nDBW1RQynhhphbQvWLDjLSbFJj2MQ1g6nFH2VQlgJ4!-609606431;Version=1 Content-Type: application/json Accept: application/json { "name" : "Oracle", "resourceType" : "urn:oracle:wcps:property:namespace" } Response: Status Code:201 X-Oracle-RF-Token-Scheme: utoken X-Oracle-RF-Token: FIxec1lmTFguxer9ZqZJpsXSnlZy_w** X-Powered-By: Servlet/2.5 JSP/2.1 Cache-Control: no-cache X-Oracle-RF-Token-Location: header Transfer-Encoding: chunked Content-Type: application/json Location: http://localhost:8891/wcps/api/property/namespaces/Oracle Date: Fri, 08 Oct 2010 01:24:26 GMT ETag: "1286501066698" { "name" : "Oracle", "createdOn" : "2010-10-07T19:24:26.698-0600", "updatedOn" : "2010-10-07T19:24:26.698-0600", "resourceType" : "urn:oracle:wcps:property:namespace", "links" : [ { "resourceType" : "urn:oracle:wcps:property:namespace", "capabilities" : "urn:oracle:restframework:read urn:oracle:restframework:update urn:oracle:restframework:delete", "href" : "http://localhost:8891/wcps/api/property/namespaces/Oracle", "rel" : "self" }, { "template" : "http://localhost:8891/wcps/api/property/namespaces/Oracle/propertysetdefinitions?startIndex={startIndex}&q={q}&itemsPerPage={itemsPerPage}", "resourceType" : "urn:oracle:wcps:property:propertysetdefinitions", "capabilities" : "urn:oracle:restframework:create urn:oracle:restframework:read urn:oracle:restframework:delete", "href" : "http://localhost:8891/wcps/api/property/namespaces/Oracle/propertysetdefinitions" }, { "template" : "http://localhost:8891/wcps/api/property/namespaces/Oracle/propertydefinitions?startIndex={startIndex}&q={q}&itemsPerPage={itemsPerPage}", "resourceType" : "urn:oracle:wcps:property:propertydefinitions", "capabilities" : "urn:oracle:restframework:create urn:oracle:restframework:read urn:oracle:restframework:delete", "href" : "http://localhost:8891/wcps/api/property/namespaces/Oracle/propertydefinitions" }, { "template" : "http://localhost:8891/wcps/api/property/namespaces/Oracle/propertysetdefinitions/{setDefinitionName}/propertysets?startIndex={startIndex}&dataFields={dataFields}&q={q}&itemsPerPage={itemsPerPage}", "resourceType" : "urn:oracle:wcps:property:propertysets", "capabilities" : "urn:oracle:restframework:read" } ] }
RetrieveNamespace
XML
Request: GET http://localhost:8891/wcps/api/property/namespaces/Oracle X-Oracle-RF-Token: FC59cJkhnJPolzPwKsStfD0Dxjm8_w** Cookie: JSESSIONID=t0FKMnYDSzjRlshhs0sFX20nvnTZLQY8vnxNLkplyfYPcWgfb9y6!-1714998420;Version=1 Content-Type: application/xml Accept: application/xml Response: Status Code:200 Content-Length: 1759 X-Oracle-RF-Token-Scheme: utoken X-Oracle-RF-Token: FC59cJkhnJPolzPwKsStfD0Dxjm8_w** X-Powered-By: Servlet/2.5 JSP/2.1 Cache-Control: no-cache X-Oracle-RF-Token-Location: header Content-Type: application/xml Date: Thu, 07 Oct 2010 23:31:16 GMT ETag: "1286494276833" <?xml version="1.0" encoding="UTF-8"?> <namespace resourceType="urn:oracle:wcps:property:namespace"> <links> <link capabilities="urn:oracle:restframework:read urn:oracle:restframework:update urn:oracle:restframework:delete" href="http://localhost:8891/wcps/api/property/namespaces/Oracle" rel="self" resourceType="urn:oracle:wcps:property:namespace"/> <link capabilities="urn:oracle:restframework:create urn:oracle:restframework:read urn:oracle:restframework:delete" href="http://localhost:8891/wcps/api/property/namespaces/Oracle/propertysetdefinitions" resourceType="urn:oracle:wcps:property:propertysetdefinitions" template="http://localhost:8891/wcps/api/property/namespaces/Oracle/propertysetdefinitions?startIndex={startIndex}&q={q}&itemsPerPage={itemsPerPage}"/> <link capabilities="urn:oracle:restframework:create urn:oracle:restframework:read urn:oracle:restframework:delete" href="http://localhost:8891/wcps/api/property/namespaces/Oracle/propertydefinitions" resourceType="urn:oracle:wcps:property:propertydefinitions" template="http://localhost:8891/wcps/api/property/namespaces/Oracle/propertydefinitions?startIndex={startIndex}&q={q}&itemsPerPage={itemsPerPage}"/> <link capabilities="urn:oracle:restframework:read" resourceType="urn:oracle:wcps:property:propertysets" template="http://localhost:8891/wcps/api/property/namespaces/Oracle/propertysetdefinitions/{setDefinitionName}/propertysets?startIndex={startIndex}&dataFields={dataFields}&q={q}&itemsPerPage={itemsPerPage}"/> </links> <name>Oracle</name> <createdOn>2010-10-07T17:31:16.437-0600</createdOn> <updatedOn>2010-10-07T17:31:16.833-0600</updatedOn> <propertyLocatorClassName>com.oracle.custom.MyPropertyLocator</propertyLocatorClassName> </namespace>
JSON
Request: GET http://localhost:8891/wcps/api/property/namespaces/Oracle X-Oracle-RF-Token: FIxec1lmTFguxer9ZqZJpsXSnlZy_w** Cookie: JSESSIONID=WFGvMnyKP7nDBW1RQynhhphbQvWLDjLSbFJj2MQ1g6nFH2VQlgJ4!-609606431;Version=1 Content-Type: application/json Accept: application/json Response: Status Code:200 X-Oracle-RF-Token-Scheme: utoken X-Oracle-RF-Token: FIxec1lmTFguxer9ZqZJpsXSnlZy_w** X-Powered-By: Servlet/2.5 JSP/2.1 Cache-Control: no-cache X-Oracle-RF-Token-Location: header Transfer-Encoding: chunked Content-Type: application/json Date: Fri, 08 Oct 2010 01:24:26 GMT ETag: "1286501066808" { "name" : "Oracle", "createdOn" : "2010-10-07T19:24:26.698-0600", "propertyLocatorClassName" : "com.oracle.custom.MyPropertyLocator", "updatedOn" : "2010-10-07T19:24:26.808-0600", "resourceType" : "urn:oracle:wcps:property:namespace", "links" : [ { "resourceType" : "urn:oracle:wcps:property:namespace", "capabilities" : "urn:oracle:restframework:read urn:oracle:restframework:update urn:oracle:restframework:delete", "href" : "http://localhost:8891/wcps/api/property/namespaces/Oracle", "rel" : "self" }, { "template" : "http://localhost:8891/wcps/api/property/namespaces/Oracle/propertysetdefinitions?startIndex={startIndex}&q={q}&itemsPerPage={itemsPerPage}", "resourceType" : "urn:oracle:wcps:property:propertysetdefinitions", "capabilities" : "urn:oracle:restframework:create urn:oracle:restframework:read urn:oracle:restframework:delete", "href" : "http://localhost:8891/wcps/api/property/namespaces/Oracle/propertysetdefinitions" }, { "template" : "http://localhost:8891/wcps/api/property/namespaces/Oracle/propertydefinitions?startIndex={startIndex}&q={q}&itemsPerPage={itemsPerPage}", "resourceType" : "urn:oracle:wcps:property:propertydefinitions", "capabilities" : "urn:oracle:restframework:create urn:oracle:restframework:read urn:oracle:restframework:delete", "href" : "http://localhost:8891/wcps/api/property/namespaces/Oracle/propertydefinitions" }, { "template" : "http://localhost:8891/wcps/api/property/namespaces/Oracle/propertysetdefinitions/{setDefinitionName}/propertysets?startIndex={startIndex}&dataFields={dataFields}&q={q}&itemsPerPage={itemsPerPage}", "resourceType" : "urn:oracle:wcps:property:propertysets", "capabilities" : "urn:oracle:restframework:read" } ] }
UpdateNamespace
XML
Request: PUT http://localhost:8891/wcps/api/property/namespaces/Oracle X-Oracle-RF-Token: FC59cJkhnJPolzPwKsStfD0Dxjm8_w** Cookie: JSESSIONID=t0FKMnYDSzjRlshhs0sFX20nvnTZLQY8vnxNLkplyfYPcWgfb9y6!-1714998420;Version=1 Content-Type: application/xml Accept: application/xml If-Match: 1286494276437 <?xml version="1.0" encoding="UTF-8"?> <namespace resourceType="urn:oracle:wcps:property:namespace"> <name>Oracle</name> <createdOn>2010-10-07T17:31:16.437-0600</createdOn> <updatedOn>2010-10-07T17:31:16.437-0600</updatedOn> <propertyLocatorClassName>com.oracle.custom.MyPropertyLocator</propertyLocatorClassName> </namespace> Response: Status Code:200 Content-Length: 0 X-Oracle-RF-Token-Scheme: utoken X-Oracle-RF-Token: FC59cJkhnJPolzPwKsStfD0Dxjm8_w** X-Powered-By: Servlet/2.5 JSP/2.1 Cache-Control: no-cache X-Oracle-RF-Token-Location: header Date: Thu, 07 Oct 2010 23:31:16 GMT ETag: "1286494276833"
JSON
Request: PUT http://localhost:8891/wcps/api/property/namespaces/Oracle X-Oracle-RF-Token: FIxec1lmTFguxer9ZqZJpsXSnlZy_w** Cookie: JSESSIONID=WFGvMnyKP7nDBW1RQynhhphbQvWLDjLSbFJj2MQ1g6nFH2VQlgJ4!-609606431;Version=1 Content-Type: application/json Accept: application/json If-Match: 1286501066698 { "name" : "Oracle", "propertyLocatorClassName" : "com.oracle.custom.MyPropertyLocator", "createdOn" : "2010-10-07T19:24:26.698-0600", "updatedOn" : "2010-10-07T19:24:26.698-0600", "resourceType" : "urn:oracle:wcps:property:namespace" } Response: Status Code:200 Content-Length: 0 X-Oracle-RF-Token-Scheme: utoken X-Oracle-RF-Token: FIxec1lmTFguxer9ZqZJpsXSnlZy_w** X-Powered-By: Servlet/2.5 JSP/2.1 Cache-Control: no-cache X-Oracle-RF-Token-Location: header Date: Fri, 08 Oct 2010 01:24:26 GMT ETag: "1286501066808"
DeleteNamespace
XML
Request: DELETE http://localhost:8891/wcps/api/property/namespaces/Oracle X-Oracle-RF-Token: FC59cJkhnJPolzPwKsStfD0Dxjm8_w** Cookie: JSESSIONID=t0FKMnYDSzjRlshhs0sFX20nvnTZLQY8vnxNLkplyfYPcWgfb9y6!-1714998420;Version=1 Content-Type: application/xml Accept: application/xml If-Match: 1286494276833 Response: Status Code:204 Content-Length: 0 X-Oracle-RF-Token-Scheme: utoken X-Oracle-RF-Token: FC59cJkhnJPolzPwKsStfD0Dxjm8_w** X-Powered-By: Servlet/2.5 JSP/2.1 Connection: close X-Oracle-RF-Token-Location: header Date: Thu, 07 Oct 2010 23:31:17 GMT
JSON
Request: DELETE http://localhost:8891/wcps/api/property/namespaces/Oracle X-Oracle-RF-Token: FIxec1lmTFguxer9ZqZJpsXSnlZy_w** Cookie: JSESSIONID=WFGvMnyKP7nDBW1RQynhhphbQvWLDjLSbFJj2MQ1g6nFH2VQlgJ4!-609606431;Version=1 Content-Type: application/json Accept: application/json If-Match: 1286501066808 Response: Status Code:204 Content-Length: 0 X-Oracle-RF-Token-Scheme: utoken X-Oracle-RF-Token: FIxec1lmTFguxer9ZqZJpsXSnlZy_w** X-Powered-By: Servlet/2.5 JSP/2.1 Connection: close X-Oracle-RF-Token-Location: header Date: Fri, 08 Oct 2010 01:24:26 GMT
RetrieveAllNamespaces
XML
Request: GET http://localhost:8891/wcps/api/property/namespaces X-Oracle-RF-Token: FC59cJkhnJPolzPwKsStfD0Dxjm8_w** Cookie: JSESSIONID=t0FKMnYDSzjRlshhs0sFX20nvnTZLQY8vnxNLkplyfYPcWgfb9y6!-1714998420;Version=1 Content-Type: application/xml Accept: application/xml Response: Status Code:200 X-Oracle-RF-Token-Scheme: utoken X-Oracle-RF-Token: FC59cJkhnJPolzPwKsStfD0Dxjm8_w** X-Powered-By: Servlet/2.5 JSP/2.1 Cache-Control: no-cache X-Oracle-RF-Token-Location: header Transfer-Encoding: chunked Content-Type: application/xml Date: Thu, 07 Oct 2010 23:31:19 GMT <?xml version="1.0" encoding="UTF-8"?> <namespaces resourceType="urn:oracle:wcps:property:namespaces"> <links> <link capabilities="urn:oracle:restframework:create urn:oracle:restframework:read urn:oracle:restframework:delete" href="http://localhost:8891/wcps/api/property/namespaces" rel="self" resourceType="urn:oracle:wcps:property:namespaces" template="http://localhost:8891/wcps/api/property/namespaces?startIndex={startIndex}&q={q}&itemsPerPage={itemsPerPage}"/> <link capabilities="urn:oracle:restframework:create urn:oracle:restframework:read urn:oracle:restframework:delete" href="http://localhost:8891/wcps/api/property/namespaces?startIndex=10&itemsPerPage=10" rel="next" resourceType="urn:oracle:wcps:property:namespaces"/> </links> <itemsPerPage>10</itemsPerPage> <startIndex>0</startIndex> <totalCount>21</totalCount> <items> <namespace resourceType="urn:oracle:wcps:property:namespace"> <links> <link capabilities="urn:oracle:restframework:read urn:oracle:restframework:update urn:oracle:restframework:delete" href="http://localhost:8891/wcps/api/property/namespaces/JDEV" rel="self" resourceType="urn:oracle:wcps:property:namespace"/> <link capabilities="urn:oracle:restframework:create urn:oracle:restframework:read urn:oracle:restframework:delete" href="http://localhost:8891/wcps/api/property/namespaces/JDEV/propertysetdefinitions" resourceType="urn:oracle:wcps:property:propertysetdefinitions" template="http://localhost:8891/wcps/api/property/namespaces/JDEV/propertysetdefinitions?startIndex={startIndex}&q={q}&itemsPerPage={itemsPerPage}"/> <link capabilities="urn:oracle:restframework:create urn:oracle:restframework:read urn:oracle:restframework:delete" href="http://localhost:8891/wcps/api/property/namespaces/JDEV/propertydefinitions" resourceType="urn:oracle:wcps:property:propertydefinitions" template="http://localhost:8891/wcps/api/property/namespaces/JDEV/propertydefinitions?startIndex={startIndex}&q={q}&itemsPerPage={itemsPerPage}"/> <link capabilities="urn:oracle:restframework:read" resourceType="urn:oracle:wcps:property:propertysets" template="http://localhost:8891/wcps/api/property/namespaces/JDEV/propertysetdefinitions/{setDefinitionName}/propertysets?startIndex={startIndex}&dataFields={dataFields}&q={q}&itemsPerPage={itemsPerPage}"/> </links> <name>JDEV</name> <createdOn>2010-10-07T17:31:20.061-0600</createdOn> <updatedOn>2010-10-07T17:31:20.061-0600</updatedOn> <propertyLocatorClassName>oracle.wcps.conductor.scenario.persistence.impl.properties.MDSScenarioPropertyLocator</propertyLocatorClassName> <definitionLocatorClassName>oracle.wcps.property.persistence.mds.MDSDefinitionsLocator</definitionLocatorClassName> </namespace> <namespace resourceType="urn:oracle:wcps:property:namespace"> <links> <link capabilities="urn:oracle:restframework:read urn:oracle:restframework:update urn:oracle:restframework:delete" href="http://localhost:8891/wcps/api/property/namespaces/Oracle_0" rel="self" resourceType="urn:oracle:wcps:property:namespace"/> <link capabilities="urn:oracle:restframework:create urn:oracle:restframework:read urn:oracle:restframework:delete" href="http://localhost:8891/wcps/api/property/namespaces/Oracle_0/propertysetdefinitions" resourceType="urn:oracle:wcps:property:propertysetdefinitions" template="http://localhost:8891/wcps/api/property/namespaces/Oracle_0/propertysetdefinitions?startIndex={startIndex}&q={q}&itemsPerPage={itemsPerPage}"/> <link capabilities="urn:oracle:restframework:create urn:oracle:restframework:read urn:oracle:restframework:delete" href="http://localhost:8891/wcps/api/property/namespaces/Oracle_0/propertydefinitions" resourceType="urn:oracle:wcps:property:propertydefinitions" template="http://localhost:8891/wcps/api/property/namespaces/Oracle_0/propertydefinitions?startIndex={startIndex}&q={q}&itemsPerPage={itemsPerPage}"/> <link capabilities="urn:oracle:restframework:read" resourceType="urn:oracle:wcps:property:propertysets" template="http://localhost:8891/wcps/api/property/namespaces/Oracle_0/propertysetdefinitions/{setDefinitionName}/propertysets?startIndex={startIndex}&dataFields={dataFields}&q={q}&itemsPerPage={itemsPerPage}"/> </links> <name>Oracle_0</name> <createdOn>2010-10-07T17:31:17.318-0600</createdOn> <updatedOn>2010-10-07T17:31:17.318-0600</updatedOn> </namespace> <namespace resourceType="urn:oracle:wcps:property:namespace"> <links> <link capabilities="urn:oracle:restframework:read urn:oracle:restframework:update urn:oracle:restframework:delete" href="http://localhost:8891/wcps/api/property/namespaces/Oracle_1" rel="self" resourceType="urn:oracle:wcps:property:namespace"/> <link capabilities="urn:oracle:restframework:create urn:oracle:restframework:read urn:oracle:restframework:delete" href="http://localhost:8891/wcps/api/property/namespaces/Oracle_1/propertysetdefinitions" resourceType="urn:oracle:wcps:property:propertysetdefinitions" template="http://localhost:8891/wcps/api/property/namespaces/Oracle_1/propertysetdefinitions?startIndex={startIndex}&q={q}&itemsPerPage={itemsPerPage}"/> <link capabilities="urn:oracle:restframework:create urn:oracle:restframework:read urn:oracle:restframework:delete" href="http://localhost:8891/wcps/api/property/namespaces/Oracle_1/propertydefinitions" resourceType="urn:oracle:wcps:property:propertydefinitions" template="http://localhost:8891/wcps/api/property/namespaces/Oracle_1/propertydefinitions?startIndex={startIndex}&q={q}&itemsPerPage={itemsPerPage}"/> <link capabilities="urn:oracle:restframework:read" resourceType="urn:oracle:wcps:property:propertysets" template="http://localhost:8891/wcps/api/property/namespaces/Oracle_1/propertysetdefinitions/{setDefinitionName}/propertysets?startIndex={startIndex}&dataFields={dataFields}&q={q}&itemsPerPage={itemsPerPage}"/> </links> <name>Oracle_1</name> <createdOn>2010-10-07T17:31:17.568-0600</createdOn> <updatedOn>2010-10-07T17:31:17.568-0600</updatedOn> </namespace> <namespace resourceType="urn:oracle:wcps:property:namespace"> <links> <link capabilities="urn:oracle:restframework:read urn:oracle:restframework:update urn:oracle:restframework:delete" href="http://localhost:8891/wcps/api/property/namespaces/Oracle_2" rel="self" resourceType="urn:oracle:wcps:property:namespace"/> <link capabilities="urn:oracle:restframework:create urn:oracle:restframework:read urn:oracle:restframework:delete" href="http://localhost:8891/wcps/api/property/namespaces/Oracle_2/propertysetdefinitions" resourceType="urn:oracle:wcps:property:propertysetdefinitions" template="http://localhost:8891/wcps/api/property/namespaces/Oracle_2/propertysetdefinitions?startIndex={startIndex}&q={q}&itemsPerPage={itemsPerPage}"/> <link capabilities="urn:oracle:restframework:create urn:oracle:restframework:read urn:oracle:restframework:delete" href="http://localhost:8891/wcps/api/property/namespaces/Oracle_2/propertydefinitions" resourceType="urn:oracle:wcps:property:propertydefinitions" template="http://localhost:8891/wcps/api/property/namespaces/Oracle_2/propertydefinitions?startIndex={startIndex}&q={q}&itemsPerPage={itemsPerPage}"/> <link capabilities="urn:oracle:restframework:read" resourceType="urn:oracle:wcps:property:propertysets" template="http://localhost:8891/wcps/api/property/namespaces/Oracle_2/propertysetdefinitions/{setDefinitionName}/propertysets?startIndex={startIndex}&dataFields={dataFields}&q={q}&itemsPerPage={itemsPerPage}"/> </links> <name>Oracle_2</name> <createdOn>2010-10-07T17:31:17.807-0600</createdOn> <updatedOn>2010-10-07T17:31:17.807-0600</updatedOn> </namespace> <namespace resourceType="urn:oracle:wcps:property:namespace"> <links> <link capabilities="urn:oracle:restframework:read urn:oracle:restframework:update urn:oracle:restframework:delete" href="http://localhost:8891/wcps/api/property/namespaces/Oracle_3" rel="self" resourceType="urn:oracle:wcps:property:namespace"/> <link capabilities="urn:oracle:restframework:create urn:oracle:restframework:read urn:oracle:restframework:delete" href="http://localhost:8891/wcps/api/property/namespaces/Oracle_3/propertysetdefinitions" resourceType="urn:oracle:wcps:property:propertysetdefinitions" template="http://localhost:8891/wcps/api/property/namespaces/Oracle_3/propertysetdefinitions?startIndex={startIndex}&q={q}&itemsPerPage={itemsPerPage}"/> <link capabilities="urn:oracle:restframework:create urn:oracle:restframework:read urn:oracle:restframework:delete" href="http://localhost:8891/wcps/api/property/namespaces/Oracle_3/propertydefinitions" resourceType="urn:oracle:wcps:property:propertydefinitions" template="http://localhost:8891/wcps/api/property/namespaces/Oracle_3/propertydefinitions?startIndex={startIndex}&q={q}&itemsPerPage={itemsPerPage}"/> <link capabilities="urn:oracle:restframework:read" resourceType="urn:oracle:wcps:property:propertysets" template="http://localhost:8891/wcps/api/property/namespaces/Oracle_3/propertysetdefinitions/{setDefinitionName}/propertysets?startIndex={startIndex}&dataFields={dataFields}&q={q}&itemsPerPage={itemsPerPage}"/> </links> <name>Oracle_3</name> <createdOn>2010-10-07T17:31:18.066-0600</createdOn> <updatedOn>2010-10-07T17:31:18.066-0600</updatedOn> </namespace> <namespace resourceType="urn:oracle:wcps:property:namespace"> <links> <link capabilities="urn:oracle:restframework:read urn:oracle:restframework:update urn:oracle:restframework:delete" href="http://localhost:8891/wcps/api/property/namespaces/Oracle_4" rel="self" resourceType="urn:oracle:wcps:property:namespace"/> <link capabilities="urn:oracle:restframework:create urn:oracle:restframework:read urn:oracle:restframework:delete" href="http://localhost:8891/wcps/api/property/namespaces/Oracle_4/propertysetdefinitions" resourceType="urn:oracle:wcps:property:propertysetdefinitions" template="http://localhost:8891/wcps/api/property/namespaces/Oracle_4/propertysetdefinitions?startIndex={startIndex}&q={q}&itemsPerPage={itemsPerPage}"/> <link capabilities="urn:oracle:restframework:create urn:oracle:restframework:read urn:oracle:restframework:delete" href="http://localhost:8891/wcps/api/property/namespaces/Oracle_4/propertydefinitions" resourceType="urn:oracle:wcps:property:propertydefinitions" template="http://localhost:8891/wcps/api/property/namespaces/Oracle_4/propertydefinitions?startIndex={startIndex}&q={q}&itemsPerPage={itemsPerPage}"/> <link capabilities="urn:oracle:restframework:read" resourceType="urn:oracle:wcps:property:propertysets" template="http://localhost:8891/wcps/api/property/namespaces/Oracle_4/propertysetdefinitions/{setDefinitionName}/propertysets?startIndex={startIndex}&dataFields={dataFields}&q={q}&itemsPerPage={itemsPerPage}"/> </links> <name>Oracle_4</name> <createdOn>2010-10-07T17:31:18.319-0600</createdOn> <updatedOn>2010-10-07T17:31:18.319-0600</updatedOn> </namespace> <namespace resourceType="urn:oracle:wcps:property:namespace"> <links> <link capabilities="urn:oracle:restframework:read urn:oracle:restframework:update urn:oracle:restframework:delete" href="http://localhost:8891/wcps/api/property/namespaces/Oracle_5" rel="self" resourceType="urn:oracle:wcps:property:namespace"/> <link capabilities="urn:oracle:restframework:create urn:oracle:restframework:read urn:oracle:restframework:delete" href="http://localhost:8891/wcps/api/property/namespaces/Oracle_5/propertysetdefinitions" resourceType="urn:oracle:wcps:property:propertysetdefinitions" template="http://localhost:8891/wcps/api/property/namespaces/Oracle_5/propertysetdefinitions?startIndex={startIndex}&q={q}&itemsPerPage={itemsPerPage}"/> <link capabilities="urn:oracle:restframework:create urn:oracle:restframework:read urn:oracle:restframework:delete" href="http://localhost:8891/wcps/api/property/namespaces/Oracle_5/propertydefinitions" resourceType="urn:oracle:wcps:property:propertydefinitions" template="http://localhost:8891/wcps/api/property/namespaces/Oracle_5/propertydefinitions?startIndex={startIndex}&q={q}&itemsPerPage={itemsPerPage}"/> <link capabilities="urn:oracle:restframework:read" resourceType="urn:oracle:wcps:property:propertysets" template="http://localhost:8891/wcps/api/property/namespaces/Oracle_5/propertysetdefinitions/{setDefinitionName}/propertysets?startIndex={startIndex}&dataFields={dataFields}&q={q}&itemsPerPage={itemsPerPage}"/> </links> <name>Oracle_5</name> <createdOn>2010-10-07T17:31:18.572-0600</createdOn> <updatedOn>2010-10-07T17:31:18.572-0600</updatedOn> </namespace> <namespace resourceType="urn:oracle:wcps:property:namespace"> <links> <link capabilities="urn:oracle:restframework:read urn:oracle:restframework:update urn:oracle:restframework:delete" href="http://localhost:8891/wcps/api/property/namespaces/Oracle_6" rel="self" resourceType="urn:oracle:wcps:property:namespace"/> <link capabilities="urn:oracle:restframework:create urn:oracle:restframework:read urn:oracle:restframework:delete" href="http://localhost:8891/wcps/api/property/namespaces/Oracle_6/propertysetdefinitions" resourceType="urn:oracle:wcps:property:propertysetdefinitions" template="http://localhost:8891/wcps/api/property/namespaces/Oracle_6/propertysetdefinitions?startIndex={startIndex}&q={q}&itemsPerPage={itemsPerPage}"/> <link capabilities="urn:oracle:restframework:create urn:oracle:restframework:read urn:oracle:restframework:delete" href="http://localhost:8891/wcps/api/property/namespaces/Oracle_6/propertydefinitions" resourceType="urn:oracle:wcps:property:propertydefinitions" template="http://localhost:8891/wcps/api/property/namespaces/Oracle_6/propertydefinitions?startIndex={startIndex}&q={q}&itemsPerPage={itemsPerPage}"/> <link capabilities="urn:oracle:restframework:read" resourceType="urn:oracle:wcps:property:propertysets" template="http://localhost:8891/wcps/api/property/namespaces/Oracle_6/propertysetdefinitions/{setDefinitionName}/propertysets?startIndex={startIndex}&dataFields={dataFields}&q={q}&itemsPerPage={itemsPerPage}"/> </links> <name>Oracle_6</name> <createdOn>2010-10-07T17:31:18.813-0600</createdOn> <updatedOn>2010-10-07T17:31:18.813-0600</updatedOn> </namespace> <namespace resourceType="urn:oracle:wcps:property:namespace"> <links> <link capabilities="urn:oracle:restframework:read urn:oracle:restframework:update urn:oracle:restframework:delete" href="http://localhost:8891/wcps/api/property/namespaces/Oracle_7" rel="self" resourceType="urn:oracle:wcps:property:namespace"/> <link capabilities="urn:oracle:restframework:create urn:oracle:restframework:read urn:oracle:restframework:delete" href="http://localhost:8891/wcps/api/property/namespaces/Oracle_7/propertysetdefinitions" resourceType="urn:oracle:wcps:property:propertysetdefinitions" template="http://localhost:8891/wcps/api/property/namespaces/Oracle_7/propertysetdefinitions?startIndex={startIndex}&q={q}&itemsPerPage={itemsPerPage}"/> <link capabilities="urn:oracle:restframework:create urn:oracle:restframework:read urn:oracle:restframework:delete" href="http://localhost:8891/wcps/api/property/namespaces/Oracle_7/propertydefinitions" resourceType="urn:oracle:wcps:property:propertydefinitions" template="http://localhost:8891/wcps/api/property/namespaces/Oracle_7/propertydefinitions?startIndex={startIndex}&q={q}&itemsPerPage={itemsPerPage}"/> <link capabilities="urn:oracle:restframework:read" resourceType="urn:oracle:wcps:property:propertysets" template="http://localhost:8891/wcps/api/property/namespaces/Oracle_7/propertysetdefinitions/{setDefinitionName}/propertysets?startIndex={startIndex}&dataFields={dataFields}&q={q}&itemsPerPage={itemsPerPage}"/> </links> <name>Oracle_7</name> <createdOn>2010-10-07T17:31:19.084-0600</createdOn> <updatedOn>2010-10-07T17:31:19.084-0600</updatedOn> </namespace> <namespace resourceType="urn:oracle:wcps:property:namespace"> <links> <link capabilities="urn:oracle:restframework:read urn:oracle:restframework:update urn:oracle:restframework:delete" href="http://localhost:8891/wcps/api/property/namespaces/Oracle_8" rel="self" resourceType="urn:oracle:wcps:property:namespace"/> <link capabilities="urn:oracle:restframework:create urn:oracle:restframework:read urn:oracle:restframework:delete" href="http://localhost:8891/wcps/api/property/namespaces/Oracle_8/propertysetdefinitions" resourceType="urn:oracle:wcps:property:propertysetdefinitions" template="http://localhost:8891/wcps/api/property/namespaces/Oracle_8/propertysetdefinitions?startIndex={startIndex}&q={q}&itemsPerPage={itemsPerPage}"/> <link capabilities="urn:oracle:restframework:create urn:oracle:restframework:read urn:oracle:restframework:delete" href="http://localhost:8891/wcps/api/property/namespaces/Oracle_8/propertydefinitions" resourceType="urn:oracle:wcps:property:propertydefinitions" template="http://localhost:8891/wcps/api/property/namespaces/Oracle_8/propertydefinitions?startIndex={startIndex}&q={q}&itemsPerPage={itemsPerPage}"/> <link capabilities="urn:oracle:restframework:read" resourceType="urn:oracle:wcps:property:propertysets" template="http://localhost:8891/wcps/api/property/namespaces/Oracle_8/propertysetdefinitions/{setDefinitionName}/propertysets?startIndex={startIndex}&dataFields={dataFields}&q={q}&itemsPerPage={itemsPerPage}"/> </links> <name>Oracle_8</name> <createdOn>2010-10-07T17:31:19.328-0600</createdOn> <updatedOn>2010-10-07T17:31:19.328-0600</updatedOn> </namespace> </items> </namespaces>
JSON
Request: GET http://localhost:8891/wcps/api/property/namespaces X-Oracle-RF-Token: FIxec1lmTFguxer9ZqZJpsXSnlZy_w** Cookie: JSESSIONID=WFGvMnyKP7nDBW1RQynhhphbQvWLDjLSbFJj2MQ1g6nFH2VQlgJ4!-609606431;Version=1 Content-Type: application/json Accept: application/json Response: Status Code:200 X-Oracle-RF-Token-Scheme: utoken X-Oracle-RF-Token: FIxec1lmTFguxer9ZqZJpsXSnlZy_w** X-Powered-By: Servlet/2.5 JSP/2.1 Cache-Control: no-cache X-Oracle-RF-Token-Location: header Transfer-Encoding: chunked Content-Type: application/json Date: Fri, 08 Oct 2010 01:24:27 GMT { "namespaces" : [ { "name" : "JDEV", "createdOn" : "2010-10-07T19:24:28.114-0600", "propertyLocatorClassName" : "oracle.wcps.conductor.scenario.persistence.impl.properties.MDSScenarioPropertyLocator", "definitionLocatorClassName" : "oracle.wcps.property.persistence.mds.MDSDefinitionsLocator", "updatedOn" : "2010-10-07T19:24:28.114-0600", "resourceType" : "urn:oracle:wcps:property:namespace", "links" : [ { "resourceType" : "urn:oracle:wcps:property:namespace", "capabilities" : "urn:oracle:restframework:read urn:oracle:restframework:update urn:oracle:restframework:delete", "href" : "http://localhost:8891/wcps/api/property/namespaces/JDEV", "rel" : "self" }, { "template" : "http://localhost:8891/wcps/api/property/namespaces/JDEV/propertysetdefinitions?startIndex={startIndex}&q={q}&itemsPerPage={itemsPerPage}", "resourceType" : "urn:oracle:wcps:property:propertysetdefinitions", "capabilities" : "urn:oracle:restframework:create urn:oracle:restframework:read urn:oracle:restframework:delete", "href" : "http://localhost:8891/wcps/api/property/namespaces/JDEV/propertysetdefinitions" }, { "template" : "http://localhost:8891/wcps/api/property/namespaces/JDEV/propertydefinitions?startIndex={startIndex}&q={q}&itemsPerPage={itemsPerPage}", "resourceType" : "urn:oracle:wcps:property:propertydefinitions", "capabilities" : "urn:oracle:restframework:create urn:oracle:restframework:read urn:oracle:restframework:delete", "href" : "http://localhost:8891/wcps/api/property/namespaces/JDEV/propertydefinitions" }, { "template" : "http://localhost:8891/wcps/api/property/namespaces/JDEV/propertysetdefinitions/{setDefinitionName}/propertysets?startIndex={startIndex}&dataFields={dataFields}&q={q}&itemsPerPage={itemsPerPage}", "resourceType" : "urn:oracle:wcps:property:propertysets", "capabilities" : "urn:oracle:restframework:read" } ] }, { "name" : "Oracle_0", "createdOn" : "2010-10-07T19:24:26.907-0600", "updatedOn" : "2010-10-07T19:24:26.907-0600", "resourceType" : "urn:oracle:wcps:property:namespace", "links" : [ { "resourceType" : "urn:oracle:wcps:property:namespace", "capabilities" : "urn:oracle:restframework:read urn:oracle:restframework:update urn:oracle:restframework:delete", "href" : "http://localhost:8891/wcps/api/property/namespaces/Oracle_0", "rel" : "self" }, { "template" : "http://localhost:8891/wcps/api/property/namespaces/Oracle_0/propertysetdefinitions?startIndex={startIndex}&q={q}&itemsPerPage={itemsPerPage}", "resourceType" : "urn:oracle:wcps:property:propertysetdefinitions", "capabilities" : "urn:oracle:restframework:create urn:oracle:restframework:read urn:oracle:restframework:delete", "href" : "http://localhost:8891/wcps/api/property/namespaces/Oracle_0/propertysetdefinitions" }, { "template" : "http://localhost:8891/wcps/api/property/namespaces/Oracle_0/propertydefinitions?startIndex={startIndex}&q={q}&itemsPerPage={itemsPerPage}", "resourceType" : "urn:oracle:wcps:property:propertydefinitions", "capabilities" : "urn:oracle:restframework:create urn:oracle:restframework:read urn:oracle:restframework:delete", "href" : "http://localhost:8891/wcps/api/property/namespaces/Oracle_0/propertydefinitions" }, { "template" : "http://localhost:8891/wcps/api/property/namespaces/Oracle_0/propertysetdefinitions/{setDefinitionName}/propertysets?startIndex={startIndex}&dataFields={dataFields}&q={q}&itemsPerPage={itemsPerPage}", "resourceType" : "urn:oracle:wcps:property:propertysets", "capabilities" : "urn:oracle:restframework:read" } ] }, { "name" : "Oracle_1", "createdOn" : "2010-10-07T19:24:26.954-0600", "updatedOn" : "2010-10-07T19:24:26.954-0600", "resourceType" : "urn:oracle:wcps:property:namespace", "links" : [ { "resourceType" : "urn:oracle:wcps:property:namespace", "capabilities" : "urn:oracle:restframework:read urn:oracle:restframework:update urn:oracle:restframework:delete", "href" : "http://localhost:8891/wcps/api/property/namespaces/Oracle_1", "rel" : "self" }, { "template" : "http://localhost:8891/wcps/api/property/namespaces/Oracle_1/propertysetdefinitions?startIndex={startIndex}&q={q}&itemsPerPage={itemsPerPage}", "resourceType" : "urn:oracle:wcps:property:propertysetdefinitions", "capabilities" : "urn:oracle:restframework:create urn:oracle:restframework:read urn:oracle:restframework:delete", "href" : "http://localhost:8891/wcps/api/property/namespaces/Oracle_1/propertysetdefinitions" }, { "template" : "http://localhost:8891/wcps/api/property/namespaces/Oracle_1/propertydefinitions?startIndex={startIndex}&q={q}&itemsPerPage={itemsPerPage}", "resourceType" : "urn:oracle:wcps:property:propertydefinitions", "capabilities" : "urn:oracle:restframework:create urn:oracle:restframework:read urn:oracle:restframework:delete", "href" : "http://localhost:8891/wcps/api/property/namespaces/Oracle_1/propertydefinitions" }, { "template" : "http://localhost:8891/wcps/api/property/namespaces/Oracle_1/propertysetdefinitions/{setDefinitionName}/propertysets?startIndex={startIndex}&dataFields={dataFields}&q={q}&itemsPerPage={itemsPerPage}", "resourceType" : "urn:oracle:wcps:property:propertysets", "capabilities" : "urn:oracle:restframework:read" } ] }, { "name" : "Oracle_2", "createdOn" : "2010-10-07T19:24:27.034-0600", "updatedOn" : "2010-10-07T19:24:27.034-0600", "resourceType" : "urn:oracle:wcps:property:namespace", "links" : [ { "resourceType" : "urn:oracle:wcps:property:namespace", "capabilities" : "urn:oracle:restframework:read urn:oracle:restframework:update urn:oracle:restframework:delete", "href" : "http://localhost:8891/wcps/api/property/namespaces/Oracle_2", "rel" : "self" }, { "template" : "http://localhost:8891/wcps/api/property/namespaces/Oracle_2/propertysetdefinitions?startIndex={startIndex}&q={q}&itemsPerPage={itemsPerPage}", "resourceType" : "urn:oracle:wcps:property:propertysetdefinitions", "capabilities" : "urn:oracle:restframework:create urn:oracle:restframework:read urn:oracle:restframework:delete", "href" : "http://localhost:8891/wcps/api/property/namespaces/Oracle_2/propertysetdefinitions" }, { "template" : "http://localhost:8891/wcps/api/property/namespaces/Oracle_2/propertydefinitions?startIndex={startIndex}&q={q}&itemsPerPage={itemsPerPage}", "resourceType" : "urn:oracle:wcps:property:propertydefinitions", "capabilities" : "urn:oracle:restframework:create urn:oracle:restframework:read urn:oracle:restframework:delete", "href" : "http://localhost:8891/wcps/api/property/namespaces/Oracle_2/propertydefinitions" }, { "template" : "http://localhost:8891/wcps/api/property/namespaces/Oracle_2/propertysetdefinitions/{setDefinitionName}/propertysets?startIndex={startIndex}&dataFields={dataFields}&q={q}&itemsPerPage={itemsPerPage}", "resourceType" : "urn:oracle:wcps:property:propertysets", "capabilities" : "urn:oracle:restframework:read" } ] }, { "name" : "Oracle_3", "createdOn" : "2010-10-07T19:24:27.191-0600", "updatedOn" : "2010-10-07T19:24:27.191-0600", "resourceType" : "urn:oracle:wcps:property:namespace", "links" : [ { "resourceType" : "urn:oracle:wcps:property:namespace", "capabilities" : "urn:oracle:restframework:read urn:oracle:restframework:update urn:oracle:restframework:delete", "href" : "http://localhost:8891/wcps/api/property/namespaces/Oracle_3", "rel" : "self" }, { "template" : "http://localhost:8891/wcps/api/property/namespaces/Oracle_3/propertysetdefinitions?startIndex={startIndex}&q={q}&itemsPerPage={itemsPerPage}", "resourceType" : "urn:oracle:wcps:property:propertysetdefinitions", "capabilities" : "urn:oracle:restframework:create urn:oracle:restframework:read urn:oracle:restframework:delete", "href" : "http://localhost:8891/wcps/api/property/namespaces/Oracle_3/propertysetdefinitions" }, { "template" : "http://localhost:8891/wcps/api/property/namespaces/Oracle_3/propertydefinitions?startIndex={startIndex}&q={q}&itemsPerPage={itemsPerPage}", "resourceType" : "urn:oracle:wcps:property:propertydefinitions", "capabilities" : "urn:oracle:restframework:create urn:oracle:restframework:read urn:oracle:restframework:delete", "href" : "http://localhost:8891/wcps/api/property/namespaces/Oracle_3/propertydefinitions" }, { "template" : "http://localhost:8891/wcps/api/property/namespaces/Oracle_3/propertysetdefinitions/{setDefinitionName}/propertysets?startIndex={startIndex}&dataFields={dataFields}&q={q}&itemsPerPage={itemsPerPage}", "resourceType" : "urn:oracle:wcps:property:propertysets", "capabilities" : "urn:oracle:restframework:read" } ] }, { "name" : "Oracle_4", "createdOn" : "2010-10-07T19:24:27.259-0600", "updatedOn" : "2010-10-07T19:24:27.259-0600", "resourceType" : "urn:oracle:wcps:property:namespace", "links" : [ { "resourceType" : "urn:oracle:wcps:property:namespace", "capabilities" : "urn:oracle:restframework:read urn:oracle:restframework:update urn:oracle:restframework:delete", "href" : "http://localhost:8891/wcps/api/property/namespaces/Oracle_4", "rel" : "self" }, { "template" : "http://localhost:8891/wcps/api/property/namespaces/Oracle_4/propertysetdefinitions?startIndex={startIndex}&q={q}&itemsPerPage={itemsPerPage}", "resourceType" : "urn:oracle:wcps:property:propertysetdefinitions", "capabilities" : "urn:oracle:restframework:create urn:oracle:restframework:read urn:oracle:restframework:delete", "href" : "http://localhost:8891/wcps/api/property/namespaces/Oracle_4/propertysetdefinitions" }, { "template" : "http://localhost:8891/wcps/api/property/namespaces/Oracle_4/propertydefinitions?startIndex={startIndex}&q={q}&itemsPerPage={itemsPerPage}", "resourceType" : "urn:oracle:wcps:property:propertydefinitions", "capabilities" : "urn:oracle:restframework:create urn:oracle:restframework:read urn:oracle:restframework:delete", "href" : "http://localhost:8891/wcps/api/property/namespaces/Oracle_4/propertydefinitions" }, { "template" : "http://localhost:8891/wcps/api/property/namespaces/Oracle_4/propertysetdefinitions/{setDefinitionName}/propertysets?startIndex={startIndex}&dataFields={dataFields}&q={q}&itemsPerPage={itemsPerPage}", "resourceType" : "urn:oracle:wcps:property:propertysets", "capabilities" : "urn:oracle:restframework:read" } ] }, { "name" : "Oracle_5", "createdOn" : "2010-10-07T19:24:27.359-0600", "updatedOn" : "2010-10-07T19:24:27.359-0600", "resourceType" : "urn:oracle:wcps:property:namespace", "links" : [ { "resourceType" : "urn:oracle:wcps:property:namespace", "capabilities" : "urn:oracle:restframework:read urn:oracle:restframework:update urn:oracle:restframework:delete", "href" : "http://localhost:8891/wcps/api/property/namespaces/Oracle_5", "rel" : "self" }, { "template" : "http://localhost:8891/wcps/api/property/namespaces/Oracle_5/propertysetdefinitions?startIndex={startIndex}&q={q}&itemsPerPage={itemsPerPage}", "resourceType" : "urn:oracle:wcps:property:propertysetdefinitions", "capabilities" : "urn:oracle:restframework:create urn:oracle:restframework:read urn:oracle:restframework:delete", "href" : "http://localhost:8891/wcps/api/property/namespaces/Oracle_5/propertysetdefinitions" }, { "template" : "http://localhost:8891/wcps/api/property/namespaces/Oracle_5/propertydefinitions?startIndex={startIndex}&q={q}&itemsPerPage={itemsPerPage}", "resourceType" : "urn:oracle:wcps:property:propertydefinitions", "capabilities" : "urn:oracle:restframework:create urn:oracle:restframework:read urn:oracle:restframework:delete", "href" : "http://localhost:8891/wcps/api/property/namespaces/Oracle_5/propertydefinitions" }, { "template" : "http://localhost:8891/wcps/api/property/namespaces/Oracle_5/propertysetdefinitions/{setDefinitionName}/propertysets?startIndex={startIndex}&dataFields={dataFields}&q={q}&itemsPerPage={itemsPerPage}", "resourceType" : "urn:oracle:wcps:property:propertysets", "capabilities" : "urn:oracle:restframework:read" } ] }, { "name" : "Oracle_6", "createdOn" : "2010-10-07T19:24:27.409-0600", "updatedOn" : "2010-10-07T19:24:27.409-0600", "resourceType" : "urn:oracle:wcps:property:namespace", "links" : [ { "resourceType" : "urn:oracle:wcps:property:namespace", "capabilities" : "urn:oracle:restframework:read urn:oracle:restframework:update urn:oracle:restframework:delete", "href" : "http://localhost:8891/wcps/api/property/namespaces/Oracle_6", "rel" : "self" }, { "template" : "http://localhost:8891/wcps/api/property/namespaces/Oracle_6/propertysetdefinitions?startIndex={startIndex}&q={q}&itemsPerPage={itemsPerPage}", "resourceType" : "urn:oracle:wcps:property:propertysetdefinitions", "capabilities" : "urn:oracle:restframework:create urn:oracle:restframework:read urn:oracle:restframework:delete", "href" : "http://localhost:8891/wcps/api/property/namespaces/Oracle_6/propertysetdefinitions" }, { "template" : "http://localhost:8891/wcps/api/property/namespaces/Oracle_6/propertydefinitions?startIndex={startIndex}&q={q}&itemsPerPage={itemsPerPage}", "resourceType" : "urn:oracle:wcps:property:propertydefinitions", "capabilities" : "urn:oracle:restframework:create urn:oracle:restframework:read urn:oracle:restframework:delete", "href" : "http://localhost:8891/wcps/api/property/namespaces/Oracle_6/propertydefinitions" }, { "template" : "http://localhost:8891/wcps/api/property/namespaces/Oracle_6/propertysetdefinitions/{setDefinitionName}/propertysets?startIndex={startIndex}&dataFields={dataFields}&q={q}&itemsPerPage={itemsPerPage}", "resourceType" : "urn:oracle:wcps:property:propertysets", "capabilities" : "urn:oracle:restframework:read" } ] }, { "name" : "Oracle_7", "createdOn" : "2010-10-07T19:24:27.463-0600", "updatedOn" : "2010-10-07T19:24:27.463-0600", "resourceType" : "urn:oracle:wcps:property:namespace", "links" : [ { "resourceType" : "urn:oracle:wcps:property:namespace", "capabilities" : "urn:oracle:restframework:read urn:oracle:restframework:update urn:oracle:restframework:delete", "href" : "http://localhost:8891/wcps/api/property/namespaces/Oracle_7", "rel" : "self" }, { "template" : "http://localhost:8891/wcps/api/property/namespaces/Oracle_7/propertysetdefinitions?startIndex={startIndex}&q={q}&itemsPerPage={itemsPerPage}", "resourceType" : "urn:oracle:wcps:property:propertysetdefinitions", "capabilities" : "urn:oracle:restframework:create urn:oracle:restframework:read urn:oracle:restframework:delete", "href" : "http://localhost:8891/wcps/api/property/namespaces/Oracle_7/propertysetdefinitions" }, { "template" : "http://localhost:8891/wcps/api/property/namespaces/Oracle_7/propertydefinitions?startIndex={startIndex}&q={q}&itemsPerPage={itemsPerPage}", "resourceType" : "urn:oracle:wcps:property:propertydefinitions", "capabilities" : "urn:oracle:restframework:create urn:oracle:restframework:read urn:oracle:restframework:delete", "href" : "http://localhost:8891/wcps/api/property/namespaces/Oracle_7/propertydefinitions" }, { "template" : "http://localhost:8891/wcps/api/property/namespaces/Oracle_7/propertysetdefinitions/{setDefinitionName}/propertysets?startIndex={startIndex}&dataFields={dataFields}&q={q}&itemsPerPage={itemsPerPage}", "resourceType" : "urn:oracle:wcps:property:propertysets", "capabilities" : "urn:oracle:restframework:read" } ] }, { "name" : "Oracle_8", "createdOn" : "2010-10-07T19:24:27.543-0600", "updatedOn" : "2010-10-07T19:24:27.543-0600", "resourceType" : "urn:oracle:wcps:property:namespace", "links" : [ { "resourceType" : "urn:oracle:wcps:property:namespace", "capabilities" : "urn:oracle:restframework:read urn:oracle:restframework:update urn:oracle:restframework:delete", "href" : "http://localhost:8891/wcps/api/property/namespaces/Oracle_8", "rel" : "self" }, { "template" : "http://localhost:8891/wcps/api/property/namespaces/Oracle_8/propertysetdefinitions?startIndex={startIndex}&q={q}&itemsPerPage={itemsPerPage}", "resourceType" : "urn:oracle:wcps:property:propertysetdefinitions", "capabilities" : "urn:oracle:restframework:create urn:oracle:restframework:read urn:oracle:restframework:delete", "href" : "http://localhost:8891/wcps/api/property/namespaces/Oracle_8/propertysetdefinitions" }, { "template" : "http://localhost:8891/wcps/api/property/namespaces/Oracle_8/propertydefinitions?startIndex={startIndex}&q={q}&itemsPerPage={itemsPerPage}", "resourceType" : "urn:oracle:wcps:property:propertydefinitions", "capabilities" : "urn:oracle:restframework:create urn:oracle:restframework:read urn:oracle:restframework:delete", "href" : "http://localhost:8891/wcps/api/property/namespaces/Oracle_8/propertydefinitions" }, { "template" : "http://localhost:8891/wcps/api/property/namespaces/Oracle_8/propertysetdefinitions/{setDefinitionName}/propertysets?startIndex={startIndex}&dataFields={dataFields}&q={q}&itemsPerPage={itemsPerPage}", "resourceType" : "urn:oracle:wcps:property:propertysets", "capabilities" : "urn:oracle:restframework:read" } ] } ], "totalCount" : 21, "startIndex" : 0, "itemsPerPage" : 10, "resourceType" : "urn:oracle:wcps:property:namespaces", "links" : [ { "template" : "http://localhost:8891/wcps/api/property/namespaces?startIndex={startIndex}&q={q}&itemsPerPage={itemsPerPage}", "resourceType" : "urn:oracle:wcps:property:namespaces", "capabilities" : "urn:oracle:restframework:create urn:oracle:restframework:read urn:oracle:restframework:delete", "href" : "http://localhost:8891/wcps/api/property/namespaces", "rel" : "self" }, { "resourceType" : "urn:oracle:wcps:property:namespaces", "capabilities" : "urn:oracle:restframework:create urn:oracle:restframework:read urn:oracle:restframework:delete", "href" : "http://localhost:8891/wcps/api/property/namespaces?startIndex=10&itemsPerPage=10", "rel" : "next" } ] }
DeleteAllNamespaces
XML
Request: DELETE http://localhost:8891/wcps/api/property/namespaces X-Oracle-RF-Token: FC59cJkhnJPolzPwKsStfD0Dxjm8_w** Cookie: JSESSIONID=t0FKMnYDSzjRlshhs0sFX20nvnTZLQY8vnxNLkplyfYPcWgfb9y6!-1714998420;Version=1 Content-Type: application/xml Accept: application/xml Response: Status Code:204 Content-Length: 0 X-Oracle-RF-Token-Scheme: utoken X-Oracle-RF-Token: FC59cJkhnJPolzPwKsStfD0Dxjm8_w** X-Powered-By: Servlet/2.5 JSP/2.1 Connection: close X-Oracle-RF-Token-Location: header Date: Thu, 07 Oct 2010 23:31:17 GMT
JSON
Request: DELETE http://localhost:8891/wcps/api/property/namespaces X-Oracle-RF-Token: FIxec1lmTFguxer9ZqZJpsXSnlZy_w** Cookie: JSESSIONID=WFGvMnyKP7nDBW1RQynhhphbQvWLDjLSbFJj2MQ1g6nFH2VQlgJ4!-609606431;Version=1 Content-Type: application/json Accept: application/json Response: Status Code:204 X-Oracle-RF-Token-Scheme: utoken X-Oracle-RF-Token: FIxec1lmTFguxer9ZqZJpsXSnlZy_w** X-Powered-By: Servlet/2.5 JSP/2.1 Connection: close X-Oracle-RF-Token-Location: header Content-Type: application/json Date: Fri, 08 Oct 2010 01:24:28 GMT
This section contains the following subsections:
Section 62.4.3.3.1, "Create Property Definition - Create Integer Property Definition"
Section 62.4.3.3.2, "Create Property Definition - Create Integer Array Property Definition"
CreateIntPD
XML
Request: POST http://localhost:8891/wcps/api/property/namespaces/Oracle/propertydefinitions X-Oracle-RF-Token: FC59cJkhnJPolzPwKsStfD0Dxjm8_w** Cookie: JSESSIONID=ZfhzMnYQz7pg4gzv5wZV1srvy3yDTsG4J4090X1GnHhrQpCSTkG2!-1714998420;Version=1 Content-Type: application/xml Accept: application/xml <?xml version="1.0" encoding="UTF-8"?> <propertyDefinition resourceType="urn:oracle:wcps:property:propertydefinition"> <namespaceName>Oracle</namespaceName> <name>Integer_Def</name> <type>INT</type> <restricted>false</restricted> <defaultValues/> </propertyDefinition> Response: Status Code:201 Content-Length: 678 X-Oracle-RF-Token-Scheme: utoken X-Oracle-RF-Token: FC59cJkhnJPolzPwKsStfD0Dxjm8_w** X-Powered-By: Servlet/2.5 JSP/2.1 Cache-Control: no-cache X-Oracle-RF-Token-Location: header Content-Type: application/xml Location: http://localhost:8891/wcps/api/property/namespaces/Oracle/propertydefinitions/Integer_Def Date: Thu, 07 Oct 2010 23:31:29 GMT ETag: "1286494289263" <?xml version="1.0" encoding="UTF-8"?> <propertyDefinition resourceType="urn:oracle:wcps:property:propertydefinition"> <links> <link capabilities="urn:oracle:restframework:read urn:oracle:restframework:update urn:oracle:restframework:delete" href="http://localhost:8891/wcps/api/property/namespaces/Oracle/propertydefinitions/Integer_Def" rel="self" resourceType="urn:oracle:wcps:property:propertydefinition"/> </links> <namespaceName>Oracle</namespaceName> <name>Integer_Def</name> <createdOn>2010-10-07T17:31:29.263-0600</createdOn> <updatedOn>2010-10-07T17:31:29.263-0600</updatedOn> <type>INT</type> <restricted>false</restricted> <defaultValues/> </propertyDefinition>
JSON
Request: POST http://localhost:8891/wcps/api/property/namespaces/Oracle/propertydefinitions X-Oracle-RF-Token: FIxec1lmTFguxer9ZqZJpsXSnlZy_w** Cookie: JSESSIONID=GSw4MnyYTw87Q6yCBb2H9F0JL6kLJwjrqYv3b72LtDMQGdLKPGRc!-609606431;Version=1 Content-Type: application/json Accept: application/json { "name" : "Integer_Def", "type" : "INT", "namespaceName" : "Oracle", "restricted" : false, "defaultValues" : [ ], "resourceType" : "urn:oracle:wcps:property:propertydefinition" } Response: Status Code:201 X-Oracle-RF-Token-Scheme: utoken X-Oracle-RF-Token: FIxec1lmTFguxer9ZqZJpsXSnlZy_w** X-Powered-By: Servlet/2.5 JSP/2.1 Cache-Control: no-cache X-Oracle-RF-Token-Location: header Transfer-Encoding: chunked Content-Type: application/json Location: http://localhost:8891/wcps/api/property/namespaces/Oracle/propertydefinitions/Integer_Def Date: Fri, 08 Oct 2010 01:24:41 GMT ETag: "1286501081086" { "name" : "Integer_Def", "type" : "INT", "namespaceName" : "Oracle", "defaultValues" : [ ], "createdOn" : "2010-10-07T19:24:41.086-0600", "updatedOn" : "2010-10-07T19:24:41.086-0600", "restricted" : false, "resourceType" : "urn:oracle:wcps:property:propertydefinition", "links" : [ { "resourceType" : "urn:oracle:wcps:property:propertydefinition", "capabilities" : "urn:oracle:restframework:read urn:oracle:restframework:update urn:oracle:restframework:delete", "href" : "http://localhost:8891/wcps/api/property/namespaces/Oracle/propertydefinitions/Integer_Def", "rel" : "self" } ] }
CreateIntArrPD
XML
Request: POST http://localhost:8891/wcps/api/property/namespaces/Oracle/propertydefinitions X-Oracle-RF-Token: FC59cJkhnJPolzPwKsStfD0Dxjm8_w** Cookie: JSESSIONID=ZfhzMnYQz7pg4gzv5wZV1srvy3yDTsG4J4090X1GnHhrQpCSTkG2!-1714998420;Version=1 Content-Type: application/xml Accept: application/xml <?xml version="1.0" encoding="UTF-8"?> <propertyDefinition resourceType="urn:oracle:wcps:property:propertydefinition"> <namespaceName>Oracle</namespaceName> <name>Integer_Array_Def</name> <type>INT_ARRAY</type> <restricted>true</restricted> <restrictedValues> <integer>1</integer> <integer>2</integer> <integer>3</integer> <integer>4</integer> <integer>5</integer> </restrictedValues> <defaultValues> <integer>1</integer> <integer>2</integer> </defaultValues> </propertyDefinition> Response: Status Code:201 Content-Length: 887 X-Oracle-RF-Token-Scheme: utoken X-Oracle-RF-Token: FC59cJkhnJPolzPwKsStfD0Dxjm8_w** X-Powered-By: Servlet/2.5 JSP/2.1 Cache-Control: no-cache X-Oracle-RF-Token-Location: header Content-Type: application/xml Location: http://localhost:8891/wcps/api/property/namespaces/Oracle/propertydefinitions/Integer_Array_Def Date: Thu, 07 Oct 2010 23:31:29 GMT ETag: "1286494289494" <?xml version="1.0" encoding="UTF-8"?> <propertyDefinition resourceType="urn:oracle:wcps:property:propertydefinition"> <links> <link capabilities="urn:oracle:restframework:read urn:oracle:restframework:update urn:oracle:restframework:delete" href="http://localhost:8891/wcps/api/property/namespaces/Oracle/propertydefinitions/Integer_Array_Def" rel="self" resourceType="urn:oracle:wcps:property:propertydefinition"/> </links> <namespaceName>Oracle</namespaceName> <name>Integer_Array_Def</name> <createdOn>2010-10-07T17:31:29.494-0600</createdOn> <updatedOn>2010-10-07T17:31:29.494-0600</updatedOn> <type>INT_ARRAY</type> <restricted>true</restricted> <restrictedValues> <integer>1</integer> <integer>2</integer> <integer>3</integer> <integer>4</integer> <integer>5</integer> </restrictedValues> <defaultValues> <integer>1</integer> <integer>2</integer> </defaultValues> </propertyDefinition>
JSON
Request: POST http://localhost:8891/wcps/api/property/namespaces/Oracle/propertydefinitions X-Oracle-RF-Token: FIxec1lmTFguxer9ZqZJpsXSnlZy_w** Cookie: JSESSIONID=GSw4MnyYTw87Q6yCBb2H9F0JL6kLJwjrqYv3b72LtDMQGdLKPGRc!-609606431;Version=1 Content-Type: application/json Accept: application/json { "name" : "Integer_Array_Def", "type" : "INT_ARRAY", "namespaceName" : "Oracle", "restricted" : true, "restrictedValues" : [ { "concreteType" : "urn:oracle:wcps:property:internal:jaxrs:model:integer-value", "value" : 1 }, { "concreteType" : "urn:oracle:wcps:property:internal:jaxrs:model:integer-value", "value" : 2 }, { "concreteType" : "urn:oracle:wcps:property:internal:jaxrs:model:integer-value", "value" : 3 }, { "concreteType" : "urn:oracle:wcps:property:internal:jaxrs:model:integer-value", "value" : 4 }, { "concreteType" : "urn:oracle:wcps:property:internal:jaxrs:model:integer-value", "value" : 5 } ], "defaultValues" : [ { "concreteType" : "urn:oracle:wcps:property:internal:jaxrs:model:integer-value", "value" : 1 }, { "concreteType" : "urn:oracle:wcps:property:internal:jaxrs:model:integer-value", "value" : 2 } ], "resourceType" : "urn:oracle:wcps:property:propertydefinition" } Response: Status Code:201 X-Oracle-RF-Token-Scheme: utoken X-Oracle-RF-Token: FIxec1lmTFguxer9ZqZJpsXSnlZy_w** X-Powered-By: Servlet/2.5 JSP/2.1 Cache-Control: no-cache X-Oracle-RF-Token-Location: header Transfer-Encoding: chunked Content-Type: application/json Location: http://localhost:8891/wcps/api/property/namespaces/Oracle/propertydefinitions/Integer_Array_Def Date: Fri, 08 Oct 2010 01:24:41 GMT ETag: "1286501081123" { "name" : "Integer_Array_Def", "type" : "INT_ARRAY", "namespaceName" : "Oracle", "defaultValues" : [ { "concreteType" : "urn:oracle:wcps:property:internal:jaxrs:model:integer-value", "value" : 1 }, { "concreteType" : "urn:oracle:wcps:property:internal:jaxrs:model:integer-value", "value" : 2 } ], "createdOn" : "2010-10-07T19:24:41.123-0600", "updatedOn" : "2010-10-07T19:24:41.123-0600", "restricted" : true, "restrictedValues" : [ { "concreteType" : "urn:oracle:wcps:property:internal:jaxrs:model:integer-value", "value" : 1 }, { "concreteType" : "urn:oracle:wcps:property:internal:jaxrs:model:integer-value", "value" : 2 }, { "concreteType" : "urn:oracle:wcps:property:internal:jaxrs:model:integer-value", "value" : 3 }, { "concreteType" : "urn:oracle:wcps:property:internal:jaxrs:model:integer-value", "value" : 4 }, { "concreteType" : "urn:oracle:wcps:property:internal:jaxrs:model:integer-value", "value" : 5 } ], "resourceType" : "urn:oracle:wcps:property:propertydefinition", "links" : [ { "resourceType" : "urn:oracle:wcps:property:propertydefinition", "capabilities" : "urn:oracle:restframework:read urn:oracle:restframework:update urn:oracle:restframework:delete", "href" : "http://localhost:8891/wcps/api/property/namespaces/Oracle/propertydefinitions/Integer_Array_Def", "rel" : "self" } ] }
RetrievePD
XML
Request: GET http://localhost:8891/wcps/api/property/namespaces/Oracle/propertydefinitions/Integer_Def X-Oracle-RF-Token: FC59cJkhnJPolzPwKsStfD0Dxjm8_w** Cookie: JSESSIONID=ZfhzMnYQz7pg4gzv5wZV1srvy3yDTsG4J4090X1GnHhrQpCSTkG2!-1714998420;Version=1 Content-Type: application/xml Accept: application/xml Response: Status Code:200 Content-Length: 743 X-Oracle-RF-Token-Scheme: utoken X-Oracle-RF-Token: FC59cJkhnJPolzPwKsStfD0Dxjm8_w** X-Powered-By: Servlet/2.5 JSP/2.1 Cache-Control: no-cache X-Oracle-RF-Token-Location: header Content-Type: application/xml Date: Thu, 07 Oct 2010 23:31:29 GMT ETag: "1286494289862" <?xml version="1.0" encoding="UTF-8"?> <propertyDefinition resourceType="urn:oracle:wcps:property:propertydefinition"> <links> <link capabilities="urn:oracle:restframework:read urn:oracle:restframework:update urn:oracle:restframework:delete" href="http://localhost:8891/wcps/api/property/namespaces/Oracle/propertydefinitions/Integer_Def" rel="self" resourceType="urn:oracle:wcps:property:propertydefinition"/> </links> <namespaceName>Oracle</namespaceName> <name>Integer_Def</name> <description>Defines an integer property value type</description> <createdOn>2010-10-07T17:31:29.263-0600</createdOn> <updatedOn>2010-10-07T17:31:29.862-0600</updatedOn> <type>INT</type> <restricted>false</restricted> <defaultValues/> </propertyDefinition>
JSON
Request: GET http://localhost:8891/wcps/api/property/namespaces/Oracle/propertydefinitions/Integer_Def X-Oracle-RF-Token: FIxec1lmTFguxer9ZqZJpsXSnlZy_w** Cookie: JSESSIONID=GSw4MnyYTw87Q6yCBb2H9F0JL6kLJwjrqYv3b72LtDMQGdLKPGRc!-609606431;Version=1 Content-Type: application/json Accept: application/json Response: Status Code:200 X-Oracle-RF-Token-Scheme: utoken X-Oracle-RF-Token: FIxec1lmTFguxer9ZqZJpsXSnlZy_w** X-Powered-By: Servlet/2.5 JSP/2.1 Cache-Control: no-cache X-Oracle-RF-Token-Location: header Transfer-Encoding: chunked Content-Type: application/json Date: Fri, 08 Oct 2010 01:24:41 GMT ETag: "1286501081172" { "name" : "Integer_Def", "type" : "INT", "description" : "Defines an integer property value type", "namespaceName" : "Oracle", "defaultValues" : [ ], "createdOn" : "2010-10-07T19:24:41.086-0600", "updatedOn" : "2010-10-07T19:24:41.172-0600", "restricted" : false, "resourceType" : "urn:oracle:wcps:property:propertydefinition", "links" : [ { "resourceType" : "urn:oracle:wcps:property:propertydefinition", "capabilities" : "urn:oracle:restframework:read urn:oracle:restframework:update urn:oracle:restframework:delete", "href" : "http://localhost:8891/wcps/api/property/namespaces/Oracle/propertydefinitions/Integer_Def", "rel" : "self" } ] }
UpdatePD
XML
Request: PUT http://localhost:8891/wcps/api/property/namespaces/Oracle/propertydefinitions/Integer_Def X-Oracle-RF-Token: FC59cJkhnJPolzPwKsStfD0Dxjm8_w** Cookie: JSESSIONID=ZfhzMnYQz7pg4gzv5wZV1srvy3yDTsG4J4090X1GnHhrQpCSTkG2!-1714998420;Version=1 Content-Type: application/xml Accept: application/xml If-Match: 1286494289263 <?xml version="1.0" encoding="UTF-8"?> <propertyDefinition resourceType="urn:oracle:wcps:property:propertydefinition"> <namespaceName>Oracle</namespaceName> <name>Integer_Def</name> <description>Defines an integer property value type</description> <createdOn>2010-10-07T17:31:29.263-0600</createdOn> <updatedOn>2010-10-07T17:31:29.263-0600</updatedOn> <type>INT</type> <restricted>false</restricted> <defaultValues/> </propertyDefinition> Response: Status Code:200 Content-Length: 0 X-Oracle-RF-Token-Scheme: utoken X-Oracle-RF-Token: FC59cJkhnJPolzPwKsStfD0Dxjm8_w** X-Powered-By: Servlet/2.5 JSP/2.1 Cache-Control: no-cache X-Oracle-RF-Token-Location: header Date: Thu, 07 Oct 2010 23:31:29 GMT ETag: "1286494289862"
JSON
Request: PUT http://localhost:8891/wcps/api/property/namespaces/Oracle/propertydefinitions/Integer_Def X-Oracle-RF-Token: FIxec1lmTFguxer9ZqZJpsXSnlZy_w** Cookie: JSESSIONID=GSw4MnyYTw87Q6yCBb2H9F0JL6kLJwjrqYv3b72LtDMQGdLKPGRc!-609606431;Version=1 Content-Type: application/json Accept: application/json If-Match: 1286501081086 { "name" : "Integer_Def", "type" : "INT", "description" : "Defines an integer property value type", "namespaceName" : "Oracle", "createdOn" : "2010-10-07T19:24:41.086-0600", "updatedOn" : "2010-10-07T19:24:41.086-0600", "restricted" : false, "defaultValues" : [ ], "resourceType" : "urn:oracle:wcps:property:propertydefinition" } Response: Status Code:200 Content-Length: 0 X-Oracle-RF-Token-Scheme: utoken X-Oracle-RF-Token: FIxec1lmTFguxer9ZqZJpsXSnlZy_w** X-Powered-By: Servlet/2.5 JSP/2.1 Cache-Control: no-cache X-Oracle-RF-Token-Location: header Date: Fri, 08 Oct 2010 01:24:41 GMT ETag: "1286501081172"
DeletePD
XML
Request: DELETE http://localhost:8891/wcps/api/property/namespaces/Oracle/propertydefinitions/Integer_Def X-Oracle-RF-Token: FC59cJkhnJPolzPwKsStfD0Dxjm8_w** Cookie: JSESSIONID=ZfhzMnYQz7pg4gzv5wZV1srvy3yDTsG4J4090X1GnHhrQpCSTkG2!-1714998420;Version=1 Content-Type: application/xml Accept: application/xml If-Match: 1286494289263 Response: Status Code:204 Content-Length: 0 X-Oracle-RF-Token-Scheme: utoken X-Oracle-RF-Token: FC59cJkhnJPolzPwKsStfD0Dxjm8_w** X-Powered-By: Servlet/2.5 JSP/2.1 Connection: close X-Oracle-RF-Token-Location: header Date: Thu, 07 Oct 2010 23:31:29 GMT
JSON
Request: DELETE http://localhost:8891/wcps/api/property/namespaces/Oracle/propertydefinitions/Integer_Def X-Oracle-RF-Token: FIxec1lmTFguxer9ZqZJpsXSnlZy_w** Cookie: JSESSIONID=GSw4MnyYTw87Q6yCBb2H9F0JL6kLJwjrqYv3b72LtDMQGdLKPGRc!-609606431;Version=1 Content-Type: application/json Accept: application/json If-Match: 1286501081086 Response: Status Code:204 Content-Length: 0 X-Oracle-RF-Token-Scheme: utoken X-Oracle-RF-Token: FIxec1lmTFguxer9ZqZJpsXSnlZy_w** X-Powered-By: Servlet/2.5 JSP/2.1 Connection: close X-Oracle-RF-Token-Location: header Date: Fri, 08 Oct 2010 01:24:41 GMT
RetrieveAllPDs
XML
Request: GET http://localhost:8891/wcps/api/property/namespaces/Oracle/propertydefinitions X-Oracle-RF-Token: FC59cJkhnJPolzPwKsStfD0Dxjm8_w** Cookie: JSESSIONID=ZfhzMnYQz7pg4gzv5wZV1srvy3yDTsG4J4090X1GnHhrQpCSTkG2!-1714998420;Version=1 Content-Type: application/xml Accept: application/xml Response: Status Code:200 Content-Length: 1586 X-Oracle-RF-Token-Scheme: utoken X-Oracle-RF-Token: FC59cJkhnJPolzPwKsStfD0Dxjm8_w** X-Powered-By: Servlet/2.5 JSP/2.1 Cache-Control: no-cache X-Oracle-RF-Token-Location: header Content-Type: application/xml Date: Thu, 07 Oct 2010 23:31:29 GMT <?xml version="1.0" encoding="UTF-8"?> <propertyDefinitions resourceType="urn:oracle:wcps:property:propertydefinitions"> <links> <link capabilities="urn:oracle:restframework:create urn:oracle:restframework:read urn:oracle:restframework:delete" href="http://localhost:8891/wcps/api/property/namespaces/Oracle/propertydefinitions?q=pd-name:like:%25&startIndex=0&itemsPerPage=10" rel="self" resourceType="urn:oracle:wcps:property:propertydefinitions" template="http://localhost:8891/wcps/api/property/namespaces/Oracle/propertydefinitions?startIndex={startIndex}&q={q}&itemsPerPage={itemsPerPage}"/> </links> <itemsPerPage>10</itemsPerPage> <startIndex>0</startIndex> <totalCount>1</totalCount> <namespaceName>Oracle</namespaceName> <items> <propertyDefinition resourceType="urn:oracle:wcps:property:propertydefinition"> <links> <link capabilities="urn:oracle:restframework:read urn:oracle:restframework:update urn:oracle:restframework:delete" href="http://localhost:8891/wcps/api/property/namespaces/Oracle/propertydefinitions/Integer_Array_Def" rel="self" resourceType="urn:oracle:wcps:property:propertydefinition"/> </links> <name>Integer_Array_Def</name> <createdOn>2010-10-07T17:31:29.494-0600</createdOn> <updatedOn>2010-10-07T17:31:29.494-0600</updatedOn> <type>INT_ARRAY</type> <restricted>true</restricted> <restrictedValues> <integer>5</integer> <integer>4</integer> <integer>3</integer> <integer>2</integer> <integer>1</integer> </restrictedValues> <defaultValues> <integer>2</integer> <integer>1</integer> </defaultValues> </propertyDefinition> </items> </propertyDefinitions>
JSON
Request: GET http://localhost:8891/wcps/api/property/namespaces/Oracle/propertydefinitions X-Oracle-RF-Token: FIxec1lmTFguxer9ZqZJpsXSnlZy_w** Cookie: JSESSIONID=GSw4MnyYTw87Q6yCBb2H9F0JL6kLJwjrqYv3b72LtDMQGdLKPGRc!-609606431;Version=1 Content-Type: application/json Accept: application/json Response: Status Code:200 X-Oracle-RF-Token-Scheme: utoken X-Oracle-RF-Token: FIxec1lmTFguxer9ZqZJpsXSnlZy_w** X-Powered-By: Servlet/2.5 JSP/2.1 Cache-Control: no-cache X-Oracle-RF-Token-Location: header Transfer-Encoding: chunked Content-Type: application/json Date: Fri, 08 Oct 2010 01:24:41 GMT { "namespaceName" : "Oracle", "propertyDefinitions" : [ { "name" : "Integer_Array_Def", "type" : "INT_ARRAY", "defaultValues" : [ { "concreteType" : "urn:oracle:wcps:property:internal:jaxrs:model:integer-value", "value" : 2 }, { "concreteType" : "urn:oracle:wcps:property:internal:jaxrs:model:integer-value", "value" : 1 } ], "createdOn" : "2010-10-07T19:24:41.123-0600", "updatedOn" : "2010-10-07T19:24:41.123-0600", "restricted" : true, "restrictedValues" : [ { "concreteType" : "urn:oracle:wcps:property:internal:jaxrs:model:integer-value", "value" : 5 }, { "concreteType" : "urn:oracle:wcps:property:internal:jaxrs:model:integer-value", "value" : 4 }, { "concreteType" : "urn:oracle:wcps:property:internal:jaxrs:model:integer-value", "value" : 3 }, { "concreteType" : "urn:oracle:wcps:property:internal:jaxrs:model:integer-value", "value" : 2 }, { "concreteType" : "urn:oracle:wcps:property:internal:jaxrs:model:integer-value", "value" : 1 } ], "resourceType" : "urn:oracle:wcps:property:propertydefinition", "links" : [ { "resourceType" : "urn:oracle:wcps:property:propertydefinition", "capabilities" : "urn:oracle:restframework:read urn:oracle:restframework:update urn:oracle:restframework:delete", "href" : "http://localhost:8891/wcps/api/property/namespaces/Oracle/propertydefinitions/Integer_Array_Def", "rel" : "self" } ] } ], "totalCount" : 1, "startIndex" : 0, "itemsPerPage" : 10, "resourceType" : "urn:oracle:wcps:property:propertydefinitions", "links" : [ { "template" : "http://localhost:8891/wcps/api/property/namespaces/Oracle/propertydefinitions?startIndex={startIndex}&q={q}&itemsPerPage={itemsPerPage}", "resourceType" : "urn:oracle:wcps:property:propertydefinitions", "capabilities" : "urn:oracle:restframework:create urn:oracle:restframework:read urn:oracle:restframework:delete", "href" : "http://localhost:8891/wcps/api/property/namespaces/Oracle/propertydefinitions?q=pd-name:like:%25&startIndex=0&itemsPerPage=10", "rel" : "self" } ] }
DeleteAllPDs
XML
Request: DELETE http://localhost:8891/wcps/api/property/namespaces/Oracle/propertydefinitions X-Oracle-RF-Token: FC59cJkhnJPolzPwKsStfD0Dxjm8_w** Cookie: JSESSIONID=ZfhzMnYQz7pg4gzv5wZV1srvy3yDTsG4J4090X1GnHhrQpCSTkG2!-1714998420;Version=1 Content-Type: application/xml Accept: application/xml Response: Status Code:204 Content-Length: 0 X-Oracle-RF-Token-Scheme: utoken X-Oracle-RF-Token: FC59cJkhnJPolzPwKsStfD0Dxjm8_w** X-Powered-By: Servlet/2.5 JSP/2.1 Connection: close X-Oracle-RF-Token-Location: header Date: Thu, 07 Oct 2010 23:31:30 GMT
JSON
Request: DELETE http://localhost:8891/wcps/api/property/namespaces/Oracle/propertydefinitions X-Oracle-RF-Token: FIxec1lmTFguxer9ZqZJpsXSnlZy_w** Cookie: JSESSIONID=GSw4MnyYTw87Q6yCBb2H9F0JL6kLJwjrqYv3b72LtDMQGdLKPGRc!-609606431;Version=1 Content-Type: application/json Accept: application/json Response: Status Code:204 Content-Length: 0 X-Oracle-RF-Token-Scheme: utoken X-Oracle-RF-Token: FIxec1lmTFguxer9ZqZJpsXSnlZy_w** X-Powered-By: Servlet/2.5 JSP/2.1 Connection: close X-Oracle-RF-Token-Location: header Date: Fri, 08 Oct 2010 01:24:41 GMT
This section contains the following subsections:
CreatePSD
XML
Request: POST http://localhost:8891/wcps/api/property/namespaces/Oracle/propertysetdefinitions X-Oracle-RF-Token: FC59cJkhnJPolzPwKsStfD0Dxjm8_w** Cookie: JSESSIONID=6Q93MnYT5xcTQJ3tPLn3vT7sCPDNFlyzQGRSRnXlfHp8lSTbR8NH!-1714998420;Version=1 Content-Type: application/xml Accept: application/xml <?xml version="1.0" encoding="UTF-8"?> <propertySetDefinition resourceType="urn:oracle:wcps:property:propertysetdefinition"> <namespaceName>Oracle</namespaceName> <name>partnersinfo</name> <propertyMapping> <propertyName>company_name</propertyName> <propertyDefinitionName>String_Def</propertyDefinitionName> </propertyMapping> <propertyMapping> <propertyName>address</propertyName> <propertyDefinitionName>String_Def</propertyDefinitionName> </propertyMapping> <propertyMapping> <propertyName>number_of_employees</propertyName> <propertyDefinitionName>Integer_Def</propertyDefinitionName> </propertyMapping> <propertyMapping> <propertyName>previous_ranking_and_current_ranking</propertyName> <propertyDefinitionName>Integer_Array_Def</propertyDefinitionName> </propertyMapping> </propertySetDefinition> Response: Status Code:201 Content-Length: 2854 X-Oracle-RF-Token-Scheme: utoken X-Oracle-RF-Token: FC59cJkhnJPolzPwKsStfD0Dxjm8_w** X-Powered-By: Servlet/2.5 JSP/2.1 Cache-Control: no-cache X-Oracle-RF-Token-Location: header Content-Type: application/xml Location: http://localhost:8891/wcps/api/property/namespaces/Oracle/propertysetdefinitions/partnersinfo Date: Thu, 07 Oct 2010 23:31:32 GMT ETag: "1286494292658" <?xml version="1.0" encoding="UTF-8"?> <propertySetDefinition resourceType="urn:oracle:wcps:property:propertysetdefinition"> <links> <link capabilities="urn:oracle:restframework:read urn:oracle:restframework:update urn:oracle:restframework:delete" href="http://localhost:8891/wcps/api/property/namespaces/Oracle/propertysetdefinitions/partnersinfo" rel="self" resourceType="urn:oracle:wcps:property:propertysetdefinition"/> <link capabilities="urn:oracle:restframework:create urn:oracle:restframework:read urn:oracle:restframework:delete" href="http://localhost:8891/wcps/api/property/namespaces/Oracle/propertysetdefinitions/partnersinfo/propertysets" resourceType="urn:oracle:wcps:property:propertysets" template="http://localhost:8891/wcps/api/property/namespaces/Oracle/propertysetdefinitions/partnersinfo/propertysets?startIndex={startIndex}&dataFields={dataFields}&q={q}&itemsPerPage={itemsPerPage}"/> </links> <namespaceName>Oracle</namespaceName> <name>partnersinfo</name> <createdOn>2010-10-07T17:31:32.658-0600</createdOn> <updatedOn>2010-10-07T17:31:32.658-0600</updatedOn> <propertyMapping> <links> <link capabilities="urn:oracle:restframework:read urn:oracle:restframework:update urn:oracle:restframework:delete" href="http://localhost:8891/wcps/api/property/namespaces/Oracle/propertydefinitions/Integer_Def" resourceType="urn:oracle:wcps:property:propertydefinition"/> </links> <propertyName>number_of_employees</propertyName> <propertyDefinitionName>Integer_Def</propertyDefinitionName> </propertyMapping> <propertyMapping> <links> <link capabilities="urn:oracle:restframework:read urn:oracle:restframework:update urn:oracle:restframework:delete" href="http://localhost:8891/wcps/api/property/namespaces/Oracle/propertydefinitions/String_Def" resourceType="urn:oracle:wcps:property:propertydefinition"/> </links> <propertyName>address</propertyName> <propertyDefinitionName>String_Def</propertyDefinitionName> </propertyMapping> <propertyMapping> <links> <link capabilities="urn:oracle:restframework:read urn:oracle:restframework:update urn:oracle:restframework:delete" href="http://localhost:8891/wcps/api/property/namespaces/Oracle/propertydefinitions/String_Def" resourceType="urn:oracle:wcps:property:propertydefinition"/> </links> <propertyName>company_name</propertyName> <propertyDefinitionName>String_Def</propertyDefinitionName> </propertyMapping> <propertyMapping> <links> <link capabilities="urn:oracle:restframework:read urn:oracle:restframework:update urn:oracle:restframework:delete" href="http://localhost:8891/wcps/api/property/namespaces/Oracle/propertydefinitions/Integer_Array_Def" resourceType="urn:oracle:wcps:property:propertydefinition"/> </links> <propertyName>previous_ranking_and_current_ranking</propertyName> <propertyDefinitionName>Integer_Array_Def</propertyDefinitionName> </propertyMapping> </propertySetDefinition>
JSON
Request: POST http://localhost:8891/wcps/api/property/namespaces/Oracle/propertysetdefinitionsX-Oracle-RF-Token: FIxec1lmTFguxer9ZqZJpsXSnlZy_w** Cookie: JSESSIONID=dpvQMnyDkSNwv1TZ20JSYyzJpKJn1JwBQdRtNLQhNPHWpgvs8PcZ!-609606431;Version=1 Content-Type: application/json Accept: application/json { "name" : "partnersinfo", "namespaceName" : "Oracle", "propertyMappings" : [ { "propertyDefinitionName" : "String_Def", "propertyName" : "company_name" }, { "propertyDefinitionName" : "String_Def", "propertyName" : "address" }, { "propertyDefinitionName" : "Integer_Def", "propertyName" : "number_of_employees" }, { "propertyDefinitionName" : "Integer_Array_Def", "propertyName" : "previous_ranking_and_current_ranking" } ], "resourceType" : "urn:oracle:wcps:property:propertysetdefinition" } Response: Status Code:201 X-Oracle-RF-Token-Scheme: utoken X-Oracle-RF-Token: FIxec1lmTFguxer9ZqZJpsXSnlZy_w** X-Powered-By: Servlet/2.5 JSP/2.1 Cache-Control: no-cache X-Oracle-RF-Token-Location: header Transfer-Encoding: chunked Content-Type: application/json Location: http://localhost:8891/wcps/api/property/namespaces/Oracle/propertysetdefinitions/partnersinfo Date: Fri, 08 Oct 2010 01:24:51 GMT ETag: "1286501091845" { "name" : "partnersinfo", "namespaceName" : "Oracle", "createdOn" : "2010-10-07T19:24:51.845-0600", "updatedOn" : "2010-10-07T19:24:51.845-0600", "propertyMappings" : [ { "propertyName" : "number_of_employees", "propertyDefinitionName" : "Integer_Def", "links" : [ { "resourceType" : "urn:oracle:wcps:property:propertydefinition", "capabilities" : "urn:oracle:restframework:read urn:oracle:restframework:update urn:oracle:restframework:delete", "href" : "http://localhost:8891/wcps/api/property/namespaces/Oracle/propertydefinitions/Integer_Def" } ] }, { "propertyName" : "address", "propertyDefinitionName" : "String_Def", "links" : [ { "resourceType" : "urn:oracle:wcps:property:propertydefinition", "capabilities" : "urn:oracle:restframework:read urn:oracle:restframework:update urn:oracle:restframework:delete", "href" : "http://localhost:8891/wcps/api/property/namespaces/Oracle/propertydefinitions/String_Def" } ] }, { "propertyName" : "company_name", "propertyDefinitionName" : "String_Def", "links" : [ { "resourceType" : "urn:oracle:wcps:property:propertydefinition", "capabilities" : "urn:oracle:restframework:read urn:oracle:restframework:update urn:oracle:restframework:delete", "href" : "http://localhost:8891/wcps/api/property/namespaces/Oracle/propertydefinitions/String_Def" } ] }, { "propertyName" : "previous_ranking_and_current_ranking", "propertyDefinitionName" : "Integer_Array_Def", "links" : [ { "resourceType" : "urn:oracle:wcps:property:propertydefinition", "capabilities" : "urn:oracle:restframework:read urn:oracle:restframework:update urn:oracle:restframework:delete", "href" : "http://localhost:8891/wcps/api/property/namespaces/Oracle/propertydefinitions/Integer_Array_Def" } ] } ], "resourceType" : "urn:oracle:wcps:property:propertysetdefinition", "links" : [ { "resourceType" : "urn:oracle:wcps:property:propertysetdefinition", "capabilities" : "urn:oracle:restframework:read urn:oracle:restframework:update urn:oracle:restframework:delete", "href" : "http://localhost:8891/wcps/api/property/namespaces/Oracle/propertysetdefinitions/partnersinfo", "rel" : "self" }, { "template" : "http://localhost:8891/wcps/api/property/namespaces/Oracle/propertysetdefinitions/partnersinfo/propertysets?startIndex={startIndex}&dataFields={dataFields}&q={q}&itemsPerPage={itemsPerPage}", "resourceType" : "urn:oracle:wcps:property:propertysets", "capabilities" : "urn:oracle:restframework:create urn:oracle:restframework:read urn:oracle:restframework:delete", "href" : "http://localhost:8891/wcps/api/property/namespaces/Oracle/propertysetdefinitions/partnersinfo/propertysets" } ] }
RetrievePSD
XML
Request: DELETE http://localhost:8891/wcps/api/property/namespaces/Oracle/propertysetdefinitions/partnersinfo X-Oracle-RF-Token: FC59cJkhnJPolzPwKsStfD0Dxjm8_w** Cookie: JSESSIONID=6Q93MnYT5xcTQJ3tPLn3vT7sCPDNFlyzQGRSRnXlfHp8lSTbR8NH!-1714998420;Version=1 Content-Type: application/xml Accept: application/xml If-Match: 1286494292658 Response: Status Code:204 Content-Length: 0 X-Oracle-RF-Token-Scheme: utoken X-Oracle-RF-Token: FC59cJkhnJPolzPwKsStfD0Dxjm8_w** X-Powered-By: Servlet/2.5 JSP/2.1 Connection: close X-Oracle-RF-Token-Location: header Date: Thu, 07 Oct 2010 23:31:33 GMT
JSON
Request: DELETE http://localhost:8891/wcps/api/property/namespaces/Oracle/propertysetdefinitions/partnersinfo X-Oracle-RF-Token: FIxec1lmTFguxer9ZqZJpsXSnlZy_w** Cookie: JSESSIONID=dpvQMnyDkSNwv1TZ20JSYyzJpKJn1JwBQdRtNLQhNPHWpgvs8PcZ!-609606431;Version=1 Content-Type: application/json Accept: application/json If-Match: 1286501091845 Response: Status Code:204 Content-Length: 0 X-Oracle-RF-Token-Scheme: utoken X-Oracle-RF-Token: FIxec1lmTFguxer9ZqZJpsXSnlZy_w** X-Powered-By: Servlet/2.5 JSP/2.1 Connection: close X-Oracle-RF-Token-Location: header Date: Fri, 08 Oct 2010 01:24:51 GMT
RetrieveAllPSDs
XML
Request: GET http://localhost:8891/wcps/api/property/namespaces/Oracle/propertysetdefinitions X-Oracle-RF-Token: FC59cJkhnJPolzPwKsStfD0Dxjm8_w** Cookie: JSESSIONID=6Q93MnYT5xcTQJ3tPLn3vT7sCPDNFlyzQGRSRnXlfHp8lSTbR8NH!-1714998420;Version=1 Content-Type: application/xml Accept: application/xml Response: Status Code:200 Content-Length: 779 X-Oracle-RF-Token-Scheme: utoken X-Oracle-RF-Token: FC59cJkhnJPolzPwKsStfD0Dxjm8_w** X-Powered-By: Servlet/2.5 JSP/2.1 Cache-Control: no-cache X-Oracle-RF-Token-Location: header Content-Type: application/xml Date: Thu, 07 Oct 2010 23:31:33 GMT <?xml version="1.0" encoding="UTF-8"?> <propertySetDefinitions resourceType="urn:oracle:wcps:property:propertysetdefinitions"> <links> <link capabilities="urn:oracle:restframework:create urn:oracle:restframework:read urn:oracle:restframework:delete" href="http://localhost:8891/wcps/api/property/namespaces/Oracle/propertysetdefinitions?startIndex=0&itemsPerPage=10" rel="self" resourceType="urn:oracle:wcps:property:propertysetdefinitions" template="http://localhost:8891/wcps/api/property/namespaces/Oracle/propertysetdefinitions?startIndex={startIndex}&q={q}&itemsPerPage={itemsPerPage}"/> </links> <itemsPerPage>10</itemsPerPage> <startIndex>0</startIndex> <totalCount>0</totalCount> <namespaceName>Oracle</namespaceName> <items/> </propertySetDefinitions>
JSON
Request: GET http://localhost:8891/wcps/api/property/namespaces/Oracle/propertysetdefinitions X-Oracle-RF-Token: FIxec1lmTFguxer9ZqZJpsXSnlZy_w** Cookie: JSESSIONID=dpvQMnyDkSNwv1TZ20JSYyzJpKJn1JwBQdRtNLQhNPHWpgvs8PcZ!-609606431;Version=1 Content-Type: application/json Accept: application/json Response: Status Code:200 X-Oracle-RF-Token-Scheme: utoken X-Oracle-RF-Token: FIxec1lmTFguxer9ZqZJpsXSnlZy_w** X-Powered-By: Servlet/2.5 JSP/2.1 Cache-Control: no-cache X-Oracle-RF-Token-Location: header Transfer-Encoding: chunked Content-Type: application/json Date: Fri, 08 Oct 2010 01:24:51 GMT { "namespaceName" : "Oracle", "propertySetDefinitions" : [ ], "totalCount" : 0, "startIndex" : 0, "itemsPerPage" : 10, "resourceType" : "urn:oracle:wcps:property:propertysetdefinitions", "links" : [ { "template" : "http://localhost:8891/wcps/api/property/namespaces/Oracle/propertysetdefinitions?startIndex={startIndex}&q={q}&itemsPerPage={itemsPerPage}", "resourceType" : "urn:oracle:wcps:property:propertysetdefinitions", "capabilities" : "urn:oracle:restframework:create urn:oracle:restframework:read urn:oracle:restframework:delete", "href" : "http://localhost:8891/wcps/api/property/namespaces/Oracle/propertysetdefinitions?startIndex=0&itemsPerPage=10", "rel" : "self" } ] }
DeleteAllPSDs
XML
Request: DELETE http://localhost:8891/wcps/api/property/namespaces/Oracle/propertysetdefinitions X-Oracle-RF-Token: FC59cJkhnJPolzPwKsStfD0Dxjm8_w** Cookie: JSESSIONID=6Q93MnYT5xcTQJ3tPLn3vT7sCPDNFlyzQGRSRnXlfHp8lSTbR8NH!-1714998420;Version=1 Content-Type: application/xml Accept: application/xml Response: Status Code:204 Content-Length: 0 X-Oracle-RF-Token-Scheme: utoken X-Oracle-RF-Token: FC59cJkhnJPolzPwKsStfD0Dxjm8_w** X-Powered-By: Servlet/2.5 JSP/2.1 Connection: close X-Oracle-RF-Token-Location: header Date: Thu, 07 Oct 2010 23:31:33 GMT
JSON
Request: DELETE http://localhost:8891/wcps/api/property/namespaces/Oracle/propertysetdefinitions X-Oracle-RF-Token: FIxec1lmTFguxer9ZqZJpsXSnlZy_w** Cookie: JSESSIONID=dpvQMnyDkSNwv1TZ20JSYyzJpKJn1JwBQdRtNLQhNPHWpgvs8PcZ!-609606431;Version=1 Content-Type: application/json Accept: application/json Response: Status Code:204 Content-Length: 0 X-Oracle-RF-Token-Scheme: utoken X-Oracle-RF-Token: FIxec1lmTFguxer9ZqZJpsXSnlZy_w** X-Powered-By: Servlet/2.5 JSP/2.1 Connection: close X-Oracle-RF-Token-Location: header Date: Fri, 08 Oct 2010 01:24:51 GMT
This section contains the following subsections:
CreatePS
XML
Request:
POST http://localhost:8891/wcps/api/property/namespaces/Oracle/propertysetdefinitions/partnersinfo/propertysets
X-Oracle-RF-Token: FC59cJkhnJPolzPwKsStfD0Dxjm8_w**
Cookie: JSESSIONID=vc1pMnYWRZysgqhXVz5XrGKqhvfy0vv2zc7xQ3RyDSvG0mG22ZlJ!-1714998420;Version=1
Content-Type: application/xml
Accept: application/xml
<?xml version="1.0" encoding="UTF-8"?>
<propertySet resourceType="urn:oracle:wcps:property:propertyset">
<namespaceName>Oracle</namespaceName>
<propertySetDefinitionName>partnersinfo</propertySetDefinitionName>
<name>infosys</name>
<items>
<property multiValue="false" resourceType="urn:oracle:wcps:property:property">
<name>company_name</name>
<type>STRING</type>
<values>
<string>InfoSys</string>
</values>
</property>
<property multiValue="false" resourceType="urn:oracle:wcps:property:property">
<name>address</name>
<type>STRING</type>
<values>
<string>1 foo loop, San Francisco, CA</string>
</values>
</property>
<property multiValue="false" resourceType="urn:oracle:wcps:property:property">
<name>number_of_employees</name>
<type>INT</type>
<values>
<integer>10000</integer>
</values>
</property>
<property multiValue="true" resourceType="urn:oracle:wcps:property:property">
<name>previous_ranking_and_current_ranking</name>
<type>INT_ARRAY</type>
<values>
<integer>3</integer>
<integer>5</integer>
</values>
</property>
</items>
</propertySet>
Response:
Status Code:201
Content-Length: 3709
X-Oracle-RF-Token-Scheme: utoken
X-Oracle-RF-Token: FC59cJkhnJPolzPwKsStfD0Dxjm8_w**
X-Powered-By: Servlet/2.5 JSP/2.1
Cache-Control: no-cache
X-Oracle-RF-Token-Location: header
Content-Type: application/xml
Location: http://localhost:8891/wcps/api/property/namespaces/Oracle/propertysetdefinitions/partnersinfo/propertysets/infosys
Date: Thu, 07 Oct 2010 23:31:35 GMT
ETag: "1286494295948"
<?xml version="1.0" encoding="UTF-8"?>
<propertySet resourceType="urn:oracle:wcps:property:propertyset">
<links>
<link
capabilities="urn:oracle:restframework:create urn:oracle:restframework:read urn:oracle:restframework:update urn:oracle:restframework:delete"
resourceType="urn:oracle:wcps:property:property" template="http://localhost:8891/wcps/api/property/namespaces/Oracle/propertysetdefinitions/partnersinfo/propertysets/infosys/properties/{propertyName}"/>
<link
capabilities="urn:oracle:restframework:read urn:oracle:restframework:update urn:oracle:restframework:delete"
href="http://localhost:8891/wcps/api/property/namespaces/Oracle/propertysetdefinitions/partnersinfo/propertysets/infosys"
rel="self" resourceType="urn:oracle:wcps:property:propertyset"/>
</links>
<namespaceName>Oracle</namespaceName>
<propertySetDefinitionName>partnersinfo</propertySetDefinitionName>
<name>infosys</name>
<items>
<property multiValue="false" resourceType="urn:oracle:wcps:property:property">
<links>
<link
capabilities="urn:oracle:restframework:create urn:oracle:restframework:read urn:oracle:restframework:update urn:oracle:restframework:delete"
href="http://localhost:8891/wcps/api/property/namespaces/Oracle/propertysetdefinitions/partnersinfo/propertysets/infosys/properties/number_of_employees"
rel="self" resourceType="urn:oracle:wcps:property:property"/>
</links>
<name>number_of_employees</name>
<type>INT</type>
<values>
<integer>10000</integer>
</values>
<createdOn>2010-10-07T17:31:35.948-0600</createdOn>
<updatedOn>2010-10-07T17:31:35.948-0600</updatedOn>
</property>
<property multiValue="false" resourceType="urn:oracle:wcps:property:property">
<links>
<link
capabilities="urn:oracle:restframework:create urn:oracle:restframework:read urn:oracle:restframework:update urn:oracle:restframework:delete"
href="http://localhost:8891/wcps/api/property/namespaces/Oracle/propertysetdefinitions/partnersinfo/propertysets/infosys/properties/address"
rel="self" resourceType="urn:oracle:wcps:property:property"/>
</links>
<name>address</name>
<type>STRING</type>
<values>
<string>1 foo loop, San Francisco, CA</string>
</values>
<createdOn>2010-10-07T17:31:35.948-0600</createdOn>
<updatedOn>2010-10-07T17:31:35.948-0600</updatedOn>
</property>
<property multiValue="false" resourceType="urn:oracle:wcps:property:property">
<links>
<link
capabilities="urn:oracle:restframework:create urn:oracle:restframework:read urn:oracle:restframework:update urn:oracle:restframework:delete"
href="http://localhost:8891/wcps/api/property/namespaces/Oracle/propertysetdefinitions/partnersinfo/propertysets/infosys/properties/company_name"
rel="self" resourceType="urn:oracle:wcps:property:property"/>
</links>
<name>company_name</name>
<type>STRING</type>
<values>
<string>InfoSys</string>
</values>
<createdOn>2010-10-07T17:31:35.948-0600</createdOn>
<updatedOn>2010-10-07T17:31:35.948-0600</updatedOn>
</property>
<property multiValue="true" resourceType="urn:oracle:wcps:property:property">
<links>
<link
capabilities="urn:oracle:restframework:create urn:oracle:restframework:read urn:oracle:restframework:update urn:oracle:restframework:delete"
href="http://localhost:8891/wcps/api/property/namespaces/Oracle/propertysetdefinitions/partnersinfo/propertysets/infosys/properties/previous_ranking_and_current_ranking"
rel="self" resourceType="urn:oracle:wcps:property:property"/>
</links>
<name>previous_ranking_and_current_ranking</name>
<type>INT_ARRAY</type>
<values>
<integer>3</integer>
<integer>5</integer>
</values>
<createdOn>2010-10-07T17:31:35.948-0600</createdOn>
<updatedOn>2010-10-07T17:31:35.948-0600</updatedOn>
</property>
</items>
<createdOn>2010-10-07T17:31:35.948-0600</createdOn>
<updatedOn>2010-10-07T17:31:35.948-0600</updatedOn>
</propertySet>
JSON
Request: POST http://localhost:8891/wcps/api/property/namespaces/Oracle/propertysetdefinitions/partnersinfo/propertysets X-Oracle-RF-Token: FIxec1lmTFguxer9ZqZJpsXSnlZy_w** Cookie: JSESSIONID=h72xMnyKQQSW9Lwcg2HMGDnNQnK1HZJpGJmLgZ2P1vHFpvT2bX2k!-609606431;Version=1 Content-Type: application/json Accept: application/json { "name" : "infosys", "properties" : [ { "name" : "company_name", "type" : "STRING", "values" : [ { "concreteType" : "urn:oracle:wcps:property:internal:jaxrs:model:string-value", "value" : "InfoSys" } ], "multiValue" : false, "resourceType" : "urn:oracle:wcps:property:property" }, { "name" : "address", "type" : "STRING", "values" : [ { "concreteType" : "urn:oracle:wcps:property:internal:jaxrs:model:string-value", "value" : "1 foo loop, San Francisco, CA" } ], "multiValue" : false, "resourceType" : "urn:oracle:wcps:property:property" }, { "name" : "number_of_employees", "type" : "INT", "values" : [ { "concreteType" : "urn:oracle:wcps:property:internal:jaxrs:model:integer-value", "value" : 10000 } ], "multiValue" : false, "resourceType" : "urn:oracle:wcps:property:property" }, { "name" : "previous_ranking_and_current_ranking", "type" : "INT_ARRAY", "values" : [ { "concreteType" : "urn:oracle:wcps:property:internal:jaxrs:model:integer-value", "value" : 3 }, { "concreteType" : "urn:oracle:wcps:property:internal:jaxrs:model:integer-value", "value" : 5 } ], "multiValue" : true, "resourceType" : "urn:oracle:wcps:property:property" } ], "namespaceName" : "Oracle", "propertySetDefinitionName" : "partnersinfo", "resourceType" : "urn:oracle:wcps:property:propertyset" } Response: Status Code:201 X-Oracle-RF-Token-Scheme: utoken X-Oracle-RF-Token: FIxec1lmTFguxer9ZqZJpsXSnlZy_w** X-Powered-By: Servlet/2.5 JSP/2.1 Cache-Control: no-cache X-Oracle-RF-Token-Location: header Transfer-Encoding: chunked Content-Type: application/json Location: http://localhost:8891/wcps/api/property/namespaces/Oracle/propertysetdefinitions/partnersinfo/propertysets/infosys Date: Fri, 08 Oct 2010 01:24:58 GMT ETag: "1286501098924" { "name" : "infosys", "properties" : [ { "name" : "number_of_employees", "type" : "INT", "values" : [ { "concreteType" : "urn:oracle:wcps:property:internal:jaxrs:model:integer-value", "value" : 10000 } ], "createdOn" : "2010-10-07T19:24:58.924-0600", "updatedOn" : "2010-10-07T19:24:58.924-0600", "multiValue" : false, "resourceType" : "urn:oracle:wcps:property:property", "links" : [ { "resourceType" : "urn:oracle:wcps:property:property", "capabilities" : "urn:oracle:restframework:create urn:oracle:restframework:read urn:oracle:restframework:update urn:oracle:restframework:delete", "href" : "http://localhost:8891/wcps/api/property/namespaces/Oracle/propertysetdefinitions/partnersinfo/propertysets/infosys/properties/number_of_employees", "rel" : "self" } ] }, { "name" : "address", "type" : "STRING", "values" : [ { "concreteType" : "urn:oracle:wcps:property:internal:jaxrs:model:string-value", "value" : "1 foo loop, San Francisco, CA" } ], "createdOn" : "2010-10-07T19:24:58.924-0600", "updatedOn" : "2010-10-07T19:24:58.924-0600", "multiValue" : false, "resourceType" : "urn:oracle:wcps:property:property", "links" : [ { "resourceType" : "urn:oracle:wcps:property:property", "capabilities" : "urn:oracle:restframework:create urn:oracle:restframework:read urn:oracle:restframework:update urn:oracle:restframework:delete", "href" : "http://localhost:8891/wcps/api/property/namespaces/Oracle/propertysetdefinitions/partnersinfo/propertysets/infosys/properties/address", "rel" : "self" } ] }, { "name" : "company_name", "type" : "STRING", "values" : [ { "concreteType" : "urn:oracle:wcps:property:internal:jaxrs:model:string-value", "value" : "InfoSys" } ], "createdOn" : "2010-10-07T19:24:58.924-0600", "updatedOn" : "2010-10-07T19:24:58.924-0600", "multiValue" : false, "resourceType" : "urn:oracle:wcps:property:property", "links" : [ { "resourceType" : "urn:oracle:wcps:property:property", "capabilities" : "urn:oracle:restframework:create urn:oracle:restframework:read urn:oracle:restframework:update urn:oracle:restframework:delete", "href" : "http://localhost:8891/wcps/api/property/namespaces/Oracle/propertysetdefinitions/partnersinfo/propertysets/infosys/properties/company_name", "rel" : "self" } ] }, { "name" : "previous_ranking_and_current_ranking", "type" : "INT_ARRAY", "values" : [ { "concreteType" : "urn:oracle:wcps:property:internal:jaxrs:model:integer-value", "value" : 3 }, { "concreteType" : "urn:oracle:wcps:property:internal:jaxrs:model:integer-value", "value" : 5 } ], "createdOn" : "2010-10-07T19:24:58.924-0600", "updatedOn" : "2010-10-07T19:24:58.924-0600", "multiValue" : true, "resourceType" : "urn:oracle:wcps:property:property", "links" : [ { "resourceType" : "urn:oracle:wcps:property:property", "capabilities" : "urn:oracle:restframework:create urn:oracle:restframework:read urn:oracle:restframework:update urn:oracle:restframework:delete", "href" : "http://localhost:8891/wcps/api/property/namespaces/Oracle/propertysetdefinitions/partnersinfo/propertysets/infosys/properties/previous_ranking_and_current_ranking", "rel" : "self" } ] } ], "namespaceName" : "Oracle", "createdOn" : "2010-10-07T19:24:58.924-0600", "updatedOn" : "2010-10-07T19:24:58.924-0600", "propertySetDefinitionName" : "partnersinfo", "resourceType" : "urn:oracle:wcps:property:propertyset", "links" : [ { "template" : "http://localhost:8891/wcps/api/property/namespaces/Oracle/propertysetdefinitions/partnersinfo/propertysets/infosys/properties/{propertyName}", "resourceType" : "urn:oracle:wcps:property:property", "capabilities" : "urn:oracle:restframework:create urn:oracle:restframework:read urn:oracle:restframework:update urn:oracle:restframework:delete" }, { "resourceType" : "urn:oracle:wcps:property:propertyset", "capabilities" : "urn:oracle:restframework:read urn:oracle:restframework:update urn:oracle:restframework:delete", "href" : "http://localhost:8891/wcps/api/property/namespaces/Oracle/propertysetdefinitions/partnersinfo/propertysets/infosys", "rel" : "self" } ] }
RetrievePS
XML
Request: GET http://localhost:8891/wcps/api/property/namespaces/Oracle/propertysetdefinitions/partnersinfo/propertysets/infosys X-Oracle-RF-Token: FC59cJkhnJPolzPwKsStfD0Dxjm8_w** Cookie: JSESSIONID=vc1pMnYWRZysgqhXVz5XrGKqhvfy0vv2zc7xQ3RyDSvG0mG22ZlJ!-1714998420;Version=1 Content-Type: application/xml Accept: application/xml Response: Status Code:200 Content-Length: 3709 X-Oracle-RF-Token-Scheme: utoken X-Oracle-RF-Token: FC59cJkhnJPolzPwKsStfD0Dxjm8_w** X-Powered-By: Servlet/2.5 JSP/2.1 Cache-Control: no-cache X-Oracle-RF-Token-Location: header Content-Type: application/xml Date: Thu, 07 Oct 2010 23:31:36 GMT ETag: "1286494296325" <?xml version="1.0" encoding="UTF-8"?> <propertySet resourceType="urn:oracle:wcps:property:propertyset"> <links> <link capabilities="urn:oracle:restframework:create urn:oracle:restframework:read urn:oracle:restframework:update urn:oracle:restframework:delete" resourceType="urn:oracle:wcps:property:property" template="http://localhost:8891/wcps/api/property/namespaces/Oracle/propertysetdefinitions/partnersinfo/propertysets/infosys/properties/{propertyName}"/> <link capabilities="urn:oracle:restframework:read urn:oracle:restframework:update urn:oracle:restframework:delete" href="http://localhost:8891/wcps/api/property/namespaces/Oracle/propertysetdefinitions/partnersinfo/propertysets/infosys" rel="self" resourceType="urn:oracle:wcps:property:propertyset"/> </links> <namespaceName>Oracle</namespaceName> <propertySetDefinitionName>partnersinfo</propertySetDefinitionName> <name>infosys</name> <items> <property multiValue="false" resourceType="urn:oracle:wcps:property:property"> <links> <link capabilities="urn:oracle:restframework:create urn:oracle:restframework:read urn:oracle:restframework:update urn:oracle:restframework:delete" href="http://localhost:8891/wcps/api/property/namespaces/Oracle/propertysetdefinitions/partnersinfo/propertysets/infosys/properties/number_of_employees" rel="self" resourceType="urn:oracle:wcps:property:property"/> </links> <name>number_of_employees</name> <type>INT</type> <values> <integer>10000</integer> </values> <createdOn>2010-10-07T17:31:35.948-0600</createdOn> <updatedOn>2010-10-07T17:31:36.325-0600</updatedOn> </property> <property multiValue="false" resourceType="urn:oracle:wcps:property:property"> <links> <link capabilities="urn:oracle:restframework:create urn:oracle:restframework:read urn:oracle:restframework:update urn:oracle:restframework:delete" href="http://localhost:8891/wcps/api/property/namespaces/Oracle/propertysetdefinitions/partnersinfo/propertysets/infosys/properties/company_name" rel="self" resourceType="urn:oracle:wcps:property:property"/> </links> <name>company_name</name> <type>STRING</type> <values> <string>InfoSys</string> </values> <createdOn>2010-10-07T17:31:35.948-0600</createdOn> <updatedOn>2010-10-07T17:31:36.325-0600</updatedOn> </property> <property multiValue="false" resourceType="urn:oracle:wcps:property:property"> <links> <link capabilities="urn:oracle:restframework:create urn:oracle:restframework:read urn:oracle:restframework:update urn:oracle:restframework:delete" href="http://localhost:8891/wcps/api/property/namespaces/Oracle/propertysetdefinitions/partnersinfo/propertysets/infosys/properties/address" rel="self" resourceType="urn:oracle:wcps:property:property"/> </links> <name>address</name> <type>STRING</type> <values> <string>1 foo loop, San Francisco, CA</string> </values> <createdOn>2010-10-07T17:31:35.948-0600</createdOn> <updatedOn>2010-10-07T17:31:36.325-0600</updatedOn> </property> <property multiValue="true" resourceType="urn:oracle:wcps:property:property"> <links> <link capabilities="urn:oracle:restframework:create urn:oracle:restframework:read urn:oracle:restframework:update urn:oracle:restframework:delete" href="http://localhost:8891/wcps/api/property/namespaces/Oracle/propertysetdefinitions/partnersinfo/propertysets/infosys/properties/previous_ranking_and_current_ranking" rel="self" resourceType="urn:oracle:wcps:property:property"/> </links> <name>previous_ranking_and_current_ranking</name> <type>INT_ARRAY</type> <values> <integer>4</integer> <integer>5</integer> </values> <createdOn>2010-10-07T17:31:35.948-0600</createdOn> <updatedOn>2010-10-07T17:31:36.325-0600</updatedOn> </property> </items> <createdOn>2010-10-07T17:31:35.948-0600</createdOn> <updatedOn>2010-10-07T17:31:36.325-0600</updatedOn> </propertySet>
JSON
Request: GET http://localhost:8891/wcps/api/property/namespaces/Oracle/propertysetdefinitions/partnersinfo/propertysets/infosys X-Oracle-RF-Token: FIxec1lmTFguxer9ZqZJpsXSnlZy_w** Cookie: JSESSIONID=h72xMnyKQQSW9Lwcg2HMGDnNQnK1HZJpGJmLgZ2P1vHFpvT2bX2k!-609606431;Version=1 Content-Type: application/json Accept: application/json Response: Status Code:200 X-Oracle-RF-Token-Scheme: utoken X-Oracle-RF-Token: FIxec1lmTFguxer9ZqZJpsXSnlZy_w** X-Powered-By: Servlet/2.5 JSP/2.1 Cache-Control: no-cache X-Oracle-RF-Token-Location: header Transfer-Encoding: chunked Content-Type: application/json Date: Fri, 08 Oct 2010 01:24:58 GMT ETag: "1286501098964" { "name" : "infosys", "properties" : [ { "name" : "number_of_employees", "type" : "INT", "values" : [ { "concreteType" : "urn:oracle:wcps:property:internal:jaxrs:model:integer-value", "value" : 10000 } ], "createdOn" : "2010-10-07T19:24:58.924-0600", "updatedOn" : "2010-10-07T19:24:58.964-0600", "multiValue" : false, "resourceType" : "urn:oracle:wcps:property:property", "links" : [ { "resourceType" : "urn:oracle:wcps:property:property", "capabilities" : "urn:oracle:restframework:create urn:oracle:restframework:read urn:oracle:restframework:update urn:oracle:restframework:delete", "href" : "http://localhost:8891/wcps/api/property/namespaces/Oracle/propertysetdefinitions/partnersinfo/propertysets/infosys/properties/number_of_employees", "rel" : "self" } ] }, { "name" : "company_name", "type" : "STRING", "values" : [ { "concreteType" : "urn:oracle:wcps:property:internal:jaxrs:model:string-value", "value" : "InfoSys" } ], "createdOn" : "2010-10-07T19:24:58.924-0600", "updatedOn" : "2010-10-07T19:24:58.964-0600", "multiValue" : false, "resourceType" : "urn:oracle:wcps:property:property", "links" : [ { "resourceType" : "urn:oracle:wcps:property:property", "capabilities" : "urn:oracle:restframework:create urn:oracle:restframework:read urn:oracle:restframework:update urn:oracle:restframework:delete", "href" : "http://localhost:8891/wcps/api/property/namespaces/Oracle/propertysetdefinitions/partnersinfo/propertysets/infosys/properties/company_name", "rel" : "self" } ] }, { "name" : "address", "type" : "STRING", "values" : [ { "concreteType" : "urn:oracle:wcps:property:internal:jaxrs:model:string-value", "value" : "1 foo loop, San Francisco, CA" } ], "createdOn" : "2010-10-07T19:24:58.924-0600", "updatedOn" : "2010-10-07T19:24:58.964-0600", "multiValue" : false, "resourceType" : "urn:oracle:wcps:property:property", "links" : [ { "resourceType" : "urn:oracle:wcps:property:property", "capabilities" : "urn:oracle:restframework:create urn:oracle:restframework:read urn:oracle:restframework:update urn:oracle:restframework:delete", "href" : "http://localhost:8891/wcps/api/property/namespaces/Oracle/propertysetdefinitions/partnersinfo/propertysets/infosys/properties/address", "rel" : "self" } ] }, { "name" : "previous_ranking_and_current_ranking", "type" : "INT_ARRAY", "values" : [ { "concreteType" : "urn:oracle:wcps:property:internal:jaxrs:model:integer-value", "value" : 4 }, { "concreteType" : "urn:oracle:wcps:property:internal:jaxrs:model:integer-value", "value" : 5 } ], "createdOn" : "2010-10-07T19:24:58.924-0600", "updatedOn" : "2010-10-07T19:24:58.964-0600", "multiValue" : true, "resourceType" : "urn:oracle:wcps:property:property", "links" : [ { "resourceType" : "urn:oracle:wcps:property:property", "capabilities" : "urn:oracle:restframework:create urn:oracle:restframework:read urn:oracle:restframework:update urn:oracle:restframework:delete", "href" : "http://localhost:8891/wcps/api/property/namespaces/Oracle/propertysetdefinitions/partnersinfo/propertysets/infosys/properties/previous_ranking_and_current_ranking", "rel" : "self" } ] } ], "namespaceName" : "Oracle", "createdOn" : "2010-10-07T19:24:58.924-0600", "updatedOn" : "2010-10-07T19:24:58.964-0600", "propertySetDefinitionName" : "partnersinfo", "resourceType" : "urn:oracle:wcps:property:propertyset", "links" : [ { "template" : "http://localhost:8891/wcps/api/property/namespaces/Oracle/propertysetdefinitions/partnersinfo/propertysets/infosys/properties/{propertyName}", "resourceType" : "urn:oracle:wcps:property:property", "capabilities" : "urn:oracle:restframework:create urn:oracle:restframework:read urn:oracle:restframework:update urn:oracle:restframework:delete" }, { "resourceType" : "urn:oracle:wcps:property:propertyset", "capabilities" : "urn:oracle:restframework:read urn:oracle:restframework:update urn:oracle:restframework:delete", "href" : "http://localhost:8891/wcps/api/property/namespaces/Oracle/propertysetdefinitions/partnersinfo/propertysets/infosys", "rel" : "self" } ] }
UpdatePS
XML
Request: PUT http://localhost:8891/wcps/api/property/namespaces/Oracle/propertysetdefinitions/partnersinfo/propertysets/infosys X-Oracle-RF-Token: FC59cJkhnJPolzPwKsStfD0Dxjm8_w** Cookie: JSESSIONID=vc1pMnYWRZysgqhXVz5XrGKqhvfy0vv2zc7xQ3RyDSvG0mG22ZlJ!-1714998420;Version=1 Content-Type: application/xml Accept: application/xml If-Match: 1286494295948 <?xml version="1.0" encoding="UTF-8"?> <propertySet resourceType="urn:oracle:wcps:property:propertyset"> <namespaceName>Oracle</namespaceName> <propertySetDefinitionName>partnersinfo</propertySetDefinitionName> <name>infosys</name> <items> <property multiValue="false" resourceType="urn:oracle:wcps:property:property"> <name>number_of_employees</name> <type>INT</type> <values> <integer>10000</integer> </values> <createdOn>2010-10-07T17:31:35.948-0600</createdOn> <updatedOn>2010-10-07T17:31:35.948-0600</updatedOn> </property> <property multiValue="false" resourceType="urn:oracle:wcps:property:property"> <name>address</name> <type>STRING</type> <values> <string>1 foo loop, San Francisco, CA</string> </values> <createdOn>2010-10-07T17:31:35.948-0600</createdOn> <updatedOn>2010-10-07T17:31:35.948-0600</updatedOn> </property> <property multiValue="false" resourceType="urn:oracle:wcps:property:property"> <name>company_name</name> <type>STRING</type> <values> <string>InfoSys</string> </values> <createdOn>2010-10-07T17:31:35.948-0600</createdOn> <updatedOn>2010-10-07T17:31:35.948-0600</updatedOn> </property> <property multiValue="true" resourceType="urn:oracle:wcps:property:property"> <name>previous_ranking_and_current_ranking</name> <type>INT_ARRAY</type> <values> <integer>4</integer> <integer>5</integer> </values> <createdOn>2010-10-07T17:31:35.948-0600</createdOn> <updatedOn>2010-10-07T17:31:35.948-0600</updatedOn> </property> </items> <createdOn>2010-10-07T17:31:35.948-0600</createdOn> <updatedOn>2010-10-07T17:31:35.948-0600</updatedOn> </propertySet> Response: Status Code:200 Content-Length: 0 X-Oracle-RF-Token-Scheme: utoken X-Oracle-RF-Token: FC59cJkhnJPolzPwKsStfD0Dxjm8_w** X-Powered-By: Servlet/2.5 JSP/2.1 Cache-Control: no-cache X-Oracle-RF-Token-Location: header Date: Thu, 07 Oct 2010 23:31:36 GMT ETag: "1286494296325"
JSON
Request: PUT http://localhost:8891/wcps/api/property/namespaces/Oracle/propertysetdefinitions/partnersinfo/propertysets/infosys X-Oracle-RF-Token: FIxec1lmTFguxer9ZqZJpsXSnlZy_w** Cookie: JSESSIONID=h72xMnyKQQSW9Lwcg2HMGDnNQnK1HZJpGJmLgZ2P1vHFpvT2bX2k!-609606431;Version=1 Content-Type: application/json Accept: application/json If-Match: 1286501098924 { "name" : "infosys", "properties" : [ { "name" : "number_of_employees", "type" : "INT", "createdOn" : "2010-10-07T19:24:58.924-0600", "updatedOn" : "2010-10-07T19:24:58.924-0600", "values" : [ { "concreteType" : "urn:oracle:wcps:property:internal:jaxrs:model:integer-value", "value" : 10000 } ], "multiValue" : false, "resourceType" : "urn:oracle:wcps:property:property" }, { "name" : "address", "type" : "STRING", "createdOn" : "2010-10-07T19:24:58.924-0600", "updatedOn" : "2010-10-07T19:24:58.924-0600", "values" : [ { "concreteType" : "urn:oracle:wcps:property:internal:jaxrs:model:string-value", "value" : "1 foo loop, San Francisco, CA" } ], "multiValue" : false, "resourceType" : "urn:oracle:wcps:property:property" }, { "name" : "company_name", "type" : "STRING", "createdOn" : "2010-10-07T19:24:58.924-0600", "updatedOn" : "2010-10-07T19:24:58.924-0600", "values" : [ { "concreteType" : "urn:oracle:wcps:property:internal:jaxrs:model:string-value", "value" : "InfoSys" } ], "multiValue" : false, "resourceType" : "urn:oracle:wcps:property:property" }, { "name" : "previous_ranking_and_current_ranking", "type" : "INT_ARRAY", "createdOn" : "2010-10-07T19:24:58.924-0600", "updatedOn" : "2010-10-07T19:24:58.924-0600", "values" : [ { "concreteType" : "urn:oracle:wcps:property:internal:jaxrs:model:integer-value", "value" : 4 }, { "concreteType" : "urn:oracle:wcps:property:internal:jaxrs:model:integer-value", "value" : 5 } ], "multiValue" : true, "resourceType" : "urn:oracle:wcps:property:property" } ], "namespaceName" : "Oracle", "createdOn" : "2010-10-07T19:24:58.924-0600", "updatedOn" : "2010-10-07T19:24:58.924-0600", "propertySetDefinitionName" : "partnersinfo", "resourceType" : "urn:oracle:wcps:property:propertyset" } Response: Status Code:200 Content-Length: 0 X-Oracle-RF-Token-Scheme: utoken X-Oracle-RF-Token: FIxec1lmTFguxer9ZqZJpsXSnlZy_w** X-Powered-By: Servlet/2.5 JSP/2.1 Cache-Control: no-cache X-Oracle-RF-Token-Location: header Date: Fri, 08 Oct 2010 01:24:58 GMT ETag: "1286501098964"
DeletePS
Request: DELETE http://localhost:8891/wcps/api/property/namespaces/Oracle/propertysetdefinitions/partnersinfo/propertysets/infosys X-Oracle-RF-Token: FC59cJkhnJPolzPwKsStfD0Dxjm8_w** Cookie: JSESSIONID=vc1pMnYWRZysgqhXVz5XrGKqhvfy0vv2zc7xQ3RyDSvG0mG22ZlJ!-1714998420;Version=1 Content-Type: application/xml Accept: application/xml If-Match: 1286494295948 Response: Status Code:204 Content-Length: 0 X-Oracle-RF-Token-Scheme: utoken X-Oracle-RF-Token: FC59cJkhnJPolzPwKsStfD0Dxjm8_w** X-Powered-By: Servlet/2.5 JSP/2.1 Connection: close X-Oracle-RF-Token-Location: header Date: Thu, 07 Oct 2010 23:31:36 GMT
JSON
Request: DELETE http://localhost:8891/wcps/api/property/namespaces/Oracle/propertysetdefinitions/partnersinfo/propertysets/infosys X-Oracle-RF-Token: FIxec1lmTFguxer9ZqZJpsXSnlZy_w** Cookie: JSESSIONID=h72xMnyKQQSW9Lwcg2HMGDnNQnK1HZJpGJmLgZ2P1vHFpvT2bX2k!-609606431;Version=1 Content-Type: application/json Accept: application/json If-Match: 1286501098924 Response: Status Code:204 Content-Length: 0 X-Oracle-RF-Token-Scheme: utoken X-Oracle-RF-Token: FIxec1lmTFguxer9ZqZJpsXSnlZy_w** X-Powered-By: Servlet/2.5 JSP/2.1 Connection: close X-Oracle-RF-Token-Location: header Date: Fri, 08 Oct 2010 01:24:58 GMT
RetrieveAllPSs
XML
Request: GET http://localhost:8891/wcps/api/property/namespaces/Oracle/propertysetdefinitions/partnersinfo/propertysets X-Oracle-RF-Token: FC59cJkhnJPolzPwKsStfD0Dxjm8_w** Cookie: JSESSIONID=vc1pMnYWRZysgqhXVz5XrGKqhvfy0vv2zc7xQ3RyDSvG0mG22ZlJ!-1714998420;Version=1 Content-Type: application/xml Accept: application/xml Response: Status Code:200 Content-Length: 886 X-Oracle-RF-Token-Scheme: utoken X-Oracle-RF-Token: FC59cJkhnJPolzPwKsStfD0Dxjm8_w** X-Powered-By: Servlet/2.5 JSP/2.1 Cache-Control: no-cache X-Oracle-RF-Token-Location: header Content-Type: application/xml Date: Thu, 07 Oct 2010 23:31:36 GMT <?xml version="1.0" encoding="UTF-8"?> <propertySets resourceType="urn:oracle:wcps:property:propertysets"> <links> <link capabilities="urn:oracle:restframework:create urn:oracle:restframework:read urn:oracle:restframework:delete" href="http://localhost:8891/wcps/api/property/namespaces/Oracle/propertysetdefinitions/partnersinfo/propertysets?startIndex=0&itemsPerPage=10" rel="self" resourceType="urn:oracle:wcps:property:propertysets" template="http://localhost:8891/wcps/api/property/namespaces/Oracle/propertysetdefinitions/partnersinfo/propertysets?startIndex={startIndex}&dataFields={dataFields}&q={q}&itemsPerPage={itemsPerPage}"/> </links> <itemsPerPage>10</itemsPerPage> <startIndex>0</startIndex> <totalCount>0</totalCount> <namespaceName>Oracle</namespaceName> <propertySetDefinitionName>partnersinfo</propertySetDefinitionName> <items/> </propertySets>
JSON
Request: GET http://localhost:8891/wcps/api/property/namespaces/Oracle/propertysetdefinitions/partnersinfo/propertysets X-Oracle-RF-Token: FIxec1lmTFguxer9ZqZJpsXSnlZy_w** Cookie: JSESSIONID=h72xMnyKQQSW9Lwcg2HMGDnNQnK1HZJpGJmLgZ2P1vHFpvT2bX2k!-609606431;Version=1 Content-Type: application/json Accept: application/json Response: Status Code:200 X-Oracle-RF-Token-Scheme: utoken X-Oracle-RF-Token: FIxec1lmTFguxer9ZqZJpsXSnlZy_w** X-Powered-By: Servlet/2.5 JSP/2.1 Cache-Control: no-cache X-Oracle-RF-Token-Location: header Transfer-Encoding: chunked Content-Type: application/json Date: Fri, 08 Oct 2010 01:24:59 GMT { "propertySets" : [ ], "namespaceName" : "Oracle", "propertySetDefinitionName" : "partnersinfo", "totalCount" : 0, "startIndex" : 0, "itemsPerPage" : 10, "resourceType" : "urn:oracle:wcps:property:propertysets", "links" : [ { "template" : "http://localhost:8891/wcps/api/property/namespaces/Oracle/propertysetdefinitions/partnersinfo/propertysets?startIndex={startIndex}&dataFields={dataFields}&q={q}&itemsPerPage={itemsPerPage}", "resourceType" : "urn:oracle:wcps:property:propertysets", "capabilities" : "urn:oracle:restframework:create urn:oracle:restframework:read urn:oracle:restframework:delete", "href" : "http://localhost:8891/wcps/api/property/namespaces/Oracle/propertysetdefinitions/partnersinfo/propertysets?startIndex=0&itemsPerPage=10", "rel" : "self" } ] }
DeleteAllPSs
XML
Request: DELETE http://localhost:8891/wcps/api/property/namespaces/Oracle/propertysetdefinitions/partnersinfo/propertysets X-Oracle-RF-Token: FC59cJkhnJPolzPwKsStfD0Dxjm8_w** Cookie: JSESSIONID=vc1pMnYWRZysgqhXVz5XrGKqhvfy0vv2zc7xQ3RyDSvG0mG22ZlJ!-1714998420;Version=1 Content-Type: application/xml Accept: application/xml Response: Status Code:204 Content-Length: 0 X-Oracle-RF-Token-Scheme: utoken X-Oracle-RF-Token: FC59cJkhnJPolzPwKsStfD0Dxjm8_w** X-Powered-By: Servlet/2.5 JSP/2.1 Connection: close X-Oracle-RF-Token-Location: header Date: Thu, 07 Oct 2010 23:31:36 GMT
JSON
Request: DELETE http://localhost:8891/wcps/api/property/namespaces/Oracle/propertysetdefinitions/partnersinfo/propertysets X-Oracle-RF-Token: FIxec1lmTFguxer9ZqZJpsXSnlZy_w** Cookie: JSESSIONID=h72xMnyKQQSW9Lwcg2HMGDnNQnK1HZJpGJmLgZ2P1vHFpvT2bX2k!-609606431;Version=1 Content-Type: application/json Accept: application/json Response: Status Code:204 Content-Length: 0 X-Oracle-RF-Token-Scheme: utoken X-Oracle-RF-Token: FIxec1lmTFguxer9ZqZJpsXSnlZy_w** X-Powered-By: Servlet/2.5 JSP/2.1 Connection: close X-Oracle-RF-Token-Location: header Date: Fri, 08 Oct 2010 01:24:59 GMT
This section contains the following subsections:
CreateP
XML
Request: POST http://localhost:8891/wcps/api/property/namespaces/Oracle/propertysetdefinitions/partnersinfo/propertysets/infosys/properties X-Oracle-RF-Token: FC59cJkhnJPolzPwKsStfD0Dxjm8_w** Cookie: JSESSIONID=vc1pMnYWRZysgqhXVz5XrGKqhvfy0vv2zc7xQ3RyDSvG0mG22ZlJ!-1714998420;Version=1 Content-Type: application/xml Accept: application/xml <?xml version="1.0" encoding="UTF-8"?> <property multiValue="false" resourceType="urn:oracle:wcps:property:property"> <name>ceo_name</name> <type>STRING</type> <values> <string>Mr. Smith</string> </values> </property> Response: Status Code:201 Content-Length: 694 X-Oracle-RF-Token-Scheme: utoken X-Oracle-RF-Token: FC59cJkhnJPolzPwKsStfD0Dxjm8_w** X-Powered-By: Servlet/2.5 JSP/2.1 Cache-Control: no-cache X-Oracle-RF-Token-Location: header Content-Type: application/xml Location: http://localhost:8891/wcps/api/property/namespaces/Oracle/propertysetdefinitions/partnersinfo/propertysets/infosys/properties/ceo_name Date: Thu, 07 Oct 2010 23:31:36 GMT ETag: "1286494297011" <?xml version="1.0" encoding="UTF-8"?> <property multiValue="false" resourceType="urn:oracle:wcps:property:property"> <links> <link capabilities="urn:oracle:restframework:create urn:oracle:restframework:read urn:oracle:restframework:update urn:oracle:restframework:delete" href="http://localhost:8891/wcps/api/property/namespaces/Oracle/propertysetdefinitions/partnersinfo/propertysets/infosys/properties/ceo_name" rel="self" resourceType="urn:oracle:wcps:property:property"/> </links> <name>ceo_name</name> <type>STRING</type> <values> <string>Mr. Smith</string> </values> <createdOn>2010-10-07T17:31:36.741-0600</createdOn> <updatedOn>2010-10-07T17:31:37.011-0600</updatedOn> </property>
JSON
Request: POST http://localhost:8891/wcps/api/property/namespaces/Oracle/propertysetdefinitions/partnersinfo/propertysets/infosys/properties X-Oracle-RF-Token: FIxec1lmTFguxer9ZqZJpsXSnlZy_w** Cookie: JSESSIONID=h72xMnyKQQSW9Lwcg2HMGDnNQnK1HZJpGJmLgZ2P1vHFpvT2bX2k!-609606431;Version=1 Content-Type: application/json Accept: application/json { "name" : "ceo_name", "type" : "STRING", "values" : [ { "concreteType" : "urn:oracle:wcps:property:internal:jaxrs:model:string-value", "value" : "Mr. Smith" } ], "multiValue" : false, "resourceType" : "urn:oracle:wcps:property:property" } Response: Status Code:201 X-Oracle-RF-Token-Scheme: utoken X-Oracle-RF-Token: FIxec1lmTFguxer9ZqZJpsXSnlZy_w** X-Powered-By: Servlet/2.5 JSP/2.1 Cache-Control: no-cache X-Oracle-RF-Token-Location: header Transfer-Encoding: chunked Content-Type: application/json Location: http://localhost:8891/wcps/api/property/namespaces/Oracle/propertysetdefinitions/partnersinfo/propertysets/infosys/properties/ceo_name Date: Fri, 08 Oct 2010 01:24:59 GMT ETag: "1286501099056" { "name" : "ceo_name", "type" : "STRING", "values" : [ { "concreteType" : "urn:oracle:wcps:property:internal:jaxrs:model:string-value", "value" : "Mr. Smith" } ], "createdOn" : "2010-10-07T19:24:59.038-0600", "updatedOn" : "2010-10-07T19:24:59.056-0600", "multiValue" : false, "resourceType" : "urn:oracle:wcps:property:property", "links" : [ { "resourceType" : "urn:oracle:wcps:property:property", "capabilities" : "urn:oracle:restframework:create urn:oracle:restframework:read urn:oracle:restframework:update urn:oracle:restframework:delete", "href" : "http://localhost:8891/wcps/api/property/namespaces/Oracle/propertysetdefinitions/partnersinfo/propertysets/infosys/properties/ceo_name", "rel" : "self" } ] }
RetrieveP
XML
Request: GET http://localhost:8891/wcps/api/property/namespaces/Oracle/propertysetdefinitions/partnersinfo/propertysets/infosys/properties/ceo_name X-Oracle-RF-Token: FC59cJkhnJPolzPwKsStfD0Dxjm8_w** Cookie: JSESSIONID=vc1pMnYWRZysgqhXVz5XrGKqhvfy0vv2zc7xQ3RyDSvG0mG22ZlJ!-1714998420;Version=1 Content-Type: application/xml Accept: application/xml Response: Status Code:200 Content-Length: 694 X-Oracle-RF-Token-Scheme: utoken X-Oracle-RF-Token: FC59cJkhnJPolzPwKsStfD0Dxjm8_w** X-Powered-By: Servlet/2.5 JSP/2.1 Cache-Control: no-cache X-Oracle-RF-Token-Location: header Content-Type: application/xml Date: Thu, 07 Oct 2010 23:31:37 GMT ETag: "1286494297366" <?xml version="1.0" encoding="UTF-8"?> <property multiValue="false" resourceType="urn:oracle:wcps:property:property"> <links> <link capabilities="urn:oracle:restframework:create urn:oracle:restframework:read urn:oracle:restframework:update urn:oracle:restframework:delete" href="http://localhost:8891/wcps/api/property/namespaces/Oracle/propertysetdefinitions/partnersinfo/propertysets/infosys/properties/ceo_name" rel="self" resourceType="urn:oracle:wcps:property:property"/> </links> <name>ceo_name</name> <type>STRING</type> <values> <string>Mr. Baker</string> </values> <createdOn>2010-10-07T17:31:36.741-0600</createdOn> <updatedOn>2010-10-07T17:31:37.366-0600</updatedOn> </property>
JSON
Request: GET http://localhost:8891/wcps/api/property/namespaces/Oracle/propertysetdefinitions/partnersinfo/propertysets/infosys/properties/ceo_name X-Oracle-RF-Token: FIxec1lmTFguxer9ZqZJpsXSnlZy_w** Cookie: JSESSIONID=h72xMnyKQQSW9Lwcg2HMGDnNQnK1HZJpGJmLgZ2P1vHFpvT2bX2k!-609606431;Version=1 Content-Type: application/json Accept: application/json Response: Status Code:200 X-Oracle-RF-Token-Scheme: utoken X-Oracle-RF-Token: FIxec1lmTFguxer9ZqZJpsXSnlZy_w** X-Powered-By: Servlet/2.5 JSP/2.1 Cache-Control: no-cache X-Oracle-RF-Token-Location: header Transfer-Encoding: chunked Content-Type: application/json Date: Fri, 08 Oct 2010 01:24:59 GMT ETag: "1286501099162" { "name" : "ceo_name", "type" : "STRING", "values" : [ { "concreteType" : "urn:oracle:wcps:property:internal:jaxrs:model:string-value", "value" : "Mr. Baker" } ], "createdOn" : "2010-10-07T19:24:59.038-0600", "updatedOn" : "2010-10-07T19:24:59.162-0600", "multiValue" : false, "resourceType" : "urn:oracle:wcps:property:property", "links" : [ { "resourceType" : "urn:oracle:wcps:property:property", "capabilities" : "urn:oracle:restframework:create urn:oracle:restframework:read urn:oracle:restframework:update urn:oracle:restframework:delete", "href" : "http://localhost:8891/wcps/api/property/namespaces/Oracle/propertysetdefinitions/partnersinfo/propertysets/infosys/properties/ceo_name", "rel" : "self" } ] }
UpdateP
XML
Request: PUT http://localhost:8891/wcps/api/property/namespaces/Oracle/propertysetdefinitions/partnersinfo/propertysets/infosys/properties/ceo_name X-Oracle-RF-Token: FC59cJkhnJPolzPwKsStfD0Dxjm8_w** Cookie: JSESSIONID=vc1pMnYWRZysgqhXVz5XrGKqhvfy0vv2zc7xQ3RyDSvG0mG22ZlJ!-1714998420;Version=1 Content-Type: application/xml Accept: application/xml If-Match: 1286494297011 <?xml version="1.0" encoding="UTF-8"?> <property multiValue="false" resourceType="urn:oracle:wcps:property:property"> <name>ceo_name</name> <type>STRING</type> <values> <string>Mr. Baker</string> </values> <createdOn>2010-10-07T17:31:36.741-0600</createdOn> <updatedOn>2010-10-07T17:31:37.011-0600</updatedOn> </property> Response: Status Code:200 Content-Length: 0 X-Oracle-RF-Token-Scheme: utoken X-Oracle-RF-Token: FC59cJkhnJPolzPwKsStfD0Dxjm8_w** X-Powered-By: Servlet/2.5 JSP/2.1 Cache-Control: no-cache X-Oracle-RF-Token-Location: header Date: Thu, 07 Oct 2010 23:31:37 GMT ETag: "1286494297366"
JSON
Request: PUT http://localhost:8891/wcps/api/property/namespaces/Oracle/propertysetdefinitions/partnersinfo/propertysets/infosys/properties/ceo_name X-Oracle-RF-Token: FIxec1lmTFguxer9ZqZJpsXSnlZy_w** Cookie: JSESSIONID=h72xMnyKQQSW9Lwcg2HMGDnNQnK1HZJpGJmLgZ2P1vHFpvT2bX2k!-609606431;Version=1 Content-Type: application/json Accept: application/json If-Match: 1286501099056 { "name" : "ceo_name", "type" : "STRING", "createdOn" : "2010-10-07T19:24:59.038-0600", "updatedOn" : "2010-10-07T19:24:59.056-0600", "values" : [ { "concreteType" : "urn:oracle:wcps:property:internal:jaxrs:model:string-value", "value" : "Mr. Baker" } ], "multiValue" : false, "resourceType" : "urn:oracle:wcps:property:property" } Response: Status Code:200 Content-Length: 0 X-Oracle-RF-Token-Scheme: utoken X-Oracle-RF-Token: FIxec1lmTFguxer9ZqZJpsXSnlZy_w** X-Powered-By: Servlet/2.5 JSP/2.1 Cache-Control: no-cache X-Oracle-RF-Token-Location: header Date: Fri, 08 Oct 2010 01:24:59 GMT ETag: "1286501099162"
DeleteP
XML
Request: DELETE http://localhost:8891/wcps/api/property/namespaces/Oracle/propertysetdefinitions/partnersinfo/propertysets/infosys/properties/ceo_name X-Oracle-RF-Token: FIxec1lmTFguxer9ZqZJpsXSnlZy_w** Cookie: JSESSIONID=VyThMnyG0gyp97J3vKPrkfF4VvtrjTDHJ3SL894V0glWzqJ24L0B!-609606431;Version=1 Content-Type: application/xml Accept: application/xml If-Match: 1286501097791 Response: Status Code:204 Content-Length: 0 X-Oracle-RF-Token-Scheme: utoken X-Oracle-RF-Token: FIxec1lmTFguxer9ZqZJpsXSnlZy_w** X-Powered-By: Servlet/2.5 JSP/2.1 Connection: close X-Oracle-RF-Token-Location: header Date: Fri, 08 Oct 2010 01:24:58 GMT
JSON
Request: DELETE http://localhost:8891/wcps/api/property/namespaces/Oracle/propertysetdefinitions/partnersinfo/propertysets/infosys/properties/ceo_name X-Oracle-RF-Token: FIxec1lmTFguxer9ZqZJpsXSnlZy_w** Cookie: JSESSIONID=h72xMnyKQQSW9Lwcg2HMGDnNQnK1HZJpGJmLgZ2P1vHFpvT2bX2k!-609606431;Version=1 Content-Type: application/json Accept: application/json If-Match: 1286501099162 Response: Status Code:204 Content-Length: 0 X-Oracle-RF-Token-Scheme: utoken X-Oracle-RF-Token: FIxec1lmTFguxer9ZqZJpsXSnlZy_w** X-Powered-By: Servlet/2.5 JSP/2.1 Connection: close X-Oracle-RF-Token-Location: header Date: Fri, 08 Oct 2010 01:24:59 GMT
DeleteAllP
XML
Request: DELETE http://localhost:8891/wcps/api/property/namespaces/Oracle/propertysetdefinitions/partnersinfo/propertysets/infosys/properties X-Oracle-RF-Token: FIxec1lmTFguxer9ZqZJpsXSnlZy_w** Cookie: JSESSIONID=VyThMnyG0gyp97J3vKPrkfF4VvtrjTDHJ3SL894V0glWzqJ24L0B!-609606431;Version=1 Content-Type: application/xml Accept: application/xml Response: Status Code:204 Content-Length: 0 X-Oracle-RF-Token-Scheme: utoken X-Oracle-RF-Token: FIxec1lmTFguxer9ZqZJpsXSnlZy_w** X-Powered-By: Servlet/2.5 JSP/2.1 Connection: close X-Oracle-RF-Token-Location: header Date: Fri, 08 Oct 2010 01:24:58 GMT
JSON
Request: DELETE http://localhost:8891/wcps/api/property/namespaces/Oracle/propertysetdefinitions/partnersinfo/propertysets/infosys/properties X-Oracle-RF-Token: FIxec1lmTFguxer9ZqZJpsXSnlZy_w** Cookie: JSESSIONID=h72xMnyKQQSW9Lwcg2HMGDnNQnK1HZJpGJmLgZ2P1vHFpvT2bX2k!-609606431;Version=1 Content-Type: application/json Accept: application/json Response: Status Code:204 Content-Length: 0 X-Oracle-RF-Token-Scheme: utoken X-Oracle-RF-Token: FIxec1lmTFguxer9ZqZJpsXSnlZy_w** X-Powered-By: Servlet/2.5 JSP/2.1 Connection: close X-Oracle-RF-Token-Location: header Date: Fri, 08 Oct 2010 01:24:59 GMT
The property value in JSON format indicates the value type using concreteType
field names. The following table maps the property definition type and Java data type to the values of concreteType
.
Table 62-4 concreteType Values
Property Definition Type | Java Data Type | concreteType Value |
---|---|---|
INT |
java.lang.Integer |
urn:oracle:wcps:property:internal:jaxrs:model:integer-value |
NUMBER |
java.lang.Double |
urn:oracle:wcps:property:internal:jaxrs:model:double-value |
STRING |
java.lang.String |
urn:oracle:wcps:property:internal:jaxrs:model:string-value |
BOOLEAN |
java.lang.Boolean |
urn:oracle:wcps:property:internal:jaxrs:model:boolean-value |
BLOB |
oracle.wcps.property.BlobData |
urn:oracle:wcps:property:blob-data |
CLOB |
oracle.wcps.property.ClobData |
urn:oracle:wcps:property:clob-data |
DATETIME |
oracle.wcps.property.DateTime |
urn:oracle:wcps:property:date-time |
If optimistic concurrency is disabled on the property server, the "If-Match" request header is not required. If enabled, the value of the "If-Match" header should be the value sent for the response header "ETag".
Not sending the request header X-Oracle-RF-Token results in a 403 response status. The value of the token should be the one sent in response of the /resouceIndex
request.
Attempting to delete an "in use" Namespace, Property Definition, or Property Set Definition results in a 412 response status.
Table 62-5 shows the supported query parameters and their default values.
Table 62-5 Query Parameters
Query Parameter Name | Description | Default Value | Other Special Values |
---|---|---|---|
q |
the value for it is a search expression |
none |
none |
startIndex |
Represents the index of the first element in a page |
0 |
none |
itemsPerPage |
Represents the number of items to be included in a page |
10 |
none |
dataFields |
Represents a list of attributes of a property service entities for which data is returned |
empty list = (Return zero attributes) |
* = (all attributes) |
This section contains the following subsections:
The value for the 'q
' query parameter is a search expression. The search expression format is:
single_expression = attribute_name:operator_name:value expression = single_expression[;single_expression]
Relational Operator
:equals:
==> Equals
:contains:
==> Contains
:like:
==> SQL Like, applies only to string type property values
:gt:
==> Greater than
:gte:
==> Greater than or equals to
:lt:
==> Less than
:lte:
==> Less than or equals to
Logical Opertion
;
==> and
Table 62-6, Table 62-7, Table 62-8, and Table 62-9 show the supported attribute names that can be used in a search expressions to search for property service entities.
Namespace Attributes
Table 62-6 Namespace Attributes
Attribute Name | Description |
---|---|
ns-name |
A namespace's name |
ns-property-locator-class-name |
A namespace's property locator class name |
ns-definition-locator-class-name |
A namespace's definition locator class name |
ns-created-on |
A namespace's created on date time |
ns-updated-on |
A namespace's updated on date time |
Examples:
/wcps/api/property/namespaces?q=ns-name:like:Oracle_%25 /wcps/api/property/namespaces?q=ns-definition-locator-class-name:like:%25Locator%25;ns-name:like:Oracle_%25
Property Definition Attributes
Table 62-7 Property Definition Attributes
Attribute Name | Description |
---|---|
pd-name |
A property definition's name |
pd-description |
A property definition's description |
pd-type |
A property definition's type |
pd-restricted |
A property definition's restricted attribute |
pd-validator-class-name |
A property definition's validator class name |
pd-created-on |
A property definition's created on date time |
pd-updated-on |
A property definition's updated on date time |
Example:
/wcps/api/property/namespaces/Oracle/propertydefinitions?q=pd-name:like:%25D%25;pd-description:contains:4th;pd-restricted:contains:true
Property Set Definition Attributes
Table 62-8 Property Set Definition Attributes
Attribute Name | Description |
---|---|
psd-name |
A property set definition's name |
psd-description |
A property set definition's description |
psd-pd-name |
A property definition name referred by a property set definition |
psd-property-locator-class-name |
A property locator class name associated with a property set definition |
psd-created-on |
A property set definition's created on date time |
psd-updated-on |
A property set definition's updated on date time |
Example:
wcps/api/property/namespaces/Oracle/propertysetdefinitions?q=psd-created-on:gt:1980-01-01T00:00:00.000-0700;psd-name:like:%255%25
Property Set Attributes
Table 62-9 Property Set Attributes
Attribute Name | Description |
---|---|
ps-name |
A property set's name |
ps-description |
A property set's description |
psd-created-on |
A property set's created on date time |
psd-updated-on |
A property set's updated on date time |
a property's name |
A property's name attribute (for example, firstName, zipCode, etc.) |
Example:
/wcps/api/property/namespaces/Oracle/propertysetdefinitions/partners_info/propertysets?q=ps-created-on:gt:1980-01-01T00:00:00.000-0700
This section provides examples of how you can use the Conductor's REST APIs to programatically carry out basic WebCenter Personalization tasks, such as:
Get information about data providers
Get information about function providers
Create, retrieve, or delete a namespace
Create, retrieve, execute, or delete a scenario
You can use the Conductor REST APIs from within application code, or using Personalization ELs to call them from within your WebCenter Portal application or WebCenter Spaces.
This section contains the following subsections:
This section provides examples of using the Conductor's data provider management APIs, and contains the following subsections:
Section 62.4.4.1.1, "Getting a Collection of Data Providers (GET)"
Section 62.4.4.1.2, "Getting a Single Data Provider's Metadata (GET)"
Section 62.4.4.1.3, "Getting Information About a Data Provider Connection (GET)"
Section 62.4.4.1.6, "Getting Entire Data Provider Information with Details Projection (GET)"
XML
Request: GET http://localhost:7001/wcps/api/conductor/namespaces/Oracle/dataProviders?projection=summary accept-language: en content-type: application/xml accept: application/xml Response: Status Code:200 Content-Length: 4469 X-Powered-By: Servlet/2.5 JSP/2.1 Set-Cookie: JSESSIONID=YxYmM25GLpCy7BSND7vF6BnsQCn20RQsCrS92n1SLXmxpccVkfpX!822326988; path=/wcps; HttpOnly Content-Type: application/xml Date: Wed, 13 Oct 2010 22:58:46 GMT <?xml version="1.0" encoding="UTF-8"?> <dataProviders resourceType="urn:oracle:wcps:conductor:provider:dataProviders"> <links> <link capabilities="urn:oracle:restframework:read" href="http://localhost:7001/wcps/api/conductor/namespaces/Oracle/dataProviders?projection=summary&startIndex=0&itemsPerPage=10" rel="self" resourceType="urn:oracle:wcps:conductor:provider:dataProviders" template="http://localhost:7001/wcps/api/conductor/namespaces/Oracle/dataProviders?projection={projection}"/> </links> <items> <dataProvider resourceType="urn:oracle:wcps:conductor:provider:dataProvider"> <links> <link capabilities="urn:oracle:restframework:read" href="http://localhost:7001/wcps/api/conductor/namespaces/Oracle/dataProviders" rel="urn:oracle:webcenter:parent" resourceType="urn:oracle:wcps:conductor:provider:dataProviders" template="http://localhost:7001/wcps/api/conductor/namespaces/Oracle/dataProviders?projection={projection}"/> <link capabilities="urn:oracle:restframework:read" href="http://localhost:7001/wcps/api/conductor/namespaces/Oracle/dataProviders/CMISProvider" rel="self" resourceType="urn:oracle:wcps:conductor:provider:dataProvider" template="http://localhost:7001/wcps/api/conductor/namespaces/Oracle/dataProviders/CMISProvider?projection={projection}"/> </links> <name>CMISProvider</name> <localizedName>Universal Content Provider (CMIS)</localizedName> <localizedDescription>Provides access to content over CMIS connections.</localizedDescription> </dataProvider> <dataProvider resourceType="urn:oracle:wcps:conductor:provider:dataProvider"> <links> <link capabilities="urn:oracle:restframework:read" href="http://localhost:7001/wcps/api/conductor/namespaces/Oracle/dataProviders" rel="urn:oracle:webcenter:parent" resourceType="urn:oracle:wcps:conductor:provider:dataProviders" template="http://localhost:7001/wcps/api/conductor/namespaces/Oracle/dataProviders?projection={projection}"/> <link capabilities="urn:oracle:restframework:read" href="http://localhost:7001/wcps/api/conductor/namespaces/Oracle/dataProviders/SampleProvider" rel="self" resourceType="urn:oracle:wcps:conductor:provider:dataProvider" template="http://localhost:7001/wcps/api/conductor/namespaces/Oracle/dataProviders/SampleProvider?projection={projection}"/> </links> <name>SampleProvider</name> <localizedName>Sample Data Provider</localizedName> <localizedDescription>Example of a data provider</localizedDescription> </dataProvider> <dataProvider resourceType="urn:oracle:wcps:conductor:provider:dataProvider"> <links> <link capabilities="urn:oracle:restframework:read" href="http://localhost:7001/wcps/api/conductor/namespaces/Oracle/dataProviders" rel="urn:oracle:webcenter:parent" resourceType="urn:oracle:wcps:conductor:provider:dataProviders" template="http://localhost:7001/wcps/api/conductor/namespaces/Oracle/dataProviders?projection={projection}"/> <link capabilities="urn:oracle:restframework:read" href="http://localhost:7001/wcps/api/conductor/namespaces/Oracle/dataProviders/ActivityGraphProvider" rel="self" resourceType="urn:oracle:wcps:conductor:provider:dataProvider" template="http://localhost:7001/wcps/api/conductor/namespaces/Oracle/dataProviders/ActivityGraphProvider?projection={projection}"/> </links> <name>ActivityGraphProvider</name> <localizedName>Activity Graph</localizedName> <localizedDescription>Activity Graph Adapter</localizedDescription> </dataProvider> <dataProvider resourceType="urn:oracle:wcps:conductor:provider:dataProvider"> <links> <link capabilities="urn:oracle:restframework:read" href="http://localhost:7001/wcps/api/conductor/namespaces/Oracle/dataProviders" rel="urn:oracle:webcenter:parent" resourceType="urn:oracle:wcps:conductor:provider:dataProviders" template="http://localhost:7001/wcps/api/conductor/namespaces/Oracle/dataProviders?projection={projection}"/> <link capabilities="urn:oracle:restframework:read" href="http://localhost:7001/wcps/api/conductor/namespaces/Oracle/dataProviders/oracle.PropertiesServiceProvider" rel="self" resourceType="urn:oracle:wcps:conductor:provider:dataProvider" template="http://localhost:7001/wcps/api/conductor/namespaces/Oracle/dataProviders/oracle.PropertiesServiceProvider?projection={projection}"/> </links> <name>oracle.PropertiesServiceProvider</name> <localizedName>Property Service Data Provider</localizedName> <localizedDescription>Data provider implementation to integrate the properties service for use in scenarios. </localizedDescription> </dataProvider> </items> </dataProviders>
JSON
Request: GET http://localhost:7001/wcps/api/conductor/namespaces/Oracle/dataProviders?projection=summary accept-language: en content-type: application/json accept: application/json Response: Status Code:200 X-Powered-By: Servlet/2.5 JSP/2.1 Set-Cookie: JSESSIONID=ylp2M27pSyLJPv2X4cn9RYy7NRyftzz2vs7VCyJ1NQKJl4XQnjXd!822326988; path=/wcps; HttpOnly Transfer-Encoding: chunked Content-Type: application/json Date: Wed, 13 Oct 2010 23:07:10 GMT { "dataProviders" : [ { "name" : "CMISProvider", "localizedName" : "Universal Content Provider (CMIS)", "localizedDescription" : "Provides access to content over CMIS connections.", "resourceType" : "urn:oracle:wcps:conductor:provider:dataProvider", "links" : [ { "resourceType" : "urn:oracle:wcps:conductor:provider:dataProviders", "template" : "http://localhost:7001/wcps/api/conductor/namespaces/Oracle/dataProviders?projection={projection}", "capabilities" : "urn:oracle:restframework:read", "href" : "http://localhost:7001/wcps/api/conductor/namespaces/Oracle/dataProviders", "rel" : "urn:oracle:webcenter:parent" }, { "resourceType" : "urn:oracle:wcps:conductor:provider:dataProvider", "template" : "http://localhost:7001/wcps/api/conductor/namespaces/Oracle/dataProviders/CMISProvider?projection={projection}", "capabilities" : "urn:oracle:restframework:read", "href" : "http://localhost:7001/wcps/api/conductor/namespaces/Oracle/dataProviders/CMISProvider", "rel" : "self" } ] }, { "name" : "SampleProvider", "localizedName" : "Sample Data Provider", "localizedDescription" : "Example of a data provider", "resourceType" : "urn:oracle:wcps:conductor:provider:dataProvider", "links" : [ { "resourceType" : "urn:oracle:wcps:conductor:provider:dataProviders", "template" : "http://localhost:7001/wcps/api/conductor/namespaces/Oracle/dataProviders?projection={projection}", "capabilities" : "urn:oracle:restframework:read", "href" : "http://localhost:7001/wcps/api/conductor/namespaces/Oracle/dataProviders", "rel" : "urn:oracle:webcenter:parent" }, { "resourceType" : "urn:oracle:wcps:conductor:provider:dataProvider", "template" : "http://localhost:7001/wcps/api/conductor/namespaces/Oracle/dataProviders/SampleProvider?projection={projection}", "capabilities" : "urn:oracle:restframework:read", "href" : "http://localhost:7001/wcps/api/conductor/namespaces/Oracle/dataProviders/SampleProvider", "rel" : "self" } ] }, { "name" : "ActivityGraphProvider", "localizedName" : "Activity Graph", "localizedDescription" : "Activity Graph Adapter", "resourceType" : "urn:oracle:wcps:conductor:provider:dataProvider", "links" : [ { "resourceType" : "urn:oracle:wcps:conductor:provider:dataProviders", "template" : "http://localhost:7001/wcps/api/conductor/namespaces/Oracle/dataProviders?projection={projection}", "capabilities" : "urn:oracle:restframework:read", "href" : "http://localhost:7001/wcps/api/conductor/namespaces/Oracle/dataProviders", "rel" : "urn:oracle:webcenter:parent" }, { "resourceType" : "urn:oracle:wcps:conductor:provider:dataProvider", "template" : "http://localhost:7001/wcps/api/conductor/namespaces/Oracle/dataProviders/ActivityGraphProvider?projection={projection}", "capabilities" : "urn:oracle:restframework:read", "href" : "http://localhost:7001/wcps/api/conductor/namespaces/Oracle/dataProviders/ActivityGraphProvider", "rel" : "self" } ] }, { "name" : "oracle.PropertiesServiceProvider", "localizedName" : "Property Service Data Provider", "localizedDescription" : "Data provider implementation to integrate the properties service for use in scenarios. ", "resourceType" : "urn:oracle:wcps:conductor:provider:dataProvider", "links" : [ { "resourceType" : "urn:oracle:wcps:conductor:provider:dataProviders", "template" : "http://localhost:7001/wcps/api/conductor/namespaces/Oracle/dataProviders?projection={projection}", "capabilities" : "urn:oracle:restframework:read", "href" : "http://localhost:7001/wcps/api/conductor/namespaces/Oracle/dataProviders", "rel" : "urn:oracle:webcenter:parent" }, { "resourceType" : "urn:oracle:wcps:conductor:provider:dataProvider", "template" : "http://localhost:7001/wcps/api/conductor/namespaces/Oracle/dataProviders/oracle.PropertiesServiceProvider?projection={projection}", "capabilities" : "urn:oracle:restframework:read", "href" : "http://localhost:7001/wcps/api/conductor/namespaces/Oracle/dataProviders/oracle.PropertiesServiceProvider", "rel" : "self" } ] } ], "resourceType" : "urn:oracle:wcps:conductor:provider:dataProviders", "links" : [ { "resourceType" : "urn:oracle:wcps:conductor:provider:dataProviders", "template" : "http://localhost:7001/wcps/api/conductor/namespaces/Oracle/dataProviders?projection={projection}", "capabilities" : "urn:oracle:restframework:read", "href" : "http://localhost:7001/wcps/api/conductor/namespaces/Oracle/dataProviders?projection=summary&startIndex=0&itemsPerPage=10", "rel" : "self" } ] }
XML
Request: GET http://localhost:7001/wcps/api/conductor/namespaces/Oracle/dataProviders/oracle.PropertiesServiceProvider?projection=summary accept-language: en content-type: application/xml accept: application/xml Response: Status Code:200 Content-Length: 5792 X-Powered-By: Servlet/2.5 JSP/2.1 Set-Cookie: JSESSIONID=L3b2M25L67PvznfyQNqHcyPh2J11rP51MMYlL1h80GvWsPxlHPvY!822326988; path=/wcps; HttpOnly Content-Type: application/xml Date: Wed, 13 Oct 2010 22:58:48 GMT <?xml version="1.0" encoding="UTF-8"?> <dataProvider resourceType="urn:oracle:wcps:conductor:provider:dataProvider"> <links> <link capabilities="urn:oracle:restframework:read" href="http://localhost:7001/wcps/api/conductor/namespaces/Oracle/dataProviders" rel="urn:oracle:webcenter:parent" resourceType="urn:oracle:wcps:conductor:provider:dataProviders" template="http://localhost:7001/wcps/api/conductor/namespaces/Oracle/dataProviders?projection={projection}"/> <link capabilities="urn:oracle:restframework:read" href="http://localhost:7001/wcps/api/conductor/namespaces/Oracle/dataProviders/oracle.PropertiesServiceProvider?projection=summary" rel="self" resourceType="urn:oracle:wcps:conductor:provider:dataProvider" template="http://localhost:7001/wcps/api/conductor/namespaces/Oracle/dataProviders/oracle.PropertiesServiceProvider?projection={projection}"/> <link capabilities="urn:oracle:restframework:read" rel="urn:oracle:wcps:conductor:provider:providerConnections" resourceType="urn:oracle:wcps:conductor:provider:providerConnections" template="http://localhost:7001/wcps/api/conductor/namespaces/{namespace}/dataProviders/{provider-name}/connections?projection={projection}"/> <link capabilities="urn:oracle:restframework:read" rel="urn:oracle:wcps:conductor:provider:providerConnection" resourceType="urn:oracle:wcps:conductor:provider:providerConnection" template="http://localhost:7001/wcps/api/conductor/namespaces/{namespace}/dataProviders/{provider-name}/connections/{connection-name}?projection={projection}"/> <link capabilities="urn:oracle:restframework:read" rel="urn:oracle:wcps:conductor:provider:connectionResources" resourceType="urn:oracle:wcps:conductor:provider:connectionResources" template="http://localhost:7001/wcps/api/conductor/namespaces/{namespace}/dataProviders/{provider-name}/connections/{connection-name}/resources?projection={projection}"/> <link capabilities="urn:oracle:restframework:read" rel="urn:oracle:wcps:conductor:provider:connectionResource" resourceType="urn:oracle:wcps:conductor:provider:connectionResource" template="http://localhost:7001/wcps/api/conductor/namespaces/{namespace}/dataProviders/{provider-name}/connections/{connection-name}/resources/{resource-name}?projection={projection}"/> <link capabilities="urn:oracle:restframework:read" rel="urn:oracle:wcps:conductor:provider:resourceMethods" resourceType="urn:oracle:wcps:conductor:provider:resourceMethods" template="http://localhost:7001/wcps/api/conductor/namespaces/{namespace}/dataProviders/{provider-name}/connections/{connection-name}/resources/{resource-name}/methods?projection={projection}"/> <link capabilities="urn:oracle:restframework:read" rel="urn:oracle:wcps:conductor:provider:resourceMethod" resourceType="urn:oracle:wcps:conductor:provider:resourceMethod" template="http://localhost:7001/wcps/api/conductor/namespaces/{namespace}/dataProviders/{provider-name}/connections/{connection-name}/resources/{resource-name}/methods/{method-name}?projection={projection}"/> </links> <name>oracle.PropertiesServiceProvider</name> <localizedName>Property Service Data Provider</localizedName> <localizedDescription>Data provider implementation to integrate the properties service for use in scenarios. </localizedDescription> <providerConnections resourceType="urn:oracle:wcps:conductor:provider:providerConnections"> <links> <link capabilities="urn:oracle:restframework:read" href="http://localhost:7001/wcps/api/conductor/namespaces/Oracle/dataProviders/oracle.PropertiesServiceProvider" rel="urn:oracle:webcenter:parent" resourceType="urn:oracle:wcps:conductor:provider:dataProvider" template="http://localhost:7001/wcps/api/conductor/namespaces/Oracle/dataProviders/oracle.PropertiesServiceProvider?projection={projection}"/> <link capabilities="urn:oracle:restframework:read" href="http://localhost:7001/wcps/api/conductor/namespaces/Oracle/dataProviders/oracle.PropertiesServiceProvider/connections" rel="self" resourceType="urn:oracle:wcps:conductor:provider:providerConnections" template="http://localhost:7001/wcps/api/conductor/namespaces/Oracle/dataProviders/oracle.PropertiesServiceProvider/connections?projection={projection}"/> </links> <items> <providerConnection resourceType="urn:oracle:wcps:conductor:provider:providerConnection"> <links> <link capabilities="urn:oracle:restframework:read" href="http://localhost:7001/wcps/api/conductor/namespaces/Oracle/dataProviders/oracle.PropertiesServiceProvider/connections" rel="urn:oracle:webcenter:parent" resourceType="urn:oracle:wcps:conductor:provider:providerConnections" template="http://localhost:7001/wcps/api/conductor/namespaces/Oracle/dataProviders/oracle.PropertiesServiceProvider/connections?projection={projection}"/> <link capabilities="urn:oracle:restframework:read" href="http://localhost:7001/wcps/api/conductor/namespaces/Oracle/dataProviders/oracle.PropertiesServiceProvider/connections/LocalServerConnection/metadata" rel="urn:oracle:wcps:conductor:provider:connectionMetadata" resourceType="urn:oracle:wcps:conductor:provider:connectionMetadata" template="http://localhost:7001/wcps/api/conductor/namespaces/Oracle/dataProviders/oracle.PropertiesServiceProvider/connections/LocalServerConnection/metadata?projection={projection}"/> <link capabilities="urn:oracle:restframework:read" href="http://localhost:7001/wcps/api/conductor/namespaces/Oracle/dataProviders/oracle.PropertiesServiceProvider/connections/LocalServerConnection" rel="self" resourceType="urn:oracle:wcps:conductor:provider:providerConnection" template="http://localhost:7001/wcps/api/conductor/namespaces/Oracle/dataProviders/oracle.PropertiesServiceProvider/connections/LocalServerConnection?projection={projection}"/> </links> <name>LocalServerConnection</name> </providerConnection> </items> </providerConnections> </dataProvider>
JSON
Request: GET http://localhost:7001/wcps/api/conductor/namespaces/Oracle/dataProviders/oracle.PropertiesServiceProvider?projection=details accept-language: en content-type: application/json accept: application/json Response: Status Code:200 X-Powered-By: Servlet/2.5 JSP/2.1 Set-Cookie: JSESSIONID=R1P2M27Qd09Wh86s5rGdDFfBcbKtftPKvpdMsN2gcpLRN7XPyDnQ!822326988; path=/wcps; HttpOnly Transfer-Encoding: chunked Content-Type: application/json Date: Wed, 13 Oct 2010 23:07:12 GMT { "name" : "oracle.PropertiesServiceProvider", "localizedName" : "Property Service Data Provider", "localizedDescription" : "Data provider implementation to integrate the properties service for use in scenarios. ", "providerConnections" : [ { "name" : "LocalServerConnection", "connectionResources" : [ { "name" : "GetPropertiesResource", "resourceMethods" : { "resourceMethods" : [ { "name" : "GetProperty", "uniqueName" : "GetProperty(namespace,definition,set,property)", "returnType" : "java.io.Serializable", "parameters" : [ { "type" : "java.lang.String", "name" : "namespace", "localizedDescription" : "The namespace in which the property set definition and property set exists." }, { "type" : "java.lang.String", "name" : "definition", "localizedDescription" : "The property set definition name." }, { "type" : "java.lang.String", "name" : "set", "localizedDescription" : "The property set name." }, { "type" : "java.lang.String", "name" : "property", "localizedDescription" : "The property name." } ], "localizedDescription" : "Retrieves a property set for the current (or specified) namespace, property set definition name, and property set name, and property name. If no namespace, property set definition, property set and property exists\tnull will be returned.", "resourceType" : "urn:oracle:wcps:conductor:provider:resourceMethod", "links" : [ { "resourceType" : "urn:oracle:wcps:conductor:provider:resourceMethods", "template" : "http://localhost:7001/wcps/api/conductor/namespaces/Oracle/dataProviders/oracle.PropertiesServiceProvider/connections/LocalServerConnection/resources/GetPropertiesResource/methods?projection={projection}", "capabilities" : "urn:oracle:restframework:read", "href" : "http://localhost:7001/wcps/api/conductor/namespaces/Oracle/dataProviders/oracle.PropertiesServiceProvider/connections/LocalServerConnection/resources/GetPropertiesResource/methods", "rel" : "urn:oracle:webcenter:parent" }, { "resourceType" : "urn:oracle:wcps:conductor:provider:resourceMethod", "template" : "http://localhost:7001/wcps/api/conductor/namespaces/Oracle/dataProviders/oracle.PropertiesServiceProvider/connections/LocalServerConnection/resources/GetPropertiesResource/methods/GetProperty(namespace,definition,set,property)?projection={projection}", "capabilities" : "urn:oracle:restframework:read", "href" : "http://localhost:7001/wcps/api/conductor/namespaces/Oracle/dataProviders/oracle.PropertiesServiceProvider/connections/LocalServerConnection/resources/GetPropertiesResource/methods/GetProperty(namespace,definition,set,property)", "rel" : "self" } ] }, { "name" : "GetProperty", "uniqueName" : "GetProperty(definition,set,property)", "returnType" : "java.io.Serializable", "parameters" : [ { "type" : "java.lang.String", "name" : "definition", "localizedDescription" : "The property set definition name." }, { "type" : "java.lang.String", "name" : "set", "localizedDescription" : "The property set name." }, { "type" : "java.lang.String", "name" : "property", "localizedDescription" : "The property name." } ], "localizedDescription" : "Retrieves a property set for the current (or specified) namespace, property set definition name, and property set name, and property name. If no namespace, property set definition, property set and property exists\tnull will be returned.", "resourceType" : "urn:oracle:wcps:conductor:provider:resourceMethod", "links" : [ { "resourceType" : "urn:oracle:wcps:conductor:provider:resourceMethods", "template" : "http://localhost:7001/wcps/api/conductor/namespaces/Oracle/dataProviders/oracle.PropertiesServiceProvider/connections/LocalServerConnection/resources/GetPropertiesResource/methods?projection={projection}", "capabilities" : "urn:oracle:restframework:read", "href" : "http://localhost:7001/wcps/api/conductor/namespaces/Oracle/dataProviders/oracle.PropertiesServiceProvider/connections/LocalServerConnection/resources/GetPropertiesResource/methods", "rel" : "urn:oracle:webcenter:parent" }, { "resourceType" : "urn:oracle:wcps:conductor:provider:resourceMethod", "template" : "http://localhost:7001/wcps/api/conductor/namespaces/Oracle/dataProviders/oracle.PropertiesServiceProvider/connections/LocalServerConnection/resources/GetPropertiesResource/methods/GetProperty(definition,set,property)?projection={projection}", "capabilities" : "urn:oracle:restframework:read", "href" : "http://localhost:7001/wcps/api/conductor/namespaces/Oracle/dataProviders/oracle.PropertiesServiceProvider/connections/LocalServerConnection/resources/GetPropertiesResource/methods/GetProperty(definition,set,property)", "rel" : "self" } ] }, { "name" : "execute", "uniqueName" : "execute()", "returnType" : "java.lang.Object", "parameters" : [ ], "localizedDescription" : "This is the default method executed if no method is specified, which currently returns nothing.", "resourceType" : "urn:oracle:wcps:conductor:provider:resourceMethod", "links" : [ { "resourceType" : "urn:oracle:wcps:conductor:provider:resourceMethods", "template" : "http://localhost:7001/wcps/api/conductor/namespaces/Oracle/dataProviders/oracle.PropertiesServiceProvider/connections/LocalServerConnection/resources/GetPropertiesResource/methods?projection={projection}", "capabilities" : "urn:oracle:restframework:read", "href" : "http://localhost:7001/wcps/api/conductor/namespaces/Oracle/dataProviders/oracle.PropertiesServiceProvider/connections/LocalServerConnection/resources/GetPropertiesResource/methods", "rel" : "urn:oracle:webcenter:parent" }, { "resourceType" : "urn:oracle:wcps:conductor:provider:resourceMethod", "template" : "http://localhost:7001/wcps/api/conductor/namespaces/Oracle/dataProviders/oracle.PropertiesServiceProvider/connections/LocalServerConnection/resources/GetPropertiesResource/methods/execute()?projection={projection}", "capabilities" : "urn:oracle:restframework:read", "href" : "http://localhost:7001/wcps/api/conductor/namespaces/Oracle/dataProviders/oracle.PropertiesServiceProvider/connections/LocalServerConnection/resources/GetPropertiesResource/methods/execute()", "rel" : "self" } ] }, { "name" : "GetPropertySet", "uniqueName" : "GetPropertySet(definition,set)", "returnType" : "java.util.Map", "parameters" : [ { "type" : "java.lang.String", "name" : "definition", "localizedDescription" : "The property set definition name." }, { "type" : "java.lang.String", "name" : "set", "localizedDescription" : "The property set name." } ], "localizedDescription" : "Retrieves a property set for the current (or specified) namespace, property set definition name, and property set name. If no namespace, property set definition, or property set exists, null will be returned.", "resourceType" : "urn:oracle:wcps:conductor:provider:resourceMethod", "links" : [ { "resourceType" : "urn:oracle:wcps:conductor:provider:resourceMethods", "template" : "http://localhost:7001/wcps/api/conductor/namespaces/Oracle/dataProviders/oracle.PropertiesServiceProvider/connections/LocalServerConnection/resources/GetPropertiesResource/methods?projection={projection}", "capabilities" : "urn:oracle:restframework:read", "href" : "http://localhost:7001/wcps/api/conductor/namespaces/Oracle/dataProviders/oracle.PropertiesServiceProvider/connections/LocalServerConnection/resources/GetPropertiesResource/methods", "rel" : "urn:oracle:webcenter:parent" }, { "resourceType" : "urn:oracle:wcps:conductor:provider:resourceMethod", "template" : "http://localhost:7001/wcps/api/conductor/namespaces/Oracle/dataProviders/oracle.PropertiesServiceProvider/connections/LocalServerConnection/resources/GetPropertiesResource/methods/GetPropertySet(definition,set)?projection={projection}", "capabilities" : "urn:oracle:restframework:read", "href" : "http://localhost:7001/wcps/api/conductor/namespaces/Oracle/dataProviders/oracle.PropertiesServiceProvider/connections/LocalServerConnection/resources/GetPropertiesResource/methods/GetPropertySet(definition,set)", "rel" : "self" } ] }, { "name" : "GetPropertySet", "uniqueName" : "GetPropertySet(namespace,definition,set)", "returnType" : "java.util.Map", "parameters" : [ { "type" : "java.lang.String", "name" : "namespace", "localizedDescription" : "The namespace in which the property set definition and property set exists." }, { "type" : "java.lang.String", "name" : "definition", "localizedDescription" : "The property set definition name." }, { "type" : "java.lang.String", "name" : "set", "localizedDescription" : "The property set name." } ], "localizedDescription" : "Retrieves a property set for the current (or specified) namespace, property set definition name, and property set name. If no namespace, property set definition, or property set exists, null will be returned.", "resourceType" : "urn:oracle:wcps:conductor:provider:resourceMethod", "links" : [ { "resourceType" : "urn:oracle:wcps:conductor:provider:resourceMethods", "template" : "http://localhost:7001/wcps/api/conductor/namespaces/Oracle/dataProviders/oracle.PropertiesServiceProvider/connections/LocalServerConnection/resources/GetPropertiesResource/methods?projection={projection}", "capabilities" : "urn:oracle:restframework:read", "href" : "http://localhost:7001/wcps/api/conductor/namespaces/Oracle/dataProviders/oracle.PropertiesServiceProvider/connections/LocalServerConnection/resources/GetPropertiesResource/methods", "rel" : "urn:oracle:webcenter:parent" }, { "resourceType" : "urn:oracle:wcps:conductor:provider:resourceMethod", "template" : "http://localhost:7001/wcps/api/conductor/namespaces/Oracle/dataProviders/oracle.PropertiesServiceProvider/connections/LocalServerConnection/resources/GetPropertiesResource/methods/GetPropertySet(namespace,definition,set)?projection={projection}", "capabilities" : "urn:oracle:restframework:read", "href" : "http://localhost:7001/wcps/api/conductor/namespaces/Oracle/dataProviders/oracle.PropertiesServiceProvider/connections/LocalServerConnection/resources/GetPropertiesResource/methods/GetPropertySet(namespace,definition,set)", "rel" : "self" } ] }, { "name" : "GetPropertySets", "uniqueName" : "GetPropertySets(definition)", "returnType" : "java.util.Map", "parameters" : [ { "type" : "java.lang.String", "name" : "definition", "localizedDescription" : "The property set definition name." } ], "localizedDescription" : "Retrieves a Map of property sets for the current (or specified) namespace and property set definition name that is keyed by property set name. The size and start index of this list will be within the boundaries of the specified start index and page size specified in the request.", "resourceType" : "urn:oracle:wcps:conductor:provider:resourceMethod", "links" : [ { "resourceType" : "urn:oracle:wcps:conductor:provider:resourceMethods", "template" : "http://localhost:7001/wcps/api/conductor/namespaces/Oracle/dataProviders/oracle.PropertiesServiceProvider/connections/LocalServerConnection/resources/GetPropertiesResource/methods?projection={projection}", "capabilities" : "urn:oracle:restframework:read", "href" : "http://localhost:7001/wcps/api/conductor/namespaces/Oracle/dataProviders/oracle.PropertiesServiceProvider/connections/LocalServerConnection/resources/GetPropertiesResource/methods", "rel" : "urn:oracle:webcenter:parent" }, { "resourceType" : "urn:oracle:wcps:conductor:provider:resourceMethod", "template" : "http://localhost:7001/wcps/api/conductor/namespaces/Oracle/dataProviders/oracle.PropertiesServiceProvider/connections/LocalServerConnection/resources/GetPropertiesResource/methods/GetPropertySets(definition)?projection={projection}", "capabilities" : "urn:oracle:restframework:read", "href" : "http://localhost:7001/wcps/api/conductor/namespaces/Oracle/dataProviders/oracle.PropertiesServiceProvider/connections/LocalServerConnection/resources/GetPropertiesResource/methods/GetPropertySets(definition)", "rel" : "self" } ] }, { "name" : "GetPropertySets", "uniqueName" : "GetPropertySets(namespace,definition)", "returnType" : "java.util.Map", "parameters" : [ { "type" : "java.lang.String", "name" : "namespace", "localizedDescription" : "The namespace in which the property set definition and property set exists." }, { "type" : "java.lang.String", "name" : "definition", "localizedDescription" : "The property set definition name." } ], "localizedDescription" : "Retrieves a Map of property sets for the current (or specified) namespace and property set definition name that is keyed by property set name. The size and start index of this list will be within the boundaries of the specified start index and page size specified in the request.", "resourceType" : "urn:oracle:wcps:conductor:provider:resourceMethod", "links" : [ { "resourceType" : "urn:oracle:wcps:conductor:provider:resourceMethods", "template" : "http://localhost:7001/wcps/api/conductor/namespaces/Oracle/dataProviders/oracle.PropertiesServiceProvider/connections/LocalServerConnection/resources/GetPropertiesResource/methods?projection={projection}", "capabilities" : "urn:oracle:restframework:read", "href" : "http://localhost:7001/wcps/api/conductor/namespaces/Oracle/dataProviders/oracle.PropertiesServiceProvider/connections/LocalServerConnection/resources/GetPropertiesResource/methods", "rel" : "urn:oracle:webcenter:parent" }, { "resourceType" : "urn:oracle:wcps:conductor:provider:resourceMethod", "template" : "http://localhost:7001/wcps/api/conductor/namespaces/Oracle/dataProviders/oracle.PropertiesServiceProvider/connections/LocalServerConnection/resources/GetPropertiesResource/methods/GetPropertySets(namespace,definition)?projection={projection}", "capabilities" : "urn:oracle:restframework:read", "href" : "http://localhost:7001/wcps/api/conductor/namespaces/Oracle/dataProviders/oracle.PropertiesServiceProvider/connections/LocalServerConnection/resources/GetPropertiesResource/methods/GetPropertySets(namespace,definition)", "rel" : "self" } ] } ], "resourceType" : "urn:oracle:wcps:conductor:provider:resourceMethods", "links" : [ { "resourceType" : "urn:oracle:wcps:conductor:provider:connectionResource", "template" : "http://localhost:7001/wcps/api/conductor/namespaces/Oracle/dataProviders/oracle.PropertiesServiceProvider/connections/LocalServerConnection/resources/GetPropertiesResource?projection={projection}", "capabilities" : "urn:oracle:restframework:read", "href" : "http://localhost:7001/wcps/api/conductor/namespaces/Oracle/dataProviders/oracle.PropertiesServiceProvider/connections/LocalServerConnection/resources/GetPropertiesResource", "rel" : "urn:oracle:webcenter:parent" }, { "resourceType" : "urn:oracle:wcps:conductor:provider:resourceMethods", "template" : "http://localhost:7001/wcps/api/conductor/namespaces/Oracle/dataProviders/oracle.PropertiesServiceProvider/connections/LocalServerConnection/resources/GetPropertiesResource/methods?projection={projection}", "capabilities" : "urn:oracle:restframework:read", "href" : "http://localhost:7001/wcps/api/conductor/namespaces/Oracle/dataProviders/oracle.PropertiesServiceProvider/connections/LocalServerConnection/resources/GetPropertiesResource/methods", "rel" : "self" } ] }, "resourceType" : "urn:oracle:wcps:conductor:provider:connectionResource", "links" : [ { "resourceType" : "urn:oracle:wcps:conductor:provider:connectionResources", "template" : "http://localhost:7001/wcps/api/conductor/namespaces/Oracle/dataProviders/oracle.PropertiesServiceProvider/connections/LocalServerConnection/resources?projection={projection}", "capabilities" : "urn:oracle:restframework:read", "href" : "http://localhost:7001/wcps/api/conductor/namespaces/Oracle/dataProviders/oracle.PropertiesServiceProvider/connections/LocalServerConnection/resources", "rel" : "urn:oracle:webcenter:parent" }, { "resourceType" : "urn:oracle:wcps:conductor:provider:connectionResource", "template" : "http://localhost:7001/wcps/api/conductor/namespaces/Oracle/dataProviders/oracle.PropertiesServiceProvider/connections/LocalServerConnection/resources/GetPropertiesResource?projection={projection}", "capabilities" : "urn:oracle:restframework:read", "href" : "http://localhost:7001/wcps/api/conductor/namespaces/Oracle/dataProviders/oracle.PropertiesServiceProvider/connections/LocalServerConnection/resources/GetPropertiesResource", "rel" : "self" } ] } ], "resourceType" : "urn:oracle:wcps:conductor:provider:providerConnection", "links" : [ { "resourceType" : "urn:oracle:wcps:conductor:provider:providerConnections", "template" : "http://localhost:7001/wcps/api/conductor/namespaces/Oracle/dataProviders/oracle.PropertiesServiceProvider/connections?projection={projection}", "capabilities" : "urn:oracle:restframework:read", "href" : "http://localhost:7001/wcps/api/conductor/namespaces/Oracle/dataProviders/oracle.PropertiesServiceProvider/connections", "rel" : "urn:oracle:webcenter:parent" }, { "resourceType" : "urn:oracle:wcps:conductor:provider:connectionMetadata", "template" : "http://localhost:7001/wcps/api/conductor/namespaces/Oracle/dataProviders/oracle.PropertiesServiceProvider/connections/LocalServerConnection/metadata?projection={projection}", "capabilities" : "urn:oracle:restframework:read", "href" : "http://localhost:7001/wcps/api/conductor/namespaces/Oracle/dataProviders/oracle.PropertiesServiceProvider/connections/LocalServerConnection/metadata", "rel" : "urn:oracle:wcps:conductor:provider:connectionMetadata" }, { "resourceType" : "urn:oracle:wcps:conductor:provider:providerConnection", "template" : "http://localhost:7001/wcps/api/conductor/namespaces/Oracle/dataProviders/oracle.PropertiesServiceProvider/connections/LocalServerConnection?projection={projection}", "capabilities" : "urn:oracle:restframework:read", "href" : "http://localhost:7001/wcps/api/conductor/namespaces/Oracle/dataProviders/oracle.PropertiesServiceProvider/connections/LocalServerConnection", "rel" : "self" } ] } ], "resourceType" : "urn:oracle:wcps:conductor:provider:dataProvider", "links" : [ { "resourceType" : "urn:oracle:wcps:conductor:provider:dataProviders", "template" : "http://localhost:7001/wcps/api/conductor/namespaces/Oracle/dataProviders?projection={projection}", "capabilities" : "urn:oracle:restframework:read", "href" : "http://localhost:7001/wcps/api/conductor/namespaces/Oracle/dataProviders", "rel" : "urn:oracle:webcenter:parent" }, { "resourceType" : "urn:oracle:wcps:conductor:provider:dataProvider", "template" : "http://localhost:7001/wcps/api/conductor/namespaces/Oracle/dataProviders/oracle.PropertiesServiceProvider?projection={projection}", "capabilities" : "urn:oracle:restframework:read", "href" : "http://localhost:7001/wcps/api/conductor/namespaces/Oracle/dataProviders/oracle.PropertiesServiceProvider?projection=details", "rel" : "self" }, { "resourceType" : "urn:oracle:wcps:conductor:provider:providerConnections", "template" : "http://localhost:7001/wcps/api/conductor/namespaces/{namespace}/dataProviders/{provider-name}/connections?projection={projection}", "capabilities" : "urn:oracle:restframework:read", "rel" : "urn:oracle:wcps:conductor:provider:providerConnections" }, { "resourceType" : "urn:oracle:wcps:conductor:provider:providerConnection", "template" : "http://localhost:7001/wcps/api/conductor/namespaces/{namespace}/dataProviders/{provider-name}/connections/{connection-name}?projection={projection}", "capabilities" : "urn:oracle:restframework:read", "rel" : "urn:oracle:wcps:conductor:provider:providerConnection" }, { "resourceType" : "urn:oracle:wcps:conductor:provider:connectionResources", "template" : "http://localhost:7001/wcps/api/conductor/namespaces/{namespace}/dataProviders/{provider-name}/connections/{connection-name}/resources?projection={projection}", "capabilities" : "urn:oracle:restframework:read", "rel" : "urn:oracle:wcps:conductor:provider:connectionResources" }, { "resourceType" : "urn:oracle:wcps:conductor:provider:connectionResource", "template" : "http://localhost:7001/wcps/api/conductor/namespaces/{namespace}/dataProviders/{provider-name}/connections/{connection-name}/resources/{resource-name}?projection={projection}", "capabilities" : "urn:oracle:restframework:read", "rel" : "urn:oracle:wcps:conductor:provider:connectionResource" }, { "resourceType" : "urn:oracle:wcps:conductor:provider:resourceMethods", "template" : "http://localhost:7001/wcps/api/conductor/namespaces/{namespace}/dataProviders/{provider-name}/connections/{connection-name}/resources/{resource-name}/methods?projection={projection}", "capabilities" : "urn:oracle:restframework:read", "rel" : "urn:oracle:wcps:conductor:provider:resourceMethods" }, { "resourceType" : "urn:oracle:wcps:conductor:provider:resourceMethod", "template" : "http://localhost:7001/wcps/api/conductor/namespaces/{namespace}/dataProviders/{provider-name}/connections/{connection-name}/resources/{resource-name}/methods/{method-name}?projection={projection}", "capabilities" : "urn:oracle:restframework:read", "rel" : "urn:oracle:wcps:conductor:provider:resourceMethod" } ] }
XML
Request: GET http://localhost:7001/wcps/api/conductor/namespaces/Oracle/dataProviders/oracle.PropertiesServiceProvider/connections/LocalServerConnection?projection=summary accept-language: en content-type: application/xml accept: application/xml Response: Status Code:200 Content-Length: 3896 X-Powered-By: Servlet/2.5 JSP/2.1 Set-Cookie: JSESSIONID=QGswM25H1GLC61Qvbt08HLfJhfJdN50TSV8lRzWhpvbJG0vFJtSN!822326988; path=/wcps; HttpOnly Content-Type: application/xml Date: Wed, 13 Oct 2010 22:58:47 GMT <?xml version="1.0" encoding="UTF-8"?> <connection resourceType="urn:oracle:wcps:conductor:provider:providerConnection"> <links> <link capabilities="urn:oracle:restframework:read" href="http://localhost:7001/wcps/api/conductor/namespaces/Oracle/dataProviders/oracle.PropertiesServiceProvider/connections" rel="urn:oracle:webcenter:parent" resourceType="urn:oracle:wcps:conductor:provider:providerConnections" template="http://localhost:7001/wcps/api/conductor/namespaces/Oracle/dataProviders/oracle.PropertiesServiceProvider/connections?projection={projection}"/> <link capabilities="urn:oracle:restframework:read" href="http://localhost:7001/wcps/api/conductor/namespaces/Oracle/dataProviders/oracle.PropertiesServiceProvider/connections/LocalServerConnection/metadata" rel="urn:oracle:wcps:conductor:provider:connectionMetadata" resourceType="urn:oracle:wcps:conductor:provider:connectionMetadata" template="http://localhost:7001/wcps/api/conductor/namespaces/Oracle/dataProviders/oracle.PropertiesServiceProvider/connections/LocalServerConnection/metadata?projection={projection}"/> <link capabilities="urn:oracle:restframework:read" href="http://localhost:7001/wcps/api/conductor/namespaces/Oracle/dataProviders/oracle.PropertiesServiceProvider/connections/LocalServerConnection?projection=summary" rel="self" resourceType="urn:oracle:wcps:conductor:provider:providerConnection" template="http://localhost:7001/wcps/api/conductor/namespaces/Oracle/dataProviders/oracle.PropertiesServiceProvider/connections/LocalServerConnection?projection={projection}"/> </links> <name>LocalServerConnection</name> <connectionResources resourceType="urn:oracle:wcps:conductor:provider:connectionResources"> <links> <link capabilities="urn:oracle:restframework:read" href="http://localhost:7001/wcps/api/conductor/namespaces/Oracle/dataProviders/oracle.PropertiesServiceProvider/connections/LocalServerConnection" rel="urn:oracle:webcenter:parent" resourceType="urn:oracle:wcps:conductor:provider:providerConnection" template="http://localhost:7001/wcps/api/conductor/namespaces/Oracle/dataProviders/oracle.PropertiesServiceProvider/connections/LocalServerConnection?projection={projection}"/> <link capabilities="urn:oracle:restframework:read" href="http://localhost:7001/wcps/api/conductor/namespaces/Oracle/dataProviders/oracle.PropertiesServiceProvider/connections/LocalServerConnection/resources" rel="self" resourceType="urn:oracle:wcps:conductor:provider:connectionResources" template="http://localhost:7001/wcps/api/conductor/namespaces/Oracle/dataProviders/oracle.PropertiesServiceProvider/connections/LocalServerConnection/resources?projection={projection}"/> </links> <items> <connectionResource resourceType="urn:oracle:wcps:conductor:provider:connectionResource"> <links> <link capabilities="urn:oracle:restframework:read" href="http://localhost:7001/wcps/api/conductor/namespaces/Oracle/dataProviders/oracle.PropertiesServiceProvider/connections/LocalServerConnection/resources" rel="urn:oracle:webcenter:parent" resourceType="urn:oracle:wcps:conductor:provider:connectionResources" template="http://localhost:7001/wcps/api/conductor/namespaces/Oracle/dataProviders/oracle.PropertiesServiceProvider/connections/LocalServerConnection/resources?projection={projection}"/> <link capabilities="urn:oracle:restframework:read" href="http://localhost:7001/wcps/api/conductor/namespaces/Oracle/dataProviders/oracle.PropertiesServiceProvider/connections/LocalServerConnection/resources/GetPropertiesResource" rel="self" resourceType="urn:oracle:wcps:conductor:provider:connectionResource" template="http://localhost:7001/wcps/api/conductor/namespaces/Oracle/dataProviders/oracle.PropertiesServiceProvider/connections/LocalServerConnection/resources/GetPropertiesResource?projection={projection}"/> </links> <name>GetPropertiesResource</name> </connectionResource> </items> </connectionResources> </connection>
JSON
Request: GET http://localhost:7001/wcps/api/conductor/namespaces/Oracle/dataProviders/oracle.PropertiesServiceProvider/connections/LocalServerConnection?projection=summary accept-language: en content-type: application/json accept: application/json Response: Status Code:200 X-Powered-By: Servlet/2.5 JSP/2.1 Set-Cookie: JSESSIONID=tLqRM27fHTGT9nxHfW1TyHJv3522rhw84Z5RRcymb1dy3pLMFgp6!822326988; path=/wcps; HttpOnly Transfer-Encoding: chunked Content-Type: application/json Date: Wed, 13 Oct 2010 23:07:11 GMT { "name" : "LocalServerConnection", "connectionResources" : [ { "name" : "GetPropertiesResource", "resourceType" : "urn:oracle:wcps:conductor:provider:connectionResource", "links" : [ { "resourceType" : "urn:oracle:wcps:conductor:provider:connectionResources", "template" : "http://localhost:7001/wcps/api/conductor/namespaces/Oracle/dataProviders/oracle.PropertiesServiceProvider/connections/LocalServerConnection/resources?projection={projection}", "capabilities" : "urn:oracle:restframework:read", "href" : "http://localhost:7001/wcps/api/conductor/namespaces/Oracle/dataProviders/oracle.PropertiesServiceProvider/connections/LocalServerConnection/resources", "rel" : "urn:oracle:webcenter:parent" }, { "resourceType" : "urn:oracle:wcps:conductor:provider:connectionResource", "template" : "http://localhost:7001/wcps/api/conductor/namespaces/Oracle/dataProviders/oracle.PropertiesServiceProvider/connections/LocalServerConnection/resources/GetPropertiesResource?projection={projection}", "capabilities" : "urn:oracle:restframework:read", "href" : "http://localhost:7001/wcps/api/conductor/namespaces/Oracle/dataProviders/oracle.PropertiesServiceProvider/connections/LocalServerConnection/resources/GetPropertiesResource", "rel" : "self" } ] } ], "resourceType" : "urn:oracle:wcps:conductor:provider:providerConnection", "links" : [ { "resourceType" : "urn:oracle:wcps:conductor:provider:providerConnections", "template" : "http://localhost:7001/wcps/api/conductor/namespaces/Oracle/dataProviders/oracle.PropertiesServiceProvider/connections?projection={projection}", "capabilities" : "urn:oracle:restframework:read", "href" : "http://localhost:7001/wcps/api/conductor/namespaces/Oracle/dataProviders/oracle.PropertiesServiceProvider/connections", "rel" : "urn:oracle:webcenter:parent" }, { "resourceType" : "urn:oracle:wcps:conductor:provider:connectionMetadata", "template" : "http://localhost:7001/wcps/api/conductor/namespaces/Oracle/dataProviders/oracle.PropertiesServiceProvider/connections/LocalServerConnection/metadata?projection={projection}", "capabilities" : "urn:oracle:restframework:read", "href" : "http://localhost:7001/wcps/api/conductor/namespaces/Oracle/dataProviders/oracle.PropertiesServiceProvider/connections/LocalServerConnection/metadata", "rel" : "urn:oracle:wcps:conductor:provider:connectionMetadata" }, { "resourceType" : "urn:oracle:wcps:conductor:provider:providerConnection", "template" : "http://localhost:7001/wcps/api/conductor/namespaces/Oracle/dataProviders/oracle.PropertiesServiceProvider/connections/LocalServerConnection?projection={projection}", "capabilities" : "urn:oracle:restframework:read", "href" : "http://localhost:7001/wcps/api/conductor/namespaces/Oracle/dataProviders/oracle.PropertiesServiceProvider/connections/LocalServerConnection?projection=summary", "rel" : "self" } ] }
XML
Request: GET http://localhost:7001/wcps/api/conductor/namespaces/Oracle/dataProviders/oracle.PropertiesServiceProvider/connections/LocalServerConnection/resources/GetPropertiesResource?projection=summary accept-language: en content-type: application/xml accept: application/xml Response: Status Code:200 Content-Length: 11964 X-Powered-By: Servlet/2.5 JSP/2.1 Set-Cookie: JSESSIONID=6NMkM25Ljb1yWPTMTSyMYksJjhtVKR90BhTv5MvGVjDHCVGyHGQG!822326988; path=/wcps; HttpOnly Content-Type: application/xml Date: Wed, 13 Oct 2010 22:58:48 GMT <?xml version="1.0" encoding="UTF-8"?> <connectionResource resourceType="urn:oracle:wcps:conductor:provider:connectionResource"> <links> <link capabilities="urn:oracle:restframework:read" href="http://localhost:7001/wcps/api/conductor/namespaces/Oracle/dataProviders/oracle.PropertiesServiceProvider/connections/LocalServerConnection/resources" rel="urn:oracle:webcenter:parent" resourceType="urn:oracle:wcps:conductor:provider:connectionResources" template="http://localhost:7001/wcps/api/conductor/namespaces/Oracle/dataProviders/oracle.PropertiesServiceProvider/connections/LocalServerConnection/resources?projection={projection}"/> <link capabilities="urn:oracle:restframework:read" href="http://localhost:7001/wcps/api/conductor/namespaces/Oracle/dataProviders/oracle.PropertiesServiceProvider/connections/LocalServerConnection/resources/GetPropertiesResource?projection=summary" rel="self" resourceType="urn:oracle:wcps:conductor:provider:connectionResource" template="http://localhost:7001/wcps/api/conductor/namespaces/Oracle/dataProviders/oracle.PropertiesServiceProvider/connections/LocalServerConnection/resources/GetPropertiesResource?projection={projection}"/> </links> <name>GetPropertiesResource</name> <resourceMethods resourceType="urn:oracle:wcps:conductor:provider:resourceMethods"> <links> <link capabilities="urn:oracle:restframework:read" href="http://localhost:7001/wcps/api/conductor/namespaces/Oracle/dataProviders/oracle.PropertiesServiceProvider/connections/LocalServerConnection/resources/GetPropertiesResource" rel="urn:oracle:webcenter:parent" resourceType="urn:oracle:wcps:conductor:provider:connectionResource" template="http://localhost:7001/wcps/api/conductor/namespaces/Oracle/dataProviders/oracle.PropertiesServiceProvider/connections/LocalServerConnection/resources/GetPropertiesResource?projection={projection}"/> <link capabilities="urn:oracle:restframework:read" href="http://localhost:7001/wcps/api/conductor/namespaces/Oracle/dataProviders/oracle.PropertiesServiceProvider/connections/LocalServerConnection/resources/GetPropertiesResource/methods" rel="self" resourceType="urn:oracle:wcps:conductor:provider:resourceMethods" template="http://localhost:7001/wcps/api/conductor/namespaces/Oracle/dataProviders/oracle.PropertiesServiceProvider/connections/LocalServerConnection/resources/GetPropertiesResource/methods?projection={projection}"/> </links> <items> <resourceMethod resourceType="urn:oracle:wcps:conductor:provider:resourceMethod"> <links> <link capabilities="urn:oracle:restframework:read" href="http://localhost:7001/wcps/api/conductor/namespaces/Oracle/dataProviders/oracle.PropertiesServiceProvider/connections/LocalServerConnection/resources/GetPropertiesResource/methods" rel="urn:oracle:webcenter:parent" resourceType="urn:oracle:wcps:conductor:provider:resourceMethods" template="http://localhost:7001/wcps/api/conductor/namespaces/Oracle/dataProviders/oracle.PropertiesServiceProvider/connections/LocalServerConnection/resources/GetPropertiesResource/methods?projection={projection}"/> <link capabilities="urn:oracle:restframework:read" href="http://localhost:7001/wcps/api/conductor/namespaces/Oracle/dataProviders/oracle.PropertiesServiceProvider/connections/LocalServerConnection/resources/GetPropertiesResource/methods/GetProperty(namespace,definition,set,property)" rel="self" resourceType="urn:oracle:wcps:conductor:provider:resourceMethod" template="http://localhost:7001/wcps/api/conductor/namespaces/Oracle/dataProviders/oracle.PropertiesServiceProvider/connections/LocalServerConnection/resources/GetPropertiesResource/methods/GetProperty(namespace,definition,set,property)?projection={projection}"/> </links> <name>GetProperty</name> <uniqueName>GetProperty(namespace,definition,set,property)</uniqueName> <parameters/> </resourceMethod> <resourceMethod resourceType="urn:oracle:wcps:conductor:provider:resourceMethod"> <links> <link capabilities="urn:oracle:restframework:read" href="http://localhost:7001/wcps/api/conductor/namespaces/Oracle/dataProviders/oracle.PropertiesServiceProvider/connections/LocalServerConnection/resources/GetPropertiesResource/methods" rel="urn:oracle:webcenter:parent" resourceType="urn:oracle:wcps:conductor:provider:resourceMethods" template="http://localhost:7001/wcps/api/conductor/namespaces/Oracle/dataProviders/oracle.PropertiesServiceProvider/connections/LocalServerConnection/resources/GetPropertiesResource/methods?projection={projection}"/> <link capabilities="urn:oracle:restframework:read" href="http://localhost:7001/wcps/api/conductor/namespaces/Oracle/dataProviders/oracle.PropertiesServiceProvider/connections/LocalServerConnection/resources/GetPropertiesResource/methods/GetProperty(definition,set,property)" rel="self" resourceType="urn:oracle:wcps:conductor:provider:resourceMethod" template="http://localhost:7001/wcps/api/conductor/namespaces/Oracle/dataProviders/oracle.PropertiesServiceProvider/connections/LocalServerConnection/resources/GetPropertiesResource/methods/GetProperty(definition,set,property)?projection={projection}"/> </links> <name>GetProperty</name> <uniqueName>GetProperty(definition,set,property)</uniqueName> <parameters/> </resourceMethod> <resourceMethod resourceType="urn:oracle:wcps:conductor:provider:resourceMethod"> <links> <link capabilities="urn:oracle:restframework:read" href="http://localhost:7001/wcps/api/conductor/namespaces/Oracle/dataProviders/oracle.PropertiesServiceProvider/connections/LocalServerConnection/resources/GetPropertiesResource/methods" rel="urn:oracle:webcenter:parent" resourceType="urn:oracle:wcps:conductor:provider:resourceMethods" template="http://localhost:7001/wcps/api/conductor/namespaces/Oracle/dataProviders/oracle.PropertiesServiceProvider/connections/LocalServerConnection/resources/GetPropertiesResource/methods?projection={projection}"/> <link capabilities="urn:oracle:restframework:read" href="http://localhost:7001/wcps/api/conductor/namespaces/Oracle/dataProviders/oracle.PropertiesServiceProvider/connections/LocalServerConnection/resources/GetPropertiesResource/methods/execute()" rel="self" resourceType="urn:oracle:wcps:conductor:provider:resourceMethod" template="http://localhost:7001/wcps/api/conductor/namespaces/Oracle/dataProviders/oracle.PropertiesServiceProvider/connections/LocalServerConnection/resources/GetPropertiesResource/methods/execute()?projection={projection}"/> </links> <name>execute</name> <uniqueName>execute()</uniqueName> <parameters/> </resourceMethod> <resourceMethod resourceType="urn:oracle:wcps:conductor:provider:resourceMethod"> <links> <link capabilities="urn:oracle:restframework:read" href="http://localhost:7001/wcps/api/conductor/namespaces/Oracle/dataProviders/oracle.PropertiesServiceProvider/connections/LocalServerConnection/resources/GetPropertiesResource/methods" rel="urn:oracle:webcenter:parent" resourceType="urn:oracle:wcps:conductor:provider:resourceMethods" template="http://localhost:7001/wcps/api/conductor/namespaces/Oracle/dataProviders/oracle.PropertiesServiceProvider/connections/LocalServerConnection/resources/GetPropertiesResource/methods?projection={projection}"/> <link capabilities="urn:oracle:restframework:read" href="http://localhost:7001/wcps/api/conductor/namespaces/Oracle/dataProviders/oracle.PropertiesServiceProvider/connections/LocalServerConnection/resources/GetPropertiesResource/methods/GetPropertySet(definition,set)" rel="self" resourceType="urn:oracle:wcps:conductor:provider:resourceMethod" template="http://localhost:7001/wcps/api/conductor/namespaces/Oracle/dataProviders/oracle.PropertiesServiceProvider/connections/LocalServerConnection/resources/GetPropertiesResource/methods/GetPropertySet(definition,set)?projection={projection}"/> </links> <name>GetPropertySet</name> <uniqueName>GetPropertySet(definition,set)</uniqueName> <parameters/> </resourceMethod> <resourceMethod resourceType="urn:oracle:wcps:conductor:provider:resourceMethod"> <links> <link capabilities="urn:oracle:restframework:read" href="http://localhost:7001/wcps/api/conductor/namespaces/Oracle/dataProviders/oracle.PropertiesServiceProvider/connections/LocalServerConnection/resources/GetPropertiesResource/methods" rel="urn:oracle:webcenter:parent" resourceType="urn:oracle:wcps:conductor:provider:resourceMethods" template="http://localhost:7001/wcps/api/conductor/namespaces/Oracle/dataProviders/oracle.PropertiesServiceProvider/connections/LocalServerConnection/resources/GetPropertiesResource/methods?projection={projection}"/> <link capabilities="urn:oracle:restframework:read" href="http://localhost:7001/wcps/api/conductor/namespaces/Oracle/dataProviders/oracle.PropertiesServiceProvider/connections/LocalServerConnection/resources/GetPropertiesResource/methods/GetPropertySet(namespace,definition,set)" rel="self" resourceType="urn:oracle:wcps:conductor:provider:resourceMethod" template="http://localhost:7001/wcps/api/conductor/namespaces/Oracle/dataProviders/oracle.PropertiesServiceProvider/connections/LocalServerConnection/resources/GetPropertiesResource/methods/GetPropertySet(namespace,definition,set)?projection={projection}"/> </links> <name>GetPropertySet</name> <uniqueName>GetPropertySet(namespace,definition,set)</uniqueName> <parameters/> </resourceMethod> <resourceMethod resourceType="urn:oracle:wcps:conductor:provider:resourceMethod"> <links> <link capabilities="urn:oracle:restframework:read" href="http://localhost:7001/wcps/api/conductor/namespaces/Oracle/dataProviders/oracle.PropertiesServiceProvider/connections/LocalServerConnection/resources/GetPropertiesResource/methods" rel="urn:oracle:webcenter:parent" resourceType="urn:oracle:wcps:conductor:provider:resourceMethods" template="http://localhost:7001/wcps/api/conductor/namespaces/Oracle/dataProviders/oracle.PropertiesServiceProvider/connections/LocalServerConnection/resources/GetPropertiesResource/methods?projection={projection}"/> <link capabilities="urn:oracle:restframework:read" href="http://localhost:7001/wcps/api/conductor/namespaces/Oracle/dataProviders/oracle.PropertiesServiceProvider/connections/LocalServerConnection/resources/GetPropertiesResource/methods/GetPropertySets(definition)" rel="self" resourceType="urn:oracle:wcps:conductor:provider:resourceMethod" template="http://localhost:7001/wcps/api/conductor/namespaces/Oracle/dataProviders/oracle.PropertiesServiceProvider/connections/LocalServerConnection/resources/GetPropertiesResource/methods/GetPropertySets(definition)?projection={projection}"/> </links> <name>GetPropertySets</name> <uniqueName>GetPropertySets(definition)</uniqueName> <parameters/> </resourceMethod> <resourceMethod resourceType="urn:oracle:wcps:conductor:provider:resourceMethod"> <links> <link capabilities="urn:oracle:restframework:read" href="http://localhost:7001/wcps/api/conductor/namespaces/Oracle/dataProviders/oracle.PropertiesServiceProvider/connections/LocalServerConnection/resources/GetPropertiesResource/methods" rel="urn:oracle:webcenter:parent" resourceType="urn:oracle:wcps:conductor:provider:resourceMethods" template="http://localhost:7001/wcps/api/conductor/namespaces/Oracle/dataProviders/oracle.PropertiesServiceProvider/connections/LocalServerConnection/resources/GetPropertiesResource/methods?projection={projection}"/> <link capabilities="urn:oracle:restframework:read" href="http://localhost:7001/wcps/api/conductor/namespaces/Oracle/dataProviders/oracle.PropertiesServiceProvider/connections/LocalServerConnection/resources/GetPropertiesResource/methods/GetPropertySets(namespace,definition)" rel="self" resourceType="urn:oracle:wcps:conductor:provider:resourceMethod" template="http://localhost:7001/wcps/api/conductor/namespaces/Oracle/dataProviders/oracle.PropertiesServiceProvider/connections/LocalServerConnection/resources/GetPropertiesResource/methods/GetPropertySets(namespace,definition)?projection={projection}"/> </links> <name>GetPropertySets</name> <uniqueName>GetPropertySets(namespace,definition)</uniqueName> <parameters/> </resourceMethod> </items> </resourceMethods> </connectionResource>
JSON
Request: GET http://localhost:7001/wcps/api/conductor/namespaces/Oracle/dataProviders/oracle.PropertiesServiceProvider/connections/LocalServerConnection/resources/GetPropertiesResource?projection=summary accept-language: en content-type: application/json accept: application/json Response: Status Code:200 X-Powered-By: Servlet/2.5 JSP/2.1 Set-Cookie: JSESSIONID=lP2dM27QwpNKslGK8xd818TLMmBhpdBzcLnZyncLXWLv6BrNjkq8!822326988; path=/wcps; HttpOnly Transfer-Encoding: chunked Content-Type: application/json Date: Wed, 13 Oct 2010 23:07:12 GMT { "name" : "GetPropertiesResource", "resourceMethods" : { "resourceMethods" : [ { "name" : "GetProperty", "uniqueName" : "GetProperty(namespace,definition,set,property)", "parameters" : [ ], "resourceType" : "urn:oracle:wcps:conductor:provider:resourceMethod", "links" : [ { "resourceType" : "urn:oracle:wcps:conductor:provider:resourceMethods", "template" : "http://localhost:7001/wcps/api/conductor/namespaces/Oracle/dataProviders/oracle.PropertiesServiceProvider/connections/LocalServerConnection/resources/GetPropertiesResource/methods?projection={projection}", "capabilities" : "urn:oracle:restframework:read", "href" : "http://localhost:7001/wcps/api/conductor/namespaces/Oracle/dataProviders/oracle.PropertiesServiceProvider/connections/LocalServerConnection/resources/GetPropertiesResource/methods", "rel" : "urn:oracle:webcenter:parent" }, { "resourceType" : "urn:oracle:wcps:conductor:provider:resourceMethod", "template" : "http://localhost:7001/wcps/api/conductor/namespaces/Oracle/dataProviders/oracle.PropertiesServiceProvider/connections/LocalServerConnection/resources/GetPropertiesResource/methods/GetProperty(namespace,definition,set,property)?projection={projection}", "capabilities" : "urn:oracle:restframework:read", "href" : "http://localhost:7001/wcps/api/conductor/namespaces/Oracle/dataProviders/oracle.PropertiesServiceProvider/connections/LocalServerConnection/resources/GetPropertiesResource/methods/GetProperty(namespace,definition,set,property)", "rel" : "self" } ] }, { "name" : "GetProperty", "uniqueName" : "GetProperty(definition,set,property)", "parameters" : [ ], "resourceType" : "urn:oracle:wcps:conductor:provider:resourceMethod", "links" : [ { "resourceType" : "urn:oracle:wcps:conductor:provider:resourceMethods", "template" : "http://localhost:7001/wcps/api/conductor/namespaces/Oracle/dataProviders/oracle.PropertiesServiceProvider/connections/LocalServerConnection/resources/GetPropertiesResource/methods?projection={projection}", "capabilities" : "urn:oracle:restframework:read", "href" : "http://localhost:7001/wcps/api/conductor/namespaces/Oracle/dataProviders/oracle.PropertiesServiceProvider/connections/LocalServerConnection/resources/GetPropertiesResource/methods", "rel" : "urn:oracle:webcenter:parent" }, { "resourceType" : "urn:oracle:wcps:conductor:provider:resourceMethod", "template" : "http://localhost:7001/wcps/api/conductor/namespaces/Oracle/dataProviders/oracle.PropertiesServiceProvider/connections/LocalServerConnection/resources/GetPropertiesResource/methods/GetProperty(definition,set,property)?projection={projection}", "capabilities" : "urn:oracle:restframework:read", "href" : "http://localhost:7001/wcps/api/conductor/namespaces/Oracle/dataProviders/oracle.PropertiesServiceProvider/connections/LocalServerConnection/resources/GetPropertiesResource/methods/GetProperty(definition,set,property)", "rel" : "self" } ] }, { "name" : "execute", "uniqueName" : "execute()", "parameters" : [ ], "resourceType" : "urn:oracle:wcps:conductor:provider:resourceMethod", "links" : [ { "resourceType" : "urn:oracle:wcps:conductor:provider:resourceMethods", "template" : "http://localhost:7001/wcps/api/conductor/namespaces/Oracle/dataProviders/oracle.PropertiesServiceProvider/connections/LocalServerConnection/resources/GetPropertiesResource/methods?projection={projection}", "capabilities" : "urn:oracle:restframework:read", "href" : "http://localhost:7001/wcps/api/conductor/namespaces/Oracle/dataProviders/oracle.PropertiesServiceProvider/connections/LocalServerConnection/resources/GetPropertiesResource/methods", "rel" : "urn:oracle:webcenter:parent" }, { "resourceType" : "urn:oracle:wcps:conductor:provider:resourceMethod", "template" : "http://localhost:7001/wcps/api/conductor/namespaces/Oracle/dataProviders/oracle.PropertiesServiceProvider/connections/LocalServerConnection/resources/GetPropertiesResource/methods/execute()?projection={projection}", "capabilities" : "urn:oracle:restframework:read", "href" : "http://localhost:7001/wcps/api/conductor/namespaces/Oracle/dataProviders/oracle.PropertiesServiceProvider/connections/LocalServerConnection/resources/GetPropertiesResource/methods/execute()", "rel" : "self" } ] }, { "name" : "GetPropertySet", "uniqueName" : "GetPropertySet(definition,set)", "parameters" : [ ], "resourceType" : "urn:oracle:wcps:conductor:provider:resourceMethod", "links" : [ { "resourceType" : "urn:oracle:wcps:conductor:provider:resourceMethods", "template" : "http://localhost:7001/wcps/api/conductor/namespaces/Oracle/dataProviders/oracle.PropertiesServiceProvider/connections/LocalServerConnection/resources/GetPropertiesResource/methods?projection={projection}", "capabilities" : "urn:oracle:restframework:read", "href" : "http://localhost:7001/wcps/api/conductor/namespaces/Oracle/dataProviders/oracle.PropertiesServiceProvider/connections/LocalServerConnection/resources/GetPropertiesResource/methods", "rel" : "urn:oracle:webcenter:parent" }, { "resourceType" : "urn:oracle:wcps:conductor:provider:resourceMethod", "template" : "http://localhost:7001/wcps/api/conductor/namespaces/Oracle/dataProviders/oracle.PropertiesServiceProvider/connections/LocalServerConnection/resources/GetPropertiesResource/methods/GetPropertySet(definition,set)?projection={projection}", "capabilities" : "urn:oracle:restframework:read", "href" : "http://localhost:7001/wcps/api/conductor/namespaces/Oracle/dataProviders/oracle.PropertiesServiceProvider/connections/LocalServerConnection/resources/GetPropertiesResource/methods/GetPropertySet(definition,set)", "rel" : "self" } ] }, { "name" : "GetPropertySet", "uniqueName" : "GetPropertySet(namespace,definition,set)", "parameters" : [ ], "resourceType" : "urn:oracle:wcps:conductor:provider:resourceMethod", "links" : [ { "resourceType" : "urn:oracle:wcps:conductor:provider:resourceMethods", "template" : "http://localhost:7001/wcps/api/conductor/namespaces/Oracle/dataProviders/oracle.PropertiesServiceProvider/connections/LocalServerConnection/resources/GetPropertiesResource/methods?projection={projection}", "capabilities" : "urn:oracle:restframework:read", "href" : "http://localhost:7001/wcps/api/conductor/namespaces/Oracle/dataProviders/oracle.PropertiesServiceProvider/connections/LocalServerConnection/resources/GetPropertiesResource/methods", "rel" : "urn:oracle:webcenter:parent" }, { "resourceType" : "urn:oracle:wcps:conductor:provider:resourceMethod", "template" : "http://localhost:7001/wcps/api/conductor/namespaces/Oracle/dataProviders/oracle.PropertiesServiceProvider/connections/LocalServerConnection/resources/GetPropertiesResource/methods/GetPropertySet(namespace,definition,set)?projection={projection}", "capabilities" : "urn:oracle:restframework:read", "href" : "http://localhost:7001/wcps/api/conductor/namespaces/Oracle/dataProviders/oracle.PropertiesServiceProvider/connections/LocalServerConnection/resources/GetPropertiesResource/methods/GetPropertySet(namespace,definition,set)", "rel" : "self" } ] }, { "name" : "GetPropertySets", "uniqueName" : "GetPropertySets(definition)", "parameters" : [ ], "resourceType" : "urn:oracle:wcps:conductor:provider:resourceMethod", "links" : [ { "resourceType" : "urn:oracle:wcps:conductor:provider:resourceMethods", "template" : "http://localhost:7001/wcps/api/conductor/namespaces/Oracle/dataProviders/oracle.PropertiesServiceProvider/connections/LocalServerConnection/resources/GetPropertiesResource/methods?projection={projection}", "capabilities" : "urn:oracle:restframework:read", "href" : "http://localhost:7001/wcps/api/conductor/namespaces/Oracle/dataProviders/oracle.PropertiesServiceProvider/connections/LocalServerConnection/resources/GetPropertiesResource/methods", "rel" : "urn:oracle:webcenter:parent" }, { "resourceType" : "urn:oracle:wcps:conductor:provider:resourceMethod", "template" : "http://localhost:7001/wcps/api/conductor/namespaces/Oracle/dataProviders/oracle.PropertiesServiceProvider/connections/LocalServerConnection/resources/GetPropertiesResource/methods/GetPropertySets(definition)?projection={projection}", "capabilities" : "urn:oracle:restframework:read", "href" : "http://localhost:7001/wcps/api/conductor/namespaces/Oracle/dataProviders/oracle.PropertiesServiceProvider/connections/LocalServerConnection/resources/GetPropertiesResource/methods/GetPropertySets(definition)", "rel" : "self" } ] }, { "name" : "GetPropertySets", "uniqueName" : "GetPropertySets(namespace,definition)", "parameters" : [ ], "resourceType" : "urn:oracle:wcps:conductor:provider:resourceMethod", "links" : [ { "resourceType" : "urn:oracle:wcps:conductor:provider:resourceMethods", "template" : "http://localhost:7001/wcps/api/conductor/namespaces/Oracle/dataProviders/oracle.PropertiesServiceProvider/connections/LocalServerConnection/resources/GetPropertiesResource/methods?projection={projection}", "capabilities" : "urn:oracle:restframework:read", "href" : "http://localhost:7001/wcps/api/conductor/namespaces/Oracle/dataProviders/oracle.PropertiesServiceProvider/connections/LocalServerConnection/resources/GetPropertiesResource/methods", "rel" : "urn:oracle:webcenter:parent" }, { "resourceType" : "urn:oracle:wcps:conductor:provider:resourceMethod", "template" : "http://localhost:7001/wcps/api/conductor/namespaces/Oracle/dataProviders/oracle.PropertiesServiceProvider/connections/LocalServerConnection/resources/GetPropertiesResource/methods/GetPropertySets(namespace,definition)?projection={projection}", "capabilities" : "urn:oracle:restframework:read", "href" : "http://localhost:7001/wcps/api/conductor/namespaces/Oracle/dataProviders/oracle.PropertiesServiceProvider/connections/LocalServerConnection/resources/GetPropertiesResource/methods/GetPropertySets(namespace,definition)", "rel" : "self" } ] } ], "resourceType" : "urn:oracle:wcps:conductor:provider:resourceMethods", "links" : [ { "resourceType" : "urn:oracle:wcps:conductor:provider:connectionResource", "template" : "http://localhost:7001/wcps/api/conductor/namespaces/Oracle/dataProviders/oracle.PropertiesServiceProvider/connections/LocalServerConnection/resources/GetPropertiesResource?projection={projection}", "capabilities" : "urn:oracle:restframework:read", "href" : "http://localhost:7001/wcps/api/conductor/namespaces/Oracle/dataProviders/oracle.PropertiesServiceProvider/connections/LocalServerConnection/resources/GetPropertiesResource", "rel" : "urn:oracle:webcenter:parent" }, { "resourceType" : "urn:oracle:wcps:conductor:provider:resourceMethods", "template" : "http://localhost:7001/wcps/api/conductor/namespaces/Oracle/dataProviders/oracle.PropertiesServiceProvider/connections/LocalServerConnection/resources/GetPropertiesResource/methods?projection={projection}", "capabilities" : "urn:oracle:restframework:read", "href" : "http://localhost:7001/wcps/api/conductor/namespaces/Oracle/dataProviders/oracle.PropertiesServiceProvider/connections/LocalServerConnection/resources/GetPropertiesResource/methods", "rel" : "self" } ] }, "resourceType" : "urn:oracle:wcps:conductor:provider:connectionResource", "links" : [ { "resourceType" : "urn:oracle:wcps:conductor:provider:connectionResources", "template" : "http://localhost:7001/wcps/api/conductor/namespaces/Oracle/dataProviders/oracle.PropertiesServiceProvider/connections/LocalServerConnection/resources?projection={projection}", "capabilities" : "urn:oracle:restframework:read", "href" : "http://localhost:7001/wcps/api/conductor/namespaces/Oracle/dataProviders/oracle.PropertiesServiceProvider/connections/LocalServerConnection/resources", "rel" : "urn:oracle:webcenter:parent" }, { "resourceType" : "urn:oracle:wcps:conductor:provider:connectionResource", "template" : "http://localhost:7001/wcps/api/conductor/namespaces/Oracle/dataProviders/oracle.PropertiesServiceProvider/connections/LocalServerConnection/resources/GetPropertiesResource?projection={projection}", "capabilities" : "urn:oracle:restframework:read", "href" : "http://localhost:7001/wcps/api/conductor/namespaces/Oracle/dataProviders/oracle.PropertiesServiceProvider/connections/LocalServerConnection/resources/GetPropertiesResource?projection=summary", "rel" : "self" } ] }
XML
Request: GET http://localhost:7001/wcps/api/conductor/namespaces/Oracle/dataProviders/oracle.PropertiesServiceProvider/connections/LocalServerConnection/resources/GetPropertiesResource/methods/GetPropertySet(namespace,definition,set)?projection=details accept-language: en content-type: application/xml accept: application/xml Response: Status Code:200 Content-Length: 2243 X-Powered-By: Servlet/2.5 JSP/2.1 Set-Cookie: JSESSIONID=rnBkM27d8dHMpZT4WdT0CLGythB2hRhQ2yjTmg6rh7BDfB1JTQjL!822326988; path=/wcps; HttpOnly Content-Type: application/xml Date: Wed, 13 Oct 2010 23:07:09 GMT <?xml version="1.0" encoding="UTF-8"?> <resourceMethod resourceType="urn:oracle:wcps:conductor:provider:resourceMethod"> <links> <link capabilities="urn:oracle:restframework:read" href="http://localhost:7001/wcps/api/conductor/namespaces/Oracle/dataProviders/oracle.PropertiesServiceProvider/connections/LocalServerConnection/resources/GetPropertiesResource/methods" rel="urn:oracle:webcenter:parent" resourceType="urn:oracle:wcps:conductor:provider:resourceMethods" template="http://localhost:7001/wcps/api/conductor/namespaces/Oracle/dataProviders/oracle.PropertiesServiceProvider/connections/LocalServerConnection/resources/GetPropertiesResource/methods?projection={projection}"/> <link capabilities="urn:oracle:restframework:read" href="http://localhost:7001/wcps/api/conductor/namespaces/Oracle/dataProviders/oracle.PropertiesServiceProvider/connections/LocalServerConnection/resources/GetPropertiesResource/methods/GetPropertySet(namespace,definition,set)?projection=details" rel="self" resourceType="urn:oracle:wcps:conductor:provider:resourceMethod" template="http://localhost:7001/wcps/api/conductor/namespaces/Oracle/dataProviders/oracle.PropertiesServiceProvider/connections/LocalServerConnection/resources/GetPropertiesResource/methods/GetPropertySet(namespace,definition,set)?projection={projection}"/> </links> <name>GetPropertySet</name> <uniqueName>GetPropertySet(namespace,definition,set)</uniqueName> <localizedDescription>Retrieves a property set for the current (or specified) namespace, property set definition name, and property set name. If no namespace, property set definition, or property set exists, null will be returned.</localizedDescription> <parameters> <parameter> <localizedDescription>The namespace in which the property set definition and property set exists.</localizedDescription> <name>namespace</name> <type>java.lang.String</type> </parameter> <parameter> <localizedDescription>The property set definition name.</localizedDescription> <name>definition</name> <type>java.lang.String</type> </parameter> <parameter> <localizedDescription>The property set name.</localizedDescription> <name>set</name> <type>java.lang.String</type> </parameter> </parameters> <returnType>java.util.Map</returnType> </resourceMethod>
JSON
Request: GET http://localhost:7001/wcps/api/conductor/namespaces/Oracle/dataProviders/oracle.PropertiesServiceProvider/connections/LocalServerConnection/resources/GetPropertiesResource/methods/GetPropertySet(namespace,definition,set)?projection=details accept-language: en content-type: application/json accept: application/json Response: Status Code:200 X-Powered-By: Servlet/2.5 JSP/2.1 Set-Cookie: JSESSIONID=MD62M27BQLv9jxFR8K1SSXXyL70DwLGd7gpHvMh21xGM9gfppLR2!822326988; path=/wcps; HttpOnly Transfer-Encoding: chunked Content-Type: application/json Date: Wed, 13 Oct 2010 23:07:13 GMT { "name" : "GetPropertySet", "uniqueName" : "GetPropertySet(namespace,definition,set)", "returnType" : "java.util.Map", "parameters" : [ { "type" : "java.lang.String", "name" : "namespace", "localizedDescription" : "The namespace in which the property set definition and property set exists." }, { "type" : "java.lang.String", "name" : "definition", "localizedDescription" : "The property set definition name." }, { "type" : "java.lang.String", "name" : "set", "localizedDescription" : "The property set name." } ], "localizedDescription" : "Retrieves a property set for the current (or specified) namespace, property set definition name, and property set name. If no namespace, property set definition, or property set exists, null will be returned.", "resourceType" : "urn:oracle:wcps:conductor:provider:resourceMethod", "links" : [ { "resourceType" : "urn:oracle:wcps:conductor:provider:resourceMethods", "template" : "http://localhost:7001/wcps/api/conductor/namespaces/Oracle/dataProviders/oracle.PropertiesServiceProvider/connections/LocalServerConnection/resources/GetPropertiesResource/methods?projection={projection}", "capabilities" : "urn:oracle:restframework:read", "href" : "http://localhost:7001/wcps/api/conductor/namespaces/Oracle/dataProviders/oracle.PropertiesServiceProvider/connections/LocalServerConnection/resources/GetPropertiesResource/methods", "rel" : "urn:oracle:webcenter:parent" }, { "resourceType" : "urn:oracle:wcps:conductor:provider:resourceMethod", "template" : "http://localhost:7001/wcps/api/conductor/namespaces/Oracle/dataProviders/oracle.PropertiesServiceProvider/connections/LocalServerConnection/resources/GetPropertiesResource/methods/GetPropertySet(namespace,definition,set)?projection={projection}", "capabilities" : "urn:oracle:restframework:read", "href" : "http://localhost:7001/wcps/api/conductor/namespaces/Oracle/dataProviders/oracle.PropertiesServiceProvider/connections/LocalServerConnection/resources/GetPropertiesResource/methods/GetPropertySet(namespace,definition,set)?projection=details", "rel" : "self" } ] }
XML
Request: GET http://localhost:7001/wcps/api/conductor/namespaces/Oracle/dataProviders/oracle.PropertiesServiceProvider?projection=details accept-language: en content-type: application/xml accept: application/xml Response: Status Code:200 X-Powered-By: Servlet/2.5 JSP/2.1 Set-Cookie: JSESSIONID=T5nQM27dHT1yGdzP7yMy25l0QGKDt95kXymntN83tfhT72n1gkcQ!822326988; path=/wcps; HttpOnly Transfer-Encoding: chunked Content-Type: application/xml Date: Wed, 13 Oct 2010 23:07:09 GMT <?xml version="1.0" encoding="UTF-8"?> <dataProvider resourceType="urn:oracle:wcps:conductor:provider:dataProvider"> <links> <link capabilities="urn:oracle:restframework:read" href="http://localhost:7001/wcps/api/conductor/namespaces/Oracle/dataProviders" rel="urn:oracle:webcenter:parent" resourceType="urn:oracle:wcps:conductor:provider:dataProviders" template="http://localhost:7001/wcps/api/conductor/namespaces/Oracle/dataProviders?projection={projection}"/> <link capabilities="urn:oracle:restframework:read" href="http://localhost:7001/wcps/api/conductor/namespaces/Oracle/dataProviders/oracle.PropertiesServiceProvider?projection=details" rel="self" resourceType="urn:oracle:wcps:conductor:provider:dataProvider" template="http://localhost:7001/wcps/api/conductor/namespaces/Oracle/dataProviders/oracle.PropertiesServiceProvider?projection={projection}"/> <link capabilities="urn:oracle:restframework:read" rel="urn:oracle:wcps:conductor:provider:providerConnections" resourceType="urn:oracle:wcps:conductor:provider:providerConnections" template="http://localhost:7001/wcps/api/conductor/namespaces/{namespace}/dataProviders/{provider-name}/connections?projection={projection}"/> <link capabilities="urn:oracle:restframework:read" rel="urn:oracle:wcps:conductor:provider:providerConnection" resourceType="urn:oracle:wcps:conductor:provider:providerConnection" template="http://localhost:7001/wcps/api/conductor/namespaces/{namespace}/dataProviders/{provider-name}/connections/{connection-name}?projection={projection}"/> <link capabilities="urn:oracle:restframework:read" rel="urn:oracle:wcps:conductor:provider:connectionResources" resourceType="urn:oracle:wcps:conductor:provider:connectionResources" template="http://localhost:7001/wcps/api/conductor/namespaces/{namespace}/dataProviders/{provider-name}/connections/{connection-name}/resources?projection={projection}"/> <link capabilities="urn:oracle:restframework:read" rel="urn:oracle:wcps:conductor:provider:connectionResource" resourceType="urn:oracle:wcps:conductor:provider:connectionResource" template="http://localhost:7001/wcps/api/conductor/namespaces/{namespace}/dataProviders/{provider-name}/connections/{connection-name}/resources/{resource-name}?projection={projection}"/> <link capabilities="urn:oracle:restframework:read" rel="urn:oracle:wcps:conductor:provider:resourceMethods" resourceType="urn:oracle:wcps:conductor:provider:resourceMethods" template="http://localhost:7001/wcps/api/conductor/namespaces/{namespace}/dataProviders/{provider-name}/connections/{connection-name}/resources/{resource-name}/methods?projection={projection}"/> <link capabilities="urn:oracle:restframework:read" rel="urn:oracle:wcps:conductor:provider:resourceMethod" resourceType="urn:oracle:wcps:conductor:provider:resourceMethod" template="http://localhost:7001/wcps/api/conductor/namespaces/{namespace}/dataProviders/{provider-name}/connections/{connection-name}/resources/{resource-name}/methods/{method-name}?projection={projection}"/> </links> <name>oracle.PropertiesServiceProvider</name> <localizedName>Property Service Data Provider</localizedName> <localizedDescription>Data provider implementation to integrate the properties service for use in scenarios. </localizedDescription> <providerConnections resourceType="urn:oracle:wcps:conductor:provider:providerConnections"> <links> <link capabilities="urn:oracle:restframework:read" href="http://localhost:7001/wcps/api/conductor/namespaces/Oracle/dataProviders/oracle.PropertiesServiceProvider" rel="urn:oracle:webcenter:parent" resourceType="urn:oracle:wcps:conductor:provider:dataProvider" template="http://localhost:7001/wcps/api/conductor/namespaces/Oracle/dataProviders/oracle.PropertiesServiceProvider?projection={projection}"/> <link capabilities="urn:oracle:restframework:read" href="http://localhost:7001/wcps/api/conductor/namespaces/Oracle/dataProviders/oracle.PropertiesServiceProvider/connections" rel="self" resourceType="urn:oracle:wcps:conductor:provider:providerConnections" template="http://localhost:7001/wcps/api/conductor/namespaces/Oracle/dataProviders/oracle.PropertiesServiceProvider/connections?projection={projection}"/> </links> <items> <providerConnection resourceType="urn:oracle:wcps:conductor:provider:providerConnection"> <links> <link capabilities="urn:oracle:restframework:read" href="http://localhost:7001/wcps/api/conductor/namespaces/Oracle/dataProviders/oracle.PropertiesServiceProvider/connections" rel="urn:oracle:webcenter:parent" resourceType="urn:oracle:wcps:conductor:provider:providerConnections" template="http://localhost:7001/wcps/api/conductor/namespaces/Oracle/dataProviders/oracle.PropertiesServiceProvider/connections?projection={projection}"/> <link capabilities="urn:oracle:restframework:read" href="http://localhost:7001/wcps/api/conductor/namespaces/Oracle/dataProviders/oracle.PropertiesServiceProvider/connections/LocalServerConnection/metadata" rel="urn:oracle:wcps:conductor:provider:connectionMetadata" resourceType="urn:oracle:wcps:conductor:provider:connectionMetadata" template="http://localhost:7001/wcps/api/conductor/namespaces/Oracle/dataProviders/oracle.PropertiesServiceProvider/connections/LocalServerConnection/metadata?projection={projection}"/> <link capabilities="urn:oracle:restframework:read" href="http://localhost:7001/wcps/api/conductor/namespaces/Oracle/dataProviders/oracle.PropertiesServiceProvider/connections/LocalServerConnection" rel="self" resourceType="urn:oracle:wcps:conductor:provider:providerConnection" template="http://localhost:7001/wcps/api/conductor/namespaces/Oracle/dataProviders/oracle.PropertiesServiceProvider/connections/LocalServerConnection?projection={projection}"/> </links> <name>LocalServerConnection</name> <connectionResources resourceType="urn:oracle:wcps:conductor:provider:connectionResources"> <links> <link capabilities="urn:oracle:restframework:read" href="http://localhost:7001/wcps/api/conductor/namespaces/Oracle/dataProviders/oracle.PropertiesServiceProvider/connections/LocalServerConnection" rel="urn:oracle:webcenter:parent" resourceType="urn:oracle:wcps:conductor:provider:providerConnection" template="http://localhost:7001/wcps/api/conductor/namespaces/Oracle/dataProviders/oracle.PropertiesServiceProvider/connections/LocalServerConnection?projection={projection}"/> <link capabilities="urn:oracle:restframework:read" href="http://localhost:7001/wcps/api/conductor/namespaces/Oracle/dataProviders/oracle.PropertiesServiceProvider/connections/LocalServerConnection/resources" rel="self" resourceType="urn:oracle:wcps:conductor:provider:connectionResources" template="http://localhost:7001/wcps/api/conductor/namespaces/Oracle/dataProviders/oracle.PropertiesServiceProvider/connections/LocalServerConnection/resources?projection={projection}"/> </links> <items> <connectionResource resourceType="urn:oracle:wcps:conductor:provider:connectionResource"> <links> <link capabilities="urn:oracle:restframework:read" href="http://localhost:7001/wcps/api/conductor/namespaces/Oracle/dataProviders/oracle.PropertiesServiceProvider/connections/LocalServerConnection/resources" rel="urn:oracle:webcenter:parent" resourceType="urn:oracle:wcps:conductor:provider:connectionResources" template="http://localhost:7001/wcps/api/conductor/namespaces/Oracle/dataProviders/oracle.PropertiesServiceProvider/connections/LocalServerConnection/resources?projection={projection}"/> <link capabilities="urn:oracle:restframework:read" href="http://localhost:7001/wcps/api/conductor/namespaces/Oracle/dataProviders/oracle.PropertiesServiceProvider/connections/LocalServerConnection/resources/GetPropertiesResource" rel="self" resourceType="urn:oracle:wcps:conductor:provider:connectionResource" template="http://localhost:7001/wcps/api/conductor/namespaces/Oracle/dataProviders/oracle.PropertiesServiceProvider/connections/LocalServerConnection/resources/GetPropertiesResource?projection={projection}"/> </links> <name>GetPropertiesResource</name> <resourceMethods resourceType="urn:oracle:wcps:conductor:provider:resourceMethods"> <links> <link capabilities="urn:oracle:restframework:read" href="http://localhost:7001/wcps/api/conductor/namespaces/Oracle/dataProviders/oracle.PropertiesServiceProvider/connections/LocalServerConnection/resources/GetPropertiesResource" rel="urn:oracle:webcenter:parent" resourceType="urn:oracle:wcps:conductor:provider:connectionResource" template="http://localhost:7001/wcps/api/conductor/namespaces/Oracle/dataProviders/oracle.PropertiesServiceProvider/connections/LocalServerConnection/resources/GetPropertiesResource?projection={projection}"/> <link capabilities="urn:oracle:restframework:read" href="http://localhost:7001/wcps/api/conductor/namespaces/Oracle/dataProviders/oracle.PropertiesServiceProvider/connections/LocalServerConnection/resources/GetPropertiesResource/methods" rel="self" resourceType="urn:oracle:wcps:conductor:provider:resourceMethods" template="http://localhost:7001/wcps/api/conductor/namespaces/Oracle/dataProviders/oracle.PropertiesServiceProvider/connections/LocalServerConnection/resources/GetPropertiesResource/methods?projection={projection}"/> </links> <items> <resourceMethod resourceType="urn:oracle:wcps:conductor:provider:resourceMethod"> <links> <link capabilities="urn:oracle:restframework:read" href="http://localhost:7001/wcps/api/conductor/namespaces/Oracle/dataProviders/oracle.PropertiesServiceProvider/connections/LocalServerConnection/resources/GetPropertiesResource/methods" rel="urn:oracle:webcenter:parent" resourceType="urn:oracle:wcps:conductor:provider:resourceMethods" template="http://localhost:7001/wcps/api/conductor/namespaces/Oracle/dataProviders/oracle.PropertiesServiceProvider/connections/LocalServerConnection/resources/GetPropertiesResource/methods?projection={projection}"/> <link capabilities="urn:oracle:restframework:read" href="http://localhost:7001/wcps/api/conductor/namespaces/Oracle/dataProviders/oracle.PropertiesServiceProvider/connections/LocalServerConnection/resources/GetPropertiesResource/methods/GetProperty(namespace,definition,set,property)" rel="self" resourceType="urn:oracle:wcps:conductor:provider:resourceMethod" template="http://localhost:7001/wcps/api/conductor/namespaces/Oracle/dataProviders/oracle.PropertiesServiceProvider/connections/LocalServerConnection/resources/GetPropertiesResource/methods/GetProperty(namespace,definition,set,property)?projection={projection}"/> </links> <name>GetProperty</name> <uniqueName>GetProperty(namespace,definition,set,property)</uniqueName> <localizedDescription>Retrieves a property set for the current (or specified) namespace, property set definition name, and property set name, and property name. If no namespace, property set definition, property set and property exists null will be returned.</localizedDescription> <parameters> <parameter> <localizedDescription>The namespace in which the property set definition and property set exists.</localizedDescription> <name>namespace</name> <type>java.lang.String</type> </parameter> <parameter> <localizedDescription>The property set definition name.</localizedDescription> <name>definition</name> <type>java.lang.String</type> </parameter> <parameter> <localizedDescription>The property set name.</localizedDescription> <name>set</name> <type>java.lang.String</type> </parameter> <parameter> <localizedDescription>The property name.</localizedDescription> <name>property</name> <type>java.lang.String</type> </parameter> </parameters> <returnType>java.io.Serializable</returnType> </resourceMethod> <resourceMethod resourceType="urn:oracle:wcps:conductor:provider:resourceMethod"> <links> <link capabilities="urn:oracle:restframework:read" href="http://localhost:7001/wcps/api/conductor/namespaces/Oracle/dataProviders/oracle.PropertiesServiceProvider/connections/LocalServerConnection/resources/GetPropertiesResource/methods" rel="urn:oracle:webcenter:parent" resourceType="urn:oracle:wcps:conductor:provider:resourceMethods" template="http://localhost:7001/wcps/api/conductor/namespaces/Oracle/dataProviders/oracle.PropertiesServiceProvider/connections/LocalServerConnection/resources/GetPropertiesResource/methods?projection={projection}"/> <link capabilities="urn:oracle:restframework:read" href="http://localhost:7001/wcps/api/conductor/namespaces/Oracle/dataProviders/oracle.PropertiesServiceProvider/connections/LocalServerConnection/resources/GetPropertiesResource/methods/GetProperty(definition,set,property)" rel="self" resourceType="urn:oracle:wcps:conductor:provider:resourceMethod" template="http://localhost:7001/wcps/api/conductor/namespaces/Oracle/dataProviders/oracle.PropertiesServiceProvider/connections/LocalServerConnection/resources/GetPropertiesResource/methods/GetProperty(definition,set,property)?projection={projection}"/> </links> <name>GetProperty</name> <uniqueName>GetProperty(definition,set,property)</uniqueName> <localizedDescription>Retrieves a property set for the current (or specified) namespace, property set definition name, and property set name, and property name. If no namespace, property set definition, property set and property exists null will be returned.</localizedDescription> <parameters> <parameter> <localizedDescription>The property set definition name.</localizedDescription> <name>definition</name> <type>java.lang.String</type> </parameter> <parameter> <localizedDescription>The property set name.</localizedDescription> <name>set</name> <type>java.lang.String</type> </parameter> <parameter> <localizedDescription>The property name.</localizedDescription> <name>property</name> <type>java.lang.String</type> </parameter> </parameters> <returnType>java.io.Serializable</returnType> </resourceMethod> <resourceMethod resourceType="urn:oracle:wcps:conductor:provider:resourceMethod"> <links> <link capabilities="urn:oracle:restframework:read" href="http://localhost:7001/wcps/api/conductor/namespaces/Oracle/dataProviders/oracle.PropertiesServiceProvider/connections/LocalServerConnection/resources/GetPropertiesResource/methods" rel="urn:oracle:webcenter:parent" resourceType="urn:oracle:wcps:conductor:provider:resourceMethods" template="http://localhost:7001/wcps/api/conductor/namespaces/Oracle/dataProviders/oracle.PropertiesServiceProvider/connections/LocalServerConnection/resources/GetPropertiesResource/methods?projection={projection}"/> <link capabilities="urn:oracle:restframework:read" href="http://localhost:7001/wcps/api/conductor/namespaces/Oracle/dataProviders/oracle.PropertiesServiceProvider/connections/LocalServerConnection/resources/GetPropertiesResource/methods/execute()" rel="self" resourceType="urn:oracle:wcps:conductor:provider:resourceMethod" template="http://localhost:7001/wcps/api/conductor/namespaces/Oracle/dataProviders/oracle.PropertiesServiceProvider/connections/LocalServerConnection/resources/GetPropertiesResource/methods/execute()?projection={projection}"/> </links> <name>execute</name> <uniqueName>execute()</uniqueName> <localizedDescription>This is the default method executed if no method is specified, which currently returns nothing.</localizedDescription> <parameters/> <returnType>java.lang.Object</returnType> </resourceMethod> <resourceMethod resourceType="urn:oracle:wcps:conductor:provider:resourceMethod"> <links> <link capabilities="urn:oracle:restframework:read" href="http://localhost:7001/wcps/api/conductor/namespaces/Oracle/dataProviders/oracle.PropertiesServiceProvider/connections/LocalServerConnection/resources/GetPropertiesResource/methods" rel="urn:oracle:webcenter:parent" resourceType="urn:oracle:wcps:conductor:provider:resourceMethods" template="http://localhost:7001/wcps/api/conductor/namespaces/Oracle/dataProviders/oracle.PropertiesServiceProvider/connections/LocalServerConnection/resources/GetPropertiesResource/methods?projection={projection}"/> <link capabilities="urn:oracle:restframework:read" href="http://localhost:7001/wcps/api/conductor/namespaces/Oracle/dataProviders/oracle.PropertiesServiceProvider/connections/LocalServerConnection/resources/GetPropertiesResource/methods/GetPropertySet(definition,set)" rel="self" resourceType="urn:oracle:wcps:conductor:provider:resourceMethod" template="http://localhost:7001/wcps/api/conductor/namespaces/Oracle/dataProviders/oracle.PropertiesServiceProvider/connections/LocalServerConnection/resources/GetPropertiesResource/methods/GetPropertySet(definition,set)?projection={projection}"/> </links> <name>GetPropertySet</name> <uniqueName>GetPropertySet(definition,set)</uniqueName> <localizedDescription>Retrieves a property set for the current (or specified) namespace, property set definition name, and property set name. If no namespace, property set definition, or property set exists, null will be returned.</localizedDescription> <parameters> <parameter> <localizedDescription>The property set definition name.</localizedDescription> <name>definition</name> <type>java.lang.String</type> </parameter> <parameter> <localizedDescription>The property set name.</localizedDescription> <name>set</name> <type>java.lang.String</type> </parameter> </parameters> <returnType>java.util.Map</returnType> </resourceMethod> <resourceMethod resourceType="urn:oracle:wcps:conductor:provider:resourceMethod"> <links> <link capabilities="urn:oracle:restframework:read" href="http://localhost:7001/wcps/api/conductor/namespaces/Oracle/dataProviders/oracle.PropertiesServiceProvider/connections/LocalServerConnection/resources/GetPropertiesResource/methods" rel="urn:oracle:webcenter:parent" resourceType="urn:oracle:wcps:conductor:provider:resourceMethods" template="http://localhost:7001/wcps/api/conductor/namespaces/Oracle/dataProviders/oracle.PropertiesServiceProvider/connections/LocalServerConnection/resources/GetPropertiesResource/methods?projection={projection}"/> <link capabilities="urn:oracle:restframework:read" href="http://localhost:7001/wcps/api/conductor/namespaces/Oracle/dataProviders/oracle.PropertiesServiceProvider/connections/LocalServerConnection/resources/GetPropertiesResource/methods/GetPropertySet(namespace,definition,set)" rel="self" resourceType="urn:oracle:wcps:conductor:provider:resourceMethod" template="http://localhost:7001/wcps/api/conductor/namespaces/Oracle/dataProviders/oracle.PropertiesServiceProvider/connections/LocalServerConnection/resources/GetPropertiesResource/methods/GetPropertySet(namespace,definition,set)?projection={projection}"/> </links> <name>GetPropertySet</name> <uniqueName>GetPropertySet(namespace,definition,set)</uniqueName> <localizedDescription>Retrieves a property set for the current (or specified) namespace, property set definition name, and property set name. If no namespace, property set definition, or property set exists, null will be returned.</localizedDescription> <parameters> <parameter> <localizedDescription>The namespace in which the property set definition and property set exists.</localizedDescription> <name>namespace</name> <type>java.lang.String</type> </parameter> <parameter> <localizedDescription>The property set definition name.</localizedDescription> <name>definition</name> <type>java.lang.String</type> </parameter> <parameter> <localizedDescription>The property set name.</localizedDescription> <name>set</name> <type>java.lang.String</type> </parameter> </parameters> <returnType>java.util.Map</returnType> </resourceMethod> <resourceMethod resourceType="urn:oracle:wcps:conductor:provider:resourceMethod"> <links> <link capabilities="urn:oracle:restframework:read" href="http://localhost:7001/wcps/api/conductor/namespaces/Oracle/dataProviders/oracle.PropertiesServiceProvider/connections/LocalServerConnection/resources/GetPropertiesResource/methods" rel="urn:oracle:webcenter:parent" resourceType="urn:oracle:wcps:conductor:provider:resourceMethods" template="http://localhost:7001/wcps/api/conductor/namespaces/Oracle/dataProviders/oracle.PropertiesServiceProvider/connections/LocalServerConnection/resources/GetPropertiesResource/methods?projection={projection}"/> <link capabilities="urn:oracle:restframework:read" href="http://localhost:7001/wcps/api/conductor/namespaces/Oracle/dataProviders/oracle.PropertiesServiceProvider/connections/LocalServerConnection/resources/GetPropertiesResource/methods/GetPropertySets(definition)" rel="self" resourceType="urn:oracle:wcps:conductor:provider:resourceMethod" template="http://localhost:7001/wcps/api/conductor/namespaces/Oracle/dataProviders/oracle.PropertiesServiceProvider/connections/LocalServerConnection/resources/GetPropertiesResource/methods/GetPropertySets(definition)?projection={projection}"/> </links> <name>GetPropertySets</name> <uniqueName>GetPropertySets(definition)</uniqueName> <localizedDescription>Retrieves a Map of property sets for the current (or specified) namespace and property set definition name that is keyed by property set name. The size and start index of this list will be within the boundaries of the specified start index and page size specified in the request.</localizedDescription> <parameters> <parameter> <localizedDescription>The property set definition name.</localizedDescription> <name>definition</name> <type>java.lang.String</type> </parameter> </parameters> <returnType>java.util.Map</returnType> </resourceMethod> <resourceMethod resourceType="urn:oracle:wcps:conductor:provider:resourceMethod"> <links> <link capabilities="urn:oracle:restframework:read" href="http://localhost:7001/wcps/api/conductor/namespaces/Oracle/dataProviders/oracle.PropertiesServiceProvider/connections/LocalServerConnection/resources/GetPropertiesResource/methods" rel="urn:oracle:webcenter:parent" resourceType="urn:oracle:wcps:conductor:provider:resourceMethods" template="http://localhost:7001/wcps/api/conductor/namespaces/Oracle/dataProviders/oracle.PropertiesServiceProvider/connections/LocalServerConnection/resources/GetPropertiesResource/methods?projection={projection}"/> <link capabilities="urn:oracle:restframework:read" href="http://localhost:7001/wcps/api/conductor/namespaces/Oracle/dataProviders/oracle.PropertiesServiceProvider/connections/LocalServerConnection/resources/GetPropertiesResource/methods/GetPropertySets(namespace,definition)" rel="self" resourceType="urn:oracle:wcps:conductor:provider:resourceMethod" template="http://localhost:7001/wcps/api/conductor/namespaces/Oracle/dataProviders/oracle.PropertiesServiceProvider/connections/LocalServerConnection/resources/GetPropertiesResource/methods/GetPropertySets(namespace,definition)?projection={projection}"/> </links> <name>GetPropertySets</name> <uniqueName>GetPropertySets(namespace,definition)</uniqueName> <localizedDescription>Retrieves a Map of property sets for the current (or specified) namespace and property set definition name that is keyed by property set name. The size and start index of this list will be within the boundaries of the specified start index and page size specified in the request.</localizedDescription> <parameters> <parameter> <localizedDescription>The namespace in which the property set definition and property set exists.</localizedDescription> <name>namespace</name> <type>java.lang.String</type> </parameter> <parameter> <localizedDescription>The property set definition name.</localizedDescription> <name>definition</name> <type>java.lang.String</type> </parameter> </parameters> <returnType>java.util.Map</returnType> </resourceMethod> </items> </resourceMethods> </connectionResource> </items> </connectionResources> </providerConnection> </items> </providerConnections> </dataProvider>
JSON
Request: GET http://localhost:7001/wcps/api/conductor/namespaces/Oracle/dataProviders/oracle.PropertiesServiceProvider?projection=details accept-language: en content-type: application/json accept: application/json Response: Status Code:200 X-Powered-By: Servlet/2.5 JSP/2.1 Set-Cookie: JSESSIONID=GvbXM27BZxQhPJQqnv9Qmsn1j2G1Lvzhc67hpLp4gnjhjsypnTTm!822326988; path=/wcps; HttpOnly Transfer-Encoding: chunked Content-Type: application/json Date: Wed, 13 Oct 2010 23:07:13 GMT { "name" : "oracle.PropertiesServiceProvider", "localizedName" : "Property Service Data Provider", "localizedDescription" : "Data provider implementation to integrate the properties service for use in scenarios. ", "providerConnections" : [ { "name" : "LocalServerConnection", "connectionResources" : [ { "name" : "GetPropertiesResource", "resourceMethods" : { "resourceMethods" : [ { "name" : "GetProperty", "uniqueName" : "GetProperty(namespace,definition,set,property)", "returnType" : "java.io.Serializable", "parameters" : [ { "type" : "java.lang.String", "name" : "namespace", "localizedDescription" : "The namespace in which the property set definition and property set exists." }, { "type" : "java.lang.String", "name" : "definition", "localizedDescription" : "The property set definition name." }, { "type" : "java.lang.String", "name" : "set", "localizedDescription" : "The property set name." }, { "type" : "java.lang.String", "name" : "property", "localizedDescription" : "The property name." } ], "localizedDescription" : "Retrieves a property set for the current (or specified) namespace, property set definition name, and property set name, and property name. If no namespace, property set definition, property set and property exists\tnull will be returned.", "resourceType" : "urn:oracle:wcps:conductor:provider:resourceMethod", "links" : [ { "resourceType" : "urn:oracle:wcps:conductor:provider:resourceMethods", "template" : "http://localhost:7001/wcps/api/conductor/namespaces/Oracle/dataProviders/oracle.PropertiesServiceProvider/connections/LocalServerConnection/resources/GetPropertiesResource/methods?projection={projection}", "capabilities" : "urn:oracle:restframework:read", "href" : "http://localhost:7001/wcps/api/conductor/namespaces/Oracle/dataProviders/oracle.PropertiesServiceProvider/connections/LocalServerConnection/resources/GetPropertiesResource/methods", "rel" : "urn:oracle:webcenter:parent" }, { "resourceType" : "urn:oracle:wcps:conductor:provider:resourceMethod", "template" : "http://localhost:7001/wcps/api/conductor/namespaces/Oracle/dataProviders/oracle.PropertiesServiceProvider/connections/LocalServerConnection/resources/GetPropertiesResource/methods/GetProperty(namespace,definition,set,property)?projection={projection}", "capabilities" : "urn:oracle:restframework:read", "href" : "http://localhost:7001/wcps/api/conductor/namespaces/Oracle/dataProviders/oracle.PropertiesServiceProvider/connections/LocalServerConnection/resources/GetPropertiesResource/methods/GetProperty(namespace,definition,set,property)", "rel" : "self" } ] }, { "name" : "GetProperty", "uniqueName" : "GetProperty(definition,set,property)", "returnType" : "java.io.Serializable", "parameters" : [ { "type" : "java.lang.String", "name" : "definition", "localizedDescription" : "The property set definition name." }, { "type" : "java.lang.String", "name" : "set", "localizedDescription" : "The property set name." }, { "type" : "java.lang.String", "name" : "property", "localizedDescription" : "The property name." } ], "localizedDescription" : "Retrieves a property set for the current (or specified) namespace, property set definition name, and property set name, and property name. If no namespace, property set definition, property set and property exists\tnull will be returned.", "resourceType" : "urn:oracle:wcps:conductor:provider:resourceMethod", "links" : [ { "resourceType" : "urn:oracle:wcps:conductor:provider:resourceMethods", "template" : "http://localhost:7001/wcps/api/conductor/namespaces/Oracle/dataProviders/oracle.PropertiesServiceProvider/connections/LocalServerConnection/resources/GetPropertiesResource/methods?projection={projection}", "capabilities" : "urn:oracle:restframework:read", "href" : "http://localhost:7001/wcps/api/conductor/namespaces/Oracle/dataProviders/oracle.PropertiesServiceProvider/connections/LocalServerConnection/resources/GetPropertiesResource/methods", "rel" : "urn:oracle:webcenter:parent" }, { "resourceType" : "urn:oracle:wcps:conductor:provider:resourceMethod", "template" : "http://localhost:7001/wcps/api/conductor/namespaces/Oracle/dataProviders/oracle.PropertiesServiceProvider/connections/LocalServerConnection/resources/GetPropertiesResource/methods/GetProperty(definition,set,property)?projection={projection}", "capabilities" : "urn:oracle:restframework:read", "href" : "http://localhost:7001/wcps/api/conductor/namespaces/Oracle/dataProviders/oracle.PropertiesServiceProvider/connections/LocalServerConnection/resources/GetPropertiesResource/methods/GetProperty(definition,set,property)", "rel" : "self" } ] }, { "name" : "execute", "uniqueName" : "execute()", "returnType" : "java.lang.Object", "parameters" : [ ], "localizedDescription" : "This is the default method executed if no method is specified, which currently returns nothing.", "resourceType" : "urn:oracle:wcps:conductor:provider:resourceMethod", "links" : [ { "resourceType" : "urn:oracle:wcps:conductor:provider:resourceMethods", "template" : "http://localhost:7001/wcps/api/conductor/namespaces/Oracle/dataProviders/oracle.PropertiesServiceProvider/connections/LocalServerConnection/resources/GetPropertiesResource/methods?projection={projection}", "capabilities" : "urn:oracle:restframework:read", "href" : "http://localhost:7001/wcps/api/conductor/namespaces/Oracle/dataProviders/oracle.PropertiesServiceProvider/connections/LocalServerConnection/resources/GetPropertiesResource/methods", "rel" : "urn:oracle:webcenter:parent" }, { "resourceType" : "urn:oracle:wcps:conductor:provider:resourceMethod", "template" : "http://localhost:7001/wcps/api/conductor/namespaces/Oracle/dataProviders/oracle.PropertiesServiceProvider/connections/LocalServerConnection/resources/GetPropertiesResource/methods/execute()?projection={projection}", "capabilities" : "urn:oracle:restframework:read", "href" : "http://localhost:7001/wcps/api/conductor/namespaces/Oracle/dataProviders/oracle.PropertiesServiceProvider/connections/LocalServerConnection/resources/GetPropertiesResource/methods/execute()", "rel" : "self" } ] }, { "name" : "GetPropertySet", "uniqueName" : "GetPropertySet(definition,set)", "returnType" : "java.util.Map", "parameters" : [ { "type" : "java.lang.String", "name" : "definition", "localizedDescription" : "The property set definition name." }, { "type" : "java.lang.String", "name" : "set", "localizedDescription" : "The property set name." } ], "localizedDescription" : "Retrieves a property set for the current (or specified) namespace, property set definition name, and property set name. If no namespace, property set definition, or property set exists, null will be returned.", "resourceType" : "urn:oracle:wcps:conductor:provider:resourceMethod", "links" : [ { "resourceType" : "urn:oracle:wcps:conductor:provider:resourceMethods", "template" : "http://localhost:7001/wcps/api/conductor/namespaces/Oracle/dataProviders/oracle.PropertiesServiceProvider/connections/LocalServerConnection/resources/GetPropertiesResource/methods?projection={projection}", "capabilities" : "urn:oracle:restframework:read", "href" : "http://localhost:7001/wcps/api/conductor/namespaces/Oracle/dataProviders/oracle.PropertiesServiceProvider/connections/LocalServerConnection/resources/GetPropertiesResource/methods", "rel" : "urn:oracle:webcenter:parent" }, { "resourceType" : "urn:oracle:wcps:conductor:provider:resourceMethod", "template" : "http://localhost:7001/wcps/api/conductor/namespaces/Oracle/dataProviders/oracle.PropertiesServiceProvider/connections/LocalServerConnection/resources/GetPropertiesResource/methods/GetPropertySet(definition,set)?projection={projection}", "capabilities" : "urn:oracle:restframework:read", "href" : "http://localhost:7001/wcps/api/conductor/namespaces/Oracle/dataProviders/oracle.PropertiesServiceProvider/connections/LocalServerConnection/resources/GetPropertiesResource/methods/GetPropertySet(definition,set)", "rel" : "self" } ] }, { "name" : "GetPropertySet", "uniqueName" : "GetPropertySet(namespace,definition,set)", "returnType" : "java.util.Map", "parameters" : [ { "type" : "java.lang.String", "name" : "namespace", "localizedDescription" : "The namespace in which the property set definition and property set exists." }, { "type" : "java.lang.String", "name" : "definition", "localizedDescription" : "The property set definition name." }, { "type" : "java.lang.String", "name" : "set", "localizedDescription" : "The property set name." } ], "localizedDescription" : "Retrieves a property set for the current (or specified) namespace, property set definition name, and property set name. If no namespace, property set definition, or property set exists, null will be returned.", "resourceType" : "urn:oracle:wcps:conductor:provider:resourceMethod", "links" : [ { "resourceType" : "urn:oracle:wcps:conductor:provider:resourceMethods", "template" : "http://localhost:7001/wcps/api/conductor/namespaces/Oracle/dataProviders/oracle.PropertiesServiceProvider/connections/LocalServerConnection/resources/GetPropertiesResource/methods?projection={projection}", "capabilities" : "urn:oracle:restframework:read", "href" : "http://localhost:7001/wcps/api/conductor/namespaces/Oracle/dataProviders/oracle.PropertiesServiceProvider/connections/LocalServerConnection/resources/GetPropertiesResource/methods", "rel" : "urn:oracle:webcenter:parent" }, { "resourceType" : "urn:oracle:wcps:conductor:provider:resourceMethod", "template" : "http://localhost:7001/wcps/api/conductor/namespaces/Oracle/dataProviders/oracle.PropertiesServiceProvider/connections/LocalServerConnection/resources/GetPropertiesResource/methods/GetPropertySet(namespace,definition,set)?projection={projection}", "capabilities" : "urn:oracle:restframework:read", "href" : "http://localhost:7001/wcps/api/conductor/namespaces/Oracle/dataProviders/oracle.PropertiesServiceProvider/connections/LocalServerConnection/resources/GetPropertiesResource/methods/GetPropertySet(namespace,definition,set)", "rel" : "self" } ] }, { "name" : "GetPropertySets", "uniqueName" : "GetPropertySets(definition)", "returnType" : "java.util.Map", "parameters" : [ { "type" : "java.lang.String", "name" : "definition", "localizedDescription" : "The property set definition name." } ], "localizedDescription" : "Retrieves a Map of property sets for the current (or specified) namespace and property set definition name that is keyed by property set name. The size and start index of this list will be within the boundaries of the specified start index and page size specified in the request.", "resourceType" : "urn:oracle:wcps:conductor:provider:resourceMethod", "links" : [ { "resourceType" : "urn:oracle:wcps:conductor:provider:resourceMethods", "template" : "http://localhost:7001/wcps/api/conductor/namespaces/Oracle/dataProviders/oracle.PropertiesServiceProvider/connections/LocalServerConnection/resources/GetPropertiesResource/methods?projection={projection}", "capabilities" : "urn:oracle:restframework:read", "href" : "http://localhost:7001/wcps/api/conductor/namespaces/Oracle/dataProviders/oracle.PropertiesServiceProvider/connections/LocalServerConnection/resources/GetPropertiesResource/methods", "rel" : "urn:oracle:webcenter:parent" }, { "resourceType" : "urn:oracle:wcps:conductor:provider:resourceMethod", "template" : "http://localhost:7001/wcps/api/conductor/namespaces/Oracle/dataProviders/oracle.PropertiesServiceProvider/connections/LocalServerConnection/resources/GetPropertiesResource/methods/GetPropertySets(definition)?projection={projection}", "capabilities" : "urn:oracle:restframework:read", "href" : "http://localhost:7001/wcps/api/conductor/namespaces/Oracle/dataProviders/oracle.PropertiesServiceProvider/connections/LocalServerConnection/resources/GetPropertiesResource/methods/GetPropertySets(definition)", "rel" : "self" } ] }, { "name" : "GetPropertySets", "uniqueName" : "GetPropertySets(namespace,definition)", "returnType" : "java.util.Map", "parameters" : [ { "type" : "java.lang.String", "name" : "namespace", "localizedDescription" : "The namespace in which the property set definition and property set exists." }, { "type" : "java.lang.String", "name" : "definition", "localizedDescription" : "The property set definition name." } ], "localizedDescription" : "Retrieves a Map of property sets for the current (or specified) namespace and property set definition name that is keyed by property set name. The size and start index of this list will be within the boundaries of the specified start index and page size specified in the request.", "resourceType" : "urn:oracle:wcps:conductor:provider:resourceMethod", "links" : [ { "resourceType" : "urn:oracle:wcps:conductor:provider:resourceMethods", "template" : "http://localhost:7001/wcps/api/conductor/namespaces/Oracle/dataProviders/oracle.PropertiesServiceProvider/connections/LocalServerConnection/resources/GetPropertiesResource/methods?projection={projection}", "capabilities" : "urn:oracle:restframework:read", "href" : "http://localhost:7001/wcps/api/conductor/namespaces/Oracle/dataProviders/oracle.PropertiesServiceProvider/connections/LocalServerConnection/resources/GetPropertiesResource/methods", "rel" : "urn:oracle:webcenter:parent" }, { "resourceType" : "urn:oracle:wcps:conductor:provider:resourceMethod", "template" : "http://localhost:7001/wcps/api/conductor/namespaces/Oracle/dataProviders/oracle.PropertiesServiceProvider/connections/LocalServerConnection/resources/GetPropertiesResource/methods/GetPropertySets(namespace,definition)?projection={projection}", "capabilities" : "urn:oracle:restframework:read", "href" : "http://localhost:7001/wcps/api/conductor/namespaces/Oracle/dataProviders/oracle.PropertiesServiceProvider/connections/LocalServerConnection/resources/GetPropertiesResource/methods/GetPropertySets(namespace,definition)", "rel" : "self" } ] } ], "resourceType" : "urn:oracle:wcps:conductor:provider:resourceMethods", "links" : [ { "resourceType" : "urn:oracle:wcps:conductor:provider:connectionResource", "template" : "http://localhost:7001/wcps/api/conductor/namespaces/Oracle/dataProviders/oracle.PropertiesServiceProvider/connections/LocalServerConnection/resources/GetPropertiesResource?projection={projection}", "capabilities" : "urn:oracle:restframework:read", "href" : "http://localhost:7001/wcps/api/conductor/namespaces/Oracle/dataProviders/oracle.PropertiesServiceProvider/connections/LocalServerConnection/resources/GetPropertiesResource", "rel" : "urn:oracle:webcenter:parent" }, { "resourceType" : "urn:oracle:wcps:conductor:provider:resourceMethods", "template" : "http://localhost:7001/wcps/api/conductor/namespaces/Oracle/dataProviders/oracle.PropertiesServiceProvider/connections/LocalServerConnection/resources/GetPropertiesResource/methods?projection={projection}", "capabilities" : "urn:oracle:restframework:read", "href" : "http://localhost:7001/wcps/api/conductor/namespaces/Oracle/dataProviders/oracle.PropertiesServiceProvider/connections/LocalServerConnection/resources/GetPropertiesResource/methods", "rel" : "self" } ] }, "resourceType" : "urn:oracle:wcps:conductor:provider:connectionResource", "links" : [ { "resourceType" : "urn:oracle:wcps:conductor:provider:connectionResources", "template" : "http://localhost:7001/wcps/api/conductor/namespaces/Oracle/dataProviders/oracle.PropertiesServiceProvider/connections/LocalServerConnection/resources?projection={projection}", "capabilities" : "urn:oracle:restframework:read", "href" : "http://localhost:7001/wcps/api/conductor/namespaces/Oracle/dataProviders/oracle.PropertiesServiceProvider/connections/LocalServerConnection/resources", "rel" : "urn:oracle:webcenter:parent" }, { "resourceType" : "urn:oracle:wcps:conductor:provider:connectionResource", "template" : "http://localhost:7001/wcps/api/conductor/namespaces/Oracle/dataProviders/oracle.PropertiesServiceProvider/connections/LocalServerConnection/resources/GetPropertiesResource?projection={projection}", "capabilities" : "urn:oracle:restframework:read", "href" : "http://localhost:7001/wcps/api/conductor/namespaces/Oracle/dataProviders/oracle.PropertiesServiceProvider/connections/LocalServerConnection/resources/GetPropertiesResource", "rel" : "self" } ] } ], "resourceType" : "urn:oracle:wcps:conductor:provider:providerConnection", "links" : [ { "resourceType" : "urn:oracle:wcps:conductor:provider:providerConnections", "template" : "http://localhost:7001/wcps/api/conductor/namespaces/Oracle/dataProviders/oracle.PropertiesServiceProvider/connections?projection={projection}", "capabilities" : "urn:oracle:restframework:read", "href" : "http://localhost:7001/wcps/api/conductor/namespaces/Oracle/dataProviders/oracle.PropertiesServiceProvider/connections", "rel" : "urn:oracle:webcenter:parent" }, { "resourceType" : "urn:oracle:wcps:conductor:provider:connectionMetadata", "template" : "http://localhost:7001/wcps/api/conductor/namespaces/Oracle/dataProviders/oracle.PropertiesServiceProvider/connections/LocalServerConnection/metadata?projection={projection}", "capabilities" : "urn:oracle:restframework:read", "href" : "http://localhost:7001/wcps/api/conductor/namespaces/Oracle/dataProviders/oracle.PropertiesServiceProvider/connections/LocalServerConnection/metadata", "rel" : "urn:oracle:wcps:conductor:provider:connectionMetadata" }, { "resourceType" : "urn:oracle:wcps:conductor:provider:providerConnection", "template" : "http://localhost:7001/wcps/api/conductor/namespaces/Oracle/dataProviders/oracle.PropertiesServiceProvider/connections/LocalServerConnection?projection={projection}", "capabilities" : "urn:oracle:restframework:read", "href" : "http://localhost:7001/wcps/api/conductor/namespaces/Oracle/dataProviders/oracle.PropertiesServiceProvider/connections/LocalServerConnection", "rel" : "self" } ] } ], "resourceType" : "urn:oracle:wcps:conductor:provider:dataProvider", "links" : [ { "resourceType" : "urn:oracle:wcps:conductor:provider:dataProviders", "template" : "http://localhost:7001/wcps/api/conductor/namespaces/Oracle/dataProviders?projection={projection}", "capabilities" : "urn:oracle:restframework:read", "href" : "http://localhost:7001/wcps/api/conductor/namespaces/Oracle/dataProviders", "rel" : "urn:oracle:webcenter:parent" }, { "resourceType" : "urn:oracle:wcps:conductor:provider:dataProvider", "template" : "http://localhost:7001/wcps/api/conductor/namespaces/Oracle/dataProviders/oracle.PropertiesServiceProvider?projection={projection}", "capabilities" : "urn:oracle:restframework:read", "href" : "http://localhost:7001/wcps/api/conductor/namespaces/Oracle/dataProviders/oracle.PropertiesServiceProvider?projection=details", "rel" : "self" }, { "resourceType" : "urn:oracle:wcps:conductor:provider:providerConnections", "template" : "http://localhost:7001/wcps/api/conductor/namespaces/{namespace}/dataProviders/{provider-name}/connections?projection={projection}", "capabilities" : "urn:oracle:restframework:read", "rel" : "urn:oracle:wcps:conductor:provider:providerConnections" }, { "resourceType" : "urn:oracle:wcps:conductor:provider:providerConnection", "template" : "http://localhost:7001/wcps/api/conductor/namespaces/{namespace}/dataProviders/{provider-name}/connections/{connection-name}?projection={projection}", "capabilities" : "urn:oracle:restframework:read", "rel" : "urn:oracle:wcps:conductor:provider:providerConnection" }, { "resourceType" : "urn:oracle:wcps:conductor:provider:connectionResources", "template" : "http://localhost:7001/wcps/api/conductor/namespaces/{namespace}/dataProviders/{provider-name}/connections/{connection-name}/resources?projection={projection}", "capabilities" : "urn:oracle:restframework:read", "rel" : "urn:oracle:wcps:conductor:provider:connectionResources" }, { "resourceType" : "urn:oracle:wcps:conductor:provider:connectionResource", "template" : "http://localhost:7001/wcps/api/conductor/namespaces/{namespace}/dataProviders/{provider-name}/connections/{connection-name}/resources/{resource-name}?projection={projection}", "capabilities" : "urn:oracle:restframework:read", "rel" : "urn:oracle:wcps:conductor:provider:connectionResource" }, { "resourceType" : "urn:oracle:wcps:conductor:provider:resourceMethods", "template" : "http://localhost:7001/wcps/api/conductor/namespaces/{namespace}/dataProviders/{provider-name}/connections/{connection-name}/resources/{resource-name}/methods?projection={projection}", "capabilities" : "urn:oracle:restframework:read", "rel" : "urn:oracle:wcps:conductor:provider:resourceMethods" }, { "resourceType" : "urn:oracle:wcps:conductor:provider:resourceMethod", "template" : "http://localhost:7001/wcps/api/conductor/namespaces/{namespace}/dataProviders/{provider-name}/connections/{connection-name}/resources/{resource-name}/methods/{method-name}?projection={projection}", "capabilities" : "urn:oracle:restframework:read", "rel" : "urn:oracle:wcps:conductor:provider:resourceMethod" } ] }
This section provides examples of using the Conductor's function provider APIs, and contains the following subsections:
Section 62.4.4.2.1, "Getting a Collection of Function Providers (GET)"
Section 62.4.4.2.2, "Getting Metadata for a Single Function Provider (GET)"
XML
Request: GET http://localhost:7001/wcps/api/conductor/namespaces/Oracle/functionProviders?projection=summary accept-language: en content-type: application/xml accept: application/xml Response: Status Code:200 X-Powered-By: Servlet/2.5 JSP/2.1 Set-Cookie: JSESSIONID=1NxqM2GHfPhT6VydXnQctrgCJ7FmxMLD3pPrRCgPrCLGRJGk9Rk5!2098846330; path=/wcps; HttpOnly Transfer-Encoding: chunked Content-Type: application/xml Date: Wed, 13 Oct 2010 23:51:35 GMT <?xml version="1.0" encoding="UTF-8"?> <functionProviders resourceType="urn:oracle:wcps:conductor:provider:functionProviders"> <links> <link capabilities="urn:oracle:restframework:read" href="http://localhost:7001/wcps/api/conductor/namespaces/Oracle/functionProviders?projection=summary" rel="self" resourceType="urn:oracle:wcps:conductor:provider:functionProviders" template="http://localhost:7001/wcps/api/conductor/namespaces/Oracle/functionProviders?projection={projection}"/> </links> <items> <functionProvider resourceType="urn:oracle:wcps:conductor:provider:functionProvider"> <links> <link capabilities="urn:oracle:restframework:read" href="http://localhost:7001/wcps/api/conductor/namespaces/Oracle/functionProviders" rel="urn:oracle:webcenter:parent" resourceType="urn:oracle:wcps:conductor:provider:functionProviders" template="http://localhost:7001/wcps/api/conductor/namespaces/Oracle/functionProviders?projection={projection}"/> <link capabilities="urn:oracle:restframework:read" href="http://localhost:7001/wcps/api/conductor/namespaces/Oracle/functionProviders/agfunction:filterRecsByScore" rel="self" resourceType="urn:oracle:wcps:conductor:provider:functionProvider" template="http://localhost:7001/wcps/api/conductor/namespaces/Oracle/functionProviders/agfunction:filterRecsByScore?projection={projection}"/> </links> <category>agfunction</category> <example>${agfunction:filterRecsByScore(recommendations,cutoffScore)}</example> <localizedDescription>Filter out Recommendations whose score is >= the input score</localizedDescription> <name>filterRecsByScore</name> <parameters/> <returnType>oracle.wcps.activity.agrest.spy.jaxb.Recommendations</returnType> </functionProvider> <functionProvider resourceType="urn:oracle:wcps:conductor:provider:functionProvider"> <links> <link capabilities="urn:oracle:restframework:read" href="http://localhost:7001/wcps/api/conductor/namespaces/Oracle/functionProviders" rel="urn:oracle:webcenter:parent" resourceType="urn:oracle:wcps:conductor:provider:functionProviders" template="http://localhost:7001/wcps/api/conductor/namespaces/Oracle/functionProviders?projection={projection}"/> <link capabilities="urn:oracle:restframework:read" href="http://localhost:7001/wcps/api/conductor/namespaces/Oracle/functionProviders/agfunction:getCMISLinksFromCommonItems" rel="self" resourceType="urn:oracle:wcps:conductor:provider:functionProvider" template="http://localhost:7001/wcps/api/conductor/namespaces/Oracle/functionProviders/agfunction:getCMISLinksFromCommonItems?projection={projection}"/> </links> <category>agfunction</category> <example>${agfunction:getCMISLinksFromCommonItems(results)}</example> <localizedDescription>Return a List of URLs representing the common items as CMIS objects</localizedDescription> <name>getCMISLinksFromCommonItems</name> <parameters/> <returnType>java.util.List</returnType> </functionProvider> <functionProvider resourceType="urn:oracle:wcps:conductor:provider:functionProvider"> <links> <link capabilities="urn:oracle:restframework:read" href="http://localhost:7001/wcps/api/conductor/namespaces/Oracle/functionProviders" rel="urn:oracle:webcenter:parent" resourceType="urn:oracle:wcps:conductor:provider:functionProviders" template="http://localhost:7001/wcps/api/conductor/namespaces/Oracle/functionProviders?projection={projection}"/> <link capabilities="urn:oracle:restframework:read" href="http://localhost:7001/wcps/api/conductor/namespaces/Oracle/functionProviders/agfunction:getCMISLinksFromRecommendations" rel="self" resourceType="urn:oracle:wcps:conductor:provider:functionProvider" template="http://localhost:7001/wcps/api/conductor/namespaces/Oracle/functionProviders/agfunction:getCMISLinksFromRecommendations?projection={projection}"/> </links> <category>agfunction</category> <example>${agfunction:getCMISLinksFromRecommendations(recommendations)}</example> <localizedDescription>Return a List of URLs representing the CMIS objects</localizedDescription> <name>getCMISLinksFromRecommendations</name> <parameters/> <returnType>java.util.List</returnType> </functionProvider> <functionProvider resourceType="urn:oracle:wcps:conductor:provider:functionProvider"> <links> <link capabilities="urn:oracle:restframework:read" href="http://localhost:7001/wcps/api/conductor/namespaces/Oracle/functionProviders" rel="urn:oracle:webcenter:parent" resourceType="urn:oracle:wcps:conductor:provider:functionProviders" template="http://localhost:7001/wcps/api/conductor/namespaces/Oracle/functionProviders?projection={projection}"/> <link capabilities="urn:oracle:restframework:read" href="http://localhost:7001/wcps/api/conductor/namespaces/Oracle/functionProviders/agfunction:getContentIDs" rel="self" resourceType="urn:oracle:wcps:conductor:provider:functionProvider" template="http://localhost:7001/wcps/api/conductor/namespaces/Oracle/functionProviders/agfunction:getContentIDs?projection={projection}"/> </links> <category>agfunction</category> <example>${agfunction:getContentIDs(agResults)}</example> <localizedDescription>Extract content IDs from input objects. Includes content of all types (WC.document, WC.wiki)</localizedDescription> <name>getContentIDs</name> <parameters/> <returnType>java.util.List</returnType> </functionProvider> <functionProvider resourceType="urn:oracle:wcps:conductor:provider:functionProvider"> <links> <link capabilities="urn:oracle:restframework:read" href="http://localhost:7001/wcps/api/conductor/namespaces/Oracle/functionProviders" rel="urn:oracle:webcenter:parent" resourceType="urn:oracle:wcps:conductor:provider:functionProviders" template="http://localhost:7001/wcps/api/conductor/namespaces/Oracle/functionProviders?projection={projection}"/> <link capabilities="urn:oracle:restframework:read" href="http://localhost:7001/wcps/api/conductor/namespaces/Oracle/functionProviders/agfunction:getContentIDsFiltered" rel="self" resourceType="urn:oracle:wcps:conductor:provider:functionProvider" template="http://localhost:7001/wcps/api/conductor/namespaces/Oracle/functionProviders/agfunction:getContentIDsFiltered?projection={projection}"/> </links> <category>agfunction</category> <example>${agfunction:getContentIDsFiltered(agResults,excludeClassURN)}</example> <localizedDescription>Extract content IDs from input objects</localizedDescription> <name>getContentIDsFiltered</name> <parameters/> <returnType>java.util.List</returnType> </functionProvider> <functionProvider resourceType="urn:oracle:wcps:conductor:provider:functionProvider"> <links> <link capabilities="urn:oracle:restframework:read" href="http://localhost:7001/wcps/api/conductor/namespaces/Oracle/functionProviders" rel="urn:oracle:webcenter:parent" resourceType="urn:oracle:wcps:conductor:provider:functionProviders" template="http://localhost:7001/wcps/api/conductor/namespaces/Oracle/functionProviders?projection={projection}"/> <link capabilities="urn:oracle:restframework:read" href="http://localhost:7001/wcps/api/conductor/namespaces/Oracle/functionProviders/cmisfunction:atomAsCMISObjects" rel="self" resourceType="urn:oracle:wcps:conductor:provider:functionProvider" template="http://localhost:7001/wcps/api/conductor/namespaces/Oracle/functionProviders/cmisfunction:atomAsCMISObjects?projection={projection}"/> </links> <category>cmisfunction</category> <example>${cmisfunction:atomAsCMISObjects(atomFeed)}</example> <localizedDescription>ATOM feed as List<CMISObject></localizedDescription> <name>atomAsCMISObjects</name> <parameters/> <returnType>java.util.List</returnType> </functionProvider> <functionProvider resourceType="urn:oracle:wcps:conductor:provider:functionProvider"> <links> <link capabilities="urn:oracle:restframework:read" href="http://localhost:7001/wcps/api/conductor/namespaces/Oracle/functionProviders" rel="urn:oracle:webcenter:parent" resourceType="urn:oracle:wcps:conductor:provider:functionProviders" template="http://localhost:7001/wcps/api/conductor/namespaces/Oracle/functionProviders?projection={projection}"/> <link capabilities="urn:oracle:restframework:read" href="http://localhost:7001/wcps/api/conductor/namespaces/Oracle/functionProviders/cmisfunction:atomAsEntries" rel="self" resourceType="urn:oracle:wcps:conductor:provider:functionProvider" template="http://localhost:7001/wcps/api/conductor/namespaces/Oracle/functionProviders/cmisfunction:atomAsEntries?projection={projection}"/> </links> <category>cmisfunction</category> <example>${cmisfunction:atomAsEntries(atomFeed)}</example> <localizedDescription>ATOM feed as List<org.apache.abdera.model.Entry></localizedDescription> <name>atomAsEntries</name> <parameters/> <returnType>java.util.List</returnType> </functionProvider> <functionProvider resourceType="urn:oracle:wcps:conductor:provider:functionProvider"> <links> <link capabilities="urn:oracle:restframework:read" href="http://localhost:7001/wcps/api/conductor/namespaces/Oracle/functionProviders" rel="urn:oracle:webcenter:parent" resourceType="urn:oracle:wcps:conductor:provider:functionProviders" template="http://localhost:7001/wcps/api/conductor/namespaces/Oracle/functionProviders?projection={projection}"/> <link capabilities="urn:oracle:restframework:read" href="http://localhost:7001/wcps/api/conductor/namespaces/Oracle/functionProviders/cmisfunction:atomAsFeed" rel="self" resourceType="urn:oracle:wcps:conductor:provider:functionProvider" template="http://localhost:7001/wcps/api/conductor/namespaces/Oracle/functionProviders/cmisfunction:atomAsFeed?projection={projection}"/> </links> <category>cmisfunction</category> <example>${cmisfunction:atomAsFeed(atomFeed)}</example> <localizedDescription>ATOM feed as org.apache.abdera.model.Feed</localizedDescription> <name>atomAsFeed</name> <parameters/> <returnType>org.apache.abdera.model.Feed</returnType> </functionProvider> <functionProvider resourceType="urn:oracle:wcps:conductor:provider:functionProvider"> <links> <link capabilities="urn:oracle:restframework:read" href="http://localhost:7001/wcps/api/conductor/namespaces/Oracle/functionProviders" rel="urn:oracle:webcenter:parent" resourceType="urn:oracle:wcps:conductor:provider:functionProviders" template="http://localhost:7001/wcps/api/conductor/namespaces/Oracle/functionProviders?projection={projection}"/> <link capabilities="urn:oracle:restframework:read" href="http://localhost:7001/wcps/api/conductor/namespaces/Oracle/functionProviders/cmisfunction:atomAsStreamUrls" rel="self" resourceType="urn:oracle:wcps:conductor:provider:functionProvider" template="http://localhost:7001/wcps/api/conductor/namespaces/Oracle/functionProviders/cmisfunction:atomAsStreamUrls?projection={projection}"/> </links> <category>cmisfunction</category> <example>${cmisfunction:atomAsStreamUrls(atomFeed)}</example> <localizedDescription>ATOM feed as List<String> of URLs</localizedDescription> <name>atomAsStreamUrls</name> <parameters/> <returnType>java.util.List</returnType> </functionProvider> <functionProvider resourceType="urn:oracle:wcps:conductor:provider:functionProvider"> <links> <link capabilities="urn:oracle:restframework:read" href="http://localhost:7001/wcps/api/conductor/namespaces/Oracle/functionProviders" rel="urn:oracle:webcenter:parent" resourceType="urn:oracle:wcps:conductor:provider:functionProviders" template="http://localhost:7001/wcps/api/conductor/namespaces/Oracle/functionProviders?projection={projection}"/> <link capabilities="urn:oracle:restframework:read" href="http://localhost:7001/wcps/api/conductor/namespaces/Oracle/functionProviders/cmisfunction:getCMISQueryForDocIDs" rel="self" resourceType="urn:oracle:wcps:conductor:provider:functionProvider" template="http://localhost:7001/wcps/api/conductor/namespaces/Oracle/functionProviders/cmisfunction:getCMISQueryForDocIDs?projection={projection}"/> </links> <category>cmisfunction</category> <example>${cmisfunction:getCMISQueryForDocIDs(repository,ids)}</example> <localizedDescription>Construct a CMIS query in the form of 'IN' query syntax that will retrieve the documents for the array of input doc IDs.</localizedDescription> <name>getCMISQueryForDocIDs</name> <parameters/> <returnType>java.lang.String</returnType> </functionProvider> <functionProvider resourceType="urn:oracle:wcps:conductor:provider:functionProvider"> <links> <link capabilities="urn:oracle:restframework:read" href="http://localhost:7001/wcps/api/conductor/namespaces/Oracle/functionProviders" rel="urn:oracle:webcenter:parent" resourceType="urn:oracle:wcps:conductor:provider:functionProviders" template="http://localhost:7001/wcps/api/conductor/namespaces/Oracle/functionProviders?projection={projection}"/> <link capabilities="urn:oracle:restframework:read" href="http://localhost:7001/wcps/api/conductor/namespaces/Oracle/functionProviders/cmisfunction:getCMISQueryForDocIDsFromFullID" rel="self" resourceType="urn:oracle:wcps:conductor:provider:functionProvider" template="http://localhost:7001/wcps/api/conductor/namespaces/Oracle/functionProviders/cmisfunction:getCMISQueryForDocIDsFromFullID?projection={projection}"/> </links> <category>cmisfunction</category> <example>${cmisfunction:getCMISQueryForDocIDsFromFullID(ids)}</example> <localizedDescription>Construct a CMIS query in the form of 'IN' query syntax that will retrieve the documents for the array of input doc IDs.</localizedDescription> <name>getCMISQueryForDocIDsFromFullID</name> <parameters/> <returnType>java.lang.String</returnType> </functionProvider> <functionProvider resourceType="urn:oracle:wcps:conductor:provider:functionProvider"> <links> <link capabilities="urn:oracle:restframework:read" href="http://localhost:7001/wcps/api/conductor/namespaces/Oracle/functionProviders" rel="urn:oracle:webcenter:parent" resourceType="urn:oracle:wcps:conductor:provider:functionProviders" template="http://localhost:7001/wcps/api/conductor/namespaces/Oracle/functionProviders?projection={projection}"/> <link capabilities="urn:oracle:restframework:read" href="http://localhost:7001/wcps/api/conductor/namespaces/Oracle/functionProviders/collections:append" rel="self" resourceType="urn:oracle:wcps:conductor:provider:functionProvider" template="http://localhost:7001/wcps/api/conductor/namespaces/Oracle/functionProviders/collections:append?projection={projection}"/> </links> <category>collections</category> <example>${collections:append(collection,item)}</example> <localizedDescription>Appends </localizedDescription> <name>append</name> <parameters/> <returnType>java.util.Collection</returnType> </functionProvider> <functionProvider resourceType="urn:oracle:wcps:conductor:provider:functionProvider"> <links> <link capabilities="urn:oracle:restframework:read" href="http://localhost:7001/wcps/api/conductor/namespaces/Oracle/functionProviders" rel="urn:oracle:webcenter:parent" resourceType="urn:oracle:wcps:conductor:provider:functionProviders" template="http://localhost:7001/wcps/api/conductor/namespaces/Oracle/functionProviders?projection={projection}"/> <link capabilities="urn:oracle:restframework:read" href="http://localhost:7001/wcps/api/conductor/namespaces/Oracle/functionProviders/collections:new" rel="self" resourceType="urn:oracle:wcps:conductor:provider:functionProvider" template="http://localhost:7001/wcps/api/conductor/namespaces/Oracle/functionProviders/collections:new?projection={projection}"/> </links> <category>collections</category> <example>${collections:new()}</example> <localizedDescription>Creates and returns a new collection.</localizedDescription> <name>new</name> <parameters/> <returnType>java.util.Collection</returnType> </functionProvider> <functionProvider resourceType="urn:oracle:wcps:conductor:provider:functionProvider"> <links> <link capabilities="urn:oracle:restframework:read" href="http://localhost:7001/wcps/api/conductor/namespaces/Oracle/functionProviders" rel="urn:oracle:webcenter:parent" resourceType="urn:oracle:wcps:conductor:provider:functionProviders" template="http://localhost:7001/wcps/api/conductor/namespaces/Oracle/functionProviders?projection={projection}"/> <link capabilities="urn:oracle:restframework:read" href="http://localhost:7001/wcps/api/conductor/namespaces/Oracle/functionProviders/collections:sort" rel="self" resourceType="urn:oracle:wcps:conductor:provider:functionProvider" template="http://localhost:7001/wcps/api/conductor/namespaces/Oracle/functionProviders/collections:sort?projection={projection}"/> </links> <category>collections</category> <example>${collections:sort(list)}</example> <localizedDescription>Sorts the provided collection.</localizedDescription> <name>sort</name> <parameters/> <returnType>void</returnType> </functionProvider> <functionProvider resourceType="urn:oracle:wcps:conductor:provider:functionProvider"> <links> <link capabilities="urn:oracle:restframework:read" href="http://localhost:7001/wcps/api/conductor/namespaces/Oracle/functionProviders" rel="urn:oracle:webcenter:parent" resourceType="urn:oracle:wcps:conductor:provider:functionProviders" template="http://localhost:7001/wcps/api/conductor/namespaces/Oracle/functionProviders?projection={projection}"/> <link capabilities="urn:oracle:restframework:read" href="http://localhost:7001/wcps/api/conductor/namespaces/Oracle/functionProviders/connectionsQA:getSampleConfig" rel="self" resourceType="urn:oracle:wcps:conductor:provider:functionProvider" template="http://localhost:7001/wcps/api/conductor/namespaces/Oracle/functionProviders/connectionsQA:getSampleConfig?projection={projection}"/> </links> <category>connectionsQA</category> <example>${connectionsQA:getSampleConfig(scenarioContext,connectionName)}</example> <localizedDescription>Retrieves a sample configuration by name.</localizedDescription> <name>getSampleConfig</name> <parameters/> <returnType>oracle.wcps.test.providers.sample.SampleConnectionConfigImpl</returnType> </functionProvider> <functionProvider resourceType="urn:oracle:wcps:conductor:provider:functionProvider"> <links> <link capabilities="urn:oracle:restframework:read" href="http://localhost:7001/wcps/api/conductor/namespaces/Oracle/functionProviders" rel="urn:oracle:webcenter:parent" resourceType="urn:oracle:wcps:conductor:provider:functionProviders" template="http://localhost:7001/wcps/api/conductor/namespaces/Oracle/functionProviders?projection={projection}"/> <link capabilities="urn:oracle:restframework:read" href="http://localhost:7001/wcps/api/conductor/namespaces/Oracle/functionProviders/connectionsQA:getSampleConfigs" rel="self" resourceType="urn:oracle:wcps:conductor:provider:functionProvider" template="http://localhost:7001/wcps/api/conductor/namespaces/Oracle/functionProviders/connectionsQA:getSampleConfigs?projection={projection}"/> </links> <category>connectionsQA</category> <example>${connectionsQA:getSampleConfigs(scenarioContext)}</example> <localizedDescription>Retrieves all sample connection configurations for the current namespace.</localizedDescription> <name>getSampleConfigs</name> <parameters/> <returnType>java.util.List</returnType> </functionProvider> <functionProvider resourceType="urn:oracle:wcps:conductor:provider:functionProvider"> <links> <link capabilities="urn:oracle:restframework:read" href="http://localhost:7001/wcps/api/conductor/namespaces/Oracle/functionProviders" rel="urn:oracle:webcenter:parent" resourceType="urn:oracle:wcps:conductor:provider:functionProviders" template="http://localhost:7001/wcps/api/conductor/namespaces/Oracle/functionProviders?projection={projection}"/> <link capabilities="urn:oracle:restframework:read" href="http://localhost:7001/wcps/api/conductor/namespaces/Oracle/functionProviders/connectionsQA:removeSampleConfig" rel="self" resourceType="urn:oracle:wcps:conductor:provider:functionProvider" template="http://localhost:7001/wcps/api/conductor/namespaces/Oracle/functionProviders/connectionsQA:removeSampleConfig?projection={projection}"/> </links> <category>connectionsQA</category> <example>${connectionsQA:removeSampleConfig(scenarioContext,connectionName)}</example> <localizedDescription>Removes a sample configuration with the specified name in the current namespace.</localizedDescription> <name>removeSampleConfig</name> <parameters/> <returnType>void</returnType> </functionProvider> <functionProvider resourceType="urn:oracle:wcps:conductor:provider:functionProvider"> <links> <link capabilities="urn:oracle:restframework:read" href="http://localhost:7001/wcps/api/conductor/namespaces/Oracle/functionProviders" rel="urn:oracle:webcenter:parent" resourceType="urn:oracle:wcps:conductor:provider:functionProviders" template="http://localhost:7001/wcps/api/conductor/namespaces/Oracle/functionProviders?projection={projection}"/> <link capabilities="urn:oracle:restframework:read" href="http://localhost:7001/wcps/api/conductor/namespaces/Oracle/functionProviders/connectionsQA:saveSampleConfig" rel="self" resourceType="urn:oracle:wcps:conductor:provider:functionProvider" template="http://localhost:7001/wcps/api/conductor/namespaces/Oracle/functionProviders/connectionsQA:saveSampleConfig?projection={projection}"/> </links> <category>connectionsQA</category> <example>${connectionsQA:saveSampleConfig(scenarioContext,connectionName,samplePropertyValue)}</example> <localizedDescription>Creates or saves a sample configuration.</localizedDescription> <name>saveSampleConfig</name> <parameters/> <returnType>oracle.wcps.test.providers.sample.SampleConnectionConfigImpl</returnType> </functionProvider> <functionProvider resourceType="urn:oracle:wcps:conductor:provider:functionProvider"> <links> <link capabilities="urn:oracle:restframework:read" href="http://localhost:7001/wcps/api/conductor/namespaces/Oracle/functionProviders" rel="urn:oracle:webcenter:parent" resourceType="urn:oracle:wcps:conductor:provider:functionProviders" template="http://localhost:7001/wcps/api/conductor/namespaces/Oracle/functionProviders?projection={projection}"/> <link capabilities="urn:oracle:restframework:read" href="http://localhost:7001/wcps/api/conductor/namespaces/Oracle/functionProviders/magiceightball:response" rel="self" resourceType="urn:oracle:wcps:conductor:provider:functionProvider" template="http://localhost:7001/wcps/api/conductor/namespaces/Oracle/functionProviders/magiceightball:response?projection={projection}"/> </links> <category>magiceightball</category> <example>${magiceightball:response(scenarioContext,responses)}</example> <localizedDescription>Provides clairvoyant responses to all your questions</localizedDescription> <name>response</name> <parameters/> <returnType>java.lang.String</returnType> </functionProvider> <functionProvider resourceType="urn:oracle:wcps:conductor:provider:functionProvider"> <links> <link capabilities="urn:oracle:restframework:read" href="http://localhost:7001/wcps/api/conductor/namespaces/Oracle/functionProviders" rel="urn:oracle:webcenter:parent" resourceType="urn:oracle:wcps:conductor:provider:functionProviders" template="http://localhost:7001/wcps/api/conductor/namespaces/Oracle/functionProviders?projection={projection}"/> <link capabilities="urn:oracle:restframework:read" href="http://localhost:7001/wcps/api/conductor/namespaces/Oracle/functionProviders/security:getUserRoles" rel="self" resourceType="urn:oracle:wcps:conductor:provider:functionProvider" template="http://localhost:7001/wcps/api/conductor/namespaces/Oracle/functionProviders/security:getUserRoles?projection={projection}"/> </links> <category>security</category> <example>${security:getUserRoles()}</example> <localizedDescription>Returns an array of roles/groups that is part of the current subject.</localizedDescription> <name>getUserRoles</name> <parameters/> <returnType>java.util.List</returnType> </functionProvider> <functionProvider resourceType="urn:oracle:wcps:conductor:provider:functionProvider"> <links> <link capabilities="urn:oracle:restframework:read" href="http://localhost:7001/wcps/api/conductor/namespaces/Oracle/functionProviders" rel="urn:oracle:webcenter:parent" resourceType="urn:oracle:wcps:conductor:provider:functionProviders" template="http://localhost:7001/wcps/api/conductor/namespaces/Oracle/functionProviders?projection={projection}"/> <link capabilities="urn:oracle:restframework:read" href="http://localhost:7001/wcps/api/conductor/namespaces/Oracle/functionProviders/security:isUserInRole" rel="self" resourceType="urn:oracle:wcps:conductor:provider:functionProvider" template="http://localhost:7001/wcps/api/conductor/namespaces/Oracle/functionProviders/security:isUserInRole?projection={projection}"/> </links> <category>security</category> <example>${security:isUserInRole(role)}</example> <localizedDescription>Determines if the current user is a member in the specified role or group name (role).</localizedDescription> <name>isUserInRole</name> <parameters/> <returnType>boolean</returnType> </functionProvider> <functionProvider resourceType="urn:oracle:wcps:conductor:provider:functionProvider"> <links> <link capabilities="urn:oracle:restframework:read" href="http://localhost:7001/wcps/api/conductor/namespaces/Oracle/functionProviders" rel="urn:oracle:webcenter:parent" resourceType="urn:oracle:wcps:conductor:provider:functionProviders" template="http://localhost:7001/wcps/api/conductor/namespaces/Oracle/functionProviders?projection={projection}"/> <link capabilities="urn:oracle:restframework:read" href="http://localhost:7001/wcps/api/conductor/namespaces/Oracle/functionProviders/test:complexType" rel="self" resourceType="urn:oracle:wcps:conductor:provider:functionProvider" template="http://localhost:7001/wcps/api/conductor/namespaces/Oracle/functionProviders/test:complexType?projection={projection}"/> </links> <category>test</category> <example>${test:complexType(arg0,arg1)}</example> <localizedDescription>Demonstrates how to return a complex type.</localizedDescription> <name>complexType</name> <parameters/> <returnType>oracle.wcps.test.providers.functions.ComplexType</returnType> </functionProvider> <functionProvider resourceType="urn:oracle:wcps:conductor:provider:functionProvider"> <links> <link capabilities="urn:oracle:restframework:read" href="http://localhost:7001/wcps/api/conductor/namespaces/Oracle/functionProviders" rel="urn:oracle:webcenter:parent" resourceType="urn:oracle:wcps:conductor:provider:functionProviders" template="http://localhost:7001/wcps/api/conductor/namespaces/Oracle/functionProviders?projection={projection}"/> <link capabilities="urn:oracle:restframework:read" href="http://localhost:7001/wcps/api/conductor/namespaces/Oracle/functionProviders/test:complexTypeList" rel="self" resourceType="urn:oracle:wcps:conductor:provider:functionProvider" template="http://localhost:7001/wcps/api/conductor/namespaces/Oracle/functionProviders/test:complexTypeList?projection={projection}"/> </links> <category>test</category> <example>${test:complexTypeList(arg0)}</example> <localizedDescription>Demonstrates how to return a list of complex types.</localizedDescription> <name>complexTypeList</name> <parameters/> <returnType>java.util.List</returnType> </functionProvider> <functionProvider resourceType="urn:oracle:wcps:conductor:provider:functionProvider"> <links> <link capabilities="urn:oracle:restframework:read" href="http://localhost:7001/wcps/api/conductor/namespaces/Oracle/functionProviders" rel="urn:oracle:webcenter:parent" resourceType="urn:oracle:wcps:conductor:provider:functionProviders" template="http://localhost:7001/wcps/api/conductor/namespaces/Oracle/functionProviders?projection={projection}"/> <link capabilities="urn:oracle:restframework:read" href="http://localhost:7001/wcps/api/conductor/namespaces/Oracle/functionProviders/test:complexTypeMap" rel="self" resourceType="urn:oracle:wcps:conductor:provider:functionProvider" template="http://localhost:7001/wcps/api/conductor/namespaces/Oracle/functionProviders/test:complexTypeMap?projection={projection}"/> </links> <category>test</category> <example>${test:complexTypeMap(arg0)}</example> <localizedDescription>Demonstrates how to return a map of complex types.</localizedDescription> <name>complexTypeMap</name> <parameters/> <returnType>java.util.Map</returnType> </functionProvider> <functionProvider resourceType="urn:oracle:wcps:conductor:provider:functionProvider"> <links> <link capabilities="urn:oracle:restframework:read" href="http://localhost:7001/wcps/api/conductor/namespaces/Oracle/functionProviders" rel="urn:oracle:webcenter:parent" resourceType="urn:oracle:wcps:conductor:provider:functionProviders" template="http://localhost:7001/wcps/api/conductor/namespaces/Oracle/functionProviders?projection={projection}"/> <link capabilities="urn:oracle:restframework:read" href="http://localhost:7001/wcps/api/conductor/namespaces/Oracle/functionProviders/test:concat" rel="self" resourceType="urn:oracle:wcps:conductor:provider:functionProvider" template="http://localhost:7001/wcps/api/conductor/namespaces/Oracle/functionProviders/test:concat?projection={projection}"/> </links> <category>test</category> <example>${test:concat(arg0,arg1)}</example> <localizedDescription>Demonstrates how to return a complex type.</localizedDescription> <name>concat</name> <parameters/> <returnType>java.lang.String</returnType> </functionProvider> <functionProvider resourceType="urn:oracle:wcps:conductor:provider:functionProvider"> <links> <link capabilities="urn:oracle:restframework:read" href="http://localhost:7001/wcps/api/conductor/namespaces/Oracle/functionProviders" rel="urn:oracle:webcenter:parent" resourceType="urn:oracle:wcps:conductor:provider:functionProviders" template="http://localhost:7001/wcps/api/conductor/namespaces/Oracle/functionProviders?projection={projection}"/> <link capabilities="urn:oracle:restframework:read" href="http://localhost:7001/wcps/api/conductor/namespaces/Oracle/functionProviders/test:sleep" rel="self" resourceType="urn:oracle:wcps:conductor:provider:functionProvider" template="http://localhost:7001/wcps/api/conductor/namespaces/Oracle/functionProviders/test:sleep?projection={projection}"/> </links> <category>test</category> <example>${test:sleep(arg0)}</example> <localizedDescription>Pauses the current thread for the specified number of milliseconds.</localizedDescription> <name>sleep</name> <parameters/> <returnType>void</returnType> </functionProvider> </items> </functionProviders>
JSON
Request: GET http://localhost:7001/wcps/api/conductor/namespaces/Oracle/functionProviders?projection=summary accept-language: en content-type: application/json accept: application/json Response: Status Code:200 X-Powered-By: Servlet/2.5 JSP/2.1 Set-Cookie: JSESSIONID=Q9VFM2GLn2ny2CxbKvxKXYbYTMT4zvJ3QMgP2DzxH0GSkfct76cC!2098846330; path=/wcps; HttpOnly Transfer-Encoding: chunked Content-Type: application/json Date: Wed, 13 Oct 2010 23:51:36 GMT { "functionProviders" : [ { "parameters" : [ ], "name" : "filterRecsByScore", "returnType" : "oracle.wcps.activity.agrest.spy.jaxb.Recommendations", "category" : "agfunction", "example" : "${agfunction:filterRecsByScore(recommendations,cutoffScore)}", "localizedDescription" : "Filter out Recommendations whose score is >= the input score", "resourceType" : "urn:oracle:wcps:conductor:provider:functionProvider", "links" : [ { "resourceType" : "urn:oracle:wcps:conductor:provider:functionProviders", "template" : "http://localhost:7001/wcps/api/conductor/namespaces/Oracle/functionProviders?projection={projection}", "capabilities" : "urn:oracle:restframework:read", "href" : "http://localhost:7001/wcps/api/conductor/namespaces/Oracle/functionProviders", "rel" : "urn:oracle:webcenter:parent" }, { "resourceType" : "urn:oracle:wcps:conductor:provider:functionProvider", "template" : "http://localhost:7001/wcps/api/conductor/namespaces/Oracle/functionProviders/agfunction:filterRecsByScore?projection={projection}", "capabilities" : "urn:oracle:restframework:read", "href" : "http://localhost:7001/wcps/api/conductor/namespaces/Oracle/functionProviders/agfunction:filterRecsByScore", "rel" : "self" } ] }, { "parameters" : [ ], "name" : "getCMISLinksFromCommonItems", "returnType" : "java.util.List", "category" : "agfunction", "example" : "${agfunction:getCMISLinksFromCommonItems(results)}", "localizedDescription" : "Return a List of URLs representing the common items as CMIS objects", "resourceType" : "urn:oracle:wcps:conductor:provider:functionProvider", "links" : [ { "resourceType" : "urn:oracle:wcps:conductor:provider:functionProviders", "template" : "http://localhost:7001/wcps/api/conductor/namespaces/Oracle/functionProviders?projection={projection}", "capabilities" : "urn:oracle:restframework:read", "href" : "http://localhost:7001/wcps/api/conductor/namespaces/Oracle/functionProviders", "rel" : "urn:oracle:webcenter:parent" }, { "resourceType" : "urn:oracle:wcps:conductor:provider:functionProvider", "template" : "http://localhost:7001/wcps/api/conductor/namespaces/Oracle/functionProviders/agfunction:getCMISLinksFromCommonItems?projection={projection}", "capabilities" : "urn:oracle:restframework:read", "href" : "http://localhost:7001/wcps/api/conductor/namespaces/Oracle/functionProviders/agfunction:getCMISLinksFromCommonItems", "rel" : "self" } ] }, { "parameters" : [ ], "name" : "getCMISLinksFromRecommendations", "returnType" : "java.util.List", "category" : "agfunction", "example" : "${agfunction:getCMISLinksFromRecommendations(recommendations)}", "localizedDescription" : "Return a List of URLs representing the CMIS objects", "resourceType" : "urn:oracle:wcps:conductor:provider:functionProvider", "links" : [ { "resourceType" : "urn:oracle:wcps:conductor:provider:functionProviders", "template" : "http://localhost:7001/wcps/api/conductor/namespaces/Oracle/functionProviders?projection={projection}", "capabilities" : "urn:oracle:restframework:read", "href" : "http://localhost:7001/wcps/api/conductor/namespaces/Oracle/functionProviders", "rel" : "urn:oracle:webcenter:parent" }, { "resourceType" : "urn:oracle:wcps:conductor:provider:functionProvider", "template" : "http://localhost:7001/wcps/api/conductor/namespaces/Oracle/functionProviders/agfunction:getCMISLinksFromRecommendations?projection={projection}", "capabilities" : "urn:oracle:restframework:read", "href" : "http://localhost:7001/wcps/api/conductor/namespaces/Oracle/functionProviders/agfunction:getCMISLinksFromRecommendations", "rel" : "self" } ] }, { "parameters" : [ ], "name" : "getContentIDs", "returnType" : "java.util.List", "category" : "agfunction", "example" : "${agfunction:getContentIDs(agResults)}", "localizedDescription" : "Extract content IDs from input objects. Includes content of all types (WC.document, WC.wiki)", "resourceType" : "urn:oracle:wcps:conductor:provider:functionProvider", "links" : [ { "resourceType" : "urn:oracle:wcps:conductor:provider:functionProviders", "template" : "http://localhost:7001/wcps/api/conductor/namespaces/Oracle/functionProviders?projection={projection}", "capabilities" : "urn:oracle:restframework:read", "href" : "http://localhost:7001/wcps/api/conductor/namespaces/Oracle/functionProviders", "rel" : "urn:oracle:webcenter:parent" }, { "resourceType" : "urn:oracle:wcps:conductor:provider:functionProvider", "template" : "http://localhost:7001/wcps/api/conductor/namespaces/Oracle/functionProviders/agfunction:getContentIDs?projection={projection}", "capabilities" : "urn:oracle:restframework:read", "href" : "http://localhost:7001/wcps/api/conductor/namespaces/Oracle/functionProviders/agfunction:getContentIDs", "rel" : "self" } ] }, { "parameters" : [ ], "name" : "getContentIDsFiltered", "returnType" : "java.util.List", "category" : "agfunction", "example" : "${agfunction:getContentIDsFiltered(agResults,excludeClassURN)}", "localizedDescription" : "Extract content IDs from input objects", "resourceType" : "urn:oracle:wcps:conductor:provider:functionProvider", "links" : [ { "resourceType" : "urn:oracle:wcps:conductor:provider:functionProviders", "template" : "http://localhost:7001/wcps/api/conductor/namespaces/Oracle/functionProviders?projection={projection}", "capabilities" : "urn:oracle:restframework:read", "href" : "http://localhost:7001/wcps/api/conductor/namespaces/Oracle/functionProviders", "rel" : "urn:oracle:webcenter:parent" }, { "resourceType" : "urn:oracle:wcps:conductor:provider:functionProvider", "template" : "http://localhost:7001/wcps/api/conductor/namespaces/Oracle/functionProviders/agfunction:getContentIDsFiltered?projection={projection}", "capabilities" : "urn:oracle:restframework:read", "href" : "http://localhost:7001/wcps/api/conductor/namespaces/Oracle/functionProviders/agfunction:getContentIDsFiltered", "rel" : "self" } ] }, { "parameters" : [ ], "name" : "atomAsCMISObjects", "returnType" : "java.util.List", "category" : "cmisfunction", "example" : "${cmisfunction:atomAsCMISObjects(atomFeed)}", "localizedDescription" : "ATOM feed as List<CMISObject>", "resourceType" : "urn:oracle:wcps:conductor:provider:functionProvider", "links" : [ { "resourceType" : "urn:oracle:wcps:conductor:provider:functionProviders", "template" : "http://localhost:7001/wcps/api/conductor/namespaces/Oracle/functionProviders?projection={projection}", "capabilities" : "urn:oracle:restframework:read", "href" : "http://localhost:7001/wcps/api/conductor/namespaces/Oracle/functionProviders", "rel" : "urn:oracle:webcenter:parent" }, { "resourceType" : "urn:oracle:wcps:conductor:provider:functionProvider", "template" : "http://localhost:7001/wcps/api/conductor/namespaces/Oracle/functionProviders/cmisfunction:atomAsCMISObjects?projection={projection}", "capabilities" : "urn:oracle:restframework:read", "href" : "http://localhost:7001/wcps/api/conductor/namespaces/Oracle/functionProviders/cmisfunction:atomAsCMISObjects", "rel" : "self" } ] }, { "parameters" : [ ], "name" : "atomAsEntries", "returnType" : "java.util.List", "category" : "cmisfunction", "example" : "${cmisfunction:atomAsEntries(atomFeed)}", "localizedDescription" : "ATOM feed as List<org.apache.abdera.model.Entry>", "resourceType" : "urn:oracle:wcps:conductor:provider:functionProvider", "links" : [ { "resourceType" : "urn:oracle:wcps:conductor:provider:functionProviders", "template" : "http://localhost:7001/wcps/api/conductor/namespaces/Oracle/functionProviders?projection={projection}", "capabilities" : "urn:oracle:restframework:read", "href" : "http://localhost:7001/wcps/api/conductor/namespaces/Oracle/functionProviders", "rel" : "urn:oracle:webcenter:parent" }, { "resourceType" : "urn:oracle:wcps:conductor:provider:functionProvider", "template" : "http://localhost:7001/wcps/api/conductor/namespaces/Oracle/functionProviders/cmisfunction:atomAsEntries?projection={projection}", "capabilities" : "urn:oracle:restframework:read", "href" : "http://localhost:7001/wcps/api/conductor/namespaces/Oracle/functionProviders/cmisfunction:atomAsEntries", "rel" : "self" } ] }, { "parameters" : [ ], "name" : "atomAsFeed", "returnType" : "org.apache.abdera.model.Feed", "category" : "cmisfunction", "example" : "${cmisfunction:atomAsFeed(atomFeed)}", "localizedDescription" : "ATOM feed as org.apache.abdera.model.Feed", "resourceType" : "urn:oracle:wcps:conductor:provider:functionProvider", "links" : [ { "resourceType" : "urn:oracle:wcps:conductor:provider:functionProviders", "template" : "http://localhost:7001/wcps/api/conductor/namespaces/Oracle/functionProviders?projection={projection}", "capabilities" : "urn:oracle:restframework:read", "href" : "http://localhost:7001/wcps/api/conductor/namespaces/Oracle/functionProviders", "rel" : "urn:oracle:webcenter:parent" }, { "resourceType" : "urn:oracle:wcps:conductor:provider:functionProvider", "template" : "http://localhost:7001/wcps/api/conductor/namespaces/Oracle/functionProviders/cmisfunction:atomAsFeed?projection={projection}", "capabilities" : "urn:oracle:restframework:read", "href" : "http://localhost:7001/wcps/api/conductor/namespaces/Oracle/functionProviders/cmisfunction:atomAsFeed", "rel" : "self" } ] }, { "parameters" : [ ], "name" : "atomAsStreamUrls", "returnType" : "java.util.List", "category" : "cmisfunction", "example" : "${cmisfunction:atomAsStreamUrls(atomFeed)}", "localizedDescription" : "ATOM feed as List<String> of URLs", "resourceType" : "urn:oracle:wcps:conductor:provider:functionProvider", "links" : [ { "resourceType" : "urn:oracle:wcps:conductor:provider:functionProviders", "template" : "http://localhost:7001/wcps/api/conductor/namespaces/Oracle/functionProviders?projection={projection}", "capabilities" : "urn:oracle:restframework:read", "href" : "http://localhost:7001/wcps/api/conductor/namespaces/Oracle/functionProviders", "rel" : "urn:oracle:webcenter:parent" }, { "resourceType" : "urn:oracle:wcps:conductor:provider:functionProvider", "template" : "http://localhost:7001/wcps/api/conductor/namespaces/Oracle/functionProviders/cmisfunction:atomAsStreamUrls?projection={projection}", "capabilities" : "urn:oracle:restframework:read", "href" : "http://localhost:7001/wcps/api/conductor/namespaces/Oracle/functionProviders/cmisfunction:atomAsStreamUrls", "rel" : "self" } ] }, { "parameters" : [ ], "name" : "getCMISQueryForDocIDs", "returnType" : "java.lang.String", "category" : "cmisfunction", "example" : "${cmisfunction:getCMISQueryForDocIDs(repository,ids)}", "localizedDescription" : "Construct a CMIS query in the form of 'IN' query syntax that will retrieve the documents for the array of input doc IDs.", "resourceType" : "urn:oracle:wcps:conductor:provider:functionProvider", "links" : [ { "resourceType" : "urn:oracle:wcps:conductor:provider:functionProviders", "template" : "http://localhost:7001/wcps/api/conductor/namespaces/Oracle/functionProviders?projection={projection}", "capabilities" : "urn:oracle:restframework:read", "href" : "http://localhost:7001/wcps/api/conductor/namespaces/Oracle/functionProviders", "rel" : "urn:oracle:webcenter:parent" }, { "resourceType" : "urn:oracle:wcps:conductor:provider:functionProvider", "template" : "http://localhost:7001/wcps/api/conductor/namespaces/Oracle/functionProviders/cmisfunction:getCMISQueryForDocIDs?projection={projection}", "capabilities" : "urn:oracle:restframework:read", "href" : "http://localhost:7001/wcps/api/conductor/namespaces/Oracle/functionProviders/cmisfunction:getCMISQueryForDocIDs", "rel" : "self" } ] }, { "parameters" : [ ], "name" : "getCMISQueryForDocIDsFromFullID", "returnType" : "java.lang.String", "category" : "cmisfunction", "example" : "${cmisfunction:getCMISQueryForDocIDsFromFullID(ids)}", "localizedDescription" : "Construct a CMIS query in the form of 'IN' query syntax that will retrieve the documents for the array of input doc IDs.", "resourceType" : "urn:oracle:wcps:conductor:provider:functionProvider", "links" : [ { "resourceType" : "urn:oracle:wcps:conductor:provider:functionProviders", "template" : "http://localhost:7001/wcps/api/conductor/namespaces/Oracle/functionProviders?projection={projection}", "capabilities" : "urn:oracle:restframework:read", "href" : "http://localhost:7001/wcps/api/conductor/namespaces/Oracle/functionProviders", "rel" : "urn:oracle:webcenter:parent" }, { "resourceType" : "urn:oracle:wcps:conductor:provider:functionProvider", "template" : "http://localhost:7001/wcps/api/conductor/namespaces/Oracle/functionProviders/cmisfunction:getCMISQueryForDocIDsFromFullID?projection={projection}", "capabilities" : "urn:oracle:restframework:read", "href" : "http://localhost:7001/wcps/api/conductor/namespaces/Oracle/functionProviders/cmisfunction:getCMISQueryForDocIDsFromFullID", "rel" : "self" } ] }, { "parameters" : [ ], "name" : "append", "returnType" : "java.util.Collection", "category" : "collections", "example" : "${collections:append(collection,item)}", "localizedDescription" : "Appends ", "resourceType" : "urn:oracle:wcps:conductor:provider:functionProvider", "links" : [ { "resourceType" : "urn:oracle:wcps:conductor:provider:functionProviders", "template" : "http://localhost:7001/wcps/api/conductor/namespaces/Oracle/functionProviders?projection={projection}", "capabilities" : "urn:oracle:restframework:read", "href" : "http://localhost:7001/wcps/api/conductor/namespaces/Oracle/functionProviders", "rel" : "urn:oracle:webcenter:parent" }, { "resourceType" : "urn:oracle:wcps:conductor:provider:functionProvider", "template" : "http://localhost:7001/wcps/api/conductor/namespaces/Oracle/functionProviders/collections:append?projection={projection}", "capabilities" : "urn:oracle:restframework:read", "href" : "http://localhost:7001/wcps/api/conductor/namespaces/Oracle/functionProviders/collections:append", "rel" : "self" } ] }, { "parameters" : [ ], "name" : "new", "returnType" : "java.util.Collection", "category" : "collections", "example" : "${collections:new()}", "localizedDescription" : "Creates and returns a new collection.", "resourceType" : "urn:oracle:wcps:conductor:provider:functionProvider", "links" : [ { "resourceType" : "urn:oracle:wcps:conductor:provider:functionProviders", "template" : "http://localhost:7001/wcps/api/conductor/namespaces/Oracle/functionProviders?projection={projection}", "capabilities" : "urn:oracle:restframework:read", "href" : "http://localhost:7001/wcps/api/conductor/namespaces/Oracle/functionProviders", "rel" : "urn:oracle:webcenter:parent" }, { "resourceType" : "urn:oracle:wcps:conductor:provider:functionProvider", "template" : "http://localhost:7001/wcps/api/conductor/namespaces/Oracle/functionProviders/collections:new?projection={projection}", "capabilities" : "urn:oracle:restframework:read", "href" : "http://localhost:7001/wcps/api/conductor/namespaces/Oracle/functionProviders/collections:new", "rel" : "self" } ] }, { "parameters" : [ ], "name" : "sort", "returnType" : "void", "category" : "collections", "example" : "${collections:sort(list)}", "localizedDescription" : "Sorts the provided collection.", "resourceType" : "urn:oracle:wcps:conductor:provider:functionProvider", "links" : [ { "resourceType" : "urn:oracle:wcps:conductor:provider:functionProviders", "template" : "http://localhost:7001/wcps/api/conductor/namespaces/Oracle/functionProviders?projection={projection}", "capabilities" : "urn:oracle:restframework:read", "href" : "http://localhost:7001/wcps/api/conductor/namespaces/Oracle/functionProviders", "rel" : "urn:oracle:webcenter:parent" }, { "resourceType" : "urn:oracle:wcps:conductor:provider:functionProvider", "template" : "http://localhost:7001/wcps/api/conductor/namespaces/Oracle/functionProviders/collections:sort?projection={projection}", "capabilities" : "urn:oracle:restframework:read", "href" : "http://localhost:7001/wcps/api/conductor/namespaces/Oracle/functionProviders/collections:sort", "rel" : "self" } ] }, { "parameters" : [ ], "name" : "getSampleConfig", "returnType" : "oracle.wcps.test.providers.sample.SampleConnectionConfigImpl", "category" : "connectionsQA", "example" : "${connectionsQA:getSampleConfig(scenarioContext,connectionName)}", "localizedDescription" : "Retrieves a sample configuration by name.", "resourceType" : "urn:oracle:wcps:conductor:provider:functionProvider", "links" : [ { "resourceType" : "urn:oracle:wcps:conductor:provider:functionProviders", "template" : "http://localhost:7001/wcps/api/conductor/namespaces/Oracle/functionProviders?projection={projection}", "capabilities" : "urn:oracle:restframework:read", "href" : "http://localhost:7001/wcps/api/conductor/namespaces/Oracle/functionProviders", "rel" : "urn:oracle:webcenter:parent" }, { "resourceType" : "urn:oracle:wcps:conductor:provider:functionProvider", "template" : "http://localhost:7001/wcps/api/conductor/namespaces/Oracle/functionProviders/connectionsQA:getSampleConfig?projection={projection}", "capabilities" : "urn:oracle:restframework:read", "href" : "http://localhost:7001/wcps/api/conductor/namespaces/Oracle/functionProviders/connectionsQA:getSampleConfig", "rel" : "self" } ] }, { "parameters" : [ ], "name" : "getSampleConfigs", "returnType" : "java.util.List", "category" : "connectionsQA", "example" : "${connectionsQA:getSampleConfigs(scenarioContext)}", "localizedDescription" : "Retrieves all sample connection configurations for the current namespace.", "resourceType" : "urn:oracle:wcps:conductor:provider:functionProvider", "links" : [ { "resourceType" : "urn:oracle:wcps:conductor:provider:functionProviders", "template" : "http://localhost:7001/wcps/api/conductor/namespaces/Oracle/functionProviders?projection={projection}", "capabilities" : "urn:oracle:restframework:read", "href" : "http://localhost:7001/wcps/api/conductor/namespaces/Oracle/functionProviders", "rel" : "urn:oracle:webcenter:parent" }, { "resourceType" : "urn:oracle:wcps:conductor:provider:functionProvider", "template" : "http://localhost:7001/wcps/api/conductor/namespaces/Oracle/functionProviders/connectionsQA:getSampleConfigs?projection={projection}", "capabilities" : "urn:oracle:restframework:read", "href" : "http://localhost:7001/wcps/api/conductor/namespaces/Oracle/functionProviders/connectionsQA:getSampleConfigs", "rel" : "self" } ] }, { "parameters" : [ ], "name" : "removeSampleConfig", "returnType" : "void", "category" : "connectionsQA", "example" : "${connectionsQA:removeSampleConfig(scenarioContext,connectionName)}", "localizedDescription" : "Removes a sample configuration with the specified name in the current namespace.", "resourceType" : "urn:oracle:wcps:conductor:provider:functionProvider", "links" : [ { "resourceType" : "urn:oracle:wcps:conductor:provider:functionProviders", "template" : "http://localhost:7001/wcps/api/conductor/namespaces/Oracle/functionProviders?projection={projection}", "capabilities" : "urn:oracle:restframework:read", "href" : "http://localhost:7001/wcps/api/conductor/namespaces/Oracle/functionProviders", "rel" : "urn:oracle:webcenter:parent" }, { "resourceType" : "urn:oracle:wcps:conductor:provider:functionProvider", "template" : "http://localhost:7001/wcps/api/conductor/namespaces/Oracle/functionProviders/connectionsQA:removeSampleConfig?projection={projection}", "capabilities" : "urn:oracle:restframework:read", "href" : "http://localhost:7001/wcps/api/conductor/namespaces/Oracle/functionProviders/connectionsQA:removeSampleConfig", "rel" : "self" } ] }, { "parameters" : [ ], "name" : "saveSampleConfig", "returnType" : "oracle.wcps.test.providers.sample.SampleConnectionConfigImpl", "category" : "connectionsQA", "example" : "${connectionsQA:saveSampleConfig(scenarioContext,connectionName,samplePropertyValue)}", "localizedDescription" : "Creates or saves a sample configuration.", "resourceType" : "urn:oracle:wcps:conductor:provider:functionProvider", "links" : [ { "resourceType" : "urn:oracle:wcps:conductor:provider:functionProviders", "template" : "http://localhost:7001/wcps/api/conductor/namespaces/Oracle/functionProviders?projection={projection}", "capabilities" : "urn:oracle:restframework:read", "href" : "http://localhost:7001/wcps/api/conductor/namespaces/Oracle/functionProviders", "rel" : "urn:oracle:webcenter:parent" }, { "resourceType" : "urn:oracle:wcps:conductor:provider:functionProvider", "template" : "http://localhost:7001/wcps/api/conductor/namespaces/Oracle/functionProviders/connectionsQA:saveSampleConfig?projection={projection}", "capabilities" : "urn:oracle:restframework:read", "href" : "http://localhost:7001/wcps/api/conductor/namespaces/Oracle/functionProviders/connectionsQA:saveSampleConfig", "rel" : "self" } ] }, { "parameters" : [ ], "name" : "response", "returnType" : "java.lang.String", "category" : "magiceightball", "example" : "${magiceightball:response(scenarioContext,responses)}", "localizedDescription" : "Provides clairvoyant responses to all your questions", "resourceType" : "urn:oracle:wcps:conductor:provider:functionProvider", "links" : [ { "resourceType" : "urn:oracle:wcps:conductor:provider:functionProviders", "template" : "http://localhost:7001/wcps/api/conductor/namespaces/Oracle/functionProviders?projection={projection}", "capabilities" : "urn:oracle:restframework:read", "href" : "http://localhost:7001/wcps/api/conductor/namespaces/Oracle/functionProviders", "rel" : "urn:oracle:webcenter:parent" }, { "resourceType" : "urn:oracle:wcps:conductor:provider:functionProvider", "template" : "http://localhost:7001/wcps/api/conductor/namespaces/Oracle/functionProviders/magiceightball:response?projection={projection}", "capabilities" : "urn:oracle:restframework:read", "href" : "http://localhost:7001/wcps/api/conductor/namespaces/Oracle/functionProviders/magiceightball:response", "rel" : "self" } ] }, { "parameters" : [ ], "name" : "getUserRoles", "returnType" : "java.util.List", "category" : "security", "example" : "${security:getUserRoles()}", "localizedDescription" : "Returns an array of roles/groups that is part of the current subject.", "resourceType" : "urn:oracle:wcps:conductor:provider:functionProvider", "links" : [ { "resourceType" : "urn:oracle:wcps:conductor:provider:functionProviders", "template" : "http://localhost:7001/wcps/api/conductor/namespaces/Oracle/functionProviders?projection={projection}", "capabilities" : "urn:oracle:restframework:read", "href" : "http://localhost:7001/wcps/api/conductor/namespaces/Oracle/functionProviders", "rel" : "urn:oracle:webcenter:parent" }, { "resourceType" : "urn:oracle:wcps:conductor:provider:functionProvider", "template" : "http://localhost:7001/wcps/api/conductor/namespaces/Oracle/functionProviders/security:getUserRoles?projection={projection}", "capabilities" : "urn:oracle:restframework:read", "href" : "http://localhost:7001/wcps/api/conductor/namespaces/Oracle/functionProviders/security:getUserRoles", "rel" : "self" } ] }, { "parameters" : [ ], "name" : "isUserInRole", "returnType" : "boolean", "category" : "security", "example" : "${security:isUserInRole(role)}", "localizedDescription" : "Determines if the current user is a member in the specified role or group name (role).", "resourceType" : "urn:oracle:wcps:conductor:provider:functionProvider", "links" : [ { "resourceType" : "urn:oracle:wcps:conductor:provider:functionProviders", "template" : "http://localhost:7001/wcps/api/conductor/namespaces/Oracle/functionProviders?projection={projection}", "capabilities" : "urn:oracle:restframework:read", "href" : "http://localhost:7001/wcps/api/conductor/namespaces/Oracle/functionProviders", "rel" : "urn:oracle:webcenter:parent" }, { "resourceType" : "urn:oracle:wcps:conductor:provider:functionProvider", "template" : "http://localhost:7001/wcps/api/conductor/namespaces/Oracle/functionProviders/security:isUserInRole?projection={projection}", "capabilities" : "urn:oracle:restframework:read", "href" : "http://localhost:7001/wcps/api/conductor/namespaces/Oracle/functionProviders/security:isUserInRole", "rel" : "self" } ] }, { "parameters" : [ ], "name" : "complexType", "returnType" : "oracle.wcps.test.providers.functions.ComplexType", "category" : "test", "example" : "${test:complexType(arg0,arg1)}", "localizedDescription" : "Demonstrates how to return a complex type.", "resourceType" : "urn:oracle:wcps:conductor:provider:functionProvider", "links" : [ { "resourceType" : "urn:oracle:wcps:conductor:provider:functionProviders", "template" : "http://localhost:7001/wcps/api/conductor/namespaces/Oracle/functionProviders?projection={projection}", "capabilities" : "urn:oracle:restframework:read", "href" : "http://localhost:7001/wcps/api/conductor/namespaces/Oracle/functionProviders", "rel" : "urn:oracle:webcenter:parent" }, { "resourceType" : "urn:oracle:wcps:conductor:provider:functionProvider", "template" : "http://localhost:7001/wcps/api/conductor/namespaces/Oracle/functionProviders/test:complexType?projection={projection}", "capabilities" : "urn:oracle:restframework:read", "href" : "http://localhost:7001/wcps/api/conductor/namespaces/Oracle/functionProviders/test:complexType", "rel" : "self" } ] }, { "parameters" : [ ], "name" : "complexTypeList", "returnType" : "java.util.List", "category" : "test", "example" : "${test:complexTypeList(arg0)}", "localizedDescription" : "Demonstrates how to return a list of complex types.", "resourceType" : "urn:oracle:wcps:conductor:provider:functionProvider", "links" : [ { "resourceType" : "urn:oracle:wcps:conductor:provider:functionProviders", "template" : "http://localhost:7001/wcps/api/conductor/namespaces/Oracle/functionProviders?projection={projection}", "capabilities" : "urn:oracle:restframework:read", "href" : "http://localhost:7001/wcps/api/conductor/namespaces/Oracle/functionProviders", "rel" : "urn:oracle:webcenter:parent" }, { "resourceType" : "urn:oracle:wcps:conductor:provider:functionProvider", "template" : "http://localhost:7001/wcps/api/conductor/namespaces/Oracle/functionProviders/test:complexTypeList?projection={projection}", "capabilities" : "urn:oracle:restframework:read", "href" : "http://localhost:7001/wcps/api/conductor/namespaces/Oracle/functionProviders/test:complexTypeList", "rel" : "self" } ] }, { "parameters" : [ ], "name" : "complexTypeMap", "returnType" : "java.util.Map", "category" : "test", "example" : "${test:complexTypeMap(arg0)}", "localizedDescription" : "Demonstrates how to return a map of complex types.", "resourceType" : "urn:oracle:wcps:conductor:provider:functionProvider", "links" : [ { "resourceType" : "urn:oracle:wcps:conductor:provider:functionProviders", "template" : "http://localhost:7001/wcps/api/conductor/namespaces/Oracle/functionProviders?projection={projection}", "capabilities" : "urn:oracle:restframework:read", "href" : "http://localhost:7001/wcps/api/conductor/namespaces/Oracle/functionProviders", "rel" : "urn:oracle:webcenter:parent" }, { "resourceType" : "urn:oracle:wcps:conductor:provider:functionProvider", "template" : "http://localhost:7001/wcps/api/conductor/namespaces/Oracle/functionProviders/test:complexTypeMap?projection={projection}", "capabilities" : "urn:oracle:restframework:read", "href" : "http://localhost:7001/wcps/api/conductor/namespaces/Oracle/functionProviders/test:complexTypeMap", "rel" : "self" } ] }, { "parameters" : [ ], "name" : "concat", "returnType" : "java.lang.String", "category" : "test", "example" : "${test:concat(arg0,arg1)}", "localizedDescription" : "Demonstrates how to return a complex type.", "resourceType" : "urn:oracle:wcps:conductor:provider:functionProvider", "links" : [ { "resourceType" : "urn:oracle:wcps:conductor:provider:functionProviders", "template" : "http://localhost:7001/wcps/api/conductor/namespaces/Oracle/functionProviders?projection={projection}", "capabilities" : "urn:oracle:restframework:read", "href" : "http://localhost:7001/wcps/api/conductor/namespaces/Oracle/functionProviders", "rel" : "urn:oracle:webcenter:parent" }, { "resourceType" : "urn:oracle:wcps:conductor:provider:functionProvider", "template" : "http://localhost:7001/wcps/api/conductor/namespaces/Oracle/functionProviders/test:concat?projection={projection}", "capabilities" : "urn:oracle:restframework:read", "href" : "http://localhost:7001/wcps/api/conductor/namespaces/Oracle/functionProviders/test:concat", "rel" : "self" } ] }, { "parameters" : [ ], "name" : "sleep", "returnType" : "void", "category" : "test", "example" : "${test:sleep(arg0)}", "localizedDescription" : "Pauses the current thread for the specified number of milliseconds.", "resourceType" : "urn:oracle:wcps:conductor:provider:functionProvider", "links" : [ { "resourceType" : "urn:oracle:wcps:conductor:provider:functionProviders", "template" : "http://localhost:7001/wcps/api/conductor/namespaces/Oracle/functionProviders?projection={projection}", "capabilities" : "urn:oracle:restframework:read", "href" : "http://localhost:7001/wcps/api/conductor/namespaces/Oracle/functionProviders", "rel" : "urn:oracle:webcenter:parent" }, { "resourceType" : "urn:oracle:wcps:conductor:provider:functionProvider", "template" : "http://localhost:7001/wcps/api/conductor/namespaces/Oracle/functionProviders/test:sleep?projection={projection}", "capabilities" : "urn:oracle:restframework:read", "href" : "http://localhost:7001/wcps/api/conductor/namespaces/Oracle/functionProviders/test:sleep", "rel" : "self" } ] } ], "resourceType" : "urn:oracle:wcps:conductor:provider:functionProviders", "links" : [ { "resourceType" : "urn:oracle:wcps:conductor:provider:functionProviders", "template" : "http://localhost:7001/wcps/api/conductor/namespaces/Oracle/functionProviders?projection={projection}", "capabilities" : "urn:oracle:restframework:read", "href" : "http://localhost:7001/wcps/api/conductor/namespaces/Oracle/functionProviders?projection=summary", "rel" : "self" } ] }
XML
Request: GET http://localhost:7001/wcps/api/conductor/namespaces/Oracle/functionProviders/collections:append?projection=details accept-language: en content-type: application/xml accept: application/xml Response: Status Code:200 Content-Length: 1433 X-Powered-By: Servlet/2.5 JSP/2.1 Set-Cookie: JSESSIONID=xf4NM2GL2yrTY3QPCZ591Ht8h7MVTSW9GGzR6Tm12WtFLvD0vnng!2098846330; path=/wcps; HttpOnly Content-Type: application/xml Date: Wed, 13 Oct 2010 23:51:36 GMT <?xml version="1.0" encoding="UTF-8"?> <functionProvider resourceType="urn:oracle:wcps:conductor:provider:functionProvider"> <links> <link capabilities="urn:oracle:restframework:read" href="http://localhost:7001/wcps/api/conductor/namespaces/Oracle/functionProviders" rel="urn:oracle:webcenter:parent" resourceType="urn:oracle:wcps:conductor:provider:functionProviders" template="http://localhost:7001/wcps/api/conductor/namespaces/Oracle/functionProviders?projection={projection}"/> <link capabilities="urn:oracle:restframework:read" href="http://localhost:7001/wcps/api/conductor/namespaces/Oracle/functionProviders/collections:append?projection=details" rel="self" resourceType="urn:oracle:wcps:conductor:provider:functionProvider" template="http://localhost:7001/wcps/api/conductor/namespaces/Oracle/functionProviders/collections:append?projection={projection}"/> </links> <category>collections</category> <example>${collections:append(collection,item)}</example> <localizedDescription>Appends </localizedDescription> <name>append</name> <parameters> <parameter> <localizedDescription>The collection to append to.</localizedDescription> <name>collection</name> <type>java.util.Collection</type> </parameter> <parameter> <localizedDescription>The item or object to append.</localizedDescription> <name>item</name> <type>java.lang.Object</type> </parameter> </parameters> <returnType>java.util.Collection</returnType> </functionProvider>
JSON
Request: GET http://localhost:7001/wcps/api/conductor/namespaces/Oracle/functionProviders/collections:append?projection=details accept-language: en content-type: application/json accept: application/json Response: Status Code:200 X-Powered-By: Servlet/2.5 JSP/2.1 Set-Cookie: JSESSIONID=BCz3M2GJWQnS3jQV1DvMsJynJXGnlJ6MrmrST4qxm8L7NxbgJh9T!2098846330; path=/wcps; HttpOnly Transfer-Encoding: chunked Content-Type: application/json Date: Wed, 13 Oct 2010 23:51:37 GMT { "parameters" : [ { "type" : "java.util.Collection", "name" : "collection", "localizedDescription" : "The collection to append to." }, { "type" : "java.lang.Object", "name" : "item", "localizedDescription" : "The item or object to append." } ], "name" : "append", "returnType" : "java.util.Collection", "category" : "collections", "example" : "${collections:append(collection,item)}", "localizedDescription" : "Appends ", "resourceType" : "urn:oracle:wcps:conductor:provider:functionProvider", "links" : [ { "resourceType" : "urn:oracle:wcps:conductor:provider:functionProviders", "template" : "http://localhost:7001/wcps/api/conductor/namespaces/Oracle/functionProviders?projection={projection}", "capabilities" : "urn:oracle:restframework:read", "href" : "http://localhost:7001/wcps/api/conductor/namespaces/Oracle/functionProviders", "rel" : "urn:oracle:webcenter:parent" }, { "resourceType" : "urn:oracle:wcps:conductor:provider:functionProvider", "template" : "http://localhost:7001/wcps/api/conductor/namespaces/Oracle/functionProviders/collections:append?projection={projection}", "capabilities" : "urn:oracle:restframework:read", "href" : "http://localhost:7001/wcps/api/conductor/namespaces/Oracle/functionProviders/collections:append?projection=details", "rel" : "self" } ] }
This section provides examples of using the Conductor's namespace management APIs, and contains the following subsections:
XML
Request: GET http://localhost:7001/wcps/api/conductor/namespaces?startIndex=0&itemsPerPage=10 accept-language: en content-type: application/xml accept: application/xml Response: Status Code:200 X-Powered-By: Servlet/2.5 JSP/2.1 Set-Cookie: JSESSIONID=JVqNM0HGTxxrXJJsy2cLCPjRTqJzDQ6pFytMMNy3JQTph671rTC2!-1838429496; path=/wcps; HttpOnly Transfer-Encoding: chunked Content-Type: application/xml Date: Tue, 12 Oct 2010 20:40:06 GMT <?xml version="1.0" encoding="UTF-8"?> <namespaces resourceType="urn:oracle:wcps:conductor:namespaces"> <links> <link capabilities="urn:oracle:restframework:read" href="http://localhost:7001/wcps/api/conductor/resourceIndex" rel="urn:oracle:webcenter:parent" resourceType="urn:oracle:wcps:conductor:resourceIndex"/> <link capabilities="urn:oracle:restframework:read urn:oracle:restframework:create" href="http://localhost:7001/wcps/api/conductor/namespaces?startIndex=0&itemsPerPage=10" rel="self" resourceType="urn:oracle:wcps:conductor:namespaces" template="http://localhost:7001/wcps/api/conductor/namespaces?startIndex={startIndex}&itemsPerPage={itemsPerPage}"/> </links> <items> <namespace resourceType="urn:oracle:wcps:conductor:namespace"> <links> <link capabilities="urn:oracle:restframework:read" href="http://localhost:7001/wcps/api/conductor/namespaces" rel="urn:oracle:webcenter:parent" resourceType="urn:oracle:wcps:conductor:namespaces"/> <link capabilities="urn:oracle:restframework:read urn:oracle:restframework:delete" href="http://localhost:7001/wcps/api/conductor/namespaces/JDEV" rel="self" resourceType="urn:oracle:wcps:conductor:namespace"/> <link capabilities="urn:oracle:restframework:read urn:oracle:restframework:create" href="http://localhost:7001/wcps/api/conductor/namespaces/JDEV/scenarios" rel="urn:oracle:wcps:conductor:scenarioMetadatas" resourceType="urn:oracle:wcps:conductor:scenarioMetadatas" template="http://localhost:7001/wcps/api/conductor/namespaces/JDEV/scenarios?tag={tag}&projection={projection}&startIndex={startIndex}&itemsPerPage={itemsPerPage}"/> <link capabilities="urn:oracle:restframework:read" href="http://localhost:7001/wcps/api/conductor/namespaces/JDEV/dataProviders" rel="urn:oracle:wcps:conductor:provider:dataProviders" resourceType="urn:oracle:wcps:conductor:provider:dataProviders" template="http://localhost:7001/wcps/api/conductor/namespaces/JDEV/dataProviders?projection={projection}"/> <link capabilities="urn:oracle:restframework:read" href="http://localhost:7001/wcps/api/conductor/namespaces/JDEV/functionProviders" rel="urn:oracle:wcps:conductor:provider:functionProviders" resourceType="urn:oracle:wcps:conductor:provider:functionProviders" template="http://localhost:7001/wcps/api/conductor/namespaces/JDEV/functionProviders?projection={projection}"/> </links> <name>JDEV</name> </namespace> <namespace resourceType="urn:oracle:wcps:conductor:namespace"> <links> <link capabilities="urn:oracle:restframework:read" href="http://localhost:7001/wcps/api/conductor/namespaces" rel="urn:oracle:webcenter:parent" resourceType="urn:oracle:wcps:conductor:namespaces"/> <link capabilities="urn:oracle:restframework:read urn:oracle:restframework:delete" href="http://localhost:7001/wcps/api/conductor/namespaces/Oracle" rel="self" resourceType="urn:oracle:wcps:conductor:namespace"/> <link capabilities="urn:oracle:restframework:read urn:oracle:restframework:create" href="http://localhost:7001/wcps/api/conductor/namespaces/Oracle/scenarios" rel="urn:oracle:wcps:conductor:scenarioMetadatas" resourceType="urn:oracle:wcps:conductor:scenarioMetadatas" template="http://localhost:7001/wcps/api/conductor/namespaces/Oracle/scenarios?tag={tag}&projection={projection}&startIndex={startIndex}&itemsPerPage={itemsPerPage}"/> <link capabilities="urn:oracle:restframework:read" href="http://localhost:7001/wcps/api/conductor/namespaces/Oracle/dataProviders" rel="urn:oracle:wcps:conductor:provider:dataProviders" resourceType="urn:oracle:wcps:conductor:provider:dataProviders" template="http://localhost:7001/wcps/api/conductor/namespaces/Oracle/dataProviders?projection={projection}"/> <link capabilities="urn:oracle:restframework:read" href="http://localhost:7001/wcps/api/conductor/namespaces/Oracle/functionProviders" rel="urn:oracle:wcps:conductor:provider:functionProviders" resourceType="urn:oracle:wcps:conductor:provider:functionProviders" template="http://localhost:7001/wcps/api/conductor/namespaces/Oracle/functionProviders?projection={projection}"/> </links> <name>Oracle</name> </namespace> </items> </namespaces>
JSON
Request: GET http://localhost:7001/wcps/api/conductor/namespaces?startIndex=0&itemsPerPage=10 accept-language: en content-type: application/json accept: application/json Response: Status Code:200 X-Powered-By: Servlet/2.5 JSP/2.1 Set-Cookie: JSESSIONID=3yvMM0HLChkXHS7R2VGn4F6lFKHwTGP2NwjC2Lf7J2jpvLTW9GvV!-1838429496; path=/wcps; HttpOnly Transfer-Encoding: chunked Content-Type: application/json Date: Tue, 12 Oct 2010 20:40:11 GMT { "namespaces" : [ { "name" : "JDEV", "resourceType" : "urn:oracle:wcps:conductor:namespace", "links" : [ { "resourceType" : "urn:oracle:wcps:conductor:namespaces", "capabilities" : "urn:oracle:restframework:read", "href" : "http://localhost:7001/wcps/api/conductor/namespaces", "rel" : "urn:oracle:webcenter:parent" }, { "resourceType" : "urn:oracle:wcps:conductor:namespace", "capabilities" : "urn:oracle:restframework:read urn:oracle:restframework:delete", "href" : "http://localhost:7001/wcps/api/conductor/namespaces/JDEV", "rel" : "self" }, { "resourceType" : "urn:oracle:wcps:conductor:scenarioMetadatas", "template" : "http://localhost:7001/wcps/api/conductor/namespaces/JDEV/scenarios?tag={tag}&projection={projection}&startIndex={startIndex}&itemsPerPage={itemsPerPage}", "capabilities" : "urn:oracle:restframework:read urn:oracle:restframework:create", "href" : "http://localhost:7001/wcps/api/conductor/namespaces/JDEV/scenarios", "rel" : "urn:oracle:wcps:conductor:scenarioMetadatas" }, { "resourceType" : "urn:oracle:wcps:conductor:provider:dataProviders", "template" : "http://localhost:7001/wcps/api/conductor/namespaces/JDEV/dataProviders?projection={projection}", "capabilities" : "urn:oracle:restframework:read", "href" : "http://localhost:7001/wcps/api/conductor/namespaces/JDEV/dataProviders", "rel" : "urn:oracle:wcps:conductor:provider:dataProviders" }, { "resourceType" : "urn:oracle:wcps:conductor:provider:functionProviders", "template" : "http://localhost:7001/wcps/api/conductor/namespaces/JDEV/functionProviders?projection={projection}", "capabilities" : "urn:oracle:restframework:read", "href" : "http://localhost:7001/wcps/api/conductor/namespaces/JDEV/functionProviders", "rel" : "urn:oracle:wcps:conductor:provider:functionProviders" } ] }, { "name" : "Oracle", "resourceType" : "urn:oracle:wcps:conductor:namespace", "links" : [ { "resourceType" : "urn:oracle:wcps:conductor:namespaces", "capabilities" : "urn:oracle:restframework:read", "href" : "http://localhost:7001/wcps/api/conductor/namespaces", "rel" : "urn:oracle:webcenter:parent" }, { "resourceType" : "urn:oracle:wcps:conductor:namespace", "capabilities" : "urn:oracle:restframework:read urn:oracle:restframework:delete", "href" : "http://localhost:7001/wcps/api/conductor/namespaces/Oracle", "rel" : "self" }, { "resourceType" : "urn:oracle:wcps:conductor:scenarioMetadatas", "template" : "http://localhost:7001/wcps/api/conductor/namespaces/Oracle/scenarios?tag={tag}&projection={projection}&startIndex={startIndex}&itemsPerPage={itemsPerPage}", "capabilities" : "urn:oracle:restframework:read urn:oracle:restframework:create", "href" : "http://localhost:7001/wcps/api/conductor/namespaces/Oracle/scenarios", "rel" : "urn:oracle:wcps:conductor:scenarioMetadatas" }, { "resourceType" : "urn:oracle:wcps:conductor:provider:dataProviders", "template" : "http://localhost:7001/wcps/api/conductor/namespaces/Oracle/dataProviders?projection={projection}", "capabilities" : "urn:oracle:restframework:read", "href" : "http://localhost:7001/wcps/api/conductor/namespaces/Oracle/dataProviders", "rel" : "urn:oracle:wcps:conductor:provider:dataProviders" }, { "resourceType" : "urn:oracle:wcps:conductor:provider:functionProviders", "template" : "http://localhost:7001/wcps/api/conductor/namespaces/Oracle/functionProviders?projection={projection}", "capabilities" : "urn:oracle:restframework:read", "href" : "http://localhost:7001/wcps/api/conductor/namespaces/Oracle/functionProviders", "rel" : "urn:oracle:wcps:conductor:provider:functionProviders" } ] }], "resourceType" : "urn:oracle:wcps:conductor:namespaces", "links" : [ { "resourceType" : "urn:oracle:wcps:conductor:resourceIndex", "capabilities" : "urn:oracle:restframework:read", "href" : "http://localhost:7001/wcps/api/conductor/resourceIndex", "rel" : "urn:oracle:webcenter:parent" }, { "resourceType" : "urn:oracle:wcps:conductor:namespaces", "template" : "http://localhost:7001/wcps/api/conductor/namespaces?startIndex={startIndex}&itemsPerPage={itemsPerPage}", "capabilities" : "urn:oracle:restframework:read urn:oracle:restframework:create", "href" : "http://localhost:7001/wcps/api/conductor/namespaces?startIndex=0&itemsPerPage=10", "rel" : "self" } ] }
XML
Request: GET http://localhost:7001/wcps/api/conductor/namespaces/Oracle accept-language: en content-type: application/json accept: application/json Response: Status Code:200 X-Powered-By: Servlet/2.5 JSP/2.1 Set-Cookie: JSESSIONID=qzMqM0HMPYBlKQGMJvnQMS4rxXS4Jn1QnBjW850G1vnSjt4lHbLy!-1838429496; path=/wcps; HttpOnly Transfer-Encoding: chunked Content-Type: application/json Date: Tue, 12 Oct 2010 20:40:12 GMT { "name" : "Oracle", "resourceType" : "urn:oracle:wcps:conductor:namespace", "links" : [ { "resourceType" : "urn:oracle:wcps:conductor:namespaces", "capabilities" : "urn:oracle:restframework:read", "href" : "http://localhost:7001/wcps/api/conductor/namespaces", "rel" : "urn:oracle:webcenter:parent" }, { "resourceType" : "urn:oracle:wcps:conductor:namespace", "capabilities" : "urn:oracle:restframework:read urn:oracle:restframework:delete", "href" : "http://localhost:7001/wcps/api/conductor/namespaces/Oracle", "rel" : "self" }, { "resourceType" : "urn:oracle:wcps:conductor:scenarioMetadatas", "template" : "http://localhost:7001/wcps/api/conductor/namespaces/Oracle/scenarios?tag={tag}&projection={projection}&startIndex={startIndex}&itemsPerPage={itemsPerPage}", "capabilities" : "urn:oracle:restframework:read urn:oracle:restframework:create", "href" : "http://localhost:7001/wcps/api/conductor/namespaces/Oracle/scenarios", "rel" : "urn:oracle:wcps:conductor:scenarioMetadatas" }, { "resourceType" : "urn:oracle:wcps:conductor:provider:dataProviders", "template" : "http://localhost:7001/wcps/api/conductor/namespaces/Oracle/dataProviders?projection={projection}", "capabilities" : "urn:oracle:restframework:read", "href" : "http://localhost:7001/wcps/api/conductor/namespaces/Oracle/dataProviders", "rel" : "urn:oracle:wcps:conductor:provider:dataProviders" }, { "resourceType" : "urn:oracle:wcps:conductor:provider:functionProviders", "template" : "http://localhost:7001/wcps/api/conductor/namespaces/Oracle/functionProviders?projection={projection}", "capabilities" : "urn:oracle:restframework:read", "href" : "http://localhost:7001/wcps/api/conductor/namespaces/Oracle/functionProviders", "rel" : "urn:oracle:wcps:conductor:provider:functionProviders" } ] }
JSON
Request: GET http://localhost:7001/wcps/api/conductor/namespaces/Oracle accept-language: en content-type: application/json accept: application/json Response: Status Code:200 X-Powered-By: Servlet/2.5 JSP/2.1 Set-Cookie: JSESSIONID=qzMqM0HMPYBlKQGMJvnQMS4rxXS4Jn1QnBjW850G1vnSjt4lHbLy!-1838429496; path=/wcps; HttpOnly Transfer-Encoding: chunked Content-Type: application/json Date: Tue, 12 Oct 2010 20:40:12 GMT { "name" : "Oracle", "resourceType" : "urn:oracle:wcps:conductor:namespace", "links" : [ { "resourceType" : "urn:oracle:wcps:conductor:namespaces", "capabilities" : "urn:oracle:restframework:read", "href" : "http://localhost:7001/wcps/api/conductor/namespaces", "rel" : "urn:oracle:webcenter:parent" }, { "resourceType" : "urn:oracle:wcps:conductor:namespace", "capabilities" : "urn:oracle:restframework:read urn:oracle:restframework:delete", "href" : "http://localhost:7001/wcps/api/conductor/namespaces/Oracle", "rel" : "self" }, { "resourceType" : "urn:oracle:wcps:conductor:scenarioMetadatas", "template" : "http://localhost:7001/wcps/api/conductor/namespaces/Oracle/scenarios?tag={tag}&projection={projection}&startIndex={startIndex}&itemsPerPage={itemsPerPage}", "capabilities" : "urn:oracle:restframework:read urn:oracle:restframework:create", "href" : "http://localhost:7001/wcps/api/conductor/namespaces/Oracle/scenarios", "rel" : "urn:oracle:wcps:conductor:scenarioMetadatas" }, { "resourceType" : "urn:oracle:wcps:conductor:provider:dataProviders", "template" : "http://localhost:7001/wcps/api/conductor/namespaces/Oracle/dataProviders?projection={projection}", "capabilities" : "urn:oracle:restframework:read", "href" : "http://localhost:7001/wcps/api/conductor/namespaces/Oracle/dataProviders", "rel" : "urn:oracle:wcps:conductor:provider:dataProviders" }, { "resourceType" : "urn:oracle:wcps:conductor:provider:functionProviders", "template" : "http://localhost:7001/wcps/api/conductor/namespaces/Oracle/functionProviders?projection={projection}", "capabilities" : "urn:oracle:restframework:read", "href" : "http://localhost:7001/wcps/api/conductor/namespaces/Oracle/functionProviders", "rel" : "urn:oracle:wcps:conductor:provider:functionProviders" } ] }
XML
Request: POST http://localhost:7001/wcps/api/conductor/namespaces?startIndex=0&itemsPerPage=10 accept-language: en content-type: application/xml accept: application/xml <?xml version="1.0" encoding="UTF-8"?> <namespace resourceType="urn:oracle:wcps:conductor:namespace"> <name>Oracle</name> </namespace> Response: Status Code:201 Content-Length: 1753 X-Powered-By: Servlet/2.5 JSP/2.1 Set-Cookie: JSESSIONID=RW6QM0HF5x2KLvNSZJVncTpSXbl1rKY3tTfXyH94yY6Qv6ddGJkY!-1838429496; path=/wcps; HttpOnly Content-Type: application/xml Location: http://localhost:7001/wcps/api/conductor/namespaces/Oracle Date: Tue, 12 Oct 2010 20:40:05 GMT <?xml version="1.0" encoding="UTF-8"?> <namespace resourceType="urn:oracle:wcps:conductor:namespace"> <links> <link capabilities="urn:oracle:restframework:read" href="http://localhost:7001/wcps/api/conductor/namespaces" rel="urn:oracle:webcenter:parent" resourceType="urn:oracle:wcps:conductor:namespaces"/> <link capabilities="urn:oracle:restframework:read urn:oracle:restframework:delete" href="http://localhost:7001/wcps/api/conductor/namespaces/Oracle" rel="self" resourceType="urn:oracle:wcps:conductor:namespace"/> <link capabilities="urn:oracle:restframework:read urn:oracle:restframework:create" href="http://localhost:7001/wcps/api/conductor/namespaces/Oracle/scenarios" rel="urn:oracle:wcps:conductor:scenarioMetadatas" resourceType="urn:oracle:wcps:conductor:scenarioMetadatas" template="http://localhost:7001/wcps/api/conductor/namespaces/Oracle/scenarios?tag={tag}&projection={projection}&startIndex={startIndex}&itemsPerPage={itemsPerPage}"/> <link capabilities="urn:oracle:restframework:read" href="http://localhost:7001/wcps/api/conductor/namespaces/Oracle/dataProviders" rel="urn:oracle:wcps:conductor:provider:dataProviders" resourceType="urn:oracle:wcps:conductor:provider:dataProviders" template="http://localhost:7001/wcps/api/conductor/namespaces/Oracle/dataProviders?projection={projection}"/> <link capabilities="urn:oracle:restframework:read" href="http://localhost:7001/wcps/api/conductor/namespaces/Oracle/functionProviders" rel="urn:oracle:wcps:conductor:provider:functionProviders" resourceType="urn:oracle:wcps:conductor:provider:functionProviders" template="http://localhost:7001/wcps/api/conductor/namespaces/Oracle/functionProviders?projection={projection}"/> </links> <name>Oracle</name> </namespace>
JSON
Request: POST http://localhost:7001/wcps/api/conductor/namespaces?startIndex=0&itemsPerPage=10 accept-language: en content-type: application/json accept: application/json { "name" : "Oracle", "resourceType" : "urn:oracle:wcps:conductor:namespace" } Response: Status Code:201 X-Powered-By: Servlet/2.5 JSP/2.1 Set-Cookie: JSESSIONID=xh18M0HKT86f4y1bWqZnBmzHXvNnvh0p7y9RLTmQfbRQC3fh79gx!-1838429496; path=/wcps; HttpOnly Transfer-Encoding: chunked Content-Type: application/json Location: http://localhost:7001/wcps/api/conductor/namespaces/Oracle Date: Tue, 12 Oct 2010 20:40:10 GMT { "name" : "Oracle", "resourceType" : "urn:oracle:wcps:conductor:namespace", "links" : [ { "resourceType" : "urn:oracle:wcps:conductor:namespaces", "capabilities" : "urn:oracle:restframework:read", "href" : "http://localhost:7001/wcps/api/conductor/namespaces", "rel" : "urn:oracle:webcenter:parent" }, { "resourceType" : "urn:oracle:wcps:conductor:namespace", "capabilities" : "urn:oracle:restframework:read urn:oracle:restframework:delete", "href" : "http://localhost:7001/wcps/api/conductor/namespaces/Oracle", "rel" : "self" }, { "resourceType" : "urn:oracle:wcps:conductor:scenarioMetadatas", "template" : "http://localhost:7001/wcps/api/conductor/namespaces/Oracle/scenarios?tag={tag}&projection={projection}&startIndex={startIndex}&itemsPerPage={itemsPerPage}", "capabilities" : "urn:oracle:restframework:read urn:oracle:restframework:create", "href" : "http://localhost:7001/wcps/api/conductor/namespaces/Oracle/scenarios", "rel" : "urn:oracle:wcps:conductor:scenarioMetadatas" }, { "resourceType" : "urn:oracle:wcps:conductor:provider:dataProviders", "template" : "http://localhost:7001/wcps/api/conductor/namespaces/Oracle/dataProviders?projection={projection}", "capabilities" : "urn:oracle:restframework:read", "href" : "http://localhost:7001/wcps/api/conductor/namespaces/Oracle/dataProviders", "rel" : "urn:oracle:wcps:conductor:provider:dataProviders" }, { "resourceType" : "urn:oracle:wcps:conductor:provider:functionProviders", "template" : "http://localhost:7001/wcps/api/conductor/namespaces/Oracle/functionProviders?projection={projection}", "capabilities" : "urn:oracle:restframework:read", "href" : "http://localhost:7001/wcps/api/conductor/namespaces/Oracle/functionProviders", "rel" : "urn:oracle:wcps:conductor:provider:functionProviders" } ] }
XML/JSON
Request: DELETE http://localhost:7001/wcps/api/conductor/namespaces/Oracle accept-language: en content-type: application/xml accept: application/xml Response: Status Code:204 Content-Length: 0 X-Powered-By: Servlet/2.5 JSP/2.1 Connection: close Set-Cookie: JSESSIONID=SMctM0HJxYxSvkMszjrfpl5zJ3Q0v25NhB7QPRTnJFLmd1tK1hYC!-1838429496; path=/wcps; HttpOnly Date: Tue, 12 Oct 2010 20:40:09 GMT
This section provides examples of using the Conductor's scenario management APIs, and contains the following susbsections:
XML
Request: GET http://localhost:7001/wcps/api/conductor/namespaces/Oracle/scenarios?projection=summary&startIndex=0&itemsPerPage=10 accept-language: en content-type: application/xml accept: application/xml Response: Status Code:200 Content-Length: 1915 X-Powered-By: Servlet/2.5 JSP/2.1 Set-Cookie: JSESSIONID=LJq1M1TGZp7fClyTJ2wggGczv2r8N0X1jsPYlg8kpGFWwGMvrQsM!21637120; path=/wcps; HttpOnly Content-Type: application/xml Date: Wed, 13 Oct 2010 15:43:02 GMT <?xml version="1.0" encoding="UTF-8"?> <scenarioMetadatas resourceType="urn:oracle:wcps:conductor:scenarioMetadatas" xmlns:ns2="http://xmlns.oracle.com/wcps/conductor/common/1.0.0" xmlns:ns3="http://xmlns.oracle.com/wcps/conductor/scenarios/1.0.0"> <links> <link capabilities="urn:oracle:restframework:read urn:oracle:restframework:create" href="http://localhost:7001/wcps/api/conductor/namespaces/Oracle/scenarios?projection=summary&startIndex=0&itemsPerPage=10" rel="self" resourceType="urn:oracle:wcps:conductor:scenarioMetadatas" template="http://localhost:7001/wcps/api/conductor/namespaces/Oracle/scenarios?tag={tag}&projection={projection}&startIndex={startIndex}&itemsPerPage={itemsPerPage}"/> </links> <items> <scenarioMetadata resourceType="urn:oracle:wcps:conductor:scenarioMetadata"> <links> <link capabilities="urn:oracle:restframework:read urn:oracle:restframework:update urn:oracle:restframework:delete urn:oracle:restframework:execute" href="http://localhost:7001/wcps/api/conductor/namespaces/Oracle/scenarios/Hello%20World" rel="self" resourceType="urn:oracle:wcps:conductor:scenarioMetadata" template="http://localhost:7001/wcps/api/conductor/namespaces/Oracle/scenarios/Hello World?projection={projection}&startIndex={startIndex}&itemsPerPage={itemsPerPage}"/> <link capabilities="urn:oracle:restframework:read" href="http://localhost:7001/wcps/api/conductor/namespaces/Oracle/scenarios/Hello%20World/definition" rel="alternate" resourceType="urn:oracle:wcps:conductor:scenario"/> </links> <status>PUBLISHED</status> <createdAuthor>weblogic</createdAuthor> <createdDateTime>2010-10-13T09:43:01.617-06:00</createdDateTime> <updatedAuthor>weblogic</updatedAuthor> <updatedDateTime>2010-10-13T09:43:01.617-06:00</updatedDateTime> <scenario> <comments/> <name>Hello World</name> <tags/> <input-parameters/> </scenario> </scenarioMetadata> </items> </scenarioMetadatas>
JSON
Request: GET http://localhost:7001/wcps/api/conductor/namespaces/Oracle/scenarios?projection=summary&startIndex=0&itemsPerPage=10 accept-language: en content-type: application/json accept: application/json Response: Status Code:200 X-Powered-By: Servlet/2.5 JSP/2.1 Set-Cookie: JSESSIONID=0VBvM2ZMwfWC6bPnZ8QDWv7q4h7WhmTMPvb0Lyc9n8t0lnyTtGLy!822326988; path=/wcps; HttpOnly Transfer-Encoding: chunked Content-Type: application/json Date: Wed, 13 Oct 2010 20:39:40 GMT { "scenarioMetadatas" : [ { "scenario" : { "tags" : [ ], "inputParameters" : [ ], "name" : "Hello World", "comments" : "This scenario returns a Hello World string." }, "status" : "PUBLISHED", "createdAuthor" : "weblogic", "createdDateTime" : "2010-10-13T14:39:40.103-0600", "updatedAuthor" : "weblogic", "updatedDateTime" : "2010-10-13T14:39:40.103-0600", "resourceType" : "urn:oracle:wcps:conductor:scenarioMetadata", "links" : [ { "resourceType" : "urn:oracle:wcps:conductor:scenarioMetadata", "template" : "http://localhost:7001/wcps/api/conductor/namespaces/Oracle/scenarios/Hello World?projection={projection}&startIndex={startIndex}&itemsPerPage={itemsPerPage}", "capabilities" : "urn:oracle:restframework:read urn:oracle:restframework:update urn:oracle:restframework:delete urn:oracle:restframework:execute", "href" : "http://localhost:7001/wcps/api/conductor/namespaces/Oracle/scenarios/Hello%20World", "rel" : "self" }, { "resourceType" : "urn:oracle:wcps:conductor:scenario", "capabilities" : "urn:oracle:restframework:read", "href" : "http://localhost:7001/wcps/api/conductor/namespaces/Oracle/scenarios/Hello%20World/definition", "rel" : "alternate" } ] } ], "resourceType" : "urn:oracle:wcps:conductor:scenarioMetadatas", "links" : [ { "resourceType" : "urn:oracle:wcps:conductor:scenarioMetadatas", "template" : "http://localhost:7001/wcps/api/conductor/namespaces/Oracle/scenarios?tag={tag}&projection={projection}&startIndex={startIndex}&itemsPerPage={itemsPerPage}", "capabilities" : "urn:oracle:restframework:read urn:oracle:restframework:create", "href" : "http://localhost:7001/wcps/api/conductor/namespaces/Oracle/scenarios?projection=summary&startIndex=0&itemsPerPage=10", "rel" : "self" } ] }
XML
Request: GET http://localhost:7001/wcps/api/conductor/namespaces/Oracle/scenarios/Hello%20World?projection=details&startIndex=0&itemsPerPage=10 accept-language: en content-type: application/xml accept: application/xml Response: Status Code:200 Content-Length: 1725 X-Powered-By: Servlet/2.5 JSP/2.1 Set-Cookie: JSESSIONID=mS7LM2hYbWDd8xvmKYGSGVLXJ2qYDTXNGLy3lqknyp8fYStlBQNT!822326988; path=/wcps; HttpOnly Content-Type: application/xml Date: Wed, 13 Oct 2010 20:45:44 GMT <?xml version="1.0" encoding="UTF-8"?> <scenarioMetadata resourceType="urn:oracle:wcps:conductor:scenarioMetadata" xmlns:ns2="http://xmlns.oracle.com/wcps/conductor/common/1.0.0" xmlns:ns3="http://xmlns.oracle.com/wcps/conductor/scenarios/1.0.0"> <links> <link capabilities="urn:oracle:restframework:read urn:oracle:restframework:update urn:oracle:restframework:delete urn:oracle:restframework:execute" href="http://localhost:7001/wcps/api/conductor/namespaces/Oracle/scenarios/Hello%20World?projection=details&startIndex=0&itemsPerPage=10" rel="self" resourceType="urn:oracle:wcps:conductor:scenarioMetadata" template="http://localhost:7001/wcps/api/conductor/namespaces/Oracle/scenarios/Hello World?projection={projection}&startIndex={startIndex}&itemsPerPage={itemsPerPage}"/> <link capabilities="urn:oracle:restframework:read" href="http://localhost:7001/wcps/api/conductor/namespaces/Oracle/scenarios/Hello%20World/definition" rel="alternate" resourceType="urn:oracle:wcps:conductor:scenario"/> </links> <status>PUBLISHED</status> <createdAuthor>weblogic</createdAuthor> <createdDateTime>2010-10-13T14:45:42.525-06:00</createdDateTime> <updatedAuthor>weblogic</updatedAuthor> <updatedDateTime>2010-10-13T14:45:42.525-06:00</updatedDateTime> <scenario> <comments>This scenario returns a Hello World string.</comments> <body> <return> <comments>This is what is returned by the scenario. A static string with the input parameter embedded.</comments> <expression>Hello World with input '${input}'!</expression> </return> </body> <name>Hello World</name> <tags> <tag>hello</tag> <tag>world</tag> </tags> <input-parameters> <parameter required="true">input</parameter> </input-parameters> </scenario> </scenarioMetadata>
JSON
Request: GET http://localhost:7001/wcps/api/conductor/namespaces/Oracle/scenarios/Hello%20World?projection=details&startIndex=0&itemsPerPage=10 accept-language: en content-type: application/json accept: application/json Response: Status Code:200 X-Powered-By: Servlet/2.5 JSP/2.1 Set-Cookie: JSESSIONID=LJnKM2hppVQL9ph88JWCymz8M1TQqcQjSbD03zJQ9z6yyT314Zy4!822326988; path=/wcps; HttpOnly Transfer-Encoding: chunked Content-Type: application/json Date: Wed, 13 Oct 2010 20:45:50 GMT { "scenario" : { "tags" : [ "hello", "world" ], "inputParameters" : [ { "value" : "input", "required" : true } ], "name" : "Hello World", "body" : { "statements" : [ { "concreteType" : "urn:oracle:wcps:conductor:scenario:schema:return", "expression" : "Hello World with input '${input}'!", "comments" : "This is what is returned by the scenario. A static string with the input parameter embedded." } ] }, "comments" : "This scenario returns a Hello World string." }, "status" : "PUBLISHED", "createdAuthor" : "weblogic", "createdDateTime" : "2010-10-13T14:45:48.681-0600", "updatedAuthor" : "weblogic", "updatedDateTime" : "2010-10-13T14:45:48.681-0600", "resourceType" : "urn:oracle:wcps:conductor:scenarioMetadata", "links" : [ { "resourceType" : "urn:oracle:wcps:conductor:scenarioMetadata", "template" : "http://localhost:7001/wcps/api/conductor/namespaces/Oracle/scenarios/Hello World?projection={projection}&startIndex={startIndex}&itemsPerPage={itemsPerPage}", "capabilities" : "urn:oracle:restframework:read urn:oracle:restframework:update urn:oracle:restframework:delete urn:oracle:restframework:execute", "href" : "http://localhost:7001/wcps/api/conductor/namespaces/Oracle/scenarios/Hello%20World?projection=details&startIndex=0&itemsPerPage=10", "rel" : "self" }, { "resourceType" : "urn:oracle:wcps:conductor:scenario", "capabilities" : "urn:oracle:restframework:read", "href" : "http://localhost:7001/wcps/api/conductor/namespaces/Oracle/scenarios/Hello%20World/definition", "rel" : "alternate" } ] }
XML
Request: POST http://localhost:7001/wcps/api/conductor/namespaces/Oracle/scenarios?projection=details&startIndex=0&itemsPerPage=10 accept-language: en content-type: application/xml accept: application/xml <?xml version="1.0" encoding="UTF-8"?> <scenarioMetadata resourceType="urn:oracle:wcps:conductor:scenarioMetadata" xmlns:ns2="http://xmlns.oracle.com/wcps/conductor/common/1.0.0" xmlns:ns3="http://xmlns.oracle.com/wcps/conductor/scenarios/1.0.0"> <scenario> <comments>This scenario returns a Hello World string.</comments> <body> <return> <comments>This is what is returned by the scenario. A static string with the input parameter embedded.</comments> <expression>Hello World with input '${input}'!</expression> </return> </body> <name>Hello World</name> <tags> <tag>hello</tag> <tag>world</tag> </tags> <input-parameters> <parameter required="true">input</parameter> </input-parameters> </scenario> </scenarioMetadata> Response: Status Code:201 Content-Length: 1669 X-Powered-By: Servlet/2.5 JSP/2.1 Set-Cookie: JSESSIONID=L41NM2hW6p8FtvJmjRxKkZNF2LJnnY4JhGJCT1xDG4prwf1T1g3D!822326988; path=/wcps; HttpOnly Content-Type: application/xml Location: http://localhost:7001/wcps/api/conductor/namespaces/Oracle/scenarios/Hello%20World Date: Wed, 13 Oct 2010 20:45:42 GMT <?xml version="1.0" encoding="UTF-8"?> <scenarioMetadata resourceType="urn:oracle:wcps:conductor:scenarioMetadata" xmlns:ns2="http://xmlns.oracle.com/wcps/conductor/common/1.0.0" xmlns:ns3="http://xmlns.oracle.com/wcps/conductor/scenarios/1.0.0"> <links> <link capabilities="urn:oracle:restframework:read urn:oracle:restframework:update urn:oracle:restframework:delete urn:oracle:restframework:execute" href="http://localhost:7001/wcps/api/conductor/namespaces/Oracle/scenarios/Hello%20World" rel="self" resourceType="urn:oracle:wcps:conductor:scenarioMetadata" template="http://localhost:7001/wcps/api/conductor/namespaces/Oracle/scenarios/Hello World?projection={projection}&startIndex={startIndex}&itemsPerPage={itemsPerPage}"/> <link capabilities="urn:oracle:restframework:read" href="http://localhost:7001/wcps/api/conductor/namespaces/Oracle/scenarios/Hello%20World/definition" rel="alternate" resourceType="urn:oracle:wcps:conductor:scenario"/> </links> <status>PUBLISHED</status> <createdAuthor>weblogic</createdAuthor> <createdDateTime>2010-10-13T14:45:42.525-06:00</createdDateTime> <updatedAuthor>weblogic</updatedAuthor> <updatedDateTime>2010-10-13T14:45:42.525-06:00</updatedDateTime> <scenario> <comments>This scenario returns a Hello World string.</comments> <body> <return> <comments>This is what is returned by the scenario. A static string with the input parameter embedded.</comments> <expression>Hello World with input '${input}'!</expression> </return> </body> <name>Hello World</name> <tags> <tag>hello</tag> <tag>world</tag> </tags> <input-parameters> <parameter required="true">input</parameter> </input-parameters> </scenario> </scenarioMetadata>
JSON
Request: POST http://localhost:7001/wcps/api/conductor/namespaces/Oracle/scenarios?projection=details&startIndex=0&itemsPerPage=10 accept-language: en content-type: application/json accept: application/json { "scenario" : { "tags" : [ "hello", "world" ], "inputParameters" : [ { "value" : "input", "required" : true } ], "name" : "Hello World", "body" : { "statements" : [ { "concreteType" : "urn:oracle:wcps:conductor:scenario:schema:return", "expression" : "Hello World with input '${input}'!", "comments" : "This is what is returned by the scenario. A static string with the input parameter embedded." } ] }, "comments" : "This scenario returns a Hello World string." }, "resourceType" : "urn:oracle:wcps:conductor:scenarioMetadata" } Response: Status Code:201 X-Powered-By: Servlet/2.5 JSP/2.1 Set-Cookie: JSESSIONID=XrT7M2hcNRzpmCKF7SxPNs9phBvfPlsnffy98nRLDL8G52wHwd1y!822326988; path=/wcps; HttpOnly Transfer-Encoding: chunked Content-Type: application/json Location: http://localhost:7001/wcps/api/conductor/namespaces/Oracle/scenarios/Hello%20World Date: Wed, 13 Oct 2010 20:45:48 GMT { "scenario" : { "tags" : [ "hello", "world" ], "inputParameters" : [ { "value" : "input", "required" : true } ], "name" : "Hello World", "body" : { "statements" : [ { "concreteType" : "urn:oracle:wcps:conductor:scenario:schema:return", "expression" : "Hello World with input '${input}'!", "comments" : "This is what is returned by the scenario. A static string with the input parameter embedded." } ] }, "comments" : "This scenario returns a Hello World string." }, "status" : "PUBLISHED", "createdAuthor" : "weblogic", "createdDateTime" : "2010-10-13T14:45:48.681-0600", "updatedAuthor" : "weblogic", "updatedDateTime" : "2010-10-13T14:45:48.681-0600", "resourceType" : "urn:oracle:wcps:conductor:scenarioMetadata", "links" : [ { "resourceType" : "urn:oracle:wcps:conductor:scenarioMetadata", "template" : "http://localhost:7001/wcps/api/conductor/namespaces/Oracle/scenarios/Hello World?projection={projection}&startIndex={startIndex}&itemsPerPage={itemsPerPage}", "capabilities" : "urn:oracle:restframework:read urn:oracle:restframework:update urn:oracle:restframework:delete urn:oracle:restframework:execute", "href" : "http://localhost:7001/wcps/api/conductor/namespaces/Oracle/scenarios/Hello%20World", "rel" : "self" }, { "resourceType" : "urn:oracle:wcps:conductor:scenario", "capabilities" : "urn:oracle:restframework:read", "href" : "http://localhost:7001/wcps/api/conductor/namespaces/Oracle/scenarios/Hello%20World/definition", "rel" : "alternate" } ] }
XML
Request: PUT http://localhost:7001/wcps/api/conductor/namespaces/Oracle/scenarios/Hello%20World?projection=details&startIndex=0&itemsPerPage=10 accept-language: en content-type: application/xml accept: application/xml <?xml version="1.0" encoding="UTF-8"?> <scenarioMetadata resourceType="urn:oracle:wcps:conductor:scenarioMetadata" xmlns:ns2="http://xmlns.oracle.com/wcps/conductor/common/1.0.0" xmlns:ns3="http://xmlns.oracle.com/wcps/conductor/scenarios/1.0.0"> <scenario> <comments>This scenario returns a Hello World string.</comments> <body> <assign-variable> <variable>initVariable</variable> <expression>Hello World with input '${input}'!</expression> </assign-variable> <return> <comments>This is what is returned by the scenario. A static string with the input parameter embedded.</comments> <expression>${initVariable}</expression> </return> </body> <name>Hello World</name> <tags> <tag>hello</tag> <tag>world</tag> </tags> <input-parameters> <parameter required="true">input</parameter> </input-parameters> </scenario> </scenarioMetadata> Response: Status Code:200 Content-Length: 1777 X-Powered-By: Servlet/2.5 JSP/2.1 Set-Cookie: JSESSIONID=CnGYM2hYBBJ2hNPGLkcDG1WWvhP41gBDvBsCwmKpdHvtCJtQL67L!822326988; path=/wcps; HttpOnly Content-Type: application/xml Date: Wed, 13 Oct 2010 20:45:44 GMT <?xml version="1.0" encoding="UTF-8"?> <scenarioMetadata resourceType="urn:oracle:wcps:conductor:scenarioMetadata" xmlns:ns2="http://xmlns.oracle.com/wcps/conductor/common/1.0.0" xmlns:ns3="http://xmlns.oracle.com/wcps/conductor/scenarios/1.0.0"> <links> <link capabilities="urn:oracle:restframework:read urn:oracle:restframework:update urn:oracle:restframework:delete urn:oracle:restframework:execute" href="http://localhost:7001/wcps/api/conductor/namespaces/Oracle/scenarios/Hello%20World" rel="self" resourceType="urn:oracle:wcps:conductor:scenarioMetadata" template="http://localhost:7001/wcps/api/conductor/namespaces/Oracle/scenarios/Hello World?projection={projection}&startIndex={startIndex}&itemsPerPage={itemsPerPage}"/> <link capabilities="urn:oracle:restframework:read" href="http://localhost:7001/wcps/api/conductor/namespaces/Oracle/scenarios/Hello%20World/definition" rel="alternate" resourceType="urn:oracle:wcps:conductor:scenario"/> </links> <status>PUBLISHED</status> <createdAuthor>weblogic</createdAuthor> <createdDateTime>2010-10-13T14:45:42.525-06:00</createdDateTime> <updatedAuthor>weblogic</updatedAuthor> <updatedDateTime>2010-10-13T14:45:44.471-06:00</updatedDateTime> <scenario> <comments>This scenario returns a Hello World string.</comments> <body> <assign-variable> <variable>initVariable</variable> <expression>Hello World with input '${input}'!</expression> </assign-variable> <return> <comments>This is what is returned by the scenario. A static string with the input parameter embedded.</comments> <expression>${initVariable}</expression> </return> </body> <name>Hello World</name> <tags> <tag>hello</tag> <tag>world</tag> </tags> <input-parameters> <parameter required="true">input</parameter> </input-parameters> </scenario> </scenarioMetadata>
JSON
Request: PUT http://localhost:7001/wcps/api/conductor/namespaces/Oracle/scenarios/Hello%20World?projection=details&startIndex=0&itemsPerPage=10 accept-language: en content-type: application/json accept: application/json { "scenario" : { "tags" : [ "hello", "world" ], "inputParameters" : [ { "value" : "input", "required" : true } ], "name" : "Hello World", "body" : { "statements" : [ { "concreteType" : "urn:oracle:wcps:conductor:scenario:schema:variable-assignment", "expression" : "Hello World with input '${input}'!", "variable" : "initVariable" }, { "concreteType" : "urn:oracle:wcps:conductor:scenario:schema:return", "expression" : "${initVariable}", "comments" : "This is what is returned by the scenario. A static string with the input parameter embedded." } ] }, "comments" : "This scenario returns a Hello World string." }, "resourceType" : "urn:oracle:wcps:conductor:scenarioMetadata" } Response: Status Code:200 X-Powered-By: Servlet/2.5 JSP/2.1 Set-Cookie: JSESSIONID=sJBGM2hpTwwM7l3Q7HNnQ8lDpjkqQvkJy4h1Wr11KJFx1gd2XDSY!822326988; path=/wcps; HttpOnly Transfer-Encoding: chunked Content-Type: application/json Date: Wed, 13 Oct 2010 20:45:50 GMT { "scenario" : { "tags" : [ "hello", "world" ], "inputParameters" : [ { "value" : "input", "required" : true } ], "name" : "Hello World", "body" : { "statements" : [ { "concreteType" : "urn:oracle:wcps:conductor:scenario:schema:variable-assignment", "expression" : "Hello World with input '${input}'!", "variable" : "initVariable" }, { "concreteType" : "urn:oracle:wcps:conductor:scenario:schema:return", "expression" : "${initVariable}", "comments" : "This is what is returned by the scenario. A static string with the input parameter embedded." } ] }, "comments" : "This scenario returns a Hello World string." }, "status" : "PUBLISHED", "createdAuthor" : "weblogic", "createdDateTime" : "2010-10-13T14:45:48.681-0600", "updatedAuthor" : "weblogic", "updatedDateTime" : "2010-10-13T14:45:50.533-0600", "resourceType" : "urn:oracle:wcps:conductor:scenarioMetadata", "links" : [ { "resourceType" : "urn:oracle:wcps:conductor:scenarioMetadata", "template" : "http://localhost:7001/wcps/api/conductor/namespaces/Oracle/scenarios/Hello World?projection={projection}&startIndex={startIndex}&itemsPerPage={itemsPerPage}", "capabilities" : "urn:oracle:restframework:read urn:oracle:restframework:update urn:oracle:restframework:delete urn:oracle:restframework:execute", "href" : "http://localhost:7001/wcps/api/conductor/namespaces/Oracle/scenarios/Hello%20World", "rel" : "self" }, { "resourceType" : "urn:oracle:wcps:conductor:scenario", "capabilities" : "urn:oracle:restframework:read", "href" : "http://localhost:7001/wcps/api/conductor/namespaces/Oracle/scenarios/Hello%20World/definition", "rel" : "alternate" } ] }
XML/JSON
Request: DELETE http://localhost:7001/wcps/api/conductor/namespaces/Oracle/scenarios/Hello%20World?projection=details&startIndex=0&itemsPerPage=10 accept-language: en content-type: application/xml accept: application/xml Response: Status Code:204 Content-Length: 0 X-Powered-By: Servlet/2.5 JSP/2.1 Connection: close Set-Cookie: JSESSIONID=nyKyM2WdGDL6v6Qsgpn335Vgzs5b7vnS417p9dcTgGrlv3736mmm!822326988; path=/wcps; HttpOnly Date: Wed, 13 Oct 2010 20:28:45 GMT
XML
Request: POST http://localhost:7001/wcps/api/conductor/namespaces/Oracle/scenarios/Hello%20World?projection=details&startIndex=0&itemsPerPage=10 accept-language: en content-type: application/xml accept: application/xml <?xml version="1.0" encoding="UTF-8"?> <parameters> <parameter> <name>input</name> <value>input parameter value</value> </parameter> </parameters> Response: Status Code:200 Content-Length: 348 X-Powered-By: Servlet/2.5 JSP/2.1 Set-Cookie: JSESSIONID=FlFzM2WchrvP59qBJdbSQldb7TvPQPyRj1HsvJJPCQhKrj7z6zs8!822326988; path=/wcps; HttpOnly Content-Type: application/xml Date: Wed, 13 Oct 2010 20:28:44 GMT <?xml version="1.0" encoding="UTF-8"?> <conductorExecutionResults resourceType="urn:oracle:wcps:conductor:genericType"> <results xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="xs:string">Hello World with input 'input parameter value'!</results> </conductorExecutionResults>
JSON
Request: POST http://localhost:7001/wcps/api/conductor/namespaces/Oracle/scenarios/Hello%20World?projection=details&startIndex=0&itemsPerPage=10 accept-language: en content-type: application/json accept: application/json { "parameters" : [ { "name" : "input", "value" : "input parameter value" } ] } Response: Status Code:200 X-Powered-By: Servlet/2.5 JSP/2.1 Set-Cookie: JSESSIONID=fhJpM2hf45WSGZl3dwwBnMhCkxPbQwQTF9GLZ15QFc42ZQyVKLcj!822326988; path=/wcps; HttpOnly Transfer-Encoding: chunked Content-Type: application/json Date: Wed, 13 Oct 2010 20:45:51 GMT { "results" : "Hello World with input 'input parameter value'!", "resourceType" : "urn:oracle:wcps:conductor:genericType" }
Using Expression Language (EL) expressions, you can call Personalization services from remote clients such as web pages and Java Server Faces environments. You can, for example, use ELs to apply Personalization scenarios to pages in WebCenter Spaces. For more information about Personalization ELs, see also Section G.9, "ELs Related to the Personalization Service."
This section contains the following subsections:
Section 62.4.5.1, "Calling Personalization Client Services from JSF Pages"
Section 62.4.5.2, "Calling Personalization Client Services from JSP Pages"
Section 62.4.5.3, "Personalization Context Object Method Reference"
The Personalization Context is a session-scoped managed bean that is automatically declared and instantiated by the Java Server Faces context, and there for use with the following EL:
#{p13nContext}
Accessing the Conductor context
Access to remote Conductor services can be accessed in the following way:
#{p13nContext.conductor["<UrlOrConnectionName
>"]}
where UrlOrConnectionName
is a URL to the conductor resource index (for example, http://localhost:7001/wcps/api/conductor/resourceIndex
), or a connection name specified in connections.xml
(available only within JDeveloper or WebCenter environments).
If the connection name "default
" is specified, the first connection name that starts with "Conductor
" is retrieved. For example:
#{p13nContext.conductor['default'].namespaces['myNamespace'].scenario['myScenario'].results}
Accessing the Properties service context
Access to remote Properties Service services can be accessed in the following way:
#{p13nContext.properties["<UrlOrConnectionName
>"]}
where UrlOrConnectionName
is a URL to the Properties Service resource index (for example http://localhost:7001/wcps/api/property/resourceIndex
), or a connection name specified in connections.xml
(available only within JDeveloper or WebCenter environments).
If the connection name "default
" is specified, the first connection name that starts with "Properties
" is retrieved. For example:
#{p13nContext.properties['default'].namespaces['myNamespace'].setDefinitions['MyPropertySetDefinition'].sets['MyPropertySet'].results['MyPropertyName']}
Configuring the client services for request scope
You may sometimes need to have the Personalization services client use request scope rather than session scope. To do this, configure a custom managed bean in your application's faces-config
as shown in the example below:
<managed-bean> <managed-bean-name>myP13nContext</managed-bean-name> <managed-bean-class>oracle.wcps.client.PersonalizationContext </managed-bean-class> <managed-bean-scope>request</managed-bean-scope> </managed-bean>
The Personalization client can be used with
JSP pages similarly to the way it is used in Java Server Faces pages (see Section 62.4.5.1, "Calling Personalization Client Services from JSF Pages"). You must, however, register the bean using <jsp:useBean>
as shown in the following example:
<jsp:useBean id="p13nContext" class="oracle.wcps.client.PersonalizationContext" scope="session"/> <c:out value="${p13nContext.conductor['http://weblogic:webl0gic@localhost:7001/wcps/api/conductor'].namespaces['default'].scenario['my_scenario_name'].withInput['question=Does JSP work?'].results}"/>
If you want to clear the bean's state, you can invoke it using scriptlet code by placing it after the <jsp:useBean>
statement:
<jsp:scriptlet>((oracle.wcps.client.PersonalizationContext)session.getAttribute("p13nContext")).reset();</jsp:scriptlet>
Table 62-10 shows the Personalization context object methods.
Table 62-10 Personalization Context Object Method Reference
Method Name | Description | Example |
---|---|---|
reset |
Clears the state of the context object in which it is invoked. |
#{p13nContext.reset} #{p13nContext.conductor['ConductorConnection'].reset} #{p13nContext.conductor['ConductorConnection'].namespaces['MyNamespace'].reset} #{p13nContext.properties['PropertiesConnection'].namespaces['MyNamespace'].setDefinitions['MyPropertySetDefinition'].set['MyPropertySet'].reset} |
update |
Updates the property set with new values if bound to a form. This method only applies to the PropertySetContext. Note: This method can only called as part of a form-based action. |
#{p13nContext.properties['PropertiesConnection'].namespaces['MyNamespace'].setDefinitions['MyPropertySetDefinition'].set['MyPropertySet'].update} |
results |
Retrieves the results of the context object. For PropertySetContext, it retrieves the property set by name and property set definitions, if they exist. For ScenarioExecutionContext and ParameterizedScenarioExecutionContext, the scenario results are retrieved. |
#{p13nContext.properties['PropertiesConnection'].namespaces['MyNamespace'].setDefinitions['MyPropertySetDefinition'].set['MyPropertySet'].results} #{p13nContext.conductor['ConductorConnection'].namespaces['MyNamespace'].scenario['MyScenario'].results} #{p13nContext.conductor['ConductorConnection'].namespaces['MyNamespace'].scenario['MyScenario'].withInput['input1=val1;input2=value2;input3=value3'].results} |
withInput |
Executes a scenario by name with input parameters. Input parameters must be in the format:
where each parameter name and value is separated by semicolon. This method only applies to ScenarioExecutionContext. |
#{p13nContext.conductor['ConductorConnection'].namespaces['MyNamespace'].scenario['MyScenario'].withInput['input1=val1;input2=value2;input3=value3'].results} |
isError |
Determines if an error has occurred in the current context object. Only applies to PropertySetContext and ~ScenarioExecutionContext. |
#{p13nContext.conductor['ConductorConnection'].namespaces[myManagedBean.namespace].scenario[myManagedBean.scenario].isError} #{p13nContext.properties['PropertiesConnection'].namespaces['MyNamespace'].setDefinitions['MyPropertySetDefinition'].set['MyPropertySet'].isError} |
errorMessage |
Returns the error message if an error has occurred in the current context object. Only applies to PropertySetContext and ~ScenarioExecutionContext. |
#{p13nContext.conductor['ConductorConnection'].namespaces[myManagedBean.namespace].scenario[myManagedBean.scenario].errorMessage} #{p13nContext.properties['PropertiesConnection'].namespaces['MyNamespace'].setDefinitions['MyPropertySetDefinition'].set['MyPropertySet'].errorMessage} |
To enable single sign-on, access to the HttpServletRequest
must be available for both JSF and JSP environments. An implementation of javax.servlet.Filter
(PersonalizationFilter
) puts the HttpServletRequest
on ThreadLocal
for access within the client as shown in the example below:
<filter> <description>Personalization Filter for staging client-side objects.</description> <filter-name>PersonalizationFilter</filter-name> <filter-class>oracle.wcps.client.PersonalizationFilter</filter-class> </filter> <filter-mapping> <filter-name>PersonalizationFilter</filter-name> <url-pattern>/*</url-pattern> <dispatcher>REQUEST</dispatcher> </filter-mapping>
This filter is automatically configured in the wcps-services-client-web-lib
.