The explorer is a graphical user interface for browsing and managing objects in the persistence Catalog in a Java-client application. The Explorer
class is in the oracle.dss.persistence.gui
package.
Providing that they have sufficient privileges, users can perform the following operations through the explorer:
Create folders
Rename folders and components
Delete folders
Move folders and components
Copy and paste folders and components
Display properties of folders and components
Modify access rights of folders or components (requires FULL_CONTROL
privilege)
When you use the explorer as a user interface, you do not need to call methods of the persistence service to accomplish the tasks that users specify in the user interface. The explorer calls the necessary methods of the persistence service. The only thing that you must provide is the initial context.
The following code shows how to instantiate the explorer so that users can interact with it to manage objects and folders.
//create the hash table and set environment properties Hashtable persistenceEnvironment = new Hashtable(); persistenceEnvironment.put(PSRConstants.Login.USER_NAME, "REL2"); persistenceEnvironment.put(PSRConstants.Login.PASSWORD, "REL2"); persistenceEnvironment.put(PSRConstants.Login.SERVICE, "SJ816SUN"); persistenceEnvironment.put(Context.SECURITY_PRINCIPAL, "REL2"); //create initial contextInitialPersistenceManager pmRoot = null; try{ pmRoot = new InitialPersistenceManager(persistenceEnvironment); //pass the initial context to the constructor for the explorer Explorer explorer = new Explorer(pmRoot); explorer.setVisible(true); } catch (NamingException ne){ ne.printStackTrace(); }