Class Request

    • Constructor Detail

      • Request

        public Request()
    • Method Detail

      • 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)
      • setSortBy

        public void setSortBy​(List<String> sortBy)
      • setRecords

        public void setRecords​(List<Object> records)
      • setFields

        public void setFields​(List<String> fields)
      • 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
      • getContext

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

        public boolean isTranslate()