Class DefaultSearchService

    • Constructor Detail

      • DefaultSearchService

        public DefaultSearchService()
    • Method Detail

      • getSearchType

        public SearchType getSearchType​(ObjectTemplate objectTemplate)
        Description copied from interface: SearchService
        Gets the search type for the given object template.
        Specified by:
        getSearchType in interface SearchService
        Parameters:
        objectTemplate - the object template to look search type for
        Returns:
        the search type found for the given object template
      • getSearchType

        public SearchType getSearchType​(ObjectType objectType)
        Description copied from interface: SearchService
        Gets the search type for given object type. Argument can also be already a SearchType and in this case it should be just returned.
        Specified by:
        getSearchType in interface SearchService
        Parameters:
        objectType - the object type to look search type for
        Returns:
        the search type found for the given argument
      • getSearchType

        public SearchType getSearchType​(java.lang.String objectTemplateCode)
        Description copied from interface: SearchService
        Gets the search type for the given object template code.
        Specified by:
        getSearchType in interface SearchService
        Parameters:
        objectTemplateCode - the object template code to look search type for
        Returns:
        the search type found for the given argument
      • setCockpitTypeService

        public void setCockpitTypeService​(TypeService typeService)
      • setUiConfigurationService

        public void setUiConfigurationService​(UIConfigurationService uiConfigurationService)
      • isSortable

        public boolean isSortable​(PropertyDescriptor propDescr)
        Description copied from interface: SearchService
        Checks if given property is sortable, so it can later be used to sort by.
        Specified by:
        isSortable in interface SearchService
        Parameters:
        propDescr - the property descriptor to check for beeing sortable
        Returns:
        true, if the given property is sortable
      • setSearchProvider

        public void setSearchProvider​(SearchProvider searchProvider)
      • getSearchProvider

        public SearchProvider getSearchProvider()
        Description copied from interface: SearchService
        Gets the current search provider of the service implementation. Search provider exposes a functionality we can use to perform required search operations.
        Specified by:
        getSearchProvider in interface SearchService
        Returns:
        the current search provider implementation