Class B2BCompanyUtils
java.lang.Object
de.hybris.platform.b2bcommercefacades.company.util.B2BCompanyUtils
Utility class for b2b commerce facades.
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic <S,T> SearchPageData<T> convertPageData(SearchPageData<S> source, Converter<S, T> converter) Deprecated, for removal: This API element is subject to removal in a future version."Deprecated since 6.3".static B2BSelectionDatacreateB2BSelectionData(String code, boolean selected, boolean active) Creates aB2BSelectionDatainstance.static B2BSelectionDatapopulateRolesForCustomer(B2BCustomerModel customerModel, B2BSelectionData b2BSelectionData) Populates aB2BSelectionDatawith the roles linked to a given customer.
-
Field Details
-
NORMALIZED_CHAR
- See Also:
-
-
Method Details
-
createB2BSelectionData
public static B2BSelectionData createB2BSelectionData(String code, boolean selected, boolean active) Creates aB2BSelectionDatainstance.- Parameters:
code-selected-active-- Returns:
- The new
B2BSelectionData.
-
convertPageData
@Deprecated(since="6.3", forRemoval=true) public static <S,T> SearchPageData<T> convertPageData(SearchPageData<S> source, Converter<S, T> converter) Deprecated, for removal: This API element is subject to removal in a future version."Deprecated since 6.3". Useinstead. Converts aSearchPageDataof type <S> into one of type <T > using the converter provided.- Type Parameters:
S- The source type.T- The target type.- Parameters:
source-converter-- Returns:
- The new
SearchPageData.
-
populateRolesForCustomer
public static B2BSelectionData populateRolesForCustomer(B2BCustomerModel customerModel, B2BSelectionData b2BSelectionData) Populates aB2BSelectionDatawith the roles linked to a given customer.- Parameters:
customerModel-b2BSelectionData-- Returns:
- The
B2BSelectionData.
-