@ProviderType public abstract class BaseDDLExporter extends java.lang.Object implements DDLExporter
Constructor and Description |
---|
BaseDDLExporter() |
Modifier and Type | Method and Description |
---|---|
protected abstract byte[] |
doExport(long recordSetId,
int status,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<DDLRecord> orderByComparator) |
byte[] |
export(long recordSetId)
Exports the record set's records as a byte array.
|
byte[] |
export(long recordSetId,
int status)
Exports the record set's records of the workflow status as a byte array.
|
byte[] |
export(long recordSetId,
int status,
int start,
int end)
Exports a range of the record set's records as a byte array.
|
byte[] |
export(long recordSetId,
int status,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<DDLRecord> orderByComparator)
Exports an ordered range of the record set's records as a byte array.
|
protected java.util.List<DDMFormField> |
getDDMFormFields(DDMStructure ddmStructure) |
java.util.Locale |
getLocale()
Returns the locale of the current DDL Exporter service instance.
|
protected java.lang.String |
getStatusMessage(int status) |
void |
setLocale(java.util.Locale locale)
Returns the locale of the current DDL Exporter service instance.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getFormat
public byte[] export(long recordSetId) throws java.lang.Exception
DDLExporter
export
in interface DDLExporter
recordSetId
- the record set IDjava.lang.Exception
- if an unexpected exception occurredpublic byte[] export(long recordSetId, int status) throws java.lang.Exception
DDLExporter
export
in interface DDLExporter
recordSetId
- the record set IDstatus
- the workflow status of the records to exportjava.lang.Exception
- if an unexpected exception occurredpublic byte[] export(long recordSetId, int status, int start, int end) throws java.lang.Exception
DDLExporter
export
in interface DDLExporter
recordSetId
- the record set IDstatus
- the workflow status of the recordsstart
- the lower bound of the range of records to exportend
- the upper bound of the range of records to export (not
inclusive)java.lang.Exception
- if an unexpected exception occurredpublic byte[] export(long recordSetId, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<DDLRecord> orderByComparator) throws java.lang.Exception
DDLExporter
export
in interface DDLExporter
recordSetId
- the record set IDstatus
- the workflow status of the recordsstart
- the lower bound of the range of records to exportend
- the upper bound of the range of records to export (not
inclusive)orderByComparator
- a comparator to order the records (optionally
null
)java.lang.Exception
- if an unexpected exception occurredpublic java.util.Locale getLocale()
DDLExporter
getLocale
in interface DDLExporter
public void setLocale(java.util.Locale locale)
DDLExporter
setLocale
in interface DDLExporter
locale
- the locale used to retrieve the localized values of the
recordprotected abstract byte[] doExport(long recordSetId, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<DDLRecord> orderByComparator) throws java.lang.Exception
java.lang.Exception
protected java.util.List<DDMFormField> getDDMFormFields(DDMStructure ddmStructure) throws java.lang.Exception
java.lang.Exception
protected java.lang.String getStatusMessage(int status)