|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.jalios.jcms.mashup.ExportManager
public class ExportManager
The ExportManager is the main class to manage data to export.
This class is a singleton (see getInstance()
).
It provides method to export data from an id, a query or a dataSet.
Field Summary | |
---|---|
static String |
REVISION
|
Fields inherited from interface com.jalios.jcms.mashup.ExportConstants |
---|
EXPORT_DIR, EXPORT_IPFILTER_PROP, EXPORT_LOG_FILE, EXPORT_MAX_DATA_PROP, EXPORT_POLICY_EXPORTSET, EXPORT_QH_ATTR, EXPORT_SOURCE_URL_PROP |
Fields inherited from interface com.jalios.jcms.mashup.MashupConstants |
---|
DATA_TAG, DATASET_TAG, FIELD_CLASS, FIELD_ENTRY, FIELD_ITEM, FIELD_KEY, FIELD_NAME, FIELD_TAG, FIELD_VALUE, FILE_FIELD, FILE_ID, FILE_MTIME, FILE_SIZE, FILE_TAG, FILE_TICKET, FILESET_TAG, RELATED_TAG |
Method Summary | |
---|---|
boolean |
checkIP(String ip)
Returns true if the given IP address is authorized and the ExportManager is enabled. |
String |
exportXml(Data data)
Deprecated. use exportXml(Data, Member) |
String |
exportXml(Data data,
Member mbr)
Returns the XML export for the given data. |
String |
exportXml(Set<? extends Data> dataSet)
Returns the XML export for the given data set. |
String |
exportXml(String queryString)
Deprecated. use exportXml(String, Member) |
String |
exportXml(String queryString,
Member mbr)
Returns the XML export for the given JCMS query. |
static ExportManager |
getInstance()
Returns the singleton. |
void |
init()
|
boolean |
isEnabled()
Returns true if the Export Manager is enabled. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String REVISION
Method Detail |
---|
public static ExportManager getInstance()
public boolean isEnabled()
public void init()
public boolean checkIP(String ip)
ip
- the IP address to be checked
public String exportXml(Data data)
exportXml(Data, Member)
data
- the data to be exported.
public String exportXml(Data data, Member mbr)
data
- the data to be exported.mbr
- the member
public String exportXml(String queryString)
exportXml(String, Member)
ExportConstants.EXPORT_QH_ATTR
is set to allow QueryFilters to have a special behavior for export query.
queryString
- a JCMS query string (eg. types=Article&cids=c_1234)
public String exportXml(String queryString, Member mbr)
ExportConstants.EXPORT_QH_ATTR
is set to allow QueryFilters to have a special behavior for export query.
queryString
- a JCMS query string (eg. types=Article&cids=c_1234)mbr
- the member
public String exportXml(Set<? extends Data> dataSet)
dataSet
- the data to be exported.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |