Class AsmUtils
java.lang.Object
de.hybris.platform.customersupportbackoffice.widgets.sessioncontext.util.AsmUtils
Contains methods for asm-related functionality
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic voidaddTicketInfo(StringBuilder link, Object obj) static voidappendCartType(StringBuilder deepLink, AbstractOrderModel order, UserModel currentCustomer) Method get the cart typeprotected static StringcomposeDeeplink(String siteUrl, String deepLinkPara, SessionContextModel sessionContext) static StringgetAsmDeepLink(BaseSiteModel currentSite, SessionContextModel sessionContext) Method constructs deep link for asm as hrefstatic Stringstatic booleanMethod loads ASM_DEEPLINK_SHOW_PARAM from properties, false is default value
-
Field Details
-
ASM_DEEPLINK_SHOW_PARAM
- See Also:
-
ASM_DEEPLINK_PARAM
- See Also:
-
SAVED_CART
- See Also:
-
ACTIVE_CART
- See Also:
-
INACTIVE_CART
- See Also:
-
UNKNOWN_CART
- See Also:
-
CART_TYPE_CODE
- See Also:
-
ORDER_TYPE_CODE
- See Also:
-
-
Method Details
-
showAsmButton
public static boolean showAsmButton()Method loads ASM_DEEPLINK_SHOW_PARAM from properties, false is default value- Returns:
- boolean
-
getAsmDeepLink
Method constructs deep link for asm as href- Parameters:
currentSite- the site to use as a storefrontsessionContext- the session context to get all needed info from- Returns:
- deep link generated
-
composeDeeplink
protected static String composeDeeplink(String siteUrl, String deepLinkPara, SessionContextModel sessionContext) -
addTicketInfo
-
appendCartType
public static void appendCartType(StringBuilder deepLink, AbstractOrderModel order, UserModel currentCustomer) Method get the cart type- Parameters:
deepLink- the target StringBuilderorder- the target cartcurrentCustomer- the current user of the context
-
getCheckedCustomerId
-