Package com.axelor.report
Class ReportResourceLocator
- java.lang.Object
-
- com.axelor.report.ReportResourceLocator
-
- All Implemented Interfaces:
org.eclipse.birt.report.model.api.IResourceLocator
public class ReportResourceLocator extends Object implements org.eclipse.birt.report.model.api.IResourceLocator
This is aResourceLocatorthat first searches external reports directory for the resources and fallbacks to module resources if not found.
-
-
Field Summary
Fields Modifier and Type Field Description static StringBIRT_RESOURCELOCATOR_SEARCH_LOCATIONstatic intCASCADING_STYLE_SHEETstatic StringDEFAULT_REPORT_DIRstatic StringFRAGMENT_RESOURCE_HOSTstatic intIMAGEstatic intJAR_FILEstatic intLIBRARYstatic intMESSAGE_FILEstatic intOTHERSstatic intRESOURCE_BUNDLEstatic intRESOURCE_DESIGNstatic intRESOURCE_FILEPATHstatic intRESOURCE_FOLDER
-
Constructor Summary
Constructors Constructor Description ReportResourceLocator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description URLfindResource(org.eclipse.birt.report.model.api.ModuleHandle moduleHandle, String fileName, int type)URLfindResource(org.eclipse.birt.report.model.api.ModuleHandle moduleHandle, String fileName, int type, Map appContext)
-
-
-
Field Detail
-
DEFAULT_REPORT_DIR
public static final String DEFAULT_REPORT_DIR
- See Also:
- Constant Field Values
-
FRAGMENT_RESOURCE_HOST
public static final String FRAGMENT_RESOURCE_HOST
- See Also:
- Constant Field Values
-
IMAGE
public static final int IMAGE
- See Also:
- Constant Field Values
-
LIBRARY
public static final int LIBRARY
- See Also:
- Constant Field Values
-
CASCADING_STYLE_SHEET
public static final int CASCADING_STYLE_SHEET
- See Also:
- Constant Field Values
-
JAR_FILE
public static final int JAR_FILE
- See Also:
- Constant Field Values
-
MESSAGE_FILE
public static final int MESSAGE_FILE
- See Also:
- Constant Field Values
-
OTHERS
public static final int OTHERS
- See Also:
- Constant Field Values
-
BIRT_RESOURCELOCATOR_SEARCH_LOCATION
public static final String BIRT_RESOURCELOCATOR_SEARCH_LOCATION
- See Also:
- Constant Field Values
-
RESOURCE_FILEPATH
public static final int RESOURCE_FILEPATH
- See Also:
- Constant Field Values
-
RESOURCE_BUNDLE
public static final int RESOURCE_BUNDLE
- See Also:
- Constant Field Values
-
RESOURCE_FOLDER
public static final int RESOURCE_FOLDER
- See Also:
- Constant Field Values
-
RESOURCE_DESIGN
public static final int RESOURCE_DESIGN
- See Also:
- Constant Field Values
-
-