Class AbstractVSpringMvcController

java.lang.Object
io.vertigo.ui.impl.springmvc.controller.AbstractVSpringMvcController
Direct Known Subclasses:
ListAutocompleteController

public abstract class AbstractVSpringMvcController extends Object
Super class des Actions SpringMvc.
Author:
npiedeloup, mlaroche
  • Field Details

    • COMPONENT_STATES

      public static final String COMPONENT_STATES
      See Also:
    • DEFAULT_VIEW_NAME_ATTRIBUTE

      public static final String DEFAULT_VIEW_NAME_ATTRIBUTE
      See Also:
    • CONTEXT_COLLECTION_NAME

      public static final io.vertigo.datastore.kvstore.KVCollection CONTEXT_COLLECTION_NAME
      Clé de la collection des contexts dans le KVStoreManager.
    • INIT_CONTEXT_COLLECTION_NAME

      public static final io.vertigo.datastore.kvstore.KVCollection INIT_CONTEXT_COLLECTION_NAME
      Clé de la collection des initilizer de context dans le KVStoreManager.
    • UTIL_CONTEXT_KEY

      public static final ViewContextKey<UiUtil> UTIL_CONTEXT_KEY
      Clé de context du UiUtil.
    • URL_PARAM_PREFIX

      public static final String URL_PARAM_PREFIX
      Préfix des clés des paramètres passés par l'url.
      See Also:
  • Constructor Details

    • AbstractVSpringMvcController

      public AbstractVSpringMvcController()
  • Method Details

    • prepareContext

      public void prepareContext(jakarta.servlet.http.HttpServletRequest request)
    • bindCtxToSession

      protected boolean bindCtxToSession()
      Lock context to sessionId. Should be desactivated by devs for sessionLess actions.
      Returns:
      if ctx is bind to session
    • useDefaultViewName

      protected boolean useDefaultViewName()
      Definition if whe should use the vertigo conventions to determine the default viewname
      Returns:
      if we should use it
    • initBinder

      @InitBinder public void initBinder(org.springframework.web.bind.WebDataBinder binder)
    • preInitContext

      protected void preInitContext(ViewContext viewContext)
      Preinitialisation du context, pour ajouter les composants standard. Si surcharger doit rappeler le super.preInitContext();
    • storeContext

      public final void storeContext(jakarta.servlet.http.HttpServletRequest request)
      Conserve et fige le context. Utilisé par le KActionContextStoreInterceptor.
      Parameters:
      request - HttpServletRequest
    • makeUnmodifiable

      public final void makeUnmodifiable()
      Conserve et fige le context. Utilisé par le KActionContextStoreInterceptor.
    • validate

      public final void validate()
    • getViewContext

      protected static ViewContext getViewContext()
    • toModeEdit

      protected static final void toModeEdit()
      Passe en mode edition.
    • toModeCreate

      protected static final void toModeCreate()
      Passe en mode creation.
    • toModeReadOnly

      protected static final void toModeReadOnly()
      Passe en mode readonly.
    • isModeEdit

      protected static final boolean isModeEdit()
      Returns:
      Si on est en mode edition
    • isModeRead

      protected static final boolean isModeRead()
      Returns:
      Si on est en mode readOnly
    • isModeCreate

      protected static final boolean isModeCreate()
      Returns:
      Si on est en mode create
    • getUiMessageStack

      protected static final io.vertigo.vega.webservice.validation.UiMessageStack getUiMessageStack()
      Returns:
      Pile des messages utilisateur.
    • isViewContextDirty

      public boolean isViewContextDirty()
    • isNewContext

      protected boolean isNewContext()