Class UniqueUIKeyGeneratorImpl
java.lang.Object
de.hybris.platform.sap.productconfig.facades.impl.UniqueUIKeyGeneratorImpl
- All Implemented Interfaces:
UniqueUIKeyGenerator,UniqueKeyGenerator
Implementation is moved to the runtime interface extension. This class is needed due to the compatibility reasons
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionextractInstanceNameFromGroupId(String groupId) generateCsticId(CsticModel model, CsticValueModel value, String prefix) Generates a Unique Key for a cstic, o a cstic value, if provided.generateGroupIdForGroup(InstanceModel instance, CsticGroup csticModelGroup) generateGroupIdForInstance(InstanceModel instance) generateId(CsticQualifier csticQualifier) creates a cstic ui key from the provided componentsprotected UniqueKeyGeneratorretrieveGroupName(String uiGroupId) retrieveInstanceId(String uiGroupId) voidsetKeyGenerator(UniqueKeyGenerator keyGenerator) splits the given cstic UI key into its components
-
Constructor Details
-
UniqueUIKeyGeneratorImpl
public UniqueUIKeyGeneratorImpl()
-
-
Method Details
-
generateGroupIdForInstance
- Specified by:
generateGroupIdForInstancein interfaceUniqueKeyGenerator- Parameters:
instance- instance data- Returns:
- unique key for a UIGroup representing an Instance
-
generateGroupIdForGroup
- Specified by:
generateGroupIdForGroupin interfaceUniqueKeyGenerator- Parameters:
instance- instance the group belongs tocsticModelGroup- group data- Returns:
- unique key for a UIGroup representing an Group
-
retrieveInstanceId
- Specified by:
retrieveInstanceIdin interfaceUniqueKeyGenerator- Parameters:
uiGroupId- UIGroup id- Returns:
- extract instance id from the UIGroup Id
-
retrieveGroupName
- Specified by:
retrieveGroupNamein interfaceUniqueKeyGenerator- Parameters:
uiGroupId- UIGroup id- Returns:
- extract group name from the UIGroup Id
-
generateCsticId
Description copied from interface:UniqueKeyGeneratorGenerates a Unique Key for a cstic, o a cstic value, if provided.- Specified by:
generateCsticIdin interfaceUniqueKeyGenerator- Parameters:
model- cstic modelvalue- cstic value model. Ifnullthe key is only specific for the csticprefix- key prefix containing group and/or instance components- Returns:
- unique key
-
splitId
Description copied from interface:UniqueKeyGeneratorsplits the given cstic UI key into its components- Specified by:
splitIdin interfaceUniqueKeyGenerator- Returns:
- a csticQualifier
-
generateId
Description copied from interface:UniqueKeyGeneratorcreates a cstic ui key from the provided components- Specified by:
generateIdin interfaceUniqueKeyGenerator- Returns:
- unique Key
-
extractInstanceNameFromGroupId
- Specified by:
extractInstanceNameFromGroupIdin interfaceUniqueKeyGenerator- Parameters:
groupId- group id- Returns:
- extracted instance name from group id
-
getInstanceSeparator
- Specified by:
getInstanceSeparatorin interfaceUniqueKeyGenerator- Returns:
- the instance separator
-
getKeySeparator
- Specified by:
getKeySeparatorin interfaceUniqueKeyGenerator- Returns:
- the key separator
-
getKeySeparatorSplit
- Specified by:
getKeySeparatorSplitin interfaceUniqueKeyGenerator- Returns:
- the key separator for split statement
-
getKeyGenerator
-
setKeyGenerator
-