Class LayoutResource
- java.lang.Object
-
- org.nuxeo.ecm.platform.forms.layout.export.LayoutResource
-
public class LayoutResource extends Object
Exports and presents documentation about layouts definitions- Since:
- 5.5
- Author:
- Tiry
-
-
Field Summary
Fields Modifier and Type Field Description protected Stringcategorystatic StringDEFAULT_CONVERSION_CATEGORYstatic StringDEFAULT_DOCUMENT_LAYOUT_MODEstatic StringDEFAULT_LANGUAGEprotected List<String>registeredLayoutNamesprotected LayoutStoreservice
-
Constructor Summary
Constructors Constructor Description LayoutResource(String category)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ObjectdoGet(String layoutName, javax.ws.rs.core.UriInfo uriInfo)StringgetAsJson(String layoutName, String lang, String conversionCategory)StringgetLayoutsForTypeAsJson(String docType, String mode, String lang, String conversionCategory)protected TemplateViewgetTemplate(String name, javax.ws.rs.core.UriInfo uriInfo)
-
-
-
Field Detail
-
DEFAULT_DOCUMENT_LAYOUT_MODE
public static final String DEFAULT_DOCUMENT_LAYOUT_MODE
- See Also:
- Constant Field Values
-
DEFAULT_CONVERSION_CATEGORY
public static final String DEFAULT_CONVERSION_CATEGORY
- See Also:
- Constant Field Values
-
DEFAULT_LANGUAGE
public static final String DEFAULT_LANGUAGE
- See Also:
- Constant Field Values
-
category
protected final String category
-
service
protected LayoutStore service
-
-
Constructor Detail
-
LayoutResource
public LayoutResource(String category)
-
-
Method Detail
-
getTemplate
protected TemplateView getTemplate(String name, javax.ws.rs.core.UriInfo uriInfo)
-
getAsJson
public String getAsJson(String layoutName, String lang, String conversionCategory) throws IOException
- Throws:
IOException
-
getLayoutsForTypeAsJson
public String getLayoutsForTypeAsJson(String docType, String mode, String lang, String conversionCategory) throws IOException
- Throws:
IOException
-
-