Oracle® Content Services Web Services Java API Reference
10g Release 1 (10.1.1)

B19047-01


oracle.ifs.fdk
Class Preference

java.lang.Object
  extended byoracle.ifs.fdk.NamedValue
      extended byoracle.ifs.fdk.Preference

All Implemented Interfaces:
java.io.Serializable

public class Preference
extends NamedValue
implements java.io.Serializable

A Preference represents a preference value. In addition, it indicates if the preference value can be overridden by the user.


Constructor Summary
Preference()
Construct Preference.
Preference(java.lang.String name, java.lang.Object value)
Construct a Preference.
Preference(java.lang.String name, java.lang.Object value, boolean isLocked)
Construct a Preference.

Method Summary
boolean isLocked()
Whether the preference is locked from override.
void setLocked(boolean isLocked)
Indicate whether the preference value is overridable.

Methods inherited from class oracle.ifs.fdk.NamedValue
getName, getValue, mapToNamedValues, namedValuesToMap, setName, setValue, toString

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

Constructor Detail

Preference

public Preference()
Construct Preference.

Required constructor in order to be a Java Bean.


Preference

public Preference(java.lang.String name,
                  java.lang.Object value)
Construct a Preference.

For use in specifying a Preference as an input to a call to (for example) setUserPreference.

Parameters:
name - the name of the preference value
value - the value of the preference value

Preference

public Preference(java.lang.String name,
                  java.lang.Object value,
                  boolean isLocked)
Construct a Preference.

For use internally to construct a Preference as a return value from (for example) getUserPreference.

Parameters:
name - the name of the preference value
value - the value of the preference value
isLocked - indicates if the preference value is overridable

Method Detail

isLocked

public boolean isLocked()
Whether the preference is locked from override.
Returns:
an indication as to whether the preference value is overridable

setLocked

public void setLocked(boolean isLocked)
Indicate whether the preference value is overridable.

This method may be used in conjunction with the non-arg constructor variant. The value is not actually set untill one of the UserManager's set<xxx>UserPreference is invoked.

Parameters:
isLocked - indicates if the preference value is overridable

Oracle® Content Services Web Services Java API Reference
10g Release 1 (10.1.1)

B19047-01


Copyright © 2002, 2005, Oracle. All rights reserved.