public interface B2BCommerceUnitService
| Modifier and Type | Method and Description |
|---|---|
void |
disableUnit(java.lang.String uid)
Disable unit based on the given uid
|
void |
editAddressEntry(B2BUnitModel unitModel,
AddressModel addressModel)
Save updated
AddressModel object to a unit |
void |
enableUnit(java.lang.String unit)
Enable unit based on the given uid
|
AddressModel |
getAddressForCode(B2BUnitModel unit,
java.lang.String id)
Gets a
AddressModel object for a given unit |
java.util.Collection<? extends B2BUnitModel> |
getAllowedParentUnits(B2BUnitModel unit)
Gets all the allowed parent units for a given
B2BUnitModel |
java.util.Collection<? extends B2BUnitModel> |
getAllUnitsOfOrganization()
Get all the units of a organization for current logged in user
|
java.util.Collection<? extends B2BUnitModel> |
getBranch()
A branch of business units based on the parent unit of the current session user.
|
java.util.Collection<? extends B2BUnitModel> |
getOrganization()
A collection of business units based on root unit of an organization to which the parent business unit of the
currently logged in customer belongs to
|
SearchPageData<B2BCustomerModel> |
getPagedUsersForUnit(PageableData pageableData,
java.lang.String unit)
Gets list of
SearchPageData B2BCustomerModel for a given unit for pagination provided with
required pagination parameters with PageableData |
<T extends B2BUnitModel> |
getParentUnit()
Gets a parent unit of the current session user
|
<T extends B2BUnitModel> |
getParentUnit(B2BUnitModel unit)
Gets parent unit based on the given unit
|
<T extends B2BUnitModel> |
getRootUnit()
Gets a Root unit of the organization based on the parent business unit of the session user
|
B2BUnitModel |
getUnitForUid(java.lang.String unitUid)
Gets the unit for uid.
|
void |
removeAddressEntry(java.lang.String unitUid,
java.lang.String addressId)
Removes the address from a given unit
|
void |
saveAddressEntry(B2BUnitModel unitForUid,
AddressModel addressModel)
Sets a given address for a unit
|
void |
setParentUnit(B2BUnitModel unitModel,
B2BUnitModel parentUnit)
Assign a parent unit to unitModel
|
void |
updateBranchInSession()
Updates the branch collection in the session for the current user.
|
java.util.Collection<? extends B2BUnitModel> getOrganization()
java.util.Collection<? extends B2BUnitModel> getBranch()
<T extends B2BUnitModel> T getRootUnit()
getParentUnit()<T extends B2BUnitModel> T getParentUnit()
void setParentUnit(B2BUnitModel unitModel, B2BUnitModel parentUnit)
unitModel - A unit to assign a parent for B2BUnitModelparentUnit - The parent unit B2BUnitModeljava.util.Collection<? extends B2BUnitModel> getAllUnitsOfOrganization()
java.util.Collection<? extends B2BUnitModel> getAllowedParentUnits(B2BUnitModel unit)
B2BUnitModelunit - A unique identifier for a unitB2BUnitModel for the given uidvoid updateBranchInSession()
void disableUnit(java.lang.String uid)
uid - A unique identifier of B2BUnitModelvoid enableUnit(java.lang.String unit)
unit - A unique identifier of B2BUnitModel<T extends B2BUnitModel> T getParentUnit(B2BUnitModel unit)
unit - A B2BUnitModel objectB2BUnitModel object which denotes the parent unit of the given unitvoid removeAddressEntry(java.lang.String unitUid,
java.lang.String addressId)
unitUid - A unique identifier of B2BUnitModeladdressId - A unique identifier of AddressModelvoid saveAddressEntry(B2BUnitModel unitForUid, AddressModel addressModel)
unitForUid - A unique identifier of B2BUnitModeladdressModel - AddressModel object which is getting added to unitAddressModel getAddressForCode(B2BUnitModel unit, java.lang.String id)
AddressModel object for a given unitunit - A unique identifier of B2BUnitModelid - A unique identifier of AddressModelAddressModel objectvoid editAddressEntry(B2BUnitModel unitModel, AddressModel addressModel)
AddressModel object to a unitunitModel - A unique identifier of B2BUnitModeladdressModel - AddressModel object for given unitSearchPageData<B2BCustomerModel> getPagedUsersForUnit(PageableData pageableData, java.lang.String unit)
SearchPageData B2BCustomerModel for a given unit for pagination provided with
required pagination parameters with PageableDatapageableData - Pagination informationunit - A unique identifier of B2BUnitModelB2BCostCenterModel objectsB2BUnitModel getUnitForUid(java.lang.String unitUid)
unitUid - the unit uidCopyright © 2018 SAP SE. All Rights Reserved.