Interface ClassificationClassesResolverStrategy
- All Known Implementing Classes:
DefaultClassificationClassesResolverStrategy
public interface ClassificationClassesResolverStrategy
Service for resolving and returning the
ClassificationClassModels for the given ItemModels (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
Modifier and TypeMethodDescriptiongetAllClassAttributeAssignments(Set<ClassificationClassModel> classificationClasses) Returns all theClassAttributeAssignmentModelfrom the givenClassificationClassModelset.getClassAttributeAssignments(Set<ClassificationClassModel> classificationClasses) Deprecated, for removal: This API element is subject to removal in a future version.getDeclaredClassAttributeAssignments(Set<ClassificationClassModel> classificationClasses) Returns all declaredClassAttributeAssignmentModelfrom the givenClassificationClassModelset.resolve(CategoryModel item) Returns for the givenCategoryModelall matchingClassificationClassModels for allClassificationSystemVersionModels.resolve(CategoryModel item, ClassificationSystemVersionModel systemVersion) Returns for the givenCategoryModelall matchingClassificationClassModels for the givenClassificationSystemVersionModelversion.resolve(CategoryModel item, Collection<ClassificationSystemVersionModel> systemVersions) Returns for the givenCategoryModelall matchingClassificationClassModels for the givenClassificationSystemVersionModelversions.resolve(ProductModel item) Returns for the givenProductModelall matchingClassificationClassModels for allClassificationSystemVersionModels.resolve(ProductModel item, ClassificationSystemVersionModel systemVersion) Returns for the givenProductModelall matchingClassificationClassModels for the givenClassificationSystemVersionModelversion.resolve(ProductModel item, Collection<ClassificationSystemVersionModel> systemVersions) Returns for the givenProductModelall matchingClassificationClassModels for the givenClassificationSystemVersionModelversions.
-
Method Details
-
resolve
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
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
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
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
Set<ClassificationClassModel> resolve(ProductModel item, 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
Set<ClassificationClassModel> resolve(CategoryModel item, 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) List<ClassAttributeAssignmentModel> getClassAttributeAssignments(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
List<ClassAttributeAssignmentModel> getAllClassAttributeAssignments(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
List<ClassAttributeAssignmentModel> getDeclaredClassAttributeAssignments(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.
-
getDeclaredClassAttributeAssignments(Set)instead.