Skip navigation links

Oracle Internet Directory API Reference
11g Release 1 (11.1.1)

E10664-01


oracle.idm.provisioning.configuration
Class AttrLOV

java.lang.Object
  extended by oracle.idm.provisioning.configuration.AttrLOV

All Implemented Interfaces:
java.io.Serializable

public class AttrLOV
extends java.lang.Object
implements java.io.Serializable

This class represents LOVs(list of values) of an attribute. The attribute can be either be base attribute or an application specific attribute. Each entry in LOV is assumed to have a real value. The real value corresponds to multiple display values with one display value for one specified langauage. This class also provides support for obtaining language(Locale) specific display value of LOV entries.

See Also:
Serialized Form

Field Summary
static int DYNAMICLOV
           
static int STATICLOV
           

 

Method Summary
 boolean addDisplayRealPair(java.lang.String display, java.lang.String real)
          This method adds real value and corresponding display value pair to this object.
 boolean addDisplayRealPair(java.lang.String display, java.lang.String real, java.util.Locale locale)
          This method adds real value and corresponding locale specfic display value pair to this object.
static AttrLOV createAttrLOV(java.lang.String attrname, javax.naming.directory.DirContext ctx, java.lang.String attrdn, javax.naming.directory.Attributes attrEntry)
          Factory method for creating instances of this class.
 java.lang.String getDisplayVal(java.lang.String realval)
          This methods returns "default" display value corresponding to the real value.
 java.lang.String getDisplayVal(java.lang.String realval, java.util.Locale locale)
          This methods returns "language specific" display value corresponding to the real value.
 int getLOVType()
          This methods returns one of the followings STATICLOV - LOV supports external representation for UI displayname and related value for setting the internal value of the attribute DYNAMICLOV - LOV uses the value as display and internal setting
 java.lang.String[] getRealVals()
          This methods returns array of all real values.
 int getSize()
          Returns LOV size.
 java.util.List getSortedDisplayRealPairs(java.util.Locale locale)
          This methods returns List of all Display-real value pairs present in this object.
static void main(java.lang.String[] args)
           
 boolean persistToDIR(javax.naming.directory.DirContext dirctx)
          To persist LOV information to OID.
 java.lang.String toString()
           

 

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

 

Field Detail

STATICLOV

public static int STATICLOV

DYNAMICLOV

public static int DYNAMICLOV

Method Detail

createAttrLOV

public static AttrLOV createAttrLOV(java.lang.String attrname,
                                    javax.naming.directory.DirContext ctx,
                                    java.lang.String attrdn,
                                    javax.naming.directory.Attributes attrEntry)
Factory method for creating instances of this class. The method first performs ONE LEVEL search on attribute configuration entry. If search returns entries then these are assumed to be lov entries and AttrLOV instance is created with them. If search return no entries then AttrLOV instance is created with values of attribute "orcldaslov" in attribute configuration entry.
Parameters:
attrname - attribute name
ctx - Directory context required for search
attrdn - DN of attribute configuration entry
attrEntry - attributes of attribute configration entry

persistToDIR

public boolean persistToDIR(javax.naming.directory.DirContext dirctx)
                     throws java.lang.Exception
To persist LOV information to OID. This method will write information to OID only using the new scheme. ie. it will write LOV information to OID as entries ONE LEVEL below the attribute configuration entry. TO BE IMPLEMENTED YET !!!
Throws:
java.lang.Exception

getSize

public int getSize()
Returns LOV size.

addDisplayRealPair

public boolean addDisplayRealPair(java.lang.String display,
                                  java.lang.String real)
This method adds real value and corresponding display value pair to this object. The display value is set as "default display value" for the specified real value.
Parameters:
display - display value
real - real value

addDisplayRealPair

public boolean addDisplayRealPair(java.lang.String display,
                                  java.lang.String real,
                                  java.util.Locale locale)
This method adds real value and corresponding locale specfic display value pair to this object. The display value is set as "language specific display value" for the specified real value.
Parameters:
display - display value
real - real value
locale - locale specfiying the language

getDisplayVal

public java.lang.String getDisplayVal(java.lang.String realval)
This methods returns "default" display value corresponding to the real value.
Parameters:
realval - real value

getDisplayVal

public java.lang.String getDisplayVal(java.lang.String realval,
                                      java.util.Locale locale)
This methods returns "language specific" display value corresponding to the real value.
Parameters:
realval - real value
locale - locale specifying the language

getRealVals

public java.lang.String[] getRealVals()
This methods returns array of all real values.

getSortedDisplayRealPairs

public java.util.List getSortedDisplayRealPairs(java.util.Locale locale)
This methods returns List of all Display-real value pairs present in this object. The Display values are specific to langauage specfied by locale. Each element in List is a String array with first and second element being display and real values respectively. The List is sorted(ignore case) on display values.
Parameters:
locale - locale specifying the language

getLOVType

public int getLOVType()
This methods returns one of the followings STATICLOV - LOV supports external representation for UI displayname and related value for setting the internal value of the attribute DYNAMICLOV - LOV uses the value as display and internal setting

main

public static void main(java.lang.String[] args)

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

Skip navigation links

Oracle Internet Directory API Reference
11g Release 1 (11.1.1)

E10664-01


Copyright © 1999, 2009 Oracle. All Rights Reserved.