Class B2BUnitServiceProxy
java.lang.Object
de.hybris.platform.b2b.services.impl.B2BUnitServiceProxy
- All Implemented Interfaces:
B2BUnitService<B2BUnitModel,B2BCustomerModel>
@Deprecated(since="1905",
forRemoval=true)
public class B2BUnitServiceProxy
extends Object
implements B2BUnitService<B2BUnitModel,B2BCustomerModel>
Deprecated, for removal: This API element is subject to removal in a future version.
in 1905
Proxy method for
DefaultB2BUnitService. Will be deprecated at 6.6.-
Constructor Summary
ConstructorsConstructorDescriptionDeprecated, for removal: This API element is subject to removal in a future version. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddMember(B2BUnitModel group, PrincipalModel member) Deprecated, for removal: This API element is subject to removal in a future version.Adds the member to a group.voiddisableBranch(B2BUnitModel unit) Deprecated, for removal: This API element is subject to removal in a future version.Disable branch.voiddisableUnit(B2BUnitModel unit) Deprecated, for removal: This API element is subject to removal in a future version.Disables a b2b unitvoidenableBranch(B2BUnitModel unit) Deprecated, for removal: This API element is subject to removal in a future version.Enable branch.voidenableUnit(B2BUnitModel unit) Deprecated, for removal: This API element is subject to removal in a future version.Enables a b2b unitDeprecated, for removal: This API element is subject to removal in a future version.Get salesrep from unit, checking parent units up the organization tree up to the root unit if salesrep is not set in theunitDeprecated, for removal: This API element is subject to removal in a future version.Get approval process code from unit, checking parent units up the organization tree up to the root unit if process is not set in theunitfindUnitByUid(String uid) Deprecated, for removal: This API element is subject to removal in a future version.Find unit by uid.findUnitWithCreditLimit(B2BUnitModel unit, CurrencyModel currency) Deprecated, for removal: This API element is subject to removal in a future version.Get unit with credit limit/credit check group value, checking parent units up the organization tree up to the root unit if credit limit / credit check group is not set in theunitDeprecated, for removal: This API element is subject to removal in a future version.Get salesrep from unit, checking parent units up the organization tree up to the root unit if salesrep is not set in theunitDeprecated, for removal: This API element is subject to removal in a future version.Get All Approval Process codes defined in local.propertiesgetAllParents(B2BUnitModel unit) Deprecated, for removal: This API element is subject to removal in a future version.Get all the parent units in the organization hierarchy all the way up to the root.Deprecated, for removal: This API element is subject to removal in a future version.Gets all process definition name registered with theProcessDefinitionFactorygetAllUnitsOfOrganization(B2BCustomerModel customer) Deprecated, for removal: This API element is subject to removal in a future version.Retrieves all units of an organization thecustomerbelongs too.Deprecated, for removal: This API element is subject to removal in a future version.Retrieves all units of an organization theunitbelongs too.<M extends PrincipalModel>
Set<M>getAllUserGroupMembersForType(UserGroupModel userGroup, Class<M> memberType) Deprecated, for removal: This API element is subject to removal in a future version.Retrieves all members of a User Group of the specified typeDeprecated, for removal: This API element is subject to removal in a future version.Get approval process code from unit, checking parent units up the organization tree up to the root unit if process is not set in theunitgetB2BCustomers(B2BUnitModel unit) Deprecated, for removal: This API element is subject to removal in a future version.Gets the b2 b customers.getB2BUnits(B2BUnitModel unit) Deprecated, for removal: This API element is subject to removal in a future version.Gets units that are children of the current unit.getBranch(B2BUnitModel unit) Deprecated, for removal: This API element is subject to removal in a future version.Gets the branch of a unit.getCustomers(Set<B2BUnitModel> branch) Deprecated, for removal: This API element is subject to removal in a future version.Gets the employees.protected B2BUnitService<B2BUnitModel,B2BCustomerModel> Deprecated, for removal: This API element is subject to removal in a future version.getParent(B2BCustomerModel employee) Deprecated, for removal: This API element is subject to removal in a future version.Gets the parent unit of a user.getParent(B2BUnitModel unit) Deprecated, for removal: This API element is subject to removal in a future version.Gets the parent unit of a unit.getRootUnit(B2BUnitModel unit) Deprecated, for removal: This API element is subject to removal in a future version.Gets the root unit.getUnitForUid(String uid) Deprecated, for removal: This API element is subject to removal in a future version.Find unit by uid.Deprecated, for removal: This API element is subject to removal in a future version.Get unit with credit limit/credit check group value, checking parent units up the organization tree up to the root unit if credit limit / credit check group is not set in theunitgetUsersOfUserGroup(B2BUnitModel unit, String userGroupId) Deprecated, for removal: This API element is subject to removal in a future version.Gets all members from the unit who belong to specified User GroupgetUsersOfUserGroup(B2BUnitModel unit, String userGroupId, boolean recursive) Deprecated, for removal: This API element is subject to removal in a future version.Gets all members from the unit who belong to specified User GroupvoidsetCurrentUnit(B2BCustomerModel customer, B2BUnitModel unit) Deprecated, for removal: This API element is subject to removal in a future version.Assigns a default unit for a customer who may be a member of multiple units.voidsetDefaultB2BUnitService(B2BUnitService<B2BUnitModel, B2BCustomerModel> defaultB2BUnitService) Deprecated, for removal: This API element is subject to removal in a future version.voidupdateBranchInSession(Session session, UserModel currentUser) Deprecated, for removal: This API element is subject to removal in a future version.Sets the branch for the current use in the session.voidupdateParentB2BUnit(B2BUnitModel parentB2BUnit, PrincipalModel member) Deprecated, for removal: This API element is subject to removal in a future version.Set the parent unit of a given principal.
-
Constructor Details
-
B2BUnitServiceProxy
public B2BUnitServiceProxy()Deprecated, for removal: This API element is subject to removal in a future version.
-
-
Method Details
-
getApprovalProcessCodeForUnit
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:B2BUnitServiceGet approval process code from unit, checking parent units up the organization tree up to the root unit if process is not set in theunit- Specified by:
getApprovalProcessCodeForUnitin interfaceB2BUnitService<B2BUnitModel,B2BCustomerModel> - Returns:
- approval process code
-
getAllUnitsOfOrganization
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:B2BUnitServiceRetrieves all units of an organization theunitbelongs too.- Specified by:
getAllUnitsOfOrganizationin interfaceB2BUnitService<B2BUnitModel,B2BCustomerModel> - Parameters:
unit- AB2BUnitModelwithin an organization- Returns:
- A list of all units within an organization.
-
getAllUnitsOfOrganization
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:B2BUnitServiceRetrieves all units of an organization thecustomerbelongs too.- Specified by:
getAllUnitsOfOrganizationin interfaceB2BUnitService<B2BUnitModel,B2BCustomerModel> - Parameters:
customer- the session user.- Returns:
- the all units of organization
-
getAllUserGroupMembersForType
public <M extends PrincipalModel> Set<M> getAllUserGroupMembersForType(UserGroupModel userGroup, Class<M> memberType) Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:B2BUnitServiceRetrieves all members of a User Group of the specified type- Specified by:
getAllUserGroupMembersForTypein interfaceB2BUnitService<B2BUnitModel,B2BCustomerModel> - Parameters:
userGroup- the user groupmemberType- the principle's member type- Returns:
- the principle members
-
getParent
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:B2BUnitServiceGets the parent unit of a user.- Specified by:
getParentin interfaceB2BUnitService<B2BUnitModel,B2BCustomerModel> - Parameters:
employee- the employee- Returns:
- the parent
-
getParent
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:B2BUnitServiceGets the parent unit of a unit.- Specified by:
getParentin interfaceB2BUnitService<B2BUnitModel,B2BCustomerModel> - Parameters:
unit- the child unit- Returns:
- the parent unit or null if
unitwas the root unit.
-
getRootUnit
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:B2BUnitServiceGets the root unit.- Specified by:
getRootUnitin interfaceB2BUnitService<B2BUnitModel,B2BCustomerModel> - Parameters:
unit- the unit- Returns:
- the root unit
-
findUnitByUid
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:B2BUnitServiceFind unit by uid.- Specified by:
findUnitByUidin interfaceB2BUnitService<B2BUnitModel,B2BCustomerModel> - Parameters:
uid- the uid- Returns:
- the b2 b unit model
-
getUnitForUid
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:B2BUnitServiceFind unit by uid.- Specified by:
getUnitForUidin interfaceB2BUnitService<B2BUnitModel,B2BCustomerModel> - Parameters:
uid- the uid- Returns:
- the b2 b unit model
-
getBranch
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:B2BUnitServiceGets the branch of a unit.- Specified by:
getBranchin interfaceB2BUnitService<B2BUnitModel,B2BCustomerModel> - Parameters:
unit- the unit- Returns:
- the branch
-
getCustomers
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:B2BUnitServiceGets the employees.- Specified by:
getCustomersin interfaceB2BUnitService<B2BUnitModel,B2BCustomerModel> - Parameters:
branch- the branch- Returns:
- the employees
-
disableBranch
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:B2BUnitServiceDisable branch. Mark all units in the branch as active = false- Specified by:
disableBranchin interfaceB2BUnitService<B2BUnitModel,B2BCustomerModel> - Parameters:
unit- the unit
-
enableBranch
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:B2BUnitServiceEnable branch. Mark all unit in the branch as active = true.- Specified by:
enableBranchin interfaceB2BUnitService<B2BUnitModel,B2BCustomerModel> - Parameters:
unit- the unit
-
getAllParents
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:B2BUnitServiceGet all the parent units in the organization hierarchy all the way up to the root.- Specified by:
getAllParentsin interfaceB2BUnitService<B2BUnitModel,B2BCustomerModel> - Parameters:
unit- the unit- Returns:
- A Set of all b2b units (CompanyModel)
-
addMember
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:B2BUnitServiceAdds the member to a group. The model is not saved.- Specified by:
addMemberin interfaceB2BUnitService<B2BUnitModel,B2BCustomerModel> - Parameters:
group- the groupmember- the member
-
getB2BCustomers
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:B2BUnitServiceGets the b2 b customers.- Specified by:
getB2BCustomersin interfaceB2BUnitService<B2BUnitModel,B2BCustomerModel> - Parameters:
unit- the unit- Returns:
- the b2 b customers
-
getB2BUnits
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:B2BUnitServiceGets units that are children of the current unit.- Specified by:
getB2BUnitsin interfaceB2BUnitService<B2BUnitModel,B2BCustomerModel> - Parameters:
unit- the unit- Returns:
- the b2 b units
-
updateParentB2BUnit
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:B2BUnitServiceSet the parent unit of a given principal. The member is not saved.- Specified by:
updateParentB2BUnitin interfaceB2BUnitService<B2BUnitModel,B2BCustomerModel> - Parameters:
parentB2BUnit- the parent b2 b unitmember- the member
-
getUsersOfUserGroup
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:B2BUnitServiceGets all members from the unit who belong to specified User Group- Specified by:
getUsersOfUserGroupin interfaceB2BUnitService<B2BUnitModel,B2BCustomerModel> - Parameters:
unit- the unituserGroupId- the user group id- Returns:
- A collection of users who are members of the unit with group userGroupId
-
getUsersOfUserGroup
public Collection<B2BCustomerModel> getUsersOfUserGroup(B2BUnitModel unit, String userGroupId, boolean recursive) Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:B2BUnitServiceGets all members from the unit who belong to specified User Group- Specified by:
getUsersOfUserGroupin interfaceB2BUnitService<B2BUnitModel,B2BCustomerModel> - Parameters:
unit- the unituserGroupId- the user group idrecursive- If true the lookup of users will continue for unit parent until at least one is found.- Returns:
- A collection of users who are members of the unit with group userGroupId
-
findApprovalProcessCodeForUnit
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:B2BUnitServiceGet approval process code from unit, checking parent units up the organization tree up to the root unit if process is not set in theunit- Specified by:
findApprovalProcessCodeForUnitin interfaceB2BUnitService<B2BUnitModel,B2BCustomerModel> - Returns:
- approval process code
-
getAllApprovalProcesses
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:B2BUnitServiceGet All Approval Process codes defined in local.properties- Specified by:
getAllApprovalProcessesin interfaceB2BUnitService<B2BUnitModel,B2BCustomerModel> - Returns:
- List of approval process codes
-
findAccountManagerForUnit
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:B2BUnitServiceGet salesrep from unit, checking parent units up the organization tree up to the root unit if salesrep is not set in theunit- Specified by:
findAccountManagerForUnitin interfaceB2BUnitService<B2BUnitModel,B2BCustomerModel> - Returns:
- the account manager
-
getAccountManagerForUnit
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:B2BUnitServiceGet salesrep from unit, checking parent units up the organization tree up to the root unit if salesrep is not set in theunit- Specified by:
getAccountManagerForUnitin interfaceB2BUnitService<B2BUnitModel,B2BCustomerModel> - Returns:
- the account manager
-
findUnitWithCreditLimit
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:B2BUnitServiceGet unit with credit limit/credit check group value, checking parent units up the organization tree up to the root unit if credit limit / credit check group is not set in theunit- Specified by:
findUnitWithCreditLimitin interfaceB2BUnitService<B2BUnitModel,B2BCustomerModel> - Returns:
- unit with credit limit/check
-
getUnitWithCreditLimit
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:B2BUnitServiceGet unit with credit limit/credit check group value, checking parent units up the organization tree up to the root unit if credit limit / credit check group is not set in theunit- Specified by:
getUnitWithCreditLimitin interfaceB2BUnitService<B2BUnitModel,B2BCustomerModel> - Returns:
- unit with credit limit/check
-
updateBranchInSession
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:B2BUnitServiceSets the branch for the current use in the session.- Specified by:
updateBranchInSessionin interfaceB2BUnitService<B2BUnitModel,B2BCustomerModel>
-
getAllProcessDefinitionsNames
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:B2BUnitServiceGets all process definition name registered with theProcessDefinitionFactory- Specified by:
getAllProcessDefinitionsNamesin interfaceB2BUnitService<B2BUnitModel,B2BCustomerModel> - Returns:
- A unique list of all Business process names.
-
disableUnit
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:B2BUnitServiceDisables a b2b unit- Specified by:
disableUnitin interfaceB2BUnitService<B2BUnitModel,B2BCustomerModel> - Parameters:
unit- the unit
-
enableUnit
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:B2BUnitServiceEnables a b2b unit- Specified by:
enableUnitin interfaceB2BUnitService<B2BUnitModel,B2BCustomerModel> - Parameters:
unit- the unit
-
setCurrentUnit
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:B2BUnitServiceAssigns a default unit for a customer who may be a member of multiple units. and modifies a branch for this customers session based on the unit- Specified by:
setCurrentUnitin interfaceB2BUnitService<B2BUnitModel,B2BCustomerModel> - Parameters:
customer- The current customerunit- AB2BUnitModelto be assigned as the default for a customer
-
getDefaultB2BUnitService
Deprecated, for removal: This API element is subject to removal in a future version. -
setDefaultB2BUnitService
public void setDefaultB2BUnitService(B2BUnitService<B2BUnitModel, B2BCustomerModel> defaultB2BUnitService) Deprecated, for removal: This API element is subject to removal in a future version.
-