Class Request

java.lang.Object
com.axelor.rpc.Request
Direct Known Subclasses:
ActionRequest

public class Request extends Object
  • Constructor Details

    • Request

      public Request()
  • Method Details

    • current

      public static Request current()
    • getModel

      public String getModel()
    • setModel

      public void setModel(String model)
      Set the model class that represents the request data.
      Parameters:
      model - the model class
    • getBeanClass

      public Class<?> getBeanClass()
      Get the entity class on which the operation is being performed.
      Returns:
      bean class
    • getUser

      public User getUser()
      Get the current session user.
      Returns:
      current session User
    • getLimit

      public int getLimit()
    • setLimit

      public void setLimit(int limit)
    • getOffset

      public int getOffset()
    • setOffset

      public void setOffset(int offset)
    • getSortBy

      public List<String> getSortBy()
    • setSortBy

      public void setSortBy(List<String> sortBy)
    • getData

      public Map<String,Object> getData()
    • setData

      public void setData(Map<String,Object> data)
    • getRecords

      public List<Object> getRecords()
    • setRecords

      public void setRecords(List<Object> records)
    • getFields

      public List<String> getFields()
    • setFields

      public void setFields(List<String> fields)
    • getRelated

      public Map<String,List<String>> getRelated()
    • setRelated

      public void setRelated(Map<String,List<String>> related)
    • getSelect

      public Map<String,Object> getSelect()
    • setSelect

      public void setSelect(Map<String,Object> select)
    • getCriteria

      public Criteria getCriteria()
    • getRawContext

      public Map<String,Object> getRawContext()
      Get the raw context.

      The returned map is mutable so updating this map may cause some unexpected results. So use this method with care.

      Returns:
      map of context values
    • getScriptHelper

      public ScriptHelper getScriptHelper()
      Get a ScriptHelper to evaluate expressions with current context.
      Returns:
      an instance of ScriptHelper for current context
    • getContext

      public Context getContext()
      Get the domain object context.
      Returns:
      an instance of Context
    • isTranslate

      public boolean isTranslate()
    • setTranslate

      public void setTranslate(boolean translate)