public class DefaultYFormDefinitionHelper extends java.lang.Object implements YFormDefinitionHelper
| Constructor and Description |
|---|
DefaultYFormDefinitionHelper() |
| Modifier and Type | Method and Description |
|---|---|
protected java.util.Set<YFormDefinitionModel> |
collectYFormDefinitionForms(java.util.Collection<CategoryModel> categories)
It gathers all the
YFormDefinitionModels that assigned to the categories. |
java.util.List<YFormDefinitionModel> |
getAllYFormDefinitions(CategoryModel category)
Returns an ordered List of
YFormDefinitionModels that assigned to the category and its all supercategories
in the Category hierarchy. |
java.util.List<YFormDefinitionModel> |
getAllYFormDefinitions(java.util.Collection<CategoryModel> categories)
Returns an ordered List of
YFormDefinitionModels that assigned to the categories and their all
supercategories in the Category hierarchy. |
protected YFormDefinitionModel |
getLatestVersionFormDefinition(YFormDefinitionModel yFormDefinition)
Get the latest version of form definition by given form definition.
|
protected YFormService |
getYFormService() |
void |
setYFormService(YFormService yFormService) |
public java.util.List<YFormDefinitionModel> getAllYFormDefinitions(java.util.Collection<CategoryModel> categories)
YFormDefinitionModels that assigned to the categories and their all
supercategories in the Category hierarchy. Each YFormDefinitionModel is unique in the List. The order of
the elements is specified by the formDefinitionComparator.getAllYFormDefinitions in interface YFormDefinitionHelpercategories - YFormDefinitionModel elementsjava.lang.NullPointerException - if categories is nullpublic java.util.List<YFormDefinitionModel> getAllYFormDefinitions(CategoryModel category)
YFormDefinitionModels that assigned to the category and its all supercategories
in the Category hierarchy. Each YFormDefinitionModel is unique in the List. The order of the elements is
specified by the formDefinitionComparator.getAllYFormDefinitions in interface YFormDefinitionHelpercategory - YFormDefinitionModel elementsjava.lang.NullPointerException - if category is nullprotected final java.util.Set<YFormDefinitionModel> collectYFormDefinitionForms(java.util.Collection<CategoryModel> categories)
YFormDefinitionModels that assigned to the categories. The order of the elements is
specified by the formDefinitionComparator.categories - java.lang.NullPointerException - if categories is nullprotected YFormDefinitionModel getLatestVersionFormDefinition(YFormDefinitionModel yFormDefinition)
yFormDefinition - form definition modelprotected YFormService getYFormService()
public void setYFormService(YFormService yFormService)
Copyright © 2018 SAP SE. All Rights Reserved.