Skip navigation links


com.essbase.eas.essbase.ui
Class ServerRequestHelper

java.lang.Object
  extended by com.essbase.eas.essbase.ui.ServerRequestHelper


public class ServerRequestHelper
extends java.lang.Object
Since:
6.2.0
Version:
6.5.3
Author:
Hyperion Solutions

Constructor Summary
ServerRequestHelper()
           

 

Method Summary
static void browseHub(Server server)
           
static int compareServerVersions(Server srcServer, Server destServer)
           
static int compareServerVersions(java.lang.String srcServer, java.lang.String destServer)
           
static boolean dumpSecurityFile(Server server, java.lang.String easLocation)
           
protected static boolean executeSetEASLocation(MaxLCommand maxlCmd, Server server, java.lang.String hostNameAndPort)
           
protected static boolean executeSetEASLocation(MaxLCommand maxlCmd, Server server, java.lang.String easHostName, java.lang.String easPort)
           
static java.lang.String getClusterName(Server server)
           
static java.lang.String[] getEASUrl()
           
static java.io.File getEssbaseCfgDocument(Server server)
           
protected static java.lang.String getSetEasLocCmdString(Server essbaseServer, java.lang.String hostName, java.lang.String port)
           
protected static java.lang.String getSetEasLocCmdString(java.lang.String hostNameAndPort, boolean isSSL)
           
static java.lang.Object getUserObject()
           
static boolean isEssbaseCasEnabled(Server server)
          Call this method only when server connects or reconnects.
static boolean isExternalUser(Server server, java.lang.String username, boolean checkForUser)
           
static void requestAddServer()
           
static boolean requestDeleteExportDirectory(java.lang.String server, java.lang.String directory)
           
static boolean requestDeleteServerLog(java.lang.Object obj)
          This method handles requests to delete server logs.
static void requestDisconnectServer(java.lang.Object obj)
           
static void requestDisplayServerPasswordDialog(java.lang.Object obj)
           
static void requestEmailProperties(java.lang.Object obj, java.lang.String title)
          Send a request to the server to email properties for the requested object.
static void requestExternalAuthenticationStatus(Server server)
          Request the external authentication status from the server.
static EssbaseMessage requestExternalAuthenticationStatus(java.lang.String serverName)
          Request the external authentication status from an unconnected server.
static Version requestGetEssbaseVersion(Server server)
           
static java.util.List requestGetExportDirectoryList(java.lang.String server)
           
static boolean requestLoginSetPassword(java.lang.String serverName, java.lang.String userName, java.lang.String password, java.lang.String newPassword)
          This method login's ot the Essbase server and changes password at the time of login.
static boolean requestRegisterServer(java.lang.String serverName, boolean registerServer)
           
static void requestRemoveServer(java.lang.String serverName)
           
static boolean requestServerLicense(Server server)
           
static java.lang.String requestServerLocaleString(java.lang.String serverName)
           
static void requestServerProperties(java.lang.Object obj, boolean refresh, int subset)
           
static void requestServerProperties(java.lang.Object obj, boolean refresh, int subset, boolean background)
          Request server properties in the background.
static void requestStartServer(java.lang.String serverName, java.lang.String password)
           
static void requestStopServer(Server server)
           
static boolean requestSyncSecurityBackup(Server server)
           
static void requestViewServerLog(java.lang.Object obj)
          This method handles requests to view server logs.
static void setEASLocation(Server server)
           
static boolean switchToCas(Server server, int passwordOption, java.lang.String commonPwd, java.lang.String savePwdFile, java.lang.String easLocation, boolean forceOverwritePwdFile)
           
static boolean syncSecurityWithHub(Server server, java.lang.String user, boolean background)
           
static boolean updateEssbaseCfg(Server server, java.io.File essCfgFile)
           
static boolean validateEssbaseConnection(java.lang.String server, java.lang.String user, java.lang.String password)
          This method validates that the provided username, password and server are valid by attempting to make a connection with Essbase using those parameters.

 

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

 

Constructor Detail

ServerRequestHelper

public ServerRequestHelper()

Method Detail

getUserObject

public static java.lang.Object getUserObject()

requestDisconnectServer

public static void requestDisconnectServer(java.lang.Object obj)

requestDisplayServerPasswordDialog

public static void requestDisplayServerPasswordDialog(java.lang.Object obj)

requestStartServer

public static void requestStartServer(java.lang.String serverName,
                                      java.lang.String password)

requestStopServer

public static void requestStopServer(Server server)

requestViewServerLog

public static void requestViewServerLog(java.lang.Object obj)
This method handles requests to view server logs.

requestLoginSetPassword

public static boolean requestLoginSetPassword(java.lang.String serverName,
                                              java.lang.String userName,
                                              java.lang.String password,
                                              java.lang.String newPassword)
This method login's ot the Essbase server and changes password at the time of login.

requestDeleteServerLog

public static boolean requestDeleteServerLog(java.lang.Object obj)
This method handles requests to delete server logs.

requestServerLicense

