public class B2BUnitServiceProxy extends java.lang.Object implements B2BUnitService<B2BUnitModel,B2BCustomerModel>
DefaultB2BUnitService. Will be deprecated at 6.6.| Constructor and Description |
|---|
B2BUnitServiceProxy() |
| Modifier and Type | Method and Description |
|---|---|
void |
addMember(B2BUnitModel group,
PrincipalModel member)
Adds the member to a group.
|
void |
disableBranch(B2BUnitModel unit)
Disable branch.
|
void |
disableUnit(B2BUnitModel unit)
Disables a b2b unit
|
void |
enableBranch(B2BUnitModel unit)
Enable branch.
|
void |
enableUnit(B2BUnitModel unit)
Enables a b2b unit
|
EmployeeModel |
findAccountManagerForUnit(B2BUnitModel unit)
Get salesrep from unit, checking parent units up the organization tree up to the root unit if salesrep is not set
in the
unit |
java.lang.String |
findApprovalProcessCodeForUnit(B2BUnitModel unit)
Get approval process code from unit, checking parent units up the organization tree up to the root unit if process
is not set in the
unit |
B2BUnitModel |
findUnitByUid(java.lang.String uid)
Find unit by uid.
|
B2BUnitModel |
findUnitWithCreditLimit(B2BUnitModel unit,
CurrencyModel currency)
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 the
unit |
EmployeeModel |
getAccountManagerForUnit(B2BUnitModel unit)
Get salesrep from unit, checking parent units up the organization tree up to the root unit if salesrep is not set
in the
unit |
java.util.List<java.lang.String> |
getAllApprovalProcesses()
Get All Approval Process codes defined in local.properties
|
java.util.List<B2BUnitModel> |
getAllParents(B2BUnitModel unit)
Get all the parent units in the organization hierarchy all the way up to the root.
|
java.util.Set<java.lang.String> |
getAllProcessDefinitionsNames()
Gets all process definition name registered with the
ProcessDefinitionFactory |
java.util.Set<B2BUnitModel> |
getAllUnitsOfOrganization(B2BCustomerModel customer)
Retrieves all units of an organization the
customer belongs too. |
java.util.Set<B2BUnitModel> |
getAllUnitsOfOrganization(B2BUnitModel unit)
Retrieves all units of an organization the
unit belongs too. |
<M extends PrincipalModel> |
getAllUserGroupMembersForType(UserGroupModel userGroup,
java.lang.Class<M> memberType)
Retrieves all members of a User Group of the specified type
|
java.lang.String |
getApprovalProcessCodeForUnit(B2BUnitModel unit)
Get approval process code from unit, checking parent units up the organization tree up to the root unit if process
is not set in the
unit |
java.util.Set<B2BCustomerModel> |
getB2BCustomers(B2BUnitModel unit)
Gets the b2 b customers.
|
java.util.Set<B2BUnitModel> |
getB2BUnits(B2BUnitModel unit)
Gets units that are children of the current unit.
|
java.util.Set<B2BUnitModel> |
getBranch(B2BUnitModel unit)
Gets the branch of a unit.
|
java.util.Set<B2BCustomerModel> |
getCustomers(java.util.Set<B2BUnitModel> branch)
Gets the employees.
|
protected B2BUnitService<B2BUnitModel,B2BCustomerModel> |
getDefaultB2BUnitService() |
B2BUnitModel |
getParent(B2BCustomerModel employee)
Gets the parent unit of a user.
|
B2BUnitModel |
getParent(B2BUnitModel unit)
Gets the parent unit of a unit.
|
B2BUnitModel |
getRootUnit(B2BUnitModel unit)
Gets the root unit.
|
B2BUnitModel |
getUnitForUid(java.lang.String uid)
Find unit by uid.
|
B2BUnitModel |
getUnitWithCreditLimit(B2BUnitModel unit)
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 the
unit |
java.util.Collection<B2BCustomerModel> |
getUsersOfUserGroup(B2BUnitModel unit,
java.lang.String userGroupId)
Gets all members from the unit who belong to specified User Group
|
java.util.Collection<B2BCustomerModel> |
getUsersOfUserGroup(B2BUnitModel unit,
java.lang.String userGroupId,
boolean recursive)
Gets all members from the unit who belong to specified User Group
|
void |
setCurrentUnit(B2BCustomerModel customer,
B2BUnitModel unit)
Assigns a default unit for a customer who may be a member of multiple units.
|
void |
setDefaultB2BUnitService(B2BUnitService<B2BUnitModel,B2BCustomerModel> defaultB2BUnitService) |
void |
updateBranchInSession(Session session,
UserModel currentUser)
Sets the branch for the current use in the session.
|
void |
updateParentB2BUnit(B2BUnitModel parentB2BUnit,
PrincipalModel member)
Set the parent unit of a given principal.
|
public java.lang.String getApprovalProcessCodeForUnit(B2BUnitModel unit)
B2BUnitServiceunitgetApprovalProcessCodeForUnit in interface B2BUnitService<B2BUnitModel,B2BCustomerModel>public java.util.Set<B2BUnitModel> getAllUnitsOfOrganization(B2BUnitModel unit)
B2BUnitServiceunit belongs too.getAllUnitsOfOrganization in interface B2BUnitService<B2BUnitModel,B2BCustomerModel>unit - A B2BUnitModel within an organizationpublic java.util.Set<B2BUnitModel> getAllUnitsOfOrganization(B2BCustomerModel customer)
B2BUnitServicecustomer belongs too.getAllUnitsOfOrganization in interface B2BUnitService<B2BUnitModel,B2BCustomerModel>customer - the session user.public <M extends PrincipalModel> java.util.Set<M> getAllUserGroupMembersForType(UserGroupModel userGroup, java.lang.Class<M> memberType)
B2BUnitServicegetAllUserGroupMembersForType in interface B2BUnitService<B2BUnitModel,B2BCustomerModel>userGroup - the user groupmemberType - the principle's member typepublic B2BUnitModel getParent(B2BCustomerModel employee)
B2BUnitServicegetParent in interface B2BUnitService<B2BUnitModel,B2BCustomerModel>employee - the employeepublic B2BUnitModel getParent(B2BUnitModel unit)
B2BUnitServicegetParent in interface B2BUnitService<B2BUnitModel,B2BCustomerModel>unit - the child unitunit was the root unit.public B2BUnitModel getRootUnit(B2BUnitModel unit)
B2BUnitServicegetRootUnit in interface B2BUnitService<B2BUnitModel,B2BCustomerModel>unit - the unitpublic B2BUnitModel findUnitByUid(java.lang.String uid)
B2BUnitServicefindUnitByUid in interface B2BUnitService<B2BUnitModel,B2BCustomerModel>uid - the uidpublic B2BUnitModel getUnitForUid(java.lang.String uid)
B2BUnitServicegetUnitForUid in interface B2BUnitService<B2BUnitModel,B2BCustomerModel>uid - the uidpublic java.util.Set<B2BUnitModel> getBranch(B2BUnitModel unit)
B2BUnitServicegetBranch in interface B2BUnitService<B2BUnitModel,B2BCustomerModel>unit - the unitpublic java.util.Set<B2BCustomerModel> getCustomers(java.util.Set<B2BUnitModel> branch)
B2BUnitServicegetCustomers in interface B2BUnitService<B2BUnitModel,B2BCustomerModel>branch - the branchpublic void disableBranch(B2BUnitModel unit)
B2BUnitServicedisableBranch in interface B2BUnitService<B2BUnitModel,B2BCustomerModel>unit - the unitpublic void enableBranch(B2BUnitModel unit)
B2BUnitServiceenableBranch in interface B2BUnitService<B2BUnitModel,B2BCustomerModel>unit - the unitpublic java.util.List<B2BUnitModel> getAllParents(B2BUnitModel unit)
B2BUnitServicegetAllParents in interface B2BUnitService<B2BUnitModel,B2BCustomerModel>unit - the unitpublic void addMember(B2BUnitModel group, PrincipalModel member)
B2BUnitServiceaddMember in interface B2BUnitService<B2BUnitModel,B2BCustomerModel>group - the groupmember - the memberpublic java.util.Set<B2BCustomerModel> getB2BCustomers(B2BUnitModel unit)
B2BUnitServicegetB2BCustomers in interface B2BUnitService<B2BUnitModel,B2BCustomerModel>unit - the unitpublic java.util.Set<B2BUnitModel> getB2BUnits(B2BUnitModel unit)
B2BUnitServicegetB2BUnits in interface B2BUnitService<B2BUnitModel,B2BCustomerModel>unit - the unitpublic void updateParentB2BUnit(B2BUnitModel parentB2BUnit, PrincipalModel member)
B2BUnitServiceupdateParentB2BUnit in interface B2BUnitService<B2BUnitModel,B2BCustomerModel>parentB2BUnit - the parent b2 b unitmember - the memberpublic java.util.Collection<B2BCustomerModel> getUsersOfUserGroup(B2BUnitModel unit, java.lang.String userGroupId)
B2BUnitServicegetUsersOfUserGroup in interface B2BUnitService<B2BUnitModel,B2BCustomerModel>unit - the unituserGroupId - the user group idpublic java.util.Collection<B2BCustomerModel> getUsersOfUserGroup(B2BUnitModel unit, java.lang.String userGroupId, boolean recursive)
B2BUnitServicegetUsersOfUserGroup in interface B2BUnitService<B2BUnitModel,B2BCustomerModel>unit - the unituserGroupId - the user group idrecursive - If true the lookup of users will continue for unit parent until at least one is found.public java.lang.String findApprovalProcessCodeForUnit(B2BUnitModel unit)
B2BUnitServiceunitfindApprovalProcessCodeForUnit in interface B2BUnitService<B2BUnitModel,B2BCustomerModel>public java.util.List<java.lang.String> getAllApprovalProcesses()
B2BUnitServicegetAllApprovalProcesses in interface B2BUnitService<B2BUnitModel,B2BCustomerModel>public EmployeeModel findAccountManagerForUnit(B2BUnitModel unit)
B2BUnitServiceunitfindAccountManagerForUnit in interface B2BUnitService<B2BUnitModel,B2BCustomerModel>public EmployeeModel getAccountManagerForUnit(B2BUnitModel unit)
B2BUnitServiceunitgetAccountManagerForUnit in interface B2BUnitService<B2BUnitModel,B2BCustomerModel>public B2BUnitModel findUnitWithCreditLimit(B2BUnitModel unit, CurrencyModel currency)
B2BUnitServiceunitfindUnitWithCreditLimit in interface B2BUnitService<B2BUnitModel,B2BCustomerModel>public B2BUnitModel getUnitWithCreditLimit(B2BUnitModel unit)
B2BUnitServiceunitgetUnitWithCreditLimit in interface B2BUnitService<B2BUnitModel,B2BCustomerModel>public void updateBranchInSession(Session session, UserModel currentUser)
B2BUnitServiceupdateBranchInSession in interface B2BUnitService<B2BUnitModel,B2BCustomerModel>public java.util.Set<java.lang.String> getAllProcessDefinitionsNames()
B2BUnitServiceProcessDefinitionFactorygetAllProcessDefinitionsNames in interface B2BUnitService<B2BUnitModel,B2BCustomerModel>public void disableUnit(B2BUnitModel unit)
B2BUnitServicedisableUnit in interface B2BUnitService<B2BUnitModel,B2BCustomerModel>unit - the unitpublic void enableUnit(B2BUnitModel unit)
B2BUnitServiceenableUnit in interface B2BUnitService<B2BUnitModel,B2BCustomerModel>unit - the unitpublic void setCurrentUnit(B2BCustomerModel customer, B2BUnitModel unit)
B2BUnitServicesetCurrentUnit in interface B2BUnitService<B2BUnitModel,B2BCustomerModel>customer - The current customerunit - A B2BUnitModel to be assigned as the default for a customerprotected B2BUnitService<B2BUnitModel,B2BCustomerModel> getDefaultB2BUnitService()
public void setDefaultB2BUnitService(B2BUnitService<B2BUnitModel,B2BCustomerModel> defaultB2BUnitService)
Copyright © 2018 SAP SE. All Rights Reserved.