Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle WebCenter
11g Release 1 (11.1.1.4.0)
E15995-03


oracle.wcps.property
Class PropertyServiceContext

java.lang.Object
  extended by oracle.wcps.property.PropertyServiceContext

All Implemented Interfaces:
IContext

public class PropertyServiceContext
extends java.lang.Object
implements IContext

A concrete property service context object. To access property service locally IContext.NULL can be used. To access property service remotely the following properties are required

  1. IContext.URI_KEY
  2. IContext.USERNAME_KEY
  3. IContext.PASSWORD_KEY
See Also:
PropertyServiceContext.Builder.withUri(String), PropertyServiceContext.Builder.withUserName(String), PropertyServiceContext.Builder.withPassword(String)

Nested Class Summary
static class PropertyServiceContext.Builder
          A builder class to create an instance of IContext.

 

Field Summary
static java.util.List<java.lang.String> SUPPORTED_CONTENT_TYPES
           

 

Fields inherited from interface oracle.wcps.property.IContext
ACCEPT_HEADER_KEY, BASE, CONTENT_TYPE_HEADER_KEY, HTTP_REQUEST_KEY, HTTP_RESPONSE_KEY, NULL, OPTIMISTIC_CONCURRENCY_PROP_KEY, PASSWORD_KEY, URI_KEY, USERNAME_KEY

 

Method Summary
static PropertyServiceContext.Builder builder()
          A builder to create this.
 void clearInternalProperties()
           
 java.lang.String currentUser()
          Returns the authenticated user's name.
 boolean equals(java.lang.Object o)
           
 java.lang.Object getInternalProperty(java.lang.String key)
           
 java.lang.Object getProperty(java.lang.String key)
          Returns the value stored for the given key, otherwise null.
 int hashCode()
           
 boolean isOptimisticConcurrencyEnabled()
          Returns true if the optimistic concurrency feature is enabled, other wise false.
 void removeInternalProperty(java.lang.String key)
           
 void setInternalProperty(java.lang.String key, java.lang.Object value)
           

 

Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait

 

Field Detail

SUPPORTED_CONTENT_TYPES

public static final java.util.List<java.lang.String> SUPPORTED_CONTENT_TYPES

Method Detail

isOptimisticConcurrencyEnabled

public boolean isOptimisticConcurrencyEnabled()
Description copied from interface: IContext
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.

Specified by:
isOptimisticConcurrencyEnabled in interface IContext
Returns:
true if the optimistic concurrency feature is enabled.

getProperty

public java.lang.Object getProperty(java.lang.String key)
Description copied from interface: IContext
Returns the value stored for the given key, otherwise null.
Specified by:
getProperty in interface IContext
Parameters:
key - a property key
Returns:
the value associated with the specified key.

currentUser

public java.lang.String currentUser()
Description copied from interface: IContext
Returns the authenticated user's name.
Specified by:
currentUser in interface IContext
Returns:
the authenticated user's name.

getInternalProperty

public java.lang.Object getInternalProperty(java.lang.String key)

setInternalProperty

public void setInternalProperty(java.lang.String key,
                                java.lang.Object value)

removeInternalProperty

public void removeInternalProperty(java.lang.String key)

clearInternalProperties

public void clearInternalProperties()

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

builder

public static PropertyServiceContext.Builder builder()
A builder to create this.
Returns:
the PropertyServiceContext builder

Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle WebCenter
11g Release 1 (11.1.1.4.0)
E15995-03


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