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 B2BCommerceUnitFacade
Deprecated, for removal: This API element is subject to removal in a future version.
-
Constructor Summary
ConstructorsConstructorDescriptionDeprecated, for removal: This API element is subject to removal in a future version. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddAddressToUnit(AddressData addressData, String unitUid) Deprecated, for removal: This API element is subject to removal in a future version.Associates an address to a business unitaddApproverToUnit(String unitUid, String approverUid) Deprecated, for removal: This API element is subject to removal in a future version.Since 6.0.voiddisableUnit(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, String uid) Deprecated, for removal: This API element is subject to removal in a future version.Edit address of a unitvoidenableUnit(String unitUid) Deprecated, for removal: This API element is subject to removal in a future version.Enable a Business Unit that is not activeDeprecated, for removal: This API element is subject to removal in a future version.Get All units of organization which are enabled.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 siblinggetPagedAdministratorsForUnit(PageableData pageableData, 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.getPagedApproversForUnit(PageableData pageableData, String unitUid) Deprecated, for removal: This API element is subject to removal in a future version.Since 6.0.getPagedCustomersForUnit(PageableData pageableData, 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.getPagedManagersForUnit(PageableData pageableData, 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.getPagedUserDataForUnit(PageableData pageableData, 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.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(String unitUid, String addressId) Deprecated, for removal: This API element is subject to removal in a future version.Remove an address from a unitremoveApproverFromUnit(String unitUid, String approverUid) Deprecated, for removal: This API element is subject to removal in a future version.Since 6.0.voidupdateOrCreateBusinessUnit(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 createdMethods 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, setUserServiceMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface de.hybris.platform.b2bcommercefacades.company.B2BUnitFacade
getBranchNodes, getParentUnit, getUnitForUid
-
Constructor Details
-
DefaultB2BCommerceUnitFacade
public DefaultB2BCommerceUnitFacade()Deprecated, for removal: This API element is subject to removal in a future version.
-
-
Method Details
-
getPagedApproversForUnit
@Deprecated(since="6.0", forRemoval=true) public SearchPageData<CustomerData> getPagedApproversForUnit(PageableData pageableData, 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, 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, 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, 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
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
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
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(String unitUid, 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(String unitUid, 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
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
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
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
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
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
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
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
-
DefaultB2BUnitFacadeandDefaultB2BApproverFacadeinstead.