Skip navigation links


com.essbase.eas.server
Class LoginCommandListener

java.lang.Object
  extended by com.essbase.eas.framework.server.application.DefaultApplicationPart
      extended by com.essbase.eas.framework.server.application.AbstractCommandListener
          extended by com.essbase.eas.server.LoginCommandListener

All Implemented Interfaces:
ApplicationPart, CommandListener

public class LoginCommandListener
extends AbstractCommandListener

LoginCommandListener This class listens for login commands

Since:
6.2.0
Version:
6.5.4
Author:
Brendan Gaul

Field Summary
static CommandDescriptor GET_HTTPS_OPTIONS
           
static CommandDescriptor GET_HTTPS_PORT
           
static CommandDescriptor IS_CONNECTED
           
static CommandDescriptor LOGIN_SET_NATIVE_PASSWORD
           

 

Fields inherited from class com.essbase.eas.framework.server.application.AbstractCommandListener
aliasMap, methodMap, RESULT, THERESULT, UPLOAD

 

Fields inherited from class com.essbase.eas.framework.server.application.DefaultApplicationPart
CHAIN_SEPARATOR, manager, parts, serviceContext, serviceManager, state, STATE_BEFORE_WORKERS_ASSIGNED, STATE_CONSTRUCTED, STATE_DESTROYED, STATE_INITIALIZED, STATE_MANAGED, STATE_NULL, STATE_WORKERS_ASSIGNED, STATE_WORKERS_INITIALIZED, storeService

 

Constructor Summary
LoginCommandListener()
           

 

Method Summary
 void doLogin(CommandEvent ae)
           
 void doLogout(CommandEvent ae)
           
 CommandDescriptor[] getCommands()
          Implementation of the CommandListener.getCommands() method.
 boolean getHttpsOptions(CommandEvent theEvent, ServiceContext theContext)
          Return the HTTPS options used on the server.
 boolean getHttpsPort(CommandEvent theEvent, ServiceContext theContext)
          Return the HTTPS_PORT used on the server.
 boolean getLoggedOnUsers(CommandEvent ae)
           
 boolean isConnected(CommandEvent theEvent, ServiceContext theContext)
          Used to determine is a server is running or a user is connected.
 boolean loginSetNativePassword(CommandEvent theEvent, ServiceContext theContext, java.lang.String serverName, java.lang.String userName, java.lang.String password, java.lang.String newPassword)
          Login and change password at timeof login.

 

Methods inherited from class com.essbase.eas.framework.server.application.AbstractCommandListener
addMethodAlias, addMethodAlias, assignWorkers, buildMethodMap, convertStringValueToArgument, getArgumentsForCommand, getMethod, getMethodForAlias, getRoles, getSessionObject, handleEvent, handleEventException, handleEventPost, handleEventPrep, init, isRequestFromSameServer, removeSessionObject, setServiceResult, setSessionObject

 

Methods inherited from class com.essbase.eas.framework.server.application.DefaultApplicationPart
destroy, getManager, getManagerChain, getServiceContext, getServiceManager, getStoreService, initWorkers, requestPart, requestPartPool, setManager

 

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

 

Methods inherited from interface com.essbase.eas.framework.server.defs.ApplicationPart
destroy, getManager, getServiceContext, getServiceManager, getStoreService, initWorkers, setManager

 

Field Detail

GET_HTTPS_PORT

public static final CommandDescriptor GET_HTTPS_PORT

IS_CONNECTED

public static final CommandDescriptor IS_CONNECTED

GET_HTTPS_OPTIONS

public static final CommandDescriptor GET_HTTPS_OPTIONS

LOGIN_SET_NATIVE_PASSWORD

public static final CommandDescriptor LOGIN_SET_NATIVE_PASSWORD

Constructor Detail

LoginCommandListener

public LoginCommandListener()

Method Detail

doLogin

public void doLogin(CommandEvent ae)

getLoggedOnUsers

public boolean getLoggedOnUsers(CommandEvent ae)

doLogout

public void doLogout(CommandEvent ae)

getHttpsOptions

public boolean getHttpsOptions(CommandEvent theEvent,
                               ServiceContext theContext)
Return the HTTPS options used on the server.

getHttpsPort

public boolean getHttpsPort(CommandEvent theEvent,
                            ServiceContext theContext)
Return the HTTPS_PORT used on the server. Defaults to 10080 if properties can't be found

isConnected

public boolean isConnected(CommandEvent theEvent,
                           ServiceContext theContext)
Used to determine is a server is running or a user is connected. Uses the status of the HttpSession to determine if the user is connected.
Parameters:
theEvent -
theContext -
Returns:
CommandStatus.SUCCESS if this is an old session otherwise return CommandStatus.FAILURE if this is a new session

loginSetNativePassword

public boolean loginSetNativePassword(CommandEvent theEvent,
                                      ServiceContext theContext,
                                      java.lang.String serverName,
                                      java.lang.String userName,
                                      java.lang.String password,
                                      java.lang.String newPassword)
                               throws java.lang.Exception
Login and change password at timeof login. :Native password Management
Throws:
java.lang.Exception

getCommands

public CommandDescriptor[] getCommands()
Description copied from class: AbstractCommandListener
Implementation of the CommandListener.getCommands() method. This is an empty implementation and should be overridden by any derived classes that use the new introspection method of discovering commands.
Specified by:
getCommands in interface CommandListener
Overrides:
getCommands in class AbstractCommandListener
Returns:
a zero-length array of CommandDescriptor objects.

Skip navigation links


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