Interface MultiSiteUidDecorationService
- All Superinterfaces:
Serializable
- All Known Implementing Classes:
DefaultMultiSiteUidDecorationService
Provide methods to convert customerUid to match UID namespace syntax
-
Method Summary
Modifier and TypeMethodDescriptionDecorates original UID and base site UID based on Namespace Syntax:booleanisDecorated(String customerUid, String siteUid) Checks whether the input customer UID matches the Customer.uid Namespace SyntaxString[]undecorate(String customerUid, String siteUid) un-decorate the input customer Uid based on the Namespace Syntax:
-
Method Details
-
isDecorated
Checks whether the input customer UID matches the Customer.uid Namespace Syntax< Original Customer.uid > | < BaseSite.uid >
- Parameters:
customerUid- to check whether this input argument matches the Namespace SyntaxsiteUid- check the Customer.uid based on this BaseSite.uid- Returns:
- return true if customerUid matches the Namespace Syntax, otherwise return false
-
decorate
Decorates original UID and base site UID based on Namespace Syntax:< Original Customer.uid > | < BaseSite.uid >
- Parameters:
plainCustomerUid- original UIDsiteUid- base site UID- Returns:
- combine original UID and base site UID directly
-
undecorate
un-decorate the input customer Uid based on the Namespace Syntax:< Original Customer.uid > | < BaseSite.uid >
- Parameters:
customerUid- Customer.uid no matter whether it match the Namespace SyntaxsiteUid- 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.
-