Class LuceneSearch


  • @RestController("casSearchController")
    @RequestMapping(path="api/search",
                    produces="application/json")
    public class LuceneSearch
    extends java.lang.Object
    Class that allows full text search of services using Apache Lucene.
    Since:
    6.0
    • Constructor Summary

      Constructors 
      Constructor Description
      LuceneSearch()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.List<org.apereo.cas.mgmt.domain.RegisteredServiceItem> search​(org.springframework.security.core.Authentication authentication, java.lang.String queryString)
      Searches the current state of the the accessible services to a user from a query string.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • LuceneSearch

        public LuceneSearch()
    • Method Detail

      • search

        @PostMapping
        public java.util.List<org.apereo.cas.mgmt.domain.RegisteredServiceItem> search​(org.springframework.security.core.Authentication authentication,
                                                                                       @RequestBody
                                                                                       java.lang.String queryString)
                                                                                throws SearchException
        Searches the current state of the the accessible services to a user from a query string.
        Parameters:
        authentication - - the user
        queryString - - the query
        Returns:
        - List of RegisteredServiceItem
        Throws:
        SearchException - - failed