Class WFMPrivateListMicroService

java.lang.Object
overit.geocallapp.utilities.rs.common.PrivateService
overit.geocallapp.wfm.core.virtualcollaboration.rs1.common.WFMPrivateListMicroService
Direct Known Subclasses:
VCGroupService, VCUserService

public class WFMPrivateListMicroService extends PrivateService
Base class for services that exposes list of data
  • Field Details

  • Constructor Details

    • WFMPrivateListMicroService

      public WFMPrivateListMicroService()
  • Method Details

    • map

      protected <T> ListResponse<T> map(DBView data, Class<T> recordType)
      Parameters:
      data - the DBView to map
      recordType - the class type of the record
      Returns:
      a ListResponse filled with the conversion of the given data in the given recordType
    • map

      protected Object map(DBView data, Mapper mapper)
      Parameters:
      data - the DBView to map
      mapper - the mapper to use for the conversion
      Returns:
    • query

      protected DBView query(DABase da, int queryId, HashGetter filter)
      Execute a query hiding the size and skip records management
      Parameters:
      da - the DABase to use for the query
      queryId - the query id
      filter - the filter to apply
      Returns:
      the resulting DBView
    • query

      protected DBView query(DAO dao, CommandContext cc) throws MicroException
      Execute a query hiding the size and skip records management
      Parameters:
      dao - the DAO to use for the query
      cc - the CommandContext to use for the query
      Returns:
      the resulting DBView
      Throws:
      MicroException
    • getOrder

      protected String getOrder()
    • setSize

      protected void setSize(int size)
    • setSkip

      protected void setSkip(int skip)