Package com.axelor.rpc
Class Request
java.lang.Object
com.axelor.rpc.Request
- Direct Known Subclasses:
ActionRequest
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Request
current()
Class
<?> Get the entity class on which the operation is being performed.Get the domain object context.getData()
int
getLimit()
getModel()
int
Get the raw context.Get aScriptHelper
to evaluate expressions with current context.getUser()
Get the current session user.boolean
void
void
void
setLimit
(int limit) void
Set the model class that represents the requestdata
.void
setOffset
(int offset) void
setRecords
(List<Object> records) void
setRelated
(Map<String, List<String>> related) void
void
void
setTranslate
(boolean translate)
-
Constructor Details
-
Request
public Request()
-
-
Method Details
-
current
-
getModel
-
setModel
Set the model class that represents the requestdata
.- Parameters:
model
- the model class
-
getBeanClass
Get the entity class on which the operation is being performed.- Returns:
- bean class
-
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
-
setSortBy
-
getData
-
setData
-
getRecords
-
setRecords
-
getFields
-
setFields
-
getRelated
-
setRelated
-
getSelect
-
setSelect
-
getCriteria
-
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
Get aScriptHelper
to evaluate expressions with current context.- Returns:
- an instance of
ScriptHelper
for current context
-
getContext
Get the domain object context.- Returns:
- an instance of
Context
-
isTranslate
public boolean isTranslate() -
setTranslate
public void setTranslate(boolean translate)
-