Class SavedSearchDetailsCompatibility

  • All Implemented Interfaces:
    RecordsManagementCustomModel, RecordsManagementModel

    public class SavedSearchDetailsCompatibility
    extends Object
    implements RecordsManagementModel
    Compatibility class. Used to bridge between the old style of saved search passed and required by the UI and the new actual saved search details. Eventually will be factored out as web scripts are brought up to date.
    • Constructor Detail

      • SavedSearchDetailsCompatibility

        public SavedSearchDetailsCompatibility​(SavedSearchDetails savedSearchDetails,
                                               org.alfresco.service.namespace.NamespaceService namespaceService,
                                               RecordsManagementSearchServiceImpl searchService)
        Constructor
        Parameters:
        savedSearchDetails -
    • Method Detail

      • getSearchFromParams

        public static String getSearchFromParams​(String params)
        Retrieve the search from the parameter string
        Parameters:
        params - parameter string
        Returns:
        String search term
      • createSearchParameters

        public static RecordsManagementSearchParameters createSearchParameters​(String params,
                                                                               String[] paramsDelim,
                                                                               String sort,
                                                                               org.alfresco.service.namespace.NamespaceService namespaceService)
        Parameters:
        params -
        sort -
        namespaceService -
        Returns:
      • getSort

        public String getSort()
        Get the sort string from the saved search details
        Returns:
      • getParams

        public String getParams()
        Get the parameter string from the saved search details
        Returns:
      • getQuery

        public String getQuery()
        Build the full query string
        Returns: