@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. |
getTypeClasslong count(long userId)
throws PortalException
T entities associated with the user.userId - the primary key of the user whose data to countPortalExceptionbyte[] export(T t) throws PortalException
t - the type T entity to convert into a byte arrayPortalException - if a portal exception occurredjava.io.File exportAll(long userId)
throws PortalException
T
entities related to the user.userId - the primary key of the user whose data to exportPortalException - if a portal exception occurreddefault long getExportDataCount(long userId)
throws PortalException
T entities
associated with the user.userId - the primary key of the user whose data to countPortalException