ResourceDescriptor API Constants

The constants that the services require are defined in the following classes:

com.jaspersoft.jasperserver.api.metadata.xml.domain.impl.ResourceDescriptor
com.jaspersoft.jasperserver.api.metadata.xml.domain.impl.Argument

The following values are extracted from ResourceDescriptor:

// Resource wsTypes
TYPE_FOLDER = "folder";
TYPE_REPORTUNIT = "reportUnit";
TYPE_DATASOURCE = "datasource";
TYPE_DATASOURCE_JDBC = "jdbc";
TYPE_DATASOURCE_JNDI = "jndi";
TYPE_DATASOURCE_BEAN = "bean";
TYPE_DATASOURCE_VIRTUAL = <span class="Code">"</span>virtual<span class="Code">"</span>;
TYPE_DATASOURCE_CUSTOM = "custom";
TYPE_DATASOURCE_AWS = "aws"; // Amazon Web Services
TYPE_IMAGE = "img";
TYPE_FONT = "font";
TYPE_JRXML = "jrxml";
TYPE_CLASS_JAR = "jar";
TYPE_RESOURCE_BUNDLE = "prop";
TYPE_REFERENCE = "reference";
TYPE_INPUT_CONTROL = "inputControl";
TYPE_DATA_TYPE = "dataType";
TYPE_OLAP_MONDRIAN_CONNECTION = "olapMondrianCon";
TYPE_OLAP_XMLA_CONNECTION = "olapXmlaCon";
TYPE_MONDRIAN_SCHEMA = "olapMondrianSchema";
TYPE_ACCESS_GRANT_SCHEMA = "accessGrantSchema"; // Pro-only
TYPE_UNKNOW = "unknow";
TYPE_LOV = "lov"; // List of values...
TYPE_QUERY = "query";
TYPE_CONTENT_RESOURCE = "contentResource";
TYPE_STYLE_TEMPLATE = "jrtx";
TYPE_XML_FILE = "xml";
// These constants are copied here from DataType for facility
DT_TYPE_TEXT = 1;
DT_TYPE_NUMBER = 2;
DT_TYPE_DATE = 3;
DT_TYPE_DATE_TIME = 4; <br />
// These constants are copied here from InputControl for facility
IC_TYPE_BOOLEAN = 1;
IC_TYPE_SINGLE_VALUE = 2;
IC_TYPE_SINGLE_SELECT_LIST_OF_VALUES = 3;
IC_TYPE_SINGLE_SELECT_QUERY = 4;
IC_TYPE_MULTI_VALUE = 5;      // This type is deprecated
IC_TYPE_MULTI_SELECT_LIST_OF_VALUES = 6;
IC_TYPE_MULTI_SELECT_QUERY = 7;
IC_TYPE_SINGLE_SELECT_LIST_OF_VALUES_RADIO = 8;
IC_TYPE_SINGLE_SELECT_QUERY_RADIO = 9;
IC_TYPE_MULTI_SELECT_LIST_OF_VALUES_CHECKBOX = 10;
IC_TYPE_MULTI_SELECT_QUERY_CHECKBOX = 11;<br />
...
<a name="api-constants_1275818895_1039822"></a><a name="api-constants_1275818895_31091"></a><span class="Code">// ReportUnit resource properties</span>
...RU_CONTROLS_LAYOUT_POPUP_SCREEN = 1;<br />
RU_CONTROLS_LAYOUT_SEPARATE_PAGE = 2;
RU_CONTROLS_LAYOUT_TOP_OF_PAGE = 3;
RU_CONTROLS_LAYOUT_IN_PAGE = 4;
...
// Content resource properties
...
CONTENT_TYPE_PDF = "pdf";
CONTENT_TYPE_HTML = "html";
CONTENT_TYPE_XLS = "xls";
CONTENT_TYPE_RTF = "rtf";
CONTENT_TYPE_CSV = "csv";
CONTENT_TYPE_IMAGE = "img";

The constants in the Argument class are:

// Arguments
MODIFY_REPORTUNIT = "MODIFY_REPORTUNIT_URI";
CREATE_REPORTUNIT = "CREATE_REPORTUNIT_BOOLEAN";
LIST_DATASOURCES  = "LIST_DATASOURCES";
IC_GET_QUERY_DATA  = "IC_GET_QUERY_DATA";
VALUE_TRUE = "true";
VALUE_FALSE = "false";
RUN_OUTPUT_FORMAT = "RUN_OUTPUT_FORMAT";
RUN_OUTPUT_FORMAT_PDF = "PDF";
RUN_OUTPUT_FORMAT_JRPRINT = "JRPRINT";
RUN_OUTPUT_FORMAT_HTML = "HTML";
RUN_OUTPUT_FORMAT_XLS = "XLS";
RUN_OUTPUT_FORMAT_XML = "XML";
RUN_OUTPUT_FORMAT_CSV = "CSV";
RUN_OUTPUT_FORMAT_RTF = "RTF";
RUN_OUTPUT_IMAGES_URI = "IMAGES_URI";
RUN_OUTPUT_PAGE = "PAGE";
RUN_TRANSFORMER_KEY = "TRANSFORMER_KEY";
RU_REF_URI = "RU_REF_URI";
PARAMS_ARG = "PARAMS_ARG";
LIST_RESOURCES = "LIST_RESOURCES";
RESOURCE_TYPE = "RESOURCE_TYPE";
REPORT_TYPE = "REPORT_TYPE";
START_FROM_DIRECTORY = "START_FROM_DIRECTORY";<br />
NO_RESOURCE_DATA_ATTACHMENT = "NO_ATTACHMENT";
NO_SUBRESOURCE_DATA_ATTACHMENTS = "NO_SUBRESOURCE_ATTACHMENTS";
DESTINATION_URI = "DESTINATION_URI";

Version: 
Feedback
randomness