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 String
category
static String
DEFAULT_CONVERSION_CATEGORY
static String
DEFAULT_DOCUMENT_LAYOUT_MODE
static String
DEFAULT_LANGUAGE
protected List<String>
registeredLayoutNames
protected LayoutStore
service
-
Constructor Summary
Constructors Constructor Description LayoutResource(String category)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Object
doGet(String layoutName, javax.ws.rs.core.UriInfo uriInfo)
String
getAsJson(String layoutName, String lang, String conversionCategory)
String
getLayoutsForTypeAsJson(String docType, String mode, String lang, String conversionCategory)
protected TemplateView
getTemplate(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
-
-