Class DefaultB2BItemService

  • All Implemented Interfaces:
    B2BItemService

    @Deprecated(since="4.4",
                forRemoval=true)
    public class DefaultB2BItemService
    extends java.lang.Object
    implements B2BItemService
    Deprecated, for removal: This API element is subject to removal in a future version.
    Since 4.4. Distribute functionality to hybris services or if does not exist find an appropriate place in the b2b services.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected java.util.List<java.lang.String> roles
      Deprecated, for removal: This API element is subject to removal in a future version.
      The role groups.
    • Constructor Summary

      Constructors 
      Constructor Description
      DefaultB2BItemService()
      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
      boolean budgetExists​(java.lang.String code)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Since 4.4.
      boolean costCenterExists​(java.lang.String code)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Since 4.4.
      java.util.Set<B2BCustomerModel> findAllApprovers()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Since 4.4.
      java.util.Set<B2BBudgetModel> findAllB2BBudgets()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Since 4.4.
      java.util.Set<B2BUserGroupModel> findAllB2BUserGroups()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Since 4.4.
      <M extends ItemModel>
      java.util.List<M>
      findAllItems​(java.lang.Class<M> model)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Since 4.4.
      java.util.List<PrincipalGroupModel> findAllRoleGroups()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Since 4.4.
      B2BBudgetModel findB2BBudgetByCode​(java.lang.String code)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Since 4.4.
      B2BCostCenterModel findB2BCostCenterByCode​(java.lang.String code)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Since 4.4.
      B2BCustomerModel findB2BCustomerByCode​(java.lang.String code)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Since 4.4.
      B2BUserGroupModel findB2BUserGroupByCode​(java.lang.String code)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Since 4.4.
      PrincipalGroupModel findPrincipalGroupByCode​(java.lang.String code)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Since 4.4.
      protected BaseDao getBaseDao()
      Deprecated, for removal: This API element is subject to removal in a future version.
       
      protected java.util.List<java.lang.String> getRoles()
      Deprecated, for removal: This API element is subject to removal in a future version.
       
      protected SearchRestrictionService getSearchRestrictionService()
      Deprecated, for removal: This API element is subject to removal in a future version.
       
      protected SessionService getSessionService()
      Deprecated, for removal: This API element is subject to removal in a future version.
       
      void setBaseDao​(BaseDao baseDao)
      Deprecated, for removal: This API element is subject to removal in a future version.
       
      void setRoles​(java.util.List<java.lang.String> roles)
      Deprecated, for removal: This API element is subject to removal in a future version.
       
      void setSearchRestrictionService​(SearchRestrictionService searchRestrictionService)
      Deprecated, for removal: This API element is subject to removal in a future version.
       
      void setSessionService​(SessionService sessionService)
      Deprecated, for removal: This API element is subject to removal in a future version.
       
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • roles

        protected java.util.List<java.lang.String> roles
        Deprecated, for removal: This API element is subject to removal in a future version.
        The role groups.
    • Constructor Detail

      • DefaultB2BItemService

        public DefaultB2BItemService()
        Deprecated, for removal: This API element is subject to removal in a future version.
    • Method Detail

      • budgetExists

        @Deprecated(since="4.4",
                    forRemoval=true)
        public boolean budgetExists​(java.lang.String code)
        Deprecated, for removal: This API element is subject to removal in a future version.
        Since 4.4. Use B2BBudgetService.isBudgetExisting(String) Checks whether the budget exists regardless of visibility constraints
        Specified by:
        budgetExists in interface B2BItemService
        Parameters:
        code -
        Returns:
        true is budget with this code exists
      • costCenterExists

        @Deprecated(since="4.4",
                    forRemoval=true)
        public boolean costCenterExists​(java.lang.String code)
        Deprecated, for removal: This API element is subject to removal in a future version.
        Since 4.4. Use B2BCostCenterService.isCostCenterExisting(String) Checks whether the cost center exists regardless of visibility constraints
        Description copied from interface: B2BItemService
        Checks whether the cost center exists regardless of visibility constraints
        Specified by:
        costCenterExists in interface B2BItemService
        Parameters:
        code -
        Returns:
        true is budget with this code exists
      • findAllRoleGroups

        @Deprecated(since="4.4",
                    forRemoval=true)
        public java.util.List<PrincipalGroupModel> findAllRoleGroups()
        Deprecated, for removal: This API element is subject to removal in a future version.
        Since 4.4.
        Specified by:
        findAllRoleGroups in interface B2BItemService
        Returns:
        list of Groups which grant rights to members.
      • findAllItems

        @Deprecated(since="4.4",
                    forRemoval=true)
        public <M extends ItemModel> java.util.List<M> findAllItems​(java.lang.Class<M> model)
        Deprecated, for removal: This API element is subject to removal in a future version.
        Since 4.4.
        Specified by:
        findAllItems in interface B2BItemService
        Returns:
        list of Models
      • getRoles

        protected java.util.List<java.lang.String> getRoles()
        Deprecated, for removal: This API element is subject to removal in a future version.
      • setRoles

        public void setRoles​(java.util.List<java.lang.String> roles)
        Deprecated, for removal: This API element is subject to removal in a future version.
      • setBaseDao

        public void setBaseDao​(BaseDao baseDao)
        Deprecated, for removal: This API element is subject to removal in a future version.
      • getBaseDao

        protected BaseDao getBaseDao()
        Deprecated, for removal: This API element is subject to removal in a future version.
        Returns:
        the baseDao
      • 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.
      • 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.