Class WFMPrivateListMicroService
java.lang.Object
overit.geocallapp.utilities.rs.common.PrivateService
overit.geocallapp.wfm.core.virtualcollaboration.rs1.common.WFMPrivateListMicroService
- Direct Known Subclasses:
VCGroupService,VCUserService
Base class for services that
exposes list of data
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected StringgetOrder()protected <T> ListResponse<T> protected Objectprotected DBViewquery(DABase da, int queryId, HashGetter filter) Execute a query hiding the size and skip records managementprotected DBViewquery(DAO dao, CommandContext cc) Execute a query hiding the size and skip records managementprotected voidsetSize(int size) protected voidsetSkip(int skip)
-
Field Details
-
ORDER_ASC
- See Also:
-
ORDER_DESC
- See Also:
-
skip
protected int skip -
size
protected int size -
order
-
-
Constructor Details
-
WFMPrivateListMicroService
public WFMPrivateListMicroService()
-
-
Method Details
-
map
- Parameters:
data- the DBView to maprecordType- the class type of the record- Returns:
- a
ListResponsefilled with the conversion of the given data in the given recordType
-
map
- Parameters:
data- the DBView to mapmapper- the mapper to use for the conversion- Returns:
-
query
Execute a query hiding the size and skip records management -
query
Execute a query hiding the size and skip records management- Parameters:
dao- theDAOto use for the querycc- theCommandContextto use for the query- Returns:
- the resulting
DBView - Throws:
MicroException
-
getOrder
-
setSize
protected void setSize(int size) -
setSkip
protected void setSkip(int skip)
-