Class B2BCompanyUtils
- java.lang.Object
-
- de.hybris.platform.b2bcommercefacades.company.util.B2BCompanyUtils
-
public final class B2BCompanyUtils extends java.lang.ObjectUtility class for b2b commerce facades.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringNORMALIZED_CHAR
-
Method Summary
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static <S,T>
SearchPageData<T>convertPageData(SearchPageData<S> source, Converter<S,T> converter)Deprecated."Deprecated since 6.3".static B2BSelectionDatacreateB2BSelectionData(java.lang.String code, boolean selected, boolean active)Creates aB2BSelectionDatainstance.static B2BSelectionDatapopulateRolesForCustomer(B2BCustomerModel customerModel, B2BSelectionData b2BSelectionData)Populates aB2BSelectionDatawith the roles linked to a given customer.
-
-
-
Field Detail
-
NORMALIZED_CHAR
public static final java.lang.String NORMALIZED_CHAR
- See Also:
- Constant Field Values
-
-
Method Detail
-
createB2BSelectionData
public static B2BSelectionData createB2BSelectionData(java.lang.String code, boolean selected, boolean active)
Creates aB2BSelectionDatainstance.- Parameters:
code-selected-active-- Returns:
- The new
B2BSelectionData.
-
convertPageData
@Deprecated(since="6.3") public static <S,T> SearchPageData<T> convertPageData(SearchPageData<S> source, Converter<S,T> converter)
Deprecated."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.
-
-