Class MCRObjectStaticContentGenerator
java.lang.Object
org.mycore.services.staticcontent.MCRObjectStaticContentGenerator
-
Field Summary
-
Constructor Summary
ModifierConstructorDescriptionMCRObjectStaticContentGenerator
(String configID) protected
MCRObjectStaticContentGenerator
(String transformer, String staticFileRootPath) protected
MCRObjectStaticContentGenerator
(MCRContentTransformer transformer, Path staticFileRootPath) -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
Allows to implement an own instance which filters if the object is suitable to create static content.void
get
(MCRObjectID id) protected Path
-
Field Details
-
TRANSFORMER_SUFFIX
- See Also:
-
ROOT_PATH_SUFFIX
- See Also:
-
-
Constructor Details
-
MCRObjectStaticContentGenerator
-
MCRObjectStaticContentGenerator
-
MCRObjectStaticContentGenerator
protected MCRObjectStaticContentGenerator(MCRContentTransformer transformer, Path staticFileRootPath)
-
-
Method Details
-
getContentGenerators
-
generate
- Throws:
IOException
-
get
- Throws:
IOException
-
getSlotDirPath
-
filter
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
-
getTransformer
-