Class DefaultB2BCommerceUnitFacade
- java.lang.Object
-
- de.hybris.platform.b2bacceleratorfacades.company.impl.DefaultCompanyB2BCommerceFacade
-
- de.hybris.platform.b2bacceleratorfacades.company.impl.DefaultB2BCommerceUnitFacade
-
- All Implemented Interfaces:
B2BCommerceUnitFacade,CompanyB2BCommerceFacade,B2BUnitFacade
@Deprecated(since="6.0", forRemoval=true) public class DefaultB2BCommerceUnitFacade extends DefaultCompanyB2BCommerceFacade implements B2BCommerceUnitFacadeDeprecated, for removal: This API element is subject to removal in a future version.Since 6.0. UseDefaultB2BUnitFacadeandDefaultB2BApproverFacadeinstead.
-
-
Constructor Summary
Constructors Constructor Description DefaultB2BCommerceUnitFacade()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 voidaddAddressToUnit(AddressData addressData, java.lang.String unitUid)Deprecated, for removal: This API element is subject to removal in a future version.Associates an address to a business unitB2BSelectionDataaddApproverToUnit(java.lang.String unitUid, java.lang.String approverUid)Deprecated, for removal: This API element is subject to removal in a future version.Since 6.0.voiddisableUnit(java.lang.String uid)Deprecated, for removal: This API element is subject to removal in a future version.Disables a unit based on a uid of aB2BUnitModelvoideditAddressOfUnit(AddressData updatedAddress, java.lang.String uid)Deprecated, for removal: This API element is subject to removal in a future version.Edit address of a unitvoidenableUnit(java.lang.String unitUid)Deprecated, for removal: This API element is subject to removal in a future version.Enable a Business Unit that is not activejava.util.List<java.lang.String>getAllActiveUnitsOfOrganization()Deprecated, for removal: This API element is subject to removal in a future version.Get All units of organization which are enabled.java.util.List<B2BUnitNodeData>getAllowedParentUnits(java.lang.String uid)Deprecated, for removal: This API element is subject to removal in a future version.A list of parent units for which the unit with uid can be assigned as a siblingSearchPageData<CustomerData>getPagedAdministratorsForUnit(PageableData pageableData, java.lang.String unitUid)Deprecated, for removal: This API element is subject to removal in a future version.Get a list of administrators associated with a give unit.SearchPageData<CustomerData>getPagedApproversForUnit(PageableData pageableData, java.lang.String unitUid)Deprecated, for removal: This API element is subject to removal in a future version.Since 6.0.SearchPageData<CustomerData>getPagedCustomersForUnit(PageableData pageableData, java.lang.String unitUid)Deprecated, for removal: This API element is subject to removal in a future version.Get a list of customers associated with a give unit.SearchPageData<CustomerData>getPagedManagersForUnit(PageableData pageableData, java.lang.String unitUid)Deprecated, for removal: This API element is subject to removal in a future version.Get a list of managers associated with a give unit.SearchPageData<CustomerData>getPagedUserDataForUnit(PageableData pageableData, java.lang.String unit)Deprecated, for removal: This API element is subject to removal in a future version.Get a list of customers directly associated to the unit plus all the customers who are members of given list of usergroups with the visible branch for the current session user.B2BUnitNodeDatagetParentUnitNode()Deprecated, for removal: This API element is subject to removal in a future version.Gets a business unit as a B2BUnitNodeData assigned to the current session user with all the children retrieved viaB2BUnitNodeData.getChildren()which only has enough data to construct a tree view.voidremoveAddressFromUnit(java.lang.String unitUid, java.lang.String addressId)Deprecated, for removal: This API element is subject to removal in a future version.Remove an address from a unitB2BSelectionDataremoveApproverFromUnit(java.lang.String unitUid, java.lang.String approverUid)Deprecated, for removal: This API element is subject to removal in a future version.Since 6.0.voidupdateOrCreateBusinessUnit(java.lang.String originalUid, B2BUnitData unit)Deprecated, for removal: This API element is subject to removal in a future version.UpdatesB2BUnitModelbased on unit data if param originalUid is null the new unit is created-
Methods inherited from class de.hybris.platform.b2bacceleratorfacades.company.impl.DefaultCompanyB2BCommerceFacade
convertPageData, createB2BSelectionData, getAddressReversePopulator, getAllCurrencies, getB2BApproverService, getB2BBudgetConverter, getB2BBudgetReversePopulator, getB2BCommerceB2BUserGroupService, getB2BCommerceBudgetService, getB2BCommerceCostCenterService, getB2BCommercePermissionService, getB2BCommerceUnitService, getB2BCommerceUserService, getB2BCostCenterConverter, getB2BCostCenterReversePopulator, getB2BCustomerConverter, getB2BCustomerReversePopulator, getB2BPermissionConverter, getB2BPermissionReversePopulator, getB2BPermissionTypeDataConverter, getB2BUnitConverter, getB2BUnitReversePopulator, getB2BUserConverter, getB2BUserGroupConverter, getB2BUserGroupsLookUpStrategy, getBaseStoreService, getBranchNodes, getBudgetDataForCode, getBusinessProcesses, getCompanyB2BCommerceService, getCurrentStore, getCustomerForUid, getEnumerationService, getModelService, getPagedBudgets, getParentUnit, getUnitForUid, getUnitTreeConverter, getUserGroups, getUserService, populateRolesForCustomer, setAddressReversePopulator, setB2BApproverService, setB2BBudgetConverter, setB2BBudgetReversePopulator, setB2BCommerceB2BUserGroupService, setB2BCommerceBudgetService, setB2BCommerceCostCenterService, setB2BCommercePermissionService, setB2BCommerceUnitService, setB2BCommerceUserService, setB2BCostCenterConverter, setB2BCostCenterReversePopulator, setB2BCustomerConverter, setB2BCustomerReversePopulator, setB2BPermissionConverter, setB2BPermissionReversePopulator, setB2BPermissionTypeDataConverter, setB2BUnitConverter, setB2BUnitReversePopulator, setB2BUserConverter, setB2BUserGroupConverter, setB2BUserGroupsLookUpStrategy, setBaseStoreService, setCompanyB2BCommerceService, setEnumerationService, setModelService, setUnitTreeConverter, setUserService
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface de.hybris.platform.b2bcommercefacades.company.B2BUnitFacade
getBranchNodes, getParentUnit, getUnitForUid
-
-
-
-
Method Detail
-
getPagedApproversForUnit
@Deprecated(since="6.0", forRemoval=true) public SearchPageData<CustomerData> getPagedApproversForUnit(PageableData pageableData, java.lang.String unitUid)Deprecated, for removal: This API element is subject to removal in a future version.Since 6.0. UseDefaultB2BApproverFacade.getPagedApproversForUnit(PageableData, String)instead.Description copied from interface:B2BCommerceUnitFacadeGets a paged list of approvers. Approvers already assigned to the business unit with unitUid are marked as selected.- Specified by:
getPagedApproversForUnitin interfaceB2BCommerceUnitFacade- Parameters:
pageableData- Pagination dataunitUid- A unit id of the business unit from which to check selected approvers.- Returns:
- A paged approver data.
-
getPagedCustomersForUnit
public SearchPageData<CustomerData> getPagedCustomersForUnit(PageableData pageableData, java.lang.String unitUid)
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:B2BUnitFacadeGet a list of customers associated with a give unit.- Specified by:
getPagedCustomersForUnitin interfaceB2BUnitFacadeunitUid- A uid of aB2BUnitModel- Returns:
- A paginated list of customers.
-
getPagedAdministratorsForUnit
public SearchPageData<CustomerData> getPagedAdministratorsForUnit(PageableData pageableData, java.lang.String unitUid)
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:B2BUnitFacadeGet a list of administrators associated with a give unit.- Specified by:
getPagedAdministratorsForUnitin interfaceB2BUnitFacadeunitUid- A uid of aB2BUnitModel- Returns:
- A paginated list of customers.
-
getPagedManagersForUnit
public SearchPageData<CustomerData> getPagedManagersForUnit(PageableData pageableData, java.lang.String unitUid)
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:B2BUnitFacadeGet a list of managers associated with a give unit.- Specified by:
getPagedManagersForUnitin interfaceB2BUnitFacadeunitUid- A uid of aB2BUnitModel- Returns:
- A paginated list of customers.
-
disableUnit
public void disableUnit(java.lang.String uid)
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:B2BUnitFacadeDisables a unit based on a uid of aB2BUnitModel- Specified by:
disableUnitin interfaceB2BUnitFacade
-
getParentUnitNode
public B2BUnitNodeData getParentUnitNode()
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:B2BUnitFacadeGets a business unit as a B2BUnitNodeData assigned to the current session user with all the children retrieved viaB2BUnitNodeData.getChildren()which only has enough data to construct a tree view.- Specified by:
getParentUnitNodein interfaceB2BUnitFacade- Returns:
- A business unit assigned to the session customer
-
getAllowedParentUnits
public java.util.List<B2BUnitNodeData> getAllowedParentUnits(java.lang.String uid)
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:B2BUnitFacadeA list of parent units for which the unit with uid can be assigned as a sibling- Specified by:
getAllowedParentUnitsin interfaceB2BUnitFacade- Parameters:
uid- An id of aB2BUnitModel- Returns:
- A list of parent units that a given unit can be a child of
-
addApproverToUnit
@Deprecated(since="6.0", forRemoval=true) public B2BSelectionData addApproverToUnit(java.lang.String unitUid, java.lang.String approverUid)Deprecated, for removal: This API element is subject to removal in a future version.Since 6.0. UseDefaultB2BApproverFacade.addApproverToUnit(String, String)instead.Description copied from interface:B2BCommerceUnitFacadeAdds an approver to a unit.- Specified by:
addApproverToUnitin interfaceB2BCommerceUnitFacade- Parameters:
unitUid- A unit to add an approver toapproverUid- The approver to add to a unit's list of approvers- Returns:
- An approver if added successfully otherwise null.
-
removeApproverFromUnit
@Deprecated(since="6.0", forRemoval=true) public B2BSelectionData removeApproverFromUnit(java.lang.String unitUid, java.lang.String approverUid)Deprecated, for removal: This API element is subject to removal in a future version.Since 6.0. UseDefaultB2BApproverFacade.removeApproverFromUnit(String, String)instead.Description copied from interface:B2BCommerceUnitFacadeRemoves an approver from a unit.- Specified by:
removeApproverFromUnitin interfaceB2BCommerceUnitFacade- Parameters:
unitUid- A business unit idapproverUid- An approvers uid- Returns:
- An approver
-
getAllActiveUnitsOfOrganization
public java.util.List<java.lang.String> getAllActiveUnitsOfOrganization()
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:B2BUnitFacadeGet All units of organization which are enabled.- Specified by:
getAllActiveUnitsOfOrganizationin interfaceB2BUnitFacade- Returns:
- A collection of B2BUnit uids.
-
getPagedUserDataForUnit
public SearchPageData<CustomerData> getPagedUserDataForUnit(PageableData pageableData, java.lang.String unit)
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:B2BUnitFacadeGet a list of customers directly associated to the unit plus all the customers who are members of given list of usergroups with the visible branch for the current session user. A list ofPrincipalModel.getUid()- Specified by:
getPagedUserDataForUnitin interfaceB2BUnitFacade- Parameters:
pageableData- Pagination dataunit- A unit UID- Returns:
- A paginated list of
CustomerData
-
addAddressToUnit
public void addAddressToUnit(AddressData addressData, java.lang.String unitUid)
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:B2BUnitFacadeAssociates an address to a business unit- Specified by:
addAddressToUnitin interfaceB2BUnitFacade- Parameters:
addressData- Address data objectunitUid- A unit uid
-
removeAddressFromUnit
public void removeAddressFromUnit(java.lang.String unitUid, java.lang.String addressId)Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:B2BUnitFacadeRemove an address from a unit- Specified by:
removeAddressFromUnitin interfaceB2BUnitFacade
-
editAddressOfUnit
public void editAddressOfUnit(AddressData updatedAddress, java.lang.String uid)
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:B2BUnitFacadeEdit address of a unit- Specified by:
editAddressOfUnitin interfaceB2BUnitFacade- Parameters:
updatedAddress- Address datauid- A unit UID
-
enableUnit
public void enableUnit(java.lang.String unitUid)
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:B2BUnitFacadeEnable a Business Unit that is not active- Specified by:
enableUnitin interfaceB2BUnitFacade- Parameters:
unitUid- A unitUid uid
-
updateOrCreateBusinessUnit
public void updateOrCreateBusinessUnit(java.lang.String originalUid, B2BUnitData unit)Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:B2BUnitFacadeUpdatesB2BUnitModelbased on unit data if param originalUid is null the new unit is created- Specified by:
updateOrCreateBusinessUnitin interfaceB2BUnitFacade- Parameters:
originalUid- the uid ofB2BUnitModelto update.unit- A unit data object
-
-