Class B2BUnitServiceProxy
- java.lang.Object
-
- de.hybris.platform.b2b.services.impl.B2BUnitServiceProxy
-
- All Implemented Interfaces:
B2BUnitService<B2BUnitModel,B2BCustomerModel>
@Deprecated(since="1905") public class B2BUnitServiceProxy extends java.lang.Object implements B2BUnitService<B2BUnitModel,B2BCustomerModel>
Deprecated.in 1905Proxy method forDefaultB2BUnitService. Will be deprecated at 6.6.
-
-
Constructor Summary
Constructors Constructor Description B2BUnitServiceProxy()Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voidaddMember(B2BUnitModel group, PrincipalModel member)Deprecated.Adds the member to a group.voiddisableBranch(B2BUnitModel unit)Deprecated.Disable branch.voiddisableUnit(B2BUnitModel unit)Deprecated.Disables a b2b unitvoidenableBranch(B2BUnitModel unit)Deprecated.Enable branch.voidenableUnit(B2BUnitModel unit)Deprecated.Enables a b2b unitEmployeeModelfindAccountManagerForUnit(B2BUnitModel unit)Deprecated.Get salesrep from unit, checking parent units up the organization tree up to the root unit if salesrep is not set in theunitjava.lang.StringfindApprovalProcessCodeForUnit(B2BUnitModel unit)Deprecated.Get approval process code from unit, checking parent units up the organization tree up to the root unit if process is not set in theunitB2BUnitModelfindUnitByUid(java.lang.String uid)Deprecated.Find unit by uid.B2BUnitModelfindUnitWithCreditLimit(B2BUnitModel unit, CurrencyModel currency)Deprecated.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 theunitEmployeeModelgetAccountManagerForUnit(B2BUnitModel unit)Deprecated.Get salesrep from unit, checking parent units up the organization tree up to the root unit if salesrep is not set in theunitjava.util.List<java.lang.String>getAllApprovalProcesses()Deprecated.Get All Approval Process codes defined in local.propertiesjava.util.List<B2BUnitModel>getAllParents(B2BUnitModel unit)Deprecated.Get all the parent units in the organization hierarchy all the way up to the root.java.util.Set<java.lang.String>getAllProcessDefinitionsNames()Deprecated.Gets all process definition name registered with theProcessDefinitionFactoryjava.util.Set<B2BUnitModel>getAllUnitsOfOrganization(B2BCustomerModel customer)Deprecated.Retrieves all units of an organization thecustomerbelongs too.java.util.Set<B2BUnitModel>getAllUnitsOfOrganization(B2BUnitModel unit)Deprecated.Retrieves all units of an organization theunitbelongs too.<M extends PrincipalModel>
java.util.Set<M>getAllUserGroupMembersForType(UserGroupModel userGroup, java.lang.Class<M> memberType)Deprecated.Retrieves all members of a User Group of the specified typejava.lang.StringgetApprovalProcessCodeForUnit(B2BUnitModel unit)Deprecated.Get approval process code from unit, checking parent units up the organization tree up to the root unit if process is not set in theunitjava.util.Set<B2BCustomerModel>getB2BCustomers(B2BUnitModel unit)Deprecated.Gets the b2 b customers.java.util.Set<B2BUnitModel>getB2BUnits(B2BUnitModel unit)Deprecated.Gets units that are children of the current unit.java.util.Set<B2BUnitModel>getBranch(B2BUnitModel unit)Deprecated.Gets the branch of a unit.java.util.Set<B2BCustomerModel>getCustomers(java.util.Set<B2BUnitModel> branch)Deprecated.Gets the employees.protected B2BUnitService<B2BUnitModel,B2BCustomerModel>getDefaultB2BUnitService()Deprecated.B2BUnitModelgetParent(B2BCustomerModel employee)Deprecated.Gets the parent unit of a user.B2BUnitModelgetParent(B2BUnitModel unit)Deprecated.Gets the parent unit of a unit.B2BUnitModelgetRootUnit(B2BUnitModel unit)Deprecated.Gets the root unit.B2BUnitModelgetUnitForUid(java.lang.String uid)Deprecated.Find unit by uid.B2BUnitModelgetUnitWithCreditLimit(B2BUnitModel unit)Deprecated.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 theunitjava.util.Collection<B2BCustomerModel>getUsersOfUserGroup(B2BUnitModel unit, java.lang.String userGroupId)Deprecated.Gets all members from the unit who belong to specified User Groupjava.util.Collection<B2BCustomerModel>getUsersOfUserGroup(B2BUnitModel unit, java.lang.String userGroupId, boolean recursive)Deprecated.Gets all members from the unit who belong to specified User GroupvoidsetCurrentUnit(B2BCustomerModel customer, B2BUnitModel unit)Deprecated.Assigns a default unit for a customer who may be a member of multiple units.voidsetDefaultB2BUnitService(B2BUnitService<B2BUnitModel,B2BCustomerModel> defaultB2BUnitService)Deprecated.voidupdateBranchInSession(Session session, UserModel currentUser)Deprecated.Sets the branch for the current use in the session.voidupdateParentB2BUnit(B2BUnitModel parentB2BUnit, PrincipalModel member)Deprecated.Set the parent unit of a given principal.
-
-
-
Method Detail
-
getApprovalProcessCodeForUnit
public java.lang.String getApprovalProcessCodeForUnit(B2BUnitModel unit)
Deprecated.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
public java.util.Set<B2BUnitModel> getAllUnitsOfOrganization(B2BUnitModel unit)
Deprecated.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
public java.util.Set<B2BUnitModel> getAllUnitsOfOrganization(B2BCustomerModel customer)
Deprecated.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> java.util.Set<M> getAllUserGroupMembersForType(UserGroupModel userGroup, java.lang.Class<M> memberType)
Deprecated.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
public B2BUnitModel getParent(B2BCustomerModel employee)
Deprecated.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
public B2BUnitModel getParent(B2BUnitModel unit)
Deprecated.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
public B2BUnitModel getRootUnit(B2BUnitModel unit)
Deprecated.Description copied from interface:B2BUnitServiceGets the root unit.- Specified by:
getRootUnitin interfaceB2BUnitService<B2BUnitModel,B2BCustomerModel>- Parameters:
unit- the unit- Returns:
- the root unit
-
findUnitByUid
public B2BUnitModel findUnitByUid(java.lang.String uid)
Deprecated.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
public B2BUnitModel getUnitForUid(java.lang.String uid)
Deprecated.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
public java.util.Set<B2BUnitModel> getBranch(B2BUnitModel unit)
Deprecated.Description copied from interface:B2BUnitServiceGets the branch of a unit.- Specified by:
getBranchin interfaceB2BUnitService<B2BUnitModel,B2BCustomerModel>- Parameters:
unit- the unit- Returns:
- the branch
-
getCustomers
public java.util.Set<B2BCustomerModel> getCustomers(java.util.Set<B2BUnitModel> branch)
Deprecated.Description copied from interface:B2BUnitServiceGets the employees.- Specified by:
getCustomersin interfaceB2BUnitService<B2BUnitModel,B2BCustomerModel>- Parameters:
branch- the branch- Returns:
- the employees
-
disableBranch
public void disableBranch(B2BUnitModel unit)
Deprecated.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
public void enableBranch(B2BUnitModel unit)
Deprecated.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
public java.util.List<B2BUnitModel> getAllParents(B2BUnitModel unit)
Deprecated.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
public void addMember(B2BUnitModel group, PrincipalModel member)
Deprecated.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
public java.util.Set<B2BCustomerModel> getB2BCustomers(B2BUnitModel unit)
Deprecated.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
public java.util.Set<B2BUnitModel> getB2BUnits(B2BUnitModel unit)
Deprecated.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
public void updateParentB2BUnit(B2BUnitModel parentB2BUnit, PrincipalModel member)
Deprecated.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
public java.util.Collection<B2BCustomerModel> getUsersOfUserGroup(B2BUnitModel unit, java.lang.String userGroupId)
Deprecated.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 java.util.Collection<B2BCustomerModel> getUsersOfUserGroup(B2BUnitModel unit, java.lang.String userGroupId, boolean recursive)
Deprecated.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
public java.lang.String findApprovalProcessCodeForUnit(B2BUnitModel unit)
Deprecated.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
public java.util.List<java.lang.String> getAllApprovalProcesses()
Deprecated.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
public EmployeeModel findAccountManagerForUnit(B2BUnitModel unit)
Deprecated.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
public EmployeeModel getAccountManagerForUnit(B2BUnitModel unit)
Deprecated.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
public B2BUnitModel findUnitWithCreditLimit(B2BUnitModel unit, CurrencyModel currency)
Deprecated.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
public B2BUnitModel getUnitWithCreditLimit(B2BUnitModel unit)
Deprecated.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
public void updateBranchInSession(Session session, UserModel currentUser)
Deprecated.Description copied from interface:B2BUnitServiceSets the branch for the current use in the session.- Specified by:
updateBranchInSessionin interfaceB2BUnitService<B2BUnitModel,B2BCustomerModel>
-
getAllProcessDefinitionsNames
public java.util.Set<java.lang.String> getAllProcessDefinitionsNames()
Deprecated.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
public void disableUnit(B2BUnitModel unit)
Deprecated.Description copied from interface:B2BUnitServiceDisables a b2b unit- Specified by:
disableUnitin interfaceB2BUnitService<B2BUnitModel,B2BCustomerModel>- Parameters:
unit- the unit
-
enableUnit
public void enableUnit(B2BUnitModel unit)
Deprecated.Description copied from interface:B2BUnitServiceEnables a b2b unit- Specified by:
enableUnitin interfaceB2BUnitService<B2BUnitModel,B2BCustomerModel>- Parameters:
unit- the unit
-
setCurrentUnit
public void setCurrentUnit(B2BCustomerModel customer, B2BUnitModel unit)
Deprecated.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
protected B2BUnitService<B2BUnitModel,B2BCustomerModel> getDefaultB2BUnitService()
Deprecated.
-
setDefaultB2BUnitService
public void setDefaultB2BUnitService(B2BUnitService<B2BUnitModel,B2BCustomerModel> defaultB2BUnitService)
Deprecated.
-
-