Class ShowSourcesController

  • All Implemented Interfaces:
    MultipartRequestWrapper.ParsingStrategy, Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig

    @WebServlet(name="ShowRDFSources",
                urlPatterns="/admin/showSources")
    public class ShowSourcesController
    extends FreemarkerHttpServlet
    Show the details of where our RDF data is coming from. What are the structures that supply the triples?
     Display like this:
    
     ModelAccess for Context
     blah-blah
    
     ModelAccess for Request
     blah-blah
    
     RDFServices
                   CONTEXT    REQUEST
     CONTENT       blah-blah  argle-bargle
     CONFIGURATION balderdash obstreporous
    
     Datasets  [same]
    
     Models
     Name                     ContextOnly
     DISPLAY                  blah-blah
     filegraph:tbox/junk.owl  bork-bork-bork
    
     OntModels
     Name                     Context        REQUEST
     DISPLAY                  blah-blah      song-and-dance
     filegraph:tbox/junk.owl  bork-bork-bork bogus-malarkey
    
     For the request object,
         Get the LANGUAGE_NEUTRAL versions, since they have fewer decorators.
         If the string is the same as the corresponding object in the context, show as "SAME AS CONTEXT"
    
     Structure for freemarker:
     map:
        modelAccess:
           context: text
           request: text
        rdfServices:
           content:
              context: text
              request: text
           configuration:
              context: text
              request: text
        datasets:
           [same]
        models:
           content:
              name1:
                 context: text
              name2:
                 context: text
              ...
           configuration:
              name3:
                 context: text
                 request: text
              ...
        ontModels:
           name1:
              context: text
              request: text
           ...
    
     At the same time, write these to the log as INFO messages, without the fancy formatting.
     
    See Also:
    Serialized Form
    • Constructor Detail

      • ShowSourcesController

        public ShowSourcesController()
    • Method Detail

      • requiredActions

        protected AuthorizationRequest requiredActions​(VitroRequest vreq)
        Description copied from class: FreemarkerHttpServlet
        By default, a page requires authorization for no actions. Subclasses that require authorization to process their page will override to return the actions that require authorization. In some cases, the choice of actions will depend on the contents of the request. NB This method can't be static, because then the superclass method gets called rather than the subclass method. For the same reason, it can't refer to a static or instance field REQUIRED_ACTIONS which is overridden in the subclass.
        Overrides:
        requiredActions in class FreemarkerHttpServlet