Class DefaultSAPB2BUnitService

java.lang.Object
de.hybris.platform.b2b.services.impl.DefaultB2BUnitService
com.sap.hybris.sapcustomerb2b.inbound.DefaultSAPB2BUnitService
All Implemented Interfaces:
de.hybris.platform.b2b.services.B2BUnitService<B2BUnitModel,B2BCustomerModel>

public class DefaultSAPB2BUnitService extends de.hybris.platform.b2b.services.impl.DefaultB2BUnitService
Enhancement of DefaultB2BUnitService to determine the sales area dependent B2BUnit
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected de.hybris.platform.store.services.BaseStoreService
     
     
    protected String
    getCommonDistributionChannel(String salesOrganization, String distributionChannel)
    Gets the common distribution channel
    protected String
    getCommonDivision(String salesOrganization, String division)
    Gets the common division
    protected de.hybris.platform.servicelayer.search.FlexibleSearchService
     
     
    protected String
    Gets the sales area suffix
    protected boolean
    Checks whether the current B2BUnit is a sales area dependent B2BUnit
    void
    setBaseStoreService(de.hybris.platform.store.services.BaseStoreService baseStoreService)
     
    void
    setFlexibleSearchService(de.hybris.platform.servicelayer.search.FlexibleSearchService flexibleSearchService)
     

    Methods inherited from class de.hybris.platform.b2b.services.impl.DefaultB2BUnitService

    addMember, disableBranch, disableUnit, enableBranch, enableUnit, findAccountManagerForUnit, findApprovalProcessCodeForUnit, findUnitByUid, findUnitWithCreditLimit, getAccountManagerForUnit, getActiveCreditLimit, getAllApprovalProcesses, getAllParents, getAllProcessDefinitionsNames, getAllUnitsOfOrganization, getAllUnitsOfOrganization, getAllUserGroupMembersForType, getApprovalProcessCodeForUnit, getB2BCustomers, getB2BHierarchyUnits, getB2bUnitDao, getB2BUnits, getBranch, getBranchHierarchy, getConfigurationService, getCustomers, getModelService, getParent, getPrincipalGroupMembersDao, getProcessDefinitionFactory, getRootUnit, getSearchRestrictionService, getSessionService, getTypeService, getUnitForUid, getUnitWithCreditLimit, getUserService, getUsersOfUserGroup, getUsersOfUserGroup, lookupPriceGroupFromClosestParent, setB2bUnitDao, setConfigurationService, setCurrentUnit, setModelService, setPrincipalGroupMembersDao, setProcessDefinitionFactory, setSearchRestrictionService, setSessionService, setTypeService, setUserService, toggleBranch, toggleUnit, updateBranchInSession, updateParentB2BUnit

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • DefaultSAPB2BUnitService

      public DefaultSAPB2BUnitService()
  • Method Details

    • getBranch

      public Set<B2BUnitModel> getBranch(B2BUnitModel unit)
      Specified by:
      getBranch in interface de.hybris.platform.b2b.services.B2BUnitService<B2BUnitModel,B2BCustomerModel>
      Overrides:
      getBranch in class de.hybris.platform.b2b.services.impl.DefaultB2BUnitService
    • isSalesAreaDependentB2BUnit

      protected boolean isSalesAreaDependentB2BUnit(B2BUnitModel unit)
      Checks whether the current B2BUnit is a sales area dependent B2BUnit
      Parameters:
      unit -
      Returns:
      true = B2BUnit is a sales area dependent B2BUnit; false B2BUnit is a sales area independent B2BUnit
    • getParent

      public B2BUnitModel getParent(B2BCustomerModel b2bCustomer)
      Specified by:
      getParent in interface de.hybris.platform.b2b.services.B2BUnitService<B2BUnitModel,B2BCustomerModel>
      Overrides:
      getParent in class de.hybris.platform.b2b.services.impl.DefaultB2BUnitService
    • getSalesAreaSuffix

      protected String getSalesAreaSuffix()
      Gets the sales area suffix
      Returns:
      String sales area suffix
    • getCommonDistributionChannel

      protected String getCommonDistributionChannel(String salesOrganization, String distributionChannel)
      Gets the common distribution channel
      Parameters:
      salesOrganization -
      distributionChannel -
      Returns:
      String common distribution channel
    • getCommonDivision

      protected String getCommonDivision(String salesOrganization, String division)
      Gets the common division
      Parameters:
      salesOrganization -
      division -
      Returns:
      String common division
    • getBaseStoreService

      protected de.hybris.platform.store.services.BaseStoreService getBaseStoreService()
    • setBaseStoreService

      public void setBaseStoreService(de.hybris.platform.store.services.BaseStoreService baseStoreService)
    • getFlexibleSearchService

      protected de.hybris.platform.servicelayer.search.FlexibleSearchService getFlexibleSearchService()
    • setFlexibleSearchService

      public void setFlexibleSearchService(de.hybris.platform.servicelayer.search.FlexibleSearchService flexibleSearchService)