Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle WebCenter Portal
11g Release 1 (11.1.1.6.0)
E15995-05


oracle.wcps.property
Interface IContext

All Known Implementing Classes:
PropertyServiceContext

public interface IContext

The property service context interface to manage set of properties used by the property service. It also provides commonly used keys to store values for them.


Field Summary
static java.lang.String ACCEPT_HEADER_KEY
          The property key for storing the accept HTTP request header.
static java.lang.String BASE
           
static java.lang.String CONTENT_TYPE_HEADER_KEY
          The property key for storing the Content-Type HTTP request header property.
static java.lang.String HTTP_REQUEST_KEY
          The property key for storing the current HTTP Servlet request property.
static java.lang.String HTTP_RESPONSE_KEY
          The property key for storing the current HTTP Servlet response property.
static IContext NULL
          The null context, can be used to access property service api locally.
static java.lang.String OPTIMISTIC_CONCURRENCY_PROP_KEY
          The property key for storing the optimistic concurrency property.
static java.lang.String PASSWORD_KEY
          The property key for storing the password associated with a username.
static java.lang.String URI_KEY
          The property key for storing a base uri.
static java.lang.String USERNAME_KEY
          The property key for storing a username.

 

Method Summary
 java.lang.String currentUser()
          Returns the authenticated user's name.
 java.lang.Object getProperty(java.lang.String key)
          Returns the value stored for the given key, otherwise null.
 boolean isOptimisticConcurrencyEnabled()
          Returns true if the optimistic concurrency feature is enabled, other wise false.

 

Field Detail

NULL

static final IContext NULL
The null context, can be used to access property service api locally.

BASE

static final java.lang.String BASE
See Also:
Constant Field Values

URI_KEY

static final java.lang.String URI_KEY
The property key for storing a base uri. The property value is the base uri for property service REST API.
See Also:
Constant Field Values

USERNAME_KEY

static final java.lang.String USERNAME_KEY
The property key for storing a username. The property value is a username that can be authenticated and access property service API and rest API.
See Also:
Constant Field Values

PASSWORD_KEY

static final java.lang.String PASSWORD_KEY
The property key for storing the password associated with a username.
See Also:
Constant Field Values

ACCEPT_HEADER_KEY

static final java.lang.String ACCEPT_HEADER_KEY
The property key for storing the accept HTTP request header. The property value can be "application/xml" or "application/json".
See Also:
Constant Field Values

CONTENT_TYPE_HEADER_KEY

static final java.lang.String CONTENT_TYPE_HEADER_KEY
The property key for storing the Content-Type HTTP request header property. The property value can be "application/xml" or "application/json".
See Also:
Constant Field Values

HTTP_REQUEST_KEY

static final java.lang.String HTTP_REQUEST_KEY
The property key for storing the current HTTP Servlet request property. The property value is an javax.servlet.HttpServletRequest instance.
See Also:
Constant Field Values

HTTP_RESPONSE_KEY

static final java.lang.String HTTP_RESPONSE_KEY
The property key for storing the current HTTP Servlet response property. The property value is an javax.servlet.HttpServletResponse instance.
See Also:
Constant Field Values

OPTIMISTIC_CONCURRENCY_PROP_KEY

static final java.lang.String OPTIMISTIC_CONCURRENCY_PROP_KEY
The property key for storing the optimistic concurrency property. The property value is a boolean.
See Also:
Constant Field Values

Method Detail

getProperty

java.lang.Object getProperty(java.lang.String key)
Returns the value stored for the given key, otherwise null.
Parameters:
key - a property key
Returns:
the value associated with the specified key.

currentUser

java.lang.String currentUser()
Returns the authenticated user's name.
Returns:
the authenticated user's name.

isOptimisticConcurrencyEnabled

boolean isOptimisticConcurrencyEnabled()
Returns true if the optimistic concurrency feature is enabled, other wise false.

By default last update/delete is preserved when concurrent updates and deletes to property service entities are done. To change this behavior to optimistic concurrency set the system property -Doracle.wcps.property.optimistic.concurrency.enable=true at server startup.

Returns:
true if the optimistic concurrency feature is enabled.

Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle WebCenter Portal
11g Release 1 (11.1.1.6.0)
E15995-05


Copyright © 2009, 2012, Oracle and/or its affiliates. All rights reserved.