@ProviderType public interface UADExporter<T> extends UADComponent<T>
T
entities into a format
that can be written to a file and downloaded.Modifier and Type | Method and Description |
---|---|
long |
count(long userId)
Returns the number of type
T entities associated with the user. |
byte[] |
export(T t)
Returns a byte array representing the entity, ready to be written to a
file.
|
java.io.File |
exportAll(long userId)
Returns a file object containing the data from all type
T
entities related to the user. |
default long |
getExportDataCount(long userId)
Returns the number of export data items of type
T entities
associated with the user. |
getTypeClass
long count(long userId) throws com.liferay.portal.kernel.exception.PortalException
T
entities associated with the user.userId
- the primary key of the user whose data to countcom.liferay.portal.kernel.exception.PortalException
byte[] export(T t) throws com.liferay.portal.kernel.exception.PortalException
t
- the type T
entity to convert into a byte arraycom.liferay.portal.kernel.exception.PortalException
- if a portal exception occurredjava.io.File exportAll(long userId) throws com.liferay.portal.kernel.exception.PortalException
T
entities related to the user.userId
- the primary key of the user whose data to exportcom.liferay.portal.kernel.exception.PortalException
- if a portal exception occurreddefault long getExportDataCount(long userId) throws com.liferay.portal.kernel.exception.PortalException
T
entities
associated with the user.userId
- the primary key of the user whose data to countcom.liferay.portal.kernel.exception.PortalException