Interface MultiSiteUidDecorationService

All Superinterfaces:
Serializable
All Known Implementing Classes:
DefaultMultiSiteUidDecorationService

public interface MultiSiteUidDecorationService extends Serializable
Provide methods to convert customerUid to match UID namespace syntax
  • Method Summary

    Modifier and Type
    Method
    Description
    decorate(String plainCustomerUid, String siteUid)
    Decorates original UID and base site UID based on Namespace Syntax:
    boolean
    isDecorated(String customerUid, String siteUid)
    Checks whether the input customer UID matches the Customer.uid Namespace Syntax
    undecorate(String customerUid, String siteUid)
    un-decorate the input customer Uid based on the Namespace Syntax:
  • Method Details

    • isDecorated

      boolean isDecorated(String customerUid, String siteUid)
      Checks whether the input customer UID matches the Customer.uid Namespace Syntax

      &lt Original Customer.uid &gt | &lt BaseSite.uid &gt

      Parameters:
      customerUid - to check whether this input argument matches the Namespace Syntax
      siteUid - check the Customer.uid based on this BaseSite.uid
      Returns:
      return true if customerUid matches the Namespace Syntax, otherwise return false
    • decorate

      String decorate(String plainCustomerUid, String siteUid)
      Decorates original UID and base site UID based on Namespace Syntax:

      &lt Original Customer.uid &gt | &lt BaseSite.uid &gt

      Parameters:
      plainCustomerUid - original UID
      siteUid - base site UID
      Returns:
      combine original UID and base site UID directly
    • undecorate

      String[] undecorate(String customerUid, String siteUid)
      un-decorate the input customer Uid based on the Namespace Syntax:

      &lt Original Customer.uid &gt | &lt BaseSite.uid &gt

      Parameters:
      customerUid - Customer.uid no matter whether it match the Namespace Syntax
      siteUid - BaseSite.uid
      Returns:
      Return 1 element if provide customerUid is not decorated, and return 2 elements if provided customerUid is decorated. First element as plainCustomerUid and second element as siteUid.