public static boolean requestServerLicense(Server server)

requestServerProperties

public static void requestServerProperties(java.lang.Object obj,
                                           boolean refresh,
                                           int subset)

requestServerProperties

public static void requestServerProperties(java.lang.Object obj,
                                           boolean refresh,
                                           int subset,
                                           boolean background)
Request server properties in the background. Used specifically by requestExternalAuthenticationStatus because of the length of time it takes.
Parameters:
obj -
refresh -
subset -
background -

requestEmailProperties

public static void requestEmailProperties(java.lang.Object obj,
                                          java.lang.String title)
Send a request to the server to email properties for the requested object.
Parameters:
the - Server, Application or Database object

requestSyncSecurityBackup

public static boolean requestSyncSecurityBackup(Server server)

requestGetEssbaseVersion

public static Version requestGetEssbaseVersion(Server server)

requestGetExportDirectoryList

public static java.util.List requestGetExportDirectoryList(java.lang.String server)

requestDeleteExportDirectory

public static boolean requestDeleteExportDirectory(java.lang.String server,
                                                   java.lang.String directory)

validateEssbaseConnection

public static boolean validateEssbaseConnection(java.lang.String server,
                                                java.lang.String user,
                                                java.lang.String password)
This method validates that the provided username, password and server are valid by attempting to make a connection with Essbase using those parameters. No prior connection to the tested Essbase server is required.
Parameters:
server - the server to check for
user - either a username or the ParameterKey.TOKEN if this is an external user
password - the users password
Returns:
true if the user can be validated

requestExternalAuthenticationStatus

public static void requestExternalAuthenticationStatus(Server server)
Request the external authentication status from the server. Sets the status into the ServerProperties if not already retrieved

requestExternalAuthenticationStatus

public static EssbaseMessage requestExternalAuthenticationStatus(java.lang.String serverName)
Request the external authentication status from an unconnected server.
Returns:
true

isExternalUser

public static boolean isExternalUser(Server server,
                                     java.lang.String username,
                                     boolean checkForUser)

requestServerLocaleString

public static java.lang.String requestServerLocaleString(java.lang.String serverName)

compareServerVersions

public static int compareServerVersions(java.lang.String srcServer,
                                        java.lang.String destServer)
                                 throws FrameworkException
Parameters:
srcServer - - the source Server
destServer - - the destination server
Returns:
int -1 is srcServer is newer than destServer 0 when srcServer and destServer have the same release 1 when the srcServer is older than destServer
Throws:
FrameworkException

compareServerVersions

public static int compareServerVersions(Server srcServer,
                                        Server destServer)
                                 throws FrameworkException
Parameters:
srcServer - - the source Server
destServer - - the destination server
Returns:
int -1 is srcServer is newer than destServer 0 when srcServer and destServer have the same release 1 when the srcServer is older than destServer
Throws:
FrameworkException

requestAddServer

public static void requestAddServer()

requestRemoveServer

public static void requestRemoveServer(java.lang.String serverName)

requestRegisterServer

public static boolean requestRegisterServer(java.lang.String serverName,
                                            boolean registerServer)

browseHub

public static void browseHub(Server server)

isEssbaseCasEnabled

public static boolean isEssbaseCasEnabled(Server server)
Call this method only when server connects or reconnects. Should not be used anywhere else.
Parameters:
server - - Essbase server
Returns:
true if Essbase server is in CAS mode otherwise false.

switchToCas

public static boolean switchToCas(Server server,
                                  int passwordOption,
                                  java.lang.String commonPwd,
                                  java.lang.String savePwdFile,
                                  java.lang.String easLocation,
                                  boolean forceOverwritePwdFile)

dumpSecurityFile

public static boolean dumpSecurityFile(Server server,
                                       java.lang.String easLocation)

setEASLocation

public static void setEASLocation(Server server)

executeSetEASLocation

protected static boolean executeSetEASLocation(MaxLCommand maxlCmd,
                                               Server server,
                                               java.lang.String hostNameAndPort)

executeSetEASLocation

protected static boolean executeSetEASLocation(MaxLCommand maxlCmd,
                                               Server server,
                                               java.lang.String easHostName,
                                               java.lang.String easPort)

getSetEasLocCmdString

protected static java.lang.String getSetEasLocCmdString(Server essbaseServer,
                                                        java.lang.String hostName,
                                                        java.lang.String port)

getSetEasLocCmdString

protected static java.lang.String getSetEasLocCmdString(java.lang.String hostNameAndPort,
                                                        boolean isSSL)

getEASUrl

public static java.lang.String[] getEASUrl()

syncSecurityWithHub

public static boolean syncSecurityWithHub(Server server,
                                          java.lang.String user,
                                          boolean background)

getEssbaseCfgDocument

public static java.io.File getEssbaseCfgDocument(Server server)

updateEssbaseCfg

public static boolean updateEssbaseCfg(Server server,
                                       java.io.File essCfgFile)

getClusterName

public static java.lang.String getClusterName(Server server)


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