Class UniqueAttributesAttributeHandler
java.lang.Object
de.hybris.platform.servicelayer.model.attribute.AbstractDynamicAttributeHandler<Collection<IntegrationObjectItemAttributeModel>,IntegrationObjectItemModel>
de.hybris.platform.integrationservices.model.UniqueAttributesAttributeHandler
- All Implemented Interfaces:
DynamicAttributeHandler<Collection<IntegrationObjectItemAttributeModel>,IntegrationObjectItemModel>
public class UniqueAttributesAttributeHandler
extends AbstractDynamicAttributeHandler<Collection<IntegrationObjectItemAttributeModel>,IntegrationObjectItemModel>
Provides calculation of the dynamic
partOf attribute on the IntegrationObjectItemAttributeModel-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanprotected Collection<IntegrationObjectItemAttributeModel>protected Set<IntegrationObjectItemAttributeModel>get(IntegrationObjectItemModel model) Reads value of thepartOfattributeprotected booleanprotected booleanMethods inherited from class de.hybris.platform.servicelayer.model.attribute.AbstractDynamicAttributeHandler
set
-
Constructor Details
-
UniqueAttributesAttributeHandler
public UniqueAttributesAttributeHandler()
-
-
Method Details
-
get
@NotNull public @NotNull Collection<IntegrationObjectItemAttributeModel> get(IntegrationObjectItemModel model) Reads value of thepartOfattribute- Specified by:
getin interfaceDynamicAttributeHandler<Collection<IntegrationObjectItemAttributeModel>,IntegrationObjectItemModel> - Overrides:
getin classAbstractDynamicAttributeHandler<Collection<IntegrationObjectItemAttributeModel>,IntegrationObjectItemModel> - Parameters:
model- a model object to read the value from.- Returns:
- a collection of unique attributes for the given
IntegrationObjectItemModel.
-
extractSimpleKeyAttributesFrom
protected Set<IntegrationObjectItemAttributeModel> extractSimpleKeyAttributesFrom(IntegrationObjectItemModel model) -
extractKeyAttributesFromItemReferences
protected Collection<IntegrationObjectItemAttributeModel> extractKeyAttributesFromItemReferences(IntegrationObjectItemModel item, Set<String> cache) -
isUniqueSimpleAttribute
-
isUniqueReferenceAttribute
-
doesNotCreateCyclicDependency
protected boolean doesNotCreateCyclicDependency(IntegrationObjectItemAttributeModel attr, Set<String> cache)
-