Class DefaultAdvancedSearchModel

    • Method Detail

      • resetToInitialSearchParameters

        public void resetToInitialSearchParameters()
        Method cleans search fields and sets type as rootType
      • setSelectedType

        public void setSelectedType​(ObjectTemplate type)
      • setTypes

        public void setTypes​(java.util.Collection<ObjectTemplate> types)
      • setVisibleSearchFieldGroups

        public void setVisibleSearchFieldGroups​(java.util.List<SearchFieldGroup> groups)
      • hideSearchFieldGroup

        public boolean hideSearchFieldGroup​(SearchFieldGroup group)
      • hideGroupDirectly

        protected boolean hideGroupDirectly​(SearchFieldGroup group)
      • showSearchFieldGroup

        public boolean showSearchFieldGroup​(SearchFieldGroup group)
      • setVisibleSearchFields

        public void setVisibleSearchFields​(java.util.List<SearchField> searchFields)
      • hideSearchField

        public boolean hideSearchField​(SearchField field)
      • hideFieldDirectly

        protected boolean hideFieldDirectly​(SearchField field)
      • showSearchField

        public boolean showSearchField​(SearchField field)
      • setSortableProperties

        public void setSortableProperties​(java.util.List<PropertyDescriptor> sortProps)
      • addSortableProperty

        public boolean addSortableProperty​(PropertyDescriptor sortProp)
      • removeSortableProperty

        public boolean removeSortableProperty​(PropertyDescriptor sortProp)
      • setSortCriterion

        public void setSortCriterion​(PropertyDescriptor sortProperty,
                                     boolean asc)
      • setSortedByProperty

        public void setSortedByProperty​(PropertyDescriptor sortProperty)
      • setSortAscending

        public void setSortAscending​(boolean asc)
      • getEditor

        public UIEditor getEditor​(SearchField searchField)
        Description copied from interface: AdvancedSearchModel
        Returns the editor for a specific search field.
        Parameters:
        searchField - the search field, for which the corresponding editor is to be returned
        Returns:
        the editor corresponding to the specified search field
      • getParametersForSearchField

        public java.util.Map<java.lang.String,​java.lang.String> getParametersForSearchField​(SearchField searchField)
        Returns:
        parameters for search field
      • getSelectedType

        public ObjectTemplate getSelectedType()
        Description copied from interface: AdvancedSearchModel
        Returns the currently selected type i.e. the type of the items which are being searched for.
        Returns:
        the active type
      • getSortableProperties

        public java.util.List<PropertyDescriptor> getSortableProperties()
        Description copied from interface: AdvancedSearchModel
        Returns all the properties which can currently be used for sorting.
        Returns:
        all the available properties which can be used for sorting
      • getTypes

        public java.util.List<ObjectTemplate> getTypes()
        Description copied from interface: AdvancedSearchModel
        Returns all the types supported by this advanced search.
        Returns:
        list containing all the available search types
      • getSortedByProperty

        public PropertyDescriptor getSortedByProperty()
        Description copied from interface: AdvancedSearchModel
        Returns the property by which search result should be sorted.
        Returns:
        the property to be used for sorting
      • isSortAscending

        public boolean isSortAscending()
        Description copied from interface: AdvancedSearchModel
        Returns whether search result is sorted ascending or not.
        Returns:
        true if ascending, false if descending
      • showGroupDirectly

        protected boolean showGroupDirectly​(SearchFieldGroup group)
      • showFieldDirectly

        protected boolean showFieldDirectly​(SearchField field)
      • setExcludeRootType

        public void setExcludeRootType​(boolean excludeRootType)
      • isExcludeRootType

        public boolean isExcludeRootType()
      • setIncludeSubTypes

        public void setIncludeSubTypes​(boolean includeSubTypes)
      • isIncludeSubTypes

        public boolean isIncludeSubTypes()
      • setIncludeSubTypesForRelatedTypes

        public void setIncludeSubTypesForRelatedTypes​(boolean includeSubTypesForRelatedTypes)
      • isIncludeSubTypesForRelatedTypes

        public boolean isIncludeSubTypesForRelatedTypes()
      • storeAdvancedSearchConfiguration

        protected void storeAdvancedSearchConfiguration()
      • getTypeService

        protected TypeService getTypeService()