Class DefaultPROSAPIUserService
java.lang.Object
de.hybris.platform.prosservices.services.impl.DefaultPROSAPIUserService
- All Implemented Interfaces:
PROSAPIUserService
Class is responsible for providing concrete implementation of the PROSAPIUserService interface. The class uses the
prosApiUserDao class to query the database and return APIUserModel type.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetAPIUserByCode(String code) Find APIUser model based on the code.getAPIUserByUserName(String userName) Find APIUser model based on the userName.protected PROSAPIUserDaoReturns the prosApiUserDaovoidsetProsApiUserDao(PROSAPIUserDao prosApiUserDao) Sets the prosApiUserDao
-
Constructor Details
-
DefaultPROSAPIUserService
public DefaultPROSAPIUserService()
-
-
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 interfacePROSAPIUserService- 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 interfacePROSAPIUserService- Parameters:
userName- the userName- Returns:
- the APIUser
- Throws:
de.hybris.platform.servicelayer.exceptions.ModelNotFoundException- the model not found exception
-
getProsApiUserDao
Returns the prosApiUserDao- Returns:
-
setProsApiUserDao
Sets the prosApiUserDao- Parameters:
prosApiUserDao-
-