Class DefaultPROSAPIUserDao

java.lang.Object
de.hybris.platform.servicelayer.internal.dao.DefaultGenericDao<APIUserModel>
de.hybris.platform.prosservices.dao.impl.DefaultPROSAPIUserDao
All Implemented Interfaces:
PROSAPIUserDao, de.hybris.platform.servicelayer.internal.dao.Dao, de.hybris.platform.servicelayer.internal.dao.GenericDao<APIUserModel>

public class DefaultPROSAPIUserDao extends de.hybris.platform.servicelayer.internal.dao.DefaultGenericDao<APIUserModel> implements PROSAPIUserDao
Class is responsible for providing concrete implementation of the PROSAPIUserDao interface. The class uses the flexibleSearchService to query the database and return APIUserModel type.
  • Constructor Details

    • DefaultPROSAPIUserDao

      public DefaultPROSAPIUserDao(String typecode)
      Instantiates a new Default PROSAPIUserDao dao.
      Parameters:
      typecode - the typecode
  • Method Details

    • getAPIUserByCode

      public APIUserModel getAPIUserByCode(String code) throws de.hybris.platform.servicelayer.exceptions.ModelNotFoundException
      Find APIUser model based on the code.
      Specified by:
      getAPIUserByCode in interface PROSAPIUserDao
      Parameters:
      code - the code
      Returns:
      the APIUser
      Throws:
      de.hybris.platform.servicelayer.exceptions.ModelNotFoundException - the model not found exception
    • getAPIUserByUserName

      public APIUserModel getAPIUserByUserName(String userName) throws de.hybris.platform.servicelayer.exceptions.ModelNotFoundException
      Find APIUser model based on the userName.
      Specified by:
      getAPIUserByUserName in interface PROSAPIUserDao
      Parameters:
      userName - the userName
      Returns:
      the APIUser
      Throws:
      de.hybris.platform.servicelayer.exceptions.ModelNotFoundException - the model not found exception