it.eng.spagobi.profiling.services
Class ManageUserAction

java.lang.Object
  extended by it.eng.spago.dispatching.service.DefaultRequestContext
      extended by it.eng.spago.dispatching.service.DefaultHttpRequestContext
          extended by it.eng.spago.dispatching.action.AbstractHttpAction
              extended by it.eng.spagobi.utilities.service.AbstractBaseHttpAction
                  extended by it.eng.spagobi.commons.services.AbstractSpagoBIAction
                      extended by it.eng.spagobi.profiling.services.ManageUserAction
All Implemented Interfaces:
it.eng.spago.dispatching.action.ActionIFace, it.eng.spago.dispatching.service.HttpRequestContextIFace, it.eng.spago.dispatching.service.RequestContextIFace, it.eng.spago.dispatching.service.ServiceIFace, it.eng.spago.init.InitializerIFace, java.io.Serializable

public class ManageUserAction
extends AbstractSpagoBIAction

Author:
Monica Franceschini (monica.franceschini@eng.it), Alessandro Pegoraro (alessandro.pegoraro@eng.it)
See Also:
Serialized Form

Field Summary
static java.lang.String FILTERS
           
static java.lang.String LIMIT
           
static java.lang.Integer LIMIT_DEFAULT
           
static java.lang.String START
           
static java.lang.Integer START_DEFAULT
           
 
Fields inherited from class it.eng.spagobi.commons.services.AbstractSpagoBIAction
SERVICE_NAME
 
Constructor Summary
ManageUserAction()
           
 
Method Summary
protected  void checkIfCurrentUserIsAbleToSaveOrModifyUser(SbiUser user)
           
protected  void checkUserId(java.lang.String userId, java.lang.Integer id)
           
protected  void deleteUser(ISbiUserDAO userDao)
           
 void doService()
           
protected  void getUsersList(ISbiUserDAO userDao)
           
protected  void saveUser(ISbiUserDAO userDao)
           
protected  void setAttributesAndRolesInResponse()
           
 
Methods inherited from class it.eng.spagobi.commons.services.AbstractSpagoBIAction
checkError, createContext, getContext, getLocale, getTheme, getUserProfile, handleException, init, localize, service, writeErrorsBackToClient
 
Methods inherited from class it.eng.spagobi.utilities.service.AbstractBaseHttpAction
delAttributeFromHttpSession, delAttributeFromSession, getAttribute, getAttributeAsBoolean, getAttributeAsBoolean, getAttributeAsCsvStringList, getAttributeAsInteger, getAttributeAsJSONArray, getAttributeAsJSONObject, getAttributeAsList, getAttributeAsString, getAttributeFromHttpSession, getAttributeFromHttpSessionAsBoolean, getAttributeFromHttpSessionAsBoolean, getAttributeFromHttpSessionAsString, getAttributeFromSession, getAttributeFromSessionAsBoolean, getAttributeFromSessionAsBoolean, getAttributeFromSessionAsString, getAttributesAsLinkedMap, getAttributesAsMap, getHttpSession, getSessionContainer, getSpagoBIHttpSessionContainer, getSpagoBIRequestContainer, getSpagoBIResponseContainer, getSpagoBISessionContainer, httpSessionContainsAttribute, requestContainsAttribute, requestContainsAttribute, sessionContainsAttribute, setAttribute, setAttributeInHttpSession, setAttributeInSession, setSpagoBIRequestContainer, setSpagoBIResponseContainer, tryToWriteBackToClient, writeBackToClient, writeBackToClient, writeBackToClient, writeBackToClient, writeBackToClient
 
Methods inherited from class it.eng.spago.dispatching.action.AbstractHttpAction
getActionMethod, getActionName, getConfig, setActionMethod, setActionName
 
Methods inherited from class it.eng.spago.dispatching.service.DefaultHttpRequestContext
freezeHttpResponse, getHttpRequest, getHttpResponse, getServletConfig, isHttpResponseFreezed, setRequestContext, unfreezeHttpResponse
 
Methods inherited from class it.eng.spago.dispatching.service.DefaultRequestContext
getErrorHandler, getRequestContainer, getResponseContainer, getServiceRequest, getServiceResponse
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface it.eng.spago.dispatching.service.RequestContextIFace
getErrorHandler, getRequestContainer, getResponseContainer, getServiceRequest, getServiceResponse
 

Field Detail

START

public static java.lang.String START

LIMIT

public static java.lang.String LIMIT

START_DEFAULT

public static java.lang.Integer START_DEFAULT

LIMIT_DEFAULT

public static java.lang.Integer LIMIT_DEFAULT

FILTERS

public static java.lang.String FILTERS
Constructor Detail

ManageUserAction

public ManageUserAction()
Method Detail

doService

public void doService()
Specified by:
doService in class AbstractSpagoBIAction

getUsersList

protected void getUsersList(ISbiUserDAO userDao)

saveUser

protected void saveUser(ISbiUserDAO userDao)

checkIfCurrentUserIsAbleToSaveOrModifyUser

protected void checkIfCurrentUserIsAbleToSaveOrModifyUser(SbiUser user)
                                                   throws it.eng.spago.error.EMFUserError,
                                                          it.eng.spago.error.EMFInternalError
Throws:
it.eng.spago.error.EMFUserError
it.eng.spago.error.EMFInternalError

deleteUser

protected void deleteUser(ISbiUserDAO userDao)

setAttributesAndRolesInResponse

protected void setAttributesAndRolesInResponse()

checkUserId

protected void checkUserId(java.lang.String userId,
                           java.lang.Integer id)