Class DefaultContentTemplateFactory
- java.lang.Object
-
- com.atlassian.confluence.api.impl.service.content.factory.ModelFactory<PageTemplate,ContentTemplate>
-
- com.atlassian.confluence.api.impl.service.content.factory.DefaultContentTemplateFactory
-
- All Implemented Interfaces:
ContentTemplateFactory
,ContentTemplateFactory
public class DefaultContentTemplateFactory extends ModelFactory<PageTemplate,ContentTemplate> implements ContentTemplateFactory, ContentTemplateFactory
DefaultContentTemplateFactory creates ContentTemplate from PageTemplate- Since:
- 5.10
-
-
Constructor Summary
Constructors Constructor Description DefaultContentTemplateFactory(SpaceFactory spaceFactory, LabelFactory labelFactory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ContentTemplate
buildFrom(PageTemplate hibernateObject, Expansions expansions)
Convert from db entity object into model object.-
Methods inherited from class com.atlassian.confluence.api.impl.service.content.factory.ModelFactory
asFunction, buildFrom
-
-
-
-
Constructor Detail
-
DefaultContentTemplateFactory
public DefaultContentTemplateFactory(SpaceFactory spaceFactory, LabelFactory labelFactory)
-
-
Method Detail
-
buildFrom
public ContentTemplate buildFrom(PageTemplate hibernateObject, Expansions expansions)
Convert from db entity object into model object.- Specified by:
buildFrom
in interfaceContentTemplateFactory
- Specified by:
buildFrom
in interfaceContentTemplateFactory
- Specified by:
buildFrom
in classModelFactory<PageTemplate,ContentTemplate>
- Parameters:
hibernateObject
-expansions
-- Returns:
-
-