Package org.opencms.ade.detailpage
Class CmsDetailPageConfigurationWriter
- java.lang.Object
-
- org.opencms.ade.detailpage.CmsDetailPageConfigurationWriter
-
public class CmsDetailPageConfigurationWriter extends java.lang.Object
Class for writing detail page information to an XML configuration file.- Since:
- 8.0.0
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
N_DETAIL_PAGE
The detail page node.static java.lang.String
N_PAGE
The name of the node containing the reference to the actual detail page.static java.lang.String
N_TYPE
The name of the node which contains the type which the detail page renders.
-
Constructor Summary
Constructors Constructor Description CmsDetailPageConfigurationWriter(CmsObject cms, CmsResource res)
Creates a new detail page configuration writer.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
updateAndSave(java.util.List<CmsDetailPageInfo> infos, CmsUUID newId)
Writes the new detail page information to the configuration file.
-
-
-
Field Detail
-
N_DETAIL_PAGE
public static final java.lang.String N_DETAIL_PAGE
The detail page node.- See Also:
- Constant Field Values
-
N_PAGE
public static final java.lang.String N_PAGE
The name of the node containing the reference to the actual detail page.- See Also:
- Constant Field Values
-
N_TYPE
public static final java.lang.String N_TYPE
The name of the node which contains the type which the detail page renders.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
CmsDetailPageConfigurationWriter
public CmsDetailPageConfigurationWriter(CmsObject cms, CmsResource res)
Creates a new detail page configuration writer.- Parameters:
cms
- the current CMS contextres
- the configuration file resource
-
-
Method Detail
-
updateAndSave
public void updateAndSave(java.util.List<CmsDetailPageInfo> infos, CmsUUID newId) throws CmsException
Writes the new detail page information to the configuration file.- Parameters:
infos
- the new detail page informationnewId
- the id to use for new pages- Throws:
CmsException
- if something goes wrong
-
-