Class DefaultCompanyB2BCommerceService
- java.lang.Object
-
- de.hybris.platform.b2bacceleratorservices.company.impl.DefaultCompanyB2BCommerceService
-
- All Implemented Interfaces:
CompanyB2BCommerceService
- Direct Known Subclasses:
DefaultB2BCommerceB2BUserGroupService,DefaultB2BCommerceBudgetService,DefaultB2BCommerceCostCenterService,DefaultB2BCommercePermissionService,DefaultB2BCommerceUnitService,DefaultB2BCommerceUserService
@Deprecated(since="6.0", forRemoval=true) public class DefaultCompanyB2BCommerceService extends java.lang.Object implements CompanyB2BCommerceServiceDeprecated, for removal: This API element is subject to removal in a future version.A service which services organization management
-
-
Constructor Summary
Constructors Constructor Description DefaultCompanyB2BCommerceService()Deprecated, for removal: This API element is subject to removal in a future version.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected voidaddMemberToUserGroup(UserGroupModel usergroup, UserModel user)Deprecated, for removal: This API element is subject to removal in a future version.java.util.Collection<? extends CurrencyModel>getAllCurrencies()Deprecated, for removal: This API element is subject to removal in a future version.Get all currencies for the current storeprotected B2BApprovalProcessLookUpStrategygetB2BApprovalProcessLookUpStrategy()Deprecated, for removal: This API element is subject to removal in a future version.protected B2BApproverService<B2BCustomerModel>getB2BApproverService()Deprecated, for removal: This API element is subject to removal in a future version.B2BBudgetService<B2BBudgetModel,B2BCustomerModel>getB2BBudgetService()Deprecated, for removal: This API element is subject to removal in a future version.B2BCostCenterServicegetB2BCostCenterService()Deprecated, for removal: This API element is subject to removal in a future version.protected B2BCustomerService<B2BCustomerModel,B2BUnitModel>getB2BCustomerService()Deprecated, for removal: This API element is subject to removal in a future version.protected B2BGroupCycleValidatorgetB2BGroupCycleValidator()Deprecated, for removal: This API element is subject to removal in a future version.protected B2BPermissionService<B2BCustomerModel,B2BPermissionResultModel>getB2BPermissionService()Deprecated, for removal: This API element is subject to removal in a future version.protected B2BUnitService<B2BUnitModel,B2BCustomerModel>getB2BUnitService()Deprecated, for removal: This API element is subject to removal in a future version.B2BUserGroupModelgetB2BUserGroupForUid(java.lang.String uid)Deprecated, for removal: This API element is subject to removal in a future version.Gets a b2b user group given its uidjava.util.Map<java.lang.String,java.lang.String>getBusinessProcesses()Deprecated, for removal: This API element is subject to removal in a future version.Gets a map object containing the business processes for the current storeBusinessProcessServicegetBusinessProcessService()Deprecated, for removal: This API element is subject to removal in a future version.CommerceCommonI18NServicegetCommerceCommonI18NService()Deprecated, for removal: This API element is subject to removal in a future version.CommonI18NServicegetCommonI18NService()Deprecated, for removal: This API element is subject to removal in a future version.<T extends CurrencyModel>
TgetCurrencyForIsoCode(java.lang.String isoCode)Deprecated, for removal: This API element is subject to removal in a future version.Get the currencyModel for the given ISO code<T extends B2BCustomerModel>
TgetCurrentUser()Deprecated, for removal: This API element is subject to removal in a future version.Gets a current session user as aB2BCustomerModel<T extends B2BCustomerModel>
TgetCustomerForUid(java.lang.String uid)Deprecated, for removal: This API element is subject to removal in a future version.Gets a customer for the given uid<T extends B2BCustomerModel>
java.util.List<T>getMembersOfUnitForUserGroup(B2BUnitModel unit, java.lang.String userGroupId)Deprecated, for removal: This API element is subject to removal in a future version.Get members who are assigned to a unit with a specified user groupModelServicegetModelService()Deprecated, for removal: This API element is subject to removal in a future version.PagedGenericDao<B2BBudgetModel>getPagedB2BBudgetDao()Deprecated, for removal: This API element is subject to removal in a future version.PagedGenericDao<B2BCostCenterModel>getPagedB2BCostCenterDao()Deprecated, for removal: This API element is subject to removal in a future version.protected PagedB2BCustomerDao<B2BCustomerModel>getPagedB2BCustomerDao()Deprecated, for removal: This API element is subject to removal in a future version.protected PagedGenericDao<B2BPermissionModel>getPagedB2BPermissionDao()Deprecated, for removal: This API element is subject to removal in a future version.protected PagedGenericDao<B2BUserGroupModel>getPagedB2BUserGroupDao()Deprecated, for removal: This API element is subject to removal in a future version.SearchPageData<B2BCustomerModel>getPagedUsersForUserGroups(PageableData pageableData, java.lang.String... userGroupUID)Deprecated, for removal: This API element is subject to removal in a future version.Searches for users<T extends B2BUnitModel>
TgetParentUnit(B2BUnitModel unit)Deprecated, for removal: This API element is subject to removal in a future version.Gets the parent unit given a unit object.B2BPermissionModelgetPermissionForCode(java.lang.String permission)Deprecated, for removal: This API element is subject to removal in a future version.GetsB2BPermissionModelfor a given permission codeprotected SearchRestrictionServicegetSearchRestrictionService()Deprecated, for removal: This API element is subject to removal in a future version.protected SessionServicegetSessionService()Deprecated, for removal: This API element is subject to removal in a future version.B2BUnitModelgetUnitForUid(java.lang.String unitUid)Deprecated, for removal: This API element is subject to removal in a future version.Get aB2BUnitModelfor a unique identifier unitUidprotected UserServicegetUserService()Deprecated, for removal: This API element is subject to removal in a future version.protected voidremovedMemberFromUserGroup(UserGroupModel usergroup, UserModel user)Deprecated, for removal: This API element is subject to removal in a future version.<T extends ItemModel>
voidsaveModel(T model)Deprecated, for removal: This API element is subject to removal in a future version.Persists the model delegating toModelService.save(Object)voidsetB2BApprovalProcessLookUpStrategy(B2BApprovalProcessLookUpStrategy b2BApprovalProcessLookUpStrategy)Deprecated, for removal: This API element is subject to removal in a future version.voidsetB2BApproverService(B2BApproverService<B2BCustomerModel> b2BApproverService)Deprecated, for removal: This API element is subject to removal in a future version.voidsetB2BBudgetService(B2BBudgetService<B2BBudgetModel,B2BCustomerModel> b2bBudgetService)Deprecated, for removal: This API element is subject to removal in a future version.voidsetB2BCostCenterService(B2BCostCenterService b2bCostCenterService)Deprecated, for removal: This API element is subject to removal in a future version.voidsetB2BCustomerService(B2BCustomerService<B2BCustomerModel,B2BUnitModel> b2BCustomerService)Deprecated, for removal: This API element is subject to removal in a future version.voidsetB2BGroupCycleValidator(B2BGroupCycleValidator b2BGroupCycleValidator)Deprecated, for removal: This API element is subject to removal in a future version.voidsetB2BPermissionService(B2BPermissionService<B2BCustomerModel,B2BPermissionResultModel> b2BPermissionService)Deprecated, for removal: This API element is subject to removal in a future version.voidsetB2BUnitService(B2BUnitService<B2BUnitModel,B2BCustomerModel> b2BUnitService)Deprecated, for removal: This API element is subject to removal in a future version.voidsetBusinessProcessService(BusinessProcessService businessProcessService)Deprecated, for removal: This API element is subject to removal in a future version.voidsetCommerceCommonI18NService(CommerceCommonI18NService commerceCommonI18NService)Deprecated, for removal: This API element is subject to removal in a future version.voidsetCommonI18NService(CommonI18NService commonI18NService)Deprecated, for removal: This API element is subject to removal in a future version.voidsetModelService(ModelService modelService)Deprecated, for removal: This API element is subject to removal in a future version.voidsetPagedB2BBudgetDao(PagedGenericDao<B2BBudgetModel> pagedB2BBudgetDao)Deprecated, for removal: This API element is subject to removal in a future version.voidsetPagedB2BCostCenterDao(PagedGenericDao<B2BCostCenterModel> pagedB2BCostCenterDao)Deprecated, for removal: This API element is subject to removal in a future version.voidsetPagedB2BCustomerDao(PagedB2BCustomerDao<B2BCustomerModel> pagedB2BCustomerDao)Deprecated, for removal: This API element is subject to removal in a future version.voidsetPagedB2BPermissionDao(PagedGenericDao<B2BPermissionModel> pagedB2BPermissionDao)Deprecated, for removal: This API element is subject to removal in a future version.voidsetPagedB2BUserGroupDao(PagedGenericDao<B2BUserGroupModel> pagedB2BUserGroupDao)Deprecated, for removal: This API element is subject to removal in a future version.voidsetSearchRestrictionService(SearchRestrictionService searchRestrictionService)Deprecated, for removal: This API element is subject to removal in a future version.voidsetSessionService(SessionService sessionService)Deprecated, for removal: This API element is subject to removal in a future version.voidsetUserService(UserService userService)Deprecated, for removal: This API element is subject to removal in a future version.
-
-
-
Method Detail
-
getUnitForUid
public B2BUnitModel getUnitForUid(java.lang.String unitUid)
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:CompanyB2BCommerceServiceGet aB2BUnitModelfor a unique identifier unitUid- Specified by:
getUnitForUidin interfaceCompanyB2BCommerceService- Parameters:
unitUid- A unique identifier for aB2BUnitModel- Returns:
- A unit if exist or null if not found
-
getParentUnit
public <T extends B2BUnitModel> T getParentUnit(B2BUnitModel unit)
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:CompanyB2BCommerceServiceGets the parent unit given a unit object.- Specified by:
getParentUnitin interfaceCompanyB2BCommerceService- Parameters:
unit- A unique identifier forB2BUnitModel- Returns:
- A
B2BUnitModelfor given unit
-
getCurrentUser
public <T extends B2BCustomerModel> T getCurrentUser()
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:CompanyB2BCommerceServiceGets a current session user as aB2BCustomerModel- Specified by:
getCurrentUserin interfaceCompanyB2BCommerceService- Returns:
- A customer in the session.
-
getMembersOfUnitForUserGroup
public <T extends B2BCustomerModel> java.util.List<T> getMembersOfUnitForUserGroup(B2BUnitModel unit, java.lang.String userGroupId)
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:CompanyB2BCommerceServiceGet members who are assigned to a unit with a specified user group- Specified by:
getMembersOfUnitForUserGroupin interfaceCompanyB2BCommerceService- Parameters:
unit- A business unituserGroupId- UserGroup id- Returns:
- A collection of users assigned to the unit who are members of the specified group
-
getPagedUsersForUserGroups
public SearchPageData<B2BCustomerModel> getPagedUsersForUserGroups(PageableData pageableData, java.lang.String... userGroupUID)
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:CompanyB2BCommerceServiceSearches for users- Specified by:
getPagedUsersForUserGroupsin interfaceCompanyB2BCommerceService- Parameters:
pageableData- to use in narrowing resultuserGroupUID- uids of groups to search against- Returns:
- users which belong to groups with given uids
-
getAllCurrencies
public java.util.Collection<? extends CurrencyModel> getAllCurrencies()
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:CompanyB2BCommerceServiceGet all currencies for the current store- Specified by:
getAllCurrenciesin interfaceCompanyB2BCommerceService- Returns:
- Collection of currencyModels
-
saveModel
public <T extends ItemModel> void saveModel(T model)
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:CompanyB2BCommerceServicePersists the model delegating toModelService.save(Object)- Specified by:
saveModelin interfaceCompanyB2BCommerceService- Parameters:
model- A model to save.
-
getCurrencyForIsoCode
public <T extends CurrencyModel> T getCurrencyForIsoCode(java.lang.String isoCode)
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:CompanyB2BCommerceServiceGet the currencyModel for the given ISO code- Specified by:
getCurrencyForIsoCodein interfaceCompanyB2BCommerceService- Parameters:
isoCode- ISO Code of theCurrencyModel- Returns:
- A
CurrencyModelobject that matches the given ISO code
-
getCustomerForUid
public <T extends B2BCustomerModel> T getCustomerForUid(java.lang.String uid)
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:CompanyB2BCommerceServiceGets a customer for the given uid- Specified by:
getCustomerForUidin interfaceCompanyB2BCommerceService- Parameters:
uid- A unique identifier forB2BCustomerModel- Returns:
- A
B2BCustomerModelfor uid
-
getPermissionForCode
public B2BPermissionModel getPermissionForCode(java.lang.String permission)
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:CompanyB2BCommerceServiceGetsB2BPermissionModelfor a given permission code- Specified by:
getPermissionForCodein interfaceCompanyB2BCommerceService- Parameters:
permission- A unique identifier forB2BPermissionModel- Returns:
B2BPermissionModelobject
-
getB2BUserGroupForUid
public B2BUserGroupModel getB2BUserGroupForUid(java.lang.String uid)
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:CompanyB2BCommerceServiceGets a b2b user group given its uid- Specified by:
getB2BUserGroupForUidin interfaceCompanyB2BCommerceService- Parameters:
uid- A unique identifier forB2BUserGroupModel- Returns:
- A
B2BUserGroupModelfor given unit
-
getBusinessProcesses
public java.util.Map<java.lang.String,java.lang.String> getBusinessProcesses()
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:CompanyB2BCommerceServiceGets a map object containing the business processes for the current store- Specified by:
getBusinessProcessesin interfaceCompanyB2BCommerceService- Returns:
- A
Mapcontaining the business processes information
-
addMemberToUserGroup
protected void addMemberToUserGroup(UserGroupModel usergroup, UserModel user)
Deprecated, for removal: This API element is subject to removal in a future version.
-
removedMemberFromUserGroup
protected void removedMemberFromUserGroup(UserGroupModel usergroup, UserModel user)
Deprecated, for removal: This API element is subject to removal in a future version.
-
getB2BCustomerService
protected B2BCustomerService<B2BCustomerModel,B2BUnitModel> getB2BCustomerService()
Deprecated, for removal: This API element is subject to removal in a future version.
-
getUserService
protected UserService getUserService()
Deprecated, for removal: This API element is subject to removal in a future version.
-
setUserService
public void setUserService(UserService userService)
Deprecated, for removal: This API element is subject to removal in a future version.
-
getPagedB2BCustomerDao
protected PagedB2BCustomerDao<B2BCustomerModel> getPagedB2BCustomerDao()
Deprecated, for removal: This API element is subject to removal in a future version.
-
setPagedB2BCustomerDao
public void setPagedB2BCustomerDao(PagedB2BCustomerDao<B2BCustomerModel> pagedB2BCustomerDao)
Deprecated, for removal: This API element is subject to removal in a future version.
-
getB2BUnitService
protected B2BUnitService<B2BUnitModel,B2BCustomerModel> getB2BUnitService()
Deprecated, for removal: This API element is subject to removal in a future version.
-
setB2BUnitService
public void setB2BUnitService(B2BUnitService<B2BUnitModel,B2BCustomerModel> b2BUnitService)
Deprecated, for removal: This API element is subject to removal in a future version.
-
getB2BApproverService
protected B2BApproverService<B2BCustomerModel> getB2BApproverService()
Deprecated, for removal: This API element is subject to removal in a future version.
-
setB2BApproverService
public void setB2BApproverService(B2BApproverService<B2BCustomerModel> b2BApproverService)
Deprecated, for removal: This API element is subject to removal in a future version.
-
setB2BCustomerService
public void setB2BCustomerService(B2BCustomerService<B2BCustomerModel,B2BUnitModel> b2BCustomerService)
Deprecated, for removal: This API element is subject to removal in a future version.
-
getB2BCostCenterService
public B2BCostCenterService getB2BCostCenterService()
Deprecated, for removal: This API element is subject to removal in a future version.
-
setB2BCostCenterService
public void setB2BCostCenterService(B2BCostCenterService b2bCostCenterService)
Deprecated, for removal: This API element is subject to removal in a future version.
-
getCommonI18NService
public CommonI18NService getCommonI18NService()
Deprecated, for removal: This API element is subject to removal in a future version.
-
setCommonI18NService
public void setCommonI18NService(CommonI18NService commonI18NService)
Deprecated, for removal: This API element is subject to removal in a future version.
-
getModelService
public ModelService getModelService()
Deprecated, for removal: This API element is subject to removal in a future version.
-
setModelService
public void setModelService(ModelService modelService)
Deprecated, for removal: This API element is subject to removal in a future version.
-
getBusinessProcessService
public BusinessProcessService getBusinessProcessService()
Deprecated, for removal: This API element is subject to removal in a future version.
-
setBusinessProcessService
public void setBusinessProcessService(BusinessProcessService businessProcessService)
Deprecated, for removal: This API element is subject to removal in a future version.
-
getSessionService
protected SessionService getSessionService()
Deprecated, for removal: This API element is subject to removal in a future version.
-
setSessionService
public void setSessionService(SessionService sessionService)
Deprecated, for removal: This API element is subject to removal in a future version.
-
getB2BBudgetService
public B2BBudgetService<B2BBudgetModel,B2BCustomerModel> getB2BBudgetService()
Deprecated, for removal: This API element is subject to removal in a future version.
-
setB2BBudgetService
public void setB2BBudgetService(B2BBudgetService<B2BBudgetModel,B2BCustomerModel> b2bBudgetService)
Deprecated, for removal: This API element is subject to removal in a future version.
-
getSearchRestrictionService
protected SearchRestrictionService getSearchRestrictionService()
Deprecated, for removal: This API element is subject to removal in a future version.
-
setSearchRestrictionService
public void setSearchRestrictionService(SearchRestrictionService searchRestrictionService)
Deprecated, for removal: This API element is subject to removal in a future version.
-
getPagedB2BCostCenterDao
public PagedGenericDao<B2BCostCenterModel> getPagedB2BCostCenterDao()
Deprecated, for removal: This API element is subject to removal in a future version.
-
setPagedB2BCostCenterDao
public void setPagedB2BCostCenterDao(PagedGenericDao<B2BCostCenterModel> pagedB2BCostCenterDao)
Deprecated, for removal: This API element is subject to removal in a future version.
-
getPagedB2BBudgetDao
public PagedGenericDao<B2BBudgetModel> getPagedB2BBudgetDao()
Deprecated, for removal: This API element is subject to removal in a future version.
-
setPagedB2BBudgetDao
public void setPagedB2BBudgetDao(PagedGenericDao<B2BBudgetModel> pagedB2BBudgetDao)
Deprecated, for removal: This API element is subject to removal in a future version.
-
getPagedB2BPermissionDao
protected PagedGenericDao<B2BPermissionModel> getPagedB2BPermissionDao()
Deprecated, for removal: This API element is subject to removal in a future version.
-
setPagedB2BPermissionDao
public void setPagedB2BPermissionDao(PagedGenericDao<B2BPermissionModel> pagedB2BPermissionDao)
Deprecated, for removal: This API element is subject to removal in a future version.
-
getB2BPermissionService
protected B2BPermissionService<B2BCustomerModel,B2BPermissionResultModel> getB2BPermissionService()
Deprecated, for removal: This API element is subject to removal in a future version.
-
setB2BPermissionService
public void setB2BPermissionService(B2BPermissionService<B2BCustomerModel,B2BPermissionResultModel> b2BPermissionService)
Deprecated, for removal: This API element is subject to removal in a future version.
-
getCommerceCommonI18NService
public CommerceCommonI18NService getCommerceCommonI18NService()
Deprecated, for removal: This API element is subject to removal in a future version.
-
setCommerceCommonI18NService
public void setCommerceCommonI18NService(CommerceCommonI18NService commerceCommonI18NService)
Deprecated, for removal: This API element is subject to removal in a future version.
-
getPagedB2BUserGroupDao
protected PagedGenericDao<B2BUserGroupModel> getPagedB2BUserGroupDao()
Deprecated, for removal: This API element is subject to removal in a future version.
-
setPagedB2BUserGroupDao
public void setPagedB2BUserGroupDao(PagedGenericDao<B2BUserGroupModel> pagedB2BUserGroupDao)
Deprecated, for removal: This API element is subject to removal in a future version.
-
getB2BApprovalProcessLookUpStrategy
protected B2BApprovalProcessLookUpStrategy getB2BApprovalProcessLookUpStrategy()
Deprecated, for removal: This API element is subject to removal in a future version.
-
setB2BApprovalProcessLookUpStrategy
public void setB2BApprovalProcessLookUpStrategy(B2BApprovalProcessLookUpStrategy b2BApprovalProcessLookUpStrategy)
Deprecated, for removal: This API element is subject to removal in a future version.
-
getB2BGroupCycleValidator
protected B2BGroupCycleValidator getB2BGroupCycleValidator()
Deprecated, for removal: This API element is subject to removal in a future version.
-
setB2BGroupCycleValidator
public void setB2BGroupCycleValidator(B2BGroupCycleValidator b2BGroupCycleValidator)
Deprecated, for removal: This API element is subject to removal in a future version.
-
-