Skip navigation links


com.essbase.eas.admin.client
Class ObjectFactory

java.lang.Object
  extended by com.essbase.eas.admin.client.ObjectFactory


public class ObjectFactory
extends java.lang.Object

Implements static methods for creating default Tomcat server objects and ensuring they are correctly linked.

Since:
6.5.1
Version:
7.1
Author:
Hung Vo

Method Summary
static void connectServer(Server server)
           
static Server createServer(java.lang.String name)
          creates an Tomcat Server object, and places it in a global list of servers.
static User createUser(java.lang.String name, java.lang.String pwd, boolean isExternal, java.lang.String address, java.lang.String email, java.lang.String adminPriv, AdminServer server)
           
static User createUser(java.lang.String name, java.lang.String pwd, boolean isExternal, java.lang.String address, java.lang.String email, java.lang.String adminPriv, java.lang.String servername)
          Create a user for the server
static User createUser(java.lang.String name, java.lang.String pwd, java.lang.String adminPriv, AdminServer server)
           
static User createUser(java.lang.String name, java.lang.String pwd, java.lang.String adminPriv, java.lang.String servername)
           
static void disconnectServer(Server server)
           
static Server getServer(java.lang.String name)
          returns the corresponding server object for a name.
static Server[] getServers()
          returns an array containing all of the server objects that have been created.
static void removeServer(java.lang.String name)
          Remove a server from the object factory

 

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

 

Method Detail

createServer

public static Server createServer(java.lang.String name)
creates an Tomcat Server object, and places it in a global list of servers.

getServers

public static Server[] getServers()
returns an array containing all of the server objects that have been created.

getServer

public static Server getServer(java.lang.String name)
returns the corresponding server object for a name.

removeServer

public static void removeServer(java.lang.String name)
Remove a server from the object factory
Parameters:
name -

disconnectServer

public static void disconnectServer(Server server)

connectServer

public static void connectServer(Server server)

createUser

public static User createUser(java.lang.String name,
                              java.lang.String pwd,
                              boolean isExternal,
                              java.lang.String address,
                              java.lang.String email,
                              java.lang.String adminPriv,
                              java.lang.String servername)
Create a user for the server
Parameters:
name -
pwd -
isExternal -
address -
email -
adminPriv -
servername -
Returns:

createUser

public static User createUser(java.lang.String name,
                              java.lang.String pwd,
                              boolean isExternal,
                              java.lang.String address,
                              java.lang.String email,
                              java.lang.String adminPriv,
                              AdminServer server)
Parameters:
name -
pwd -
isExternal -
address -
email -
adminPriv -
server -
Returns:

createUser

public static User createUser(java.lang.String name,
                              java.lang.String pwd,
                              java.lang.String adminPriv,
                              AdminServer server)
Parameters:
name -
pwd -
adminPriv -
server -
Returns:

createUser

public static User createUser(java.lang.String name,
                              java.lang.String pwd,
                              java.lang.String adminPriv,
                              java.lang.String servername)
Parameters:
name -
pwd -
adminPriv -
servername -
Returns:

Skip navigation links


Copyright © 2001, 2012, Oracle. All rights reserved.