Class DefaultB2BCommerceUserService
java.lang.Object
de.hybris.platform.b2bacceleratorservices.company.impl.DefaultCompanyB2BCommerceService
de.hybris.platform.b2bacceleratorservices.company.impl.DefaultB2BCommerceUserService
- All Implemented Interfaces:
B2BCommerceUserService,B2BCommerceUserService,CompanyB2BCommerceService
@Deprecated(since="6.4",
forRemoval=true)
public class DefaultB2BCommerceUserService
extends DefaultCompanyB2BCommerceService
implements B2BCommerceUserService
Deprecated, for removal: This API element is subject to removal in a future version.
Default implementation of B2B Commerce User Service.
-
Constructor Summary
ConstructorsConstructorDescriptionDeprecated, for removal: This API element is subject to removal in a future version. -
Method Summary
Modifier and TypeMethodDescriptionaddApproverToCustomer(String user, String approver) Deprecated, for removal: This API element is subject to removal in a future version.Add an approver for a given user and return the updatedB2BCustomerModelobject updated with approver detailsaddB2BUserGroupToCustomer(String user, String usergroup) Deprecated, for removal: This API element is subject to removal in a future version.Add UsergroupsB2BCustomerModelobject for a given unique id of a customeraddPermissionToCustomer(String user, String permission) Deprecated, for removal: This API element is subject to removal in a future version.Add permission for a given user and return the updatedB2BCustomerModelobjectaddUserRole(String user, String role) Deprecated, for removal: This API element is subject to removal in a future version.Add user role for a given user and return the updatedB2BCustomerModelobjectdeselectB2BUserGroupFromCustomer(String user, String usergroup) Deprecated, for removal: This API element is subject to removal in a future version.Deselects (removes) usergroup from a customer.voiddisableCustomer(String uid) Deprecated, for removal: This API element is subject to removal in a future version.Disable a customer given its unique idvoidenableCustomer(String uid) Deprecated, for removal: This API element is subject to removal in a future version.Enable customer given its unique idgetPagedCustomers(PageableData pageableData) Deprecated, for removal: This API element is subject to removal in a future version.Gets list ofSearchPageDatafor pagination given the required pagination parameters withPageableDatagetPagedCustomersByGroupMembership(PageableData pageableData, String... userGroupUid) Deprecated, for removal: This API element is subject to removal in a future version.Gets list ofSearchPageDatafor pagination given the required pagination parameters withPageableDatagetPagedCustomersBySearchTermAndGroupMembership(PageableData pageableData, String searchTerm, String... userGroupUid) Deprecated, for removal: This API element is subject to removal in a future version.Gets a pageable list of b2b customers that belong to the supplied groups.<T extends B2BUnitModel>
TDeprecated, for removal: This API element is subject to removal in a future version.Get parent unitB2BUnitModelfor a given unique id of a customerremoveApproverFromCustomer(String user, String approver) Deprecated, for removal: This API element is subject to removal in a future version.Remove an approver for a given user and return the updatedB2BCustomerModelobject updated with approver detailsvoidremoveB2BUserGroupFromCustomerGroups(String user, String usergroup) Deprecated, for removal: This API element is subject to removal in a future version.Removes usergroup from a customer.removeB2BUserGroupToCustomer(String user, String usergroup) Deprecated, for removal: This API element is subject to removal in a future version.Since 5.0.removePermissionFromCustomer(String user, String permission) Deprecated, for removal: This API element is subject to removal in a future version.Remove permission for a given user and return the updatedB2BCustomerModelobjectprotected Set<PrincipalGroupModel>removeUsergroupFromGroups(String usergroup, Set<PrincipalGroupModel> groups) Deprecated, for removal: This API element is subject to removal in a future version.removeUserRole(String user, String role) Deprecated, for removal: This API element is subject to removal in a future version.Remove user role for a given user and return the updatedB2BCustomerModelobjectMethods inherited from class de.hybris.platform.b2bacceleratorservices.company.impl.DefaultCompanyB2BCommerceService
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, setUserService
-
Constructor Details
-
DefaultB2BCommerceUserService
public DefaultB2BCommerceUserService()Deprecated, for removal: This API element is subject to removal in a future version.
-
-
Method Details
-
getPagedCustomers
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:B2BCommerceUserServiceGets list ofSearchPageDatafor pagination given the required pagination parameters withPageableData- Specified by:
getPagedCustomersin interfaceB2BCommerceUserService- Parameters:
pageableData- Pagination information- Returns:
- List of paginated
B2BCustomerModelobjects
-
getPagedCustomersByGroupMembership
public SearchPageData<B2BCustomerModel> getPagedCustomersByGroupMembership(PageableData pageableData, String... userGroupUid) Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:B2BCommerceUserServiceGets list ofSearchPageDatafor pagination given the required pagination parameters withPageableData- Specified by:
getPagedCustomersByGroupMembershipin interfaceB2BCommerceUserService- Parameters:
pageableData- Pagination informationuserGroupUid- Unique identifiers forB2BUserGroupModel- Returns:
- List of paginated
B2BCustomerModelobjects
-
getPagedCustomersBySearchTermAndGroupMembership
public SearchPageData<B2BCustomerModel> getPagedCustomersBySearchTermAndGroupMembership(PageableData pageableData, String searchTerm, String... userGroupUid) Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:B2BCommerceUserServiceGets a pageable list of b2b customers that belong to the supplied groups. The results are filtered by a search term.- Specified by:
getPagedCustomersBySearchTermAndGroupMembershipin interfaceB2BCommerceUserService- Parameters:
pageableData- Pagination informationsearchTerm- Search string that is used to filter the results using the customer name or his unit name. A match can occur in either the customer name or his unit name for the customer to be returned in the results.userGroupUid- Unique identifiers forB2BUserGroupModel- Returns:
- List of paginated
B2BCustomerModelobjects
-
addB2BUserGroupToCustomer
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:B2BCommerceUserServiceAdd UsergroupsB2BCustomerModelobject for a given unique id of a customer- Specified by:
addB2BUserGroupToCustomerin interfaceB2BCommerceUserService- Parameters:
user- A unique identifier forB2BCustomerModelrepresenting a customerusergroup- A unique identifier forB2BUserGroupModelrepresenting a user group- Returns:
- Updated
B2BUserGroupModelobject with user group added for the given unique identifier forB2BUserGroupModel
-
removeB2BUserGroupToCustomer
@Deprecated(since="5.0", forRemoval=true) public B2BUserGroupModel removeB2BUserGroupToCustomer(String user, String usergroup) Deprecated, for removal: This API element is subject to removal in a future version.Since 5.0. Use deselectB2BUserGroupFromCustomer(String user, String usergroup) or removeB2BUserGroupToCustomer(String user, String usergroup) instead.Remove Usergroups @link B2BCustomerModel} object for a given unique id of a customer- Specified by:
removeB2BUserGroupToCustomerin interfaceB2BCommerceUserService- Parameters:
user- unique identifier forB2BCustomerModelrepresenting a customerusergroup- unique identifier forB2BUserGroupModelrepresenting a user group- Returns:
- updated
B2BUserGroupModelobject with user group removed from the given unique identifier forB2BUserGroupModel
-
deselectB2BUserGroupFromCustomer
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:B2BCommerceUserServiceDeselects (removes) usergroup from a customer.- Specified by:
deselectB2BUserGroupFromCustomerin interfaceB2BCommerceUserService- Parameters:
user- A unique identifier forB2BCustomerModelrepresenting a customerusergroup- A unique identifier forB2BUserGroupModelrepresenting a user group- Returns:
- Updated
B2BUserGroupModelobject with user group.
-
removeB2BUserGroupFromCustomerGroups
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:B2BCommerceUserServiceRemoves usergroup from a customer.- Specified by:
removeB2BUserGroupFromCustomerGroupsin interfaceB2BCommerceUserService- Parameters:
user- A unique identifier forB2BCustomerModelrepresenting a customerusergroup- A unique identifier forB2BUserGroupModelrepresenting a user group
-
removeUsergroupFromGroups
protected Set<PrincipalGroupModel> removeUsergroupFromGroups(String usergroup, Set<PrincipalGroupModel> groups) Deprecated, for removal: This API element is subject to removal in a future version. -
addApproverToCustomer
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:B2BCommerceUserServiceAdd an approver for a given user and return the updatedB2BCustomerModelobject updated with approver details- Specified by:
addApproverToCustomerin interfaceB2BCommerceUserService- Parameters:
user- A unique identifier forB2BCustomerModelrepresenting a userapprover- A unique identifier forB2BCustomerModelrepresenting a approver- Returns:
- Updated
B2BCustomerModelobject updated with approvers
-
removeApproverFromCustomer
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:B2BCommerceUserServiceRemove an approver for a given user and return the updatedB2BCustomerModelobject updated with approver details- Specified by:
removeApproverFromCustomerin interfaceB2BCommerceUserService- Parameters:
user- A unique identifier forB2BCustomerModelrepresenting a userapprover- A unique identifier forB2BCustomerModelrepresenting a approver- Returns:
- Updated
B2BCustomerModelobject removed with approver
-
removeUserRole
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:B2BCommerceUserServiceRemove user role for a given user and return the updatedB2BCustomerModelobject- Specified by:
removeUserRolein interfaceB2BCommerceUserService- Parameters:
user- A unique identifier forB2BCustomerModelrepresenting a userrole- A unique identifier forUserGroupModelrepresenting a user groups to which the user belongs- Returns:
- Updated
B2BCustomerModelobject with user groups removed matching the role
-
addUserRole
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:B2BCommerceUserServiceAdd user role for a given user and return the updatedB2BCustomerModelobject- Specified by:
addUserRolein interfaceB2BCommerceUserService- Parameters:
user- A unique identifier forB2BCustomerModelrepresenting a userrole- A unique identifier forUserGroupModelrepresenting a user groups to which the user belongs- Returns:
- Updated
B2BCustomerModelobject with user groups added matching the role
-
removePermissionFromCustomer
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:B2BCommerceUserServiceRemove permission for a given user and return the updatedB2BCustomerModelobject- Specified by:
removePermissionFromCustomerin interfaceB2BCommerceUserService- Parameters:
user- A unique identifier forB2BCustomerModelrepresenting a userpermission- A unique identifier forB2BPermissionModelwhich is removed from the given user- Returns:
- Updated
B2BPermissionModelobject with permissions removed
-
addPermissionToCustomer
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:B2BCommerceUserServiceAdd permission for a given user and return the updatedB2BCustomerModelobject- Specified by:
addPermissionToCustomerin interfaceB2BCommerceUserService- Parameters:
user- A unique identifier forB2BCustomerModelrepresenting a userpermission- A unique identifier forB2BPermissionModelwhich is added to the given user- Returns:
- Updated
B2BPermissionModelobject with permissions added
-
getParentUnitForCustomer
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:B2BCommerceUserServiceGet parent unitB2BUnitModelfor a given unique id of a customer- Specified by:
getParentUnitForCustomerin interfaceB2BCommerceUserService- Parameters:
uid- A unique id for @link B2BCustomerModel} object of a customer- Returns:
- Parent unit
B2BUnitModelobject for a given unique id of customer
-
disableCustomer
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:B2BCommerceUserServiceDisable a customer given its unique id- Specified by:
disableCustomerin interfaceB2BCommerceUserService- Parameters:
uid- A unique id for @link B2BCustomerModel} representing a user
-
enableCustomer
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:B2BCommerceUserServiceEnable customer given its unique id- Specified by:
enableCustomerin interfaceB2BCommerceUserService- Parameters:
uid- A unique id for @link B2BCustomerModel} representing a user
-
DefaultB2BCommerceUserServiceinstead.