Class MCRObjectStaticContentGenerator

java.lang.Object
org.mycore.services.staticcontent.MCRObjectStaticContentGenerator

public class MCRObjectStaticContentGenerator extends Object
  • Field Details

  • Constructor Details

    • MCRObjectStaticContentGenerator

      public MCRObjectStaticContentGenerator(String configID)
    • MCRObjectStaticContentGenerator

      protected MCRObjectStaticContentGenerator(String transformer, String staticFileRootPath)
    • MCRObjectStaticContentGenerator

      protected MCRObjectStaticContentGenerator(MCRContentTransformer transformer, Path staticFileRootPath)
  • Method Details

    • getContentGenerators

      public static List<String> getContentGenerators()
    • generate

      public void generate(MCRObject object) throws IOException
      Throws:
      IOException
    • get

      public InputStream get(MCRObjectID id) throws IOException
      Throws:
      IOException
    • getSlotDirPath

      protected Path getSlotDirPath(MCRObjectID id)
    • filter

      protected boolean filter(MCRObject object)
      Allows to implement an own instance which filters if the object is suitable to create static content. The class can be defined by appending .Class after the id just like with transformer E.g. we do not want to run the epicur stylesheets with no urn
      Parameters:
      object - the object to check
      Returns:
      true if the object is suitable
    • getStaticFileRootPath

      public Path getStaticFileRootPath()
    • getTransformer

      public MCRContentTransformer getTransformer()