Skip navigation links


com.essbase.eas.essbase.server
Class UploadFileCommandListener

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.AppManCommandListener
              extended by com.essbase.eas.essbase.server.EssbaseCommandListener
                  extended by com.essbase.eas.essbase.server.UploadFileCommandListener

All Implemented Interfaces:
ApplicationPart, CommandListener

public class UploadFileCommandListener
extends EssbaseCommandListener

extension of the EssbaseCommandListener to handle uploading a file

Version:
7.0.0
Author:
Madhavi Bolisetty & Sree Menon

Nested Class Summary
static class UploadFileCommandListener.UPFileOutputStream
           

 

Field Summary

 

Fields inherited from class com.essbase.eas.essbase.server.EssbaseCommandListener
DEADEND, DEADEND_KEY, FAILED, FAILED_KEY, NOT_CONNECTED, NOT_CONNECTED_KEY, NOT_CONNECTING, NOT_CONNECTING_KEY, RELOGIN, RELOGIN_KEY, requestMap, TOKEN_TIMEOUT1_KEY, TOKEN_TIMEOUT2_KEY

 

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
UploadFileCommandListener()
          default constructor.

 

Method Summary
 CommandDescriptor[] getCommands()
          implementation of the CommandListener.getCommands() method.
static java.io.File getUploadFile(CommandEvent theEvent, StoreService storeService, java.lang.String filename, boolean remove)
           
 boolean uploadBegin(CommandEvent theEvent, ServiceContext theContext, java.lang.String filename)
          command handler method used to initiate uploading a local outline file and opening it for editing.
 boolean uploadCancel(CommandEvent theEvent, ServiceContext theContext, java.lang.String localFilename)
          command handler method to perform steps necessary when an upload command is canceled.
 boolean uploadContinue(CommandEvent theEvent, ServiceContext theContext, java.lang.String localFileName, java.lang.Boolean end, java.lang.Boolean compressed)
          command handler method for continuing the transfer of an outline file from the client to the mid-tier.
 boolean uploadDelete(CommandEvent theEvent, ServiceContext theContext, java.lang.String filename)
           

 

Methods inherited from class com.essbase.eas.essbase.server.EssbaseCommandListener
getEssbaseSession, handleEventException, handleEventPost, handleEventPrep, set, setResult, validateSession

 

Methods inherited from class com.essbase.eas.server.AppManCommandListener
getSession, getSession, getSession, releaseSession

 

Methods inherited from class com.essbase.eas.framework.server.application.AbstractCommandListener
addMethodAlias, addMethodAlias, assignWorkers, buildMethodMap, convertStringValueToArgument, getArgumentsForCommand, getMethod, getMethodForAlias, getRoles, getSessionObject, handleEvent, 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

 

Constructor Detail

UploadFileCommandListener

public UploadFileCommandListener()
default constructor.

Method Detail

uploadBegin

public boolean uploadBegin(CommandEvent theEvent,
                           ServiceContext theContext,
                           java.lang.String filename)
command handler method used to initiate uploading a local outline file and opening it for editing.

uploadCancel

public boolean uploadCancel(CommandEvent theEvent,
                            ServiceContext theContext,
                            java.lang.String localFilename)
command handler method to perform steps necessary when an upload command is canceled.

uploadContinue

public boolean uploadContinue(CommandEvent theEvent,
                              ServiceContext theContext,
                              java.lang.String localFileName,
                              java.lang.Boolean end,
                              java.lang.Boolean compressed)
command handler method for continuing the transfer of an outline file from the client to the mid-tier.

uploadDelete

public boolean uploadDelete(CommandEvent theEvent,
                            ServiceContext theContext,
                            java.lang.String filename)

getCommands

public CommandDescriptor[] getCommands()
implementation of the CommandListener.getCommands() method.
Specified by:
getCommands in interface CommandListener
Overrides:
getCommands in class AbstractCommandListener
Returns:
a zero-length array of CommandDescriptor objects.

getUploadFile

public static java.io.File getUploadFile(CommandEvent theEvent,
                                         StoreService storeService,
                                         java.lang.String filename,
                                         boolean remove)

Skip navigation links


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