|
Oracle Fusion Middleware Java API Reference for Oracle ADF Share 11g Release 1 (11.1.1) E10686-03 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
oracle.adf.share.jndi.ReferenceStoreHelper
public class ReferenceStoreHelper
ReferenceStoreHelper is a helper class that manages the conversion of JNDI Reference objects to/from their persistent representation. This includes the persistence of SecureRefAddr objects using the Credential Store. All APIs operate on JNDI Reference objects so the client does not need to know anything about the serialized form of the References or how to convert JNDI Reference objects to or from the JAXB/Credential Store representation
Constructor Summary | |
---|---|
ReferenceStoreHelper() |
Method Summary | |
---|---|
void |
addJarReferences(java.util.List<oracle.adf.share.jndi.xml.v2.ReferenceListType> refList) |
void |
addReference(java.lang.String id, javax.naming.Reference ref) Add a new javax.naming.Reference to the reference store. |
void |
destroy() Release any resources being held by the ReferenceStoreHelper instance. |
boolean |
exists(java.lang.String id) Returns true if a Reference with the specified ID exists in the reference store |
javax.naming.Reference |
findReference(java.lang.String id) Return the Reference for the specified ID. |
ADFLogger |
getLogger() |
java.lang.Object |
getObjectForReference(java.lang.String id) Get the Object identified by "id". |
java.lang.Object |
getObjectForReference(java.lang.String id, javax.naming.Reference reference) |
oracle.adf.share.jndi.xml.v2.ReferenceListType |
getReferences() Get the References object that is being maintained by this ReferenceStoreHelper instance. |
java.util.Map |
getReferencesMap() Return a Map containing a javax.naming.Reference object for each corresponding JAXB ReferenceType. |
java.util.Map |
getReferencesMapEx(boolean includeExceptions) Return a Map containing a javax.naming.Reference object for each corresponding JAXB ReferenceType. |
oracle.adf.share.jndi.xml.v2.ReferenceListType |
getSaveableReferences() |
void |
init(oracle.adf.share.jndi.xml.v2.ReferenceListType refs, javax.naming.Context ctx, java.util.Hashtable env) Initialize the ReferenceStoreHelper. |
void |
removeReference(java.lang.String id) Remove a Reference from the reference store. |
void |
saveCredentials() Write the accummulated changes to the Credential Store. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ReferenceStoreHelper()
Method Detail |
---|
public void init(oracle.adf.share.jndi.xml.v2.ReferenceListType refs, javax.naming.Context ctx, java.util.Hashtable env)
refs
- JAXB ReferenceListType object that will be used to marshal/ unmarshal the Referencesctx
- Context this ReferenceStoreHelper is associated with.env
- Environment hashtable containing the security credentials that should be used to access the Credential Storepublic oracle.adf.share.jndi.xml.v2.ReferenceListType getReferences()
public oracle.adf.share.jndi.xml.v2.ReferenceListType getSaveableReferences()
public ADFLogger getLogger()
public void addJarReferences(java.util.List<oracle.adf.share.jndi.xml.v2.ReferenceListType> refList) throws java.lang.Exception
java.lang.Exception
public javax.naming.Reference findReference(java.lang.String id) throws javax.naming.NamingException
id
- ID of the JNDI Reference to be returnedjavax.naming.NamingException
- if an exception occurs locating the specified JAXB ReferenceType or converting the JAXB ReferenceType into a JNDI Referencepublic boolean exists(java.lang.String id) throws javax.naming.NamingException
id
- ID of the referencejavax.naming.NamingException
- if an exception occurs determining if the reference exists or not.public java.lang.Object getObjectForReference(java.lang.String id) throws java.lang.Exception
id
- ID of the object to be returnedjava.lang.Exception
- if an exception occurs locating the Reference or re-creating the object described by the Referencepublic java.lang.Object getObjectForReference(java.lang.String id, javax.naming.Reference reference) throws java.lang.Exception
java.lang.Exception
public java.util.Map getReferencesMapEx(boolean includeExceptions) throws javax.naming.NamingException
javax.naming.NamingException
- if an exception occurs populating the Map.public java.util.Map getReferencesMap() throws javax.naming.NamingException
javax.naming.NamingException
- if an exception occurs populating the Map.public void addReference(java.lang.String id, javax.naming.Reference ref) throws javax.naming.NamingException
id
- ID of the Referenceref
- the Reference to be addedjavax.naming.NamingException
- if an exception occurs adding the Referencepublic void removeReference(java.lang.String id) throws javax.naming.NamingException
id
- ID of the Reference to be removedjavax.naming.NamingException
- if an exception occurs removing the Referencepublic void saveCredentials() throws java.lang.Exception
java.lang.Exception
- if an exception occurs writing the accummulated changes to the Credential Storepublic void destroy()
|
Oracle Fusion Middleware Java API Reference for Oracle ADF Share 11g Release 1 (11.1.1) E10686-03 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |