Class EntityViewRequest

java.lang.Object
com.foreach.across.modules.entity.views.request.EntityViewRequest

@Component @Exposed @Scope(scopeName="request", proxyMode=TARGET_CLASS) public class EntityViewRequest extends Object
Represents a specifically requested EntityViewFactory with its full set of information:

Data bean that is also registered as a request-scoped proxy.

Since:
2.0.0
Author:
Arne Vandamme
  • Constructor Details

    • EntityViewRequest

      public EntityViewRequest()
  • Method Details

    • hasPartialFragment

      public boolean hasPartialFragment()
      Returns:
      true if only a partial fragment should be rendered of the view
    • isForView

      public boolean isForView(String viewName)
      Checks whether the given name matches the view being rendered.
      Parameters:
      viewName - to check
      Returns:
      true if the name matches the current view name.
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • getEntityViewContext

      public EntityViewContext getEntityViewContext()
      The contextual information of the entity type and entity being viewed.
    • getPageContentStructure

      public PageContentStructure getPageContentStructure()
      Page content being built.
    • getCommand

      public EntityViewCommand getCommand()
      Command object for the view.
    • getDataBinder

      public org.springframework.web.bind.WebDataBinder getDataBinder()
      DataBinder being used for the command object.
    • getBindingResult

      public org.springframework.validation.BindingResult getBindingResult()
      Binding result for the command object.
    • getViewName

      public String getViewName()
      Name of the view being requested.
    • getViewFactory

      public EntityViewFactory getViewFactory()
      The EntityViewFactory being used.
    • getConfigurationAttributes

      public Map<String,Object> getConfigurationAttributes()
      The map of configuration attributes that were used to initialized this EntityViewFactory. Should never be null and can optionally be modified by early view processors to modify behaviour of later processors.
    • getWebRequest

      public org.springframework.web.context.request.NativeWebRequest getWebRequest()
      Original web request/response context.
    • getHttpMethod

      public org.springframework.http.HttpMethod getHttpMethod()
      HTTP method for the web request.
    • getPartialFragment

      public String getPartialFragment()
      The partial fragment to render.
    • getModel

      public org.springframework.ui.ModelMap getModel()
      The model associated with the current view.
    • getRedirectAttributes

      public org.springframework.web.servlet.mvc.support.RedirectAttributes getRedirectAttributes()
      The redirect attributes for the current view request.
    • setEntityViewContext

      public void setEntityViewContext(EntityViewContext entityViewContext)
      The contextual information of the entity type and entity being viewed.
    • setPageContentStructure

      public void setPageContentStructure(PageContentStructure pageContentStructure)
      Page content being built.
    • setCommand

      public void setCommand(EntityViewCommand command)
      Command object for the view.
    • setDataBinder

      public void setDataBinder(org.springframework.web.bind.WebDataBinder dataBinder)
      DataBinder being used for the command object.
    • setBindingResult

      public void setBindingResult(org.springframework.validation.BindingResult bindingResult)
      Binding result for the command object.
    • setViewName

      public void setViewName(String viewName)
      Name of the view being requested.
    • setViewFactory

      public void setViewFactory(EntityViewFactory viewFactory)
      The EntityViewFactory being used.
    • setConfigurationAttributes

      public void setConfigurationAttributes(Map<String,Object> configurationAttributes)
      The map of configuration attributes that were used to initialized this EntityViewFactory. Should never be null and can optionally be modified by early view processors to modify behaviour of later processors.
    • setWebRequest

      public void setWebRequest(org.springframework.web.context.request.NativeWebRequest webRequest)
      Original web request/response context.
    • setHttpMethod

      public void setHttpMethod(org.springframework.http.HttpMethod httpMethod)
      HTTP method for the web request.
    • setPartialFragment

      public void setPartialFragment(String partialFragment)
      The partial fragment to render.
    • setModel

      public void setModel(org.springframework.ui.ModelMap model)
      The model associated with the current view.
    • setRedirectAttributes

      public void setRedirectAttributes(org.springframework.web.servlet.mvc.support.RedirectAttributes redirectAttributes)
      The redirect attributes for the current view request.
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • canEqual

      protected boolean canEqual(Object other)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object