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 Summary
ConstructorsConstructorDescriptionDefaultPROSAPIUserDao(String typecode) Instantiates a new Default PROSAPIUserDao dao. -
Method Summary
Modifier and TypeMethodDescriptiongetAPIUserByCode(String code) Find APIUser model based on the code.getAPIUserByUserName(String userName) Find APIUser model based on the userName.Methods inherited from class de.hybris.platform.servicelayer.internal.dao.DefaultGenericDao
find, find, find, find, find, getFlexibleSearchService, setFlexibleSearchService
-
Constructor Details
-
DefaultPROSAPIUserDao
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:
getAPIUserByCodein interfacePROSAPIUserDao- 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:
getAPIUserByUserNamein interfacePROSAPIUserDao- Parameters:
userName- the userName- Returns:
- the APIUser
- Throws:
de.hybris.platform.servicelayer.exceptions.ModelNotFoundException- the model not found exception
-