Interface ClassificationClassesResolverStrategy
-
- All Known Implementing Classes:
DefaultClassificationClassesResolverStrategy
public interface ClassificationClassesResolverStrategyService for resolving and returning theClassificationClassModels for the givenItemModels (products, categories). This service is developed as part of decoupling the FeutureContainer. However, it is still not used in ClassificationService or any other related service.- Spring Bean ID:
- classificationClassesResolverStrategy
-
-
Method Summary
-
-
-
Method Detail
-
resolve
java.util.Set<ClassificationClassModel> resolve(ProductModel item)
Returns for the givenProductModelall matchingClassificationClassModels for allClassificationSystemVersionModels.- Parameters:
item- theProductModelfor which all connectedClassificationClassModels should be returned- Returns:
- a set with the found ClassificationClassModels or an empty set if nothing was found
-
resolve
java.util.Set<ClassificationClassModel> resolve(CategoryModel item)
Returns for the givenCategoryModelall matchingClassificationClassModels for allClassificationSystemVersionModels.- Parameters:
item- theCategoryModelfor which all connectedClassificationClassModels should be returned- Returns:
- a set with the found ClassificationClassModels or an empty set if nothing was found
-
resolve
java.util.Set<ClassificationClassModel> resolve(ProductModel item, ClassificationSystemVersionModel systemVersion)
Returns for the givenProductModelall matchingClassificationClassModels for the givenClassificationSystemVersionModelversion.- Parameters:
item- theProductModelfor which all connectedClassificationClassModels should be returnedsystemVersion- the kind of the classification system- Returns:
- a set with the found ClassificationClassModels or an empty set if nothing was found
-
resolve
java.util.Set<ClassificationClassModel> resolve(CategoryModel item, ClassificationSystemVersionModel systemVersion)
Returns for the givenCategoryModelall matchingClassificationClassModels for the givenClassificationSystemVersionModelversion.- Parameters:
item- theCategoryModelfor which all connectedClassificationClassModels should be returnedsystemVersion- the kind of the classification system- Returns:
- a set with the found ClassificationClassModels or an empty set if nothing was found
-
resolve
java.util.Set<ClassificationClassModel> resolve(ProductModel item, java.util.Collection<ClassificationSystemVersionModel> systemVersions)
Returns for the givenProductModelall matchingClassificationClassModels for the givenClassificationSystemVersionModelversions.- Parameters:
item- theProductModelfor which all connectedClassificationClassModels should be returnedsystemVersions- a collection of classification systems- Returns:
- a set with the found ClassificationClassModels or an empty set if nothing was found
-
resolve
java.util.Set<ClassificationClassModel> resolve(CategoryModel item, java.util.Collection<ClassificationSystemVersionModel> systemVersions)
Returns for the givenCategoryModelall matchingClassificationClassModels for the givenClassificationSystemVersionModelversions.- Parameters:
item- theCategoryModelfor which all connectedClassificationClassModels should be returnedsystemVersions- a collection of classification systems- Returns:
- a set with the found ClassificationClassModels or an empty set if nothing was found
-
getClassAttributeAssignments
@Deprecated(since="ages", forRemoval=true) java.util.List<ClassAttributeAssignmentModel> getClassAttributeAssignments(java.util.Set<ClassificationClassModel> classificationClasses)Deprecated, for removal: This API element is subject to removal in a future version.since ages - usegetDeclaredClassAttributeAssignments(Set)instead.Returns all theClassAttributeAssignmentModelfrom the givenClassificationClassModelset.- Parameters:
classificationClasses- if using the resolve methods of this service the set is aLinkedHashSet- Returns:
- a sorted list of ClassAttributeAssignmentModels or an empty list.
-
getAllClassAttributeAssignments
java.util.List<ClassAttributeAssignmentModel> getAllClassAttributeAssignments(java.util.Set<ClassificationClassModel> classificationClasses)
Returns all theClassAttributeAssignmentModelfrom the givenClassificationClassModelset.- Parameters:
classificationClasses- if using the resolve methods of this service the set is aLinkedHashSet- Returns:
- a sorted list of ClassAttributeAssignmentModels or an empty list.
-
getDeclaredClassAttributeAssignments
java.util.List<ClassAttributeAssignmentModel> getDeclaredClassAttributeAssignments(java.util.Set<ClassificationClassModel> classificationClasses)
Returns all declaredClassAttributeAssignmentModelfrom the givenClassificationClassModelset.- Parameters:
classificationClasses- if using the resolve methods of this service the set is aLinkedHashSet- Returns:
- a sorted list of ClassAttributeAssignmentModels or an empty list.
-
-