Liferay 7.0-ce-b4

com.liferay.portal.kernel.backgroundtask
Interface BackgroundTask


public interface BackgroundTask


Method Summary
 void addAttachment(long userId, String fileName, File file)
           
 void addAttachment(long userId, String fileName, InputStream inputStream)
           
 Folder addAttachmentsFolder()
           
 List<FileEntry> getAttachmentsFileEntries()
           
 int getAttachmentsFileEntriesCount()
           
 long getAttachmentsFolderId()
           
 long getBackgroundTaskId()
           
 long getCompanyId()
           
 Date getCompletionDate()
           
 Date getCreateDate()
           
 long getGroupId()
           
 BaseModel<?> getModel()
           
 String getName()
           
 String getServletContextNames()
           
 int getStatus()
           
 String getStatusLabel()
           
 String getStatusMessage()
           
 Map<String,Serializable> getTaskContextMap()
           
 String getTaskExecutorClassName()
           
 long getUserId()
           
 boolean isCompleted()
           
 boolean isInProgress()
           
 void setTaskContextMap(Map<String,Serializable> taskContextMap)
           
 

Method Detail

addAttachment

void addAttachment(long userId,
                   String fileName,
                   File file)
                   throws PortalException
Throws:
PortalException

addAttachment

void addAttachment(long userId,
                   String fileName,
                   InputStream inputStream)
                   throws PortalException
Throws:
PortalException

addAttachmentsFolder

Folder addAttachmentsFolder()
                            throws PortalException
Throws:
PortalException

getAttachmentsFileEntries

List<FileEntry> getAttachmentsFileEntries()
                                          throws PortalException
Throws:
PortalException

getAttachmentsFileEntriesCount

int getAttachmentsFileEntriesCount()
                                   throws PortalException
Throws:
PortalException

getAttachmentsFolderId

long getAttachmentsFolderId()

getBackgroundTaskId

long getBackgroundTaskId()

getCompanyId

long getCompanyId()

getCompletionDate

Date getCompletionDate()

getCreateDate

Date getCreateDate()

getGroupId

long getGroupId()

getModel

BaseModel<?> getModel()

getName

String getName()

getServletContextNames

String getServletContextNames()

getStatus

int getStatus()

getStatusLabel

String getStatusLabel()

getStatusMessage

String getStatusMessage()

getTaskContextMap

Map<String,Serializable> getTaskContextMap()

getTaskExecutorClassName

String getTaskExecutorClassName()

getUserId

long getUserId()

isCompleted

boolean isCompleted()

isInProgress

boolean isInProgress()

setTaskContextMap

void setTaskContextMap(Map<String,Serializable> taskContextMap)

Liferay 7.0-ce-b4