DefaultB2BCommerceUnitService instead.@Deprecated public class DefaultB2BCommerceUnitService extends DefaultCompanyB2BCommerceService implements B2BCommerceUnitService
| Constructor and Description |
|---|
DefaultB2BCommerceUnitService()
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
B2BCustomerModel |
addApproverToUnit(java.lang.String unitId,
java.lang.String approverId)
Deprecated.
Add approver to given unit
|
void |
disableUnit(java.lang.String uid)
Deprecated.
Disable unit based on the given uid
|
void |
editAddressEntry(B2BUnitModel unitModel,
AddressModel addressModel)
Deprecated.
Save updated
AddressModel object to a unit |
void |
enableUnit(java.lang.String unit)
Deprecated.
Enable unit based on the given uid
|
SearchPageData<B2BCustomerModel> |
findPagedApproversForUnitByGroupMembership(PageableData pageableData,
java.lang.String unitUid,
java.lang.String... usergroupUid)
Deprecated.
Gets list of
SearchPageData B2BCustomerModel provided with required pagination parameters with
PageableData |
AddressModel |
getAddressForCode(B2BUnitModel unit,
java.lang.String id)
Deprecated.
Gets a
AddressModel object for a given unit |
java.util.Collection<? extends B2BUnitModel> |
getAllowedParentUnits(B2BUnitModel unit)
Deprecated.
Gets all the allowed parent units for a given
B2BUnitModel |
java.util.Collection<? extends B2BUnitModel> |
getAllUnitsOfOrganization()
Deprecated.
Get all the units of a organization for current logged in user
|
java.util.Collection<? extends B2BUnitModel> |
getBranch()
Deprecated.
A branch of business units based on the parent unit of the current session user.
|
java.util.Collection<? extends B2BUnitModel> |
getOrganization()
Deprecated.
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)
Deprecated.
Gets list of
SearchPageData B2BCustomerModel for a given unit for pagination provided with
required pagination parameters with PageableData |
<T extends B2BUnitModel> |
getParentUnit()
Deprecated.
Gets a parent unit of the current session user
|
<T extends B2BUnitModel> |
getRootUnit()
Deprecated.
Gets a Root unit of the organization based on the parent business unit of the session user
|
void |
removeAddressEntry(java.lang.String unitUid,
java.lang.String addressId)
Deprecated.
Removes the address from a given unit
|
B2BCustomerModel |
removeApproverFromUnit(java.lang.String unitUid,
java.lang.String approverUid)
Deprecated.
If an approver is a member of the B2BUnit remove b2bapprovergroup role, if the approver is a member of the current
branch of units the approver will be removed from
B2BUnitModel.getApprovers()
relationship |
void |
saveAddressEntry(B2BUnitModel unitModel,
AddressModel addressModel)
Deprecated.
Sets a given address for a unit
|
void |
setParentUnit(B2BUnitModel unitModel,
B2BUnitModel parentUnit)
Deprecated.
Assign a parent unit to unitModel
|
void |
updateBranchInSession()
Deprecated.
Updates the branch collection in the session for the current user.
|
addMemberToUserGroup, getAllCurrencies, getB2BApprovalProcessLookUpStrategy, getB2BApproverService, getB2BBudgetService, getB2BCostCenterService, getB2BCustomerService, getB2BGroupCycleValidator, getB2BPermissionService, getB2BUnitService, getB2BUserGroupForUid, getBusinessProcesses, getBusinessProcessService, getCommerceCommonI18NService, getCommonI18NService, getCurrencyForIsoCode, getCurrentUser, getCustomerForUid, getMembersOfUnitForUserGroup, getModelService, getPagedB2BBudgetDao, getPagedB2BCostCenterDao, getPagedB2BCustomerDao, getPagedB2BPermissionDao, getPagedB2BUserGroupDao, getPagedUsersForUserGroups, getParentUnit, getPermissionForCode, getSearchRestrictionService, getSessionService, getUnitForUid, getUserService, removedMemberFromUserGroup, saveModel, setB2BApprovalProcessLookUpStrategy, setB2BApproverService, setB2BBudgetService, setB2BCostCenterService, setB2BCustomerService, setB2BGroupCycleValidator, setB2BPermissionService, setB2BUnitService, setBusinessProcessService, setCommerceCommonI18NService, setCommonI18NService, setModelService, setPagedB2BBudgetDao, setPagedB2BCostCenterDao, setPagedB2BCustomerDao, setPagedB2BPermissionDao, setPagedB2BUserGroupDao, setSearchRestrictionService, setSessionService, setUserServiceclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetCustomerForUidgetParentUnit, getUnitForUidpublic java.util.Collection<? extends B2BUnitModel> getOrganization()
B2BCommerceUnitServicegetOrganization in interface B2BCommerceUnitServicepublic java.util.Collection<? extends B2BUnitModel> getBranch()
B2BCommerceUnitServicegetBranch in interface B2BCommerceUnitServicepublic <T extends B2BUnitModel> T getRootUnit()
B2BCommerceUnitServicegetRootUnit in interface B2BCommerceUnitServiceB2BCommerceUnitService.getParentUnit()public <T extends B2BUnitModel> T getParentUnit()
B2BCommerceUnitServicegetParentUnit in interface B2BCommerceUnitServicepublic java.util.Collection<? extends B2BUnitModel> getAllUnitsOfOrganization()
B2BCommerceUnitServicegetAllUnitsOfOrganization in interface B2BCommerceUnitServicepublic void setParentUnit(B2BUnitModel unitModel, B2BUnitModel parentUnit)
B2BCommerceUnitServicesetParentUnit in interface B2BCommerceUnitServiceunitModel - A unit to assign a parent for B2BUnitModelparentUnit - The parent unit B2BUnitModelpublic java.util.Collection<? extends B2BUnitModel> getAllowedParentUnits(B2BUnitModel unit)
B2BCommerceUnitServiceB2BUnitModelgetAllowedParentUnits in interface B2BCommerceUnitServiceunit - A unique identifier for a unitB2BUnitModel for the given uidpublic void updateBranchInSession()
B2BCommerceUnitServiceupdateBranchInSession in interface B2BCommerceUnitServicepublic B2BCustomerModel addApproverToUnit(java.lang.String unitId, java.lang.String approverId)
B2BCommerceUnitServiceunitId - A unique identifier for B2BUnitModelapproverId - A unique identifier for B2BCustomerModel who is a approverB2BCustomerModel object after adding approver to customer.public B2BCustomerModel removeApproverFromUnit(java.lang.String unitUid, java.lang.String approverUid)
B2BCommerceUnitServiceB2BUnitModel.getApprovers()
relationshipunitUid - A unique identifier of B2BUnitModelapproverUid - A unique identifier of B2BCustomerModelB2BUnitModel.getApprovers()public void disableUnit(java.lang.String uid)
B2BCommerceUnitServicedisableUnit in interface B2BCommerceUnitServiceuid - A unique identifier of B2BUnitModelpublic void enableUnit(java.lang.String unit)
B2BCommerceUnitServiceenableUnit in interface B2BCommerceUnitServiceunit - A unique identifier of B2BUnitModelpublic SearchPageData<B2BCustomerModel> getPagedUsersForUnit(PageableData pageableData, java.lang.String unit)
B2BCommerceUnitServiceSearchPageData B2BCustomerModel for a given unit for pagination provided with
required pagination parameters with PageableDatagetPagedUsersForUnit in interface B2BCommerceUnitServicepageableData - Pagination informationunit - A unique identifier of B2BUnitModelB2BCostCenterModel objectspublic SearchPageData<B2BCustomerModel> findPagedApproversForUnitByGroupMembership(PageableData pageableData, java.lang.String unitUid, java.lang.String... usergroupUid)
B2BCommerceUnitServiceSearchPageData B2BCustomerModel provided with required pagination parameters with
PageableDatapageableData - Pagination informationunitUid - A unique identifier of B2BUnitModelusergroupUid - A unique identifier of B2BUserGroupModelB2BCostCenterModel objectspublic void saveAddressEntry(B2BUnitModel unitModel, AddressModel addressModel)
B2BCommerceUnitServicesaveAddressEntry in interface B2BCommerceUnitServiceunitModel - A unique identifier of B2BUnitModeladdressModel - AddressModel object which is getting added to unitpublic void removeAddressEntry(java.lang.String unitUid,
java.lang.String addressId)
B2BCommerceUnitServiceremoveAddressEntry in interface B2BCommerceUnitServiceunitUid - A unique identifier of B2BUnitModeladdressId - A unique identifier of AddressModelpublic AddressModel getAddressForCode(B2BUnitModel unit, java.lang.String id)
B2BCommerceUnitServiceAddressModel object for a given unitgetAddressForCode in interface B2BCommerceUnitServiceunit - A unique identifier of B2BUnitModelid - A unique identifier of AddressModelAddressModel objectpublic void editAddressEntry(B2BUnitModel unitModel, AddressModel addressModel)
B2BCommerceUnitServiceAddressModel object to a uniteditAddressEntry in interface B2BCommerceUnitServiceunitModel - A unique identifier of B2BUnitModeladdressModel - AddressModel object for given unitCopyright © 2018 SAP SE. All Rights Reserved.