Package com.liferay.journal.util
Interface JournalDefaultTemplateProvider
public interface JournalDefaultTemplateProvider
Provides a default template for those JournalArticle instances which has no
DDM template defined.
-
Method Summary
Modifier and TypeMethodDescriptionDefault template language type.getScript(long ddmStructureId) Default template script.booleanDefines if default template is cacheable.
-
Method Details
-
getLanguage
String getLanguage()Default template language type.ftlorvm.- Returns:
- Default template language type.
-
getScript
Default template script.- Parameters:
ddmStructureId- ID of the DDM structure to provide a template for.- Returns:
- Default template script text.
- Throws:
Exception
-
isCacheable
boolean isCacheable()Defines if default template is cacheable.- Returns:
trueif default template is cacheable,falseotherwise.
-