public class DDMStructureBackgroundTask
extends java.lang.Object
implements com.liferay.portal.kernel.backgroundtask.BackgroundTask
Constructor and Description |
---|
DDMStructureBackgroundTask(long structureId) |
Modifier and Type | Method and Description |
---|---|
void |
addAttachment(long userId,
java.lang.String fileName,
java.io.File file) |
void |
addAttachment(long userId,
java.lang.String fileName,
java.io.InputStream inputStream) |
com.liferay.portal.kernel.repository.model.Folder |
addAttachmentsFolder() |
java.util.List<com.liferay.portal.kernel.repository.model.FileEntry> |
getAttachmentsFileEntries() |
int |
getAttachmentsFileEntriesCount() |
long |
getAttachmentsFolderId() |
long |
getBackgroundTaskId() |
long |
getCompanyId() |
java.util.Date |
getCompletionDate() |
java.util.Date |
getCreateDate() |
long |
getGroupId() |
com.liferay.portal.kernel.model.BaseModel<?> |
getModel() |
java.lang.String |
getName() |
java.lang.String |
getServletContextNames() |
int |
getStatus() |
java.lang.String |
getStatusLabel() |
java.lang.String |
getStatusMessage() |
java.util.Map<java.lang.String,java.io.Serializable> |
getTaskContextMap() |
java.lang.String |
getTaskExecutorClassName() |
long |
getUserId() |
boolean |
isCompleted() |
boolean |
isInProgress() |
void |
setTaskContextMap(java.util.Map<java.lang.String,java.io.Serializable> taskContextMap) |
public void addAttachment(long userId, java.lang.String fileName, java.io.File file) throws com.liferay.portal.kernel.exception.PortalException
addAttachment
in interface com.liferay.portal.kernel.backgroundtask.BackgroundTask
com.liferay.portal.kernel.exception.PortalException
public void addAttachment(long userId, java.lang.String fileName, java.io.InputStream inputStream) throws com.liferay.portal.kernel.exception.PortalException
addAttachment
in interface com.liferay.portal.kernel.backgroundtask.BackgroundTask
com.liferay.portal.kernel.exception.PortalException
public com.liferay.portal.kernel.repository.model.Folder addAttachmentsFolder() throws com.liferay.portal.kernel.exception.PortalException
addAttachmentsFolder
in interface com.liferay.portal.kernel.backgroundtask.BackgroundTask
com.liferay.portal.kernel.exception.PortalException
public java.util.List<com.liferay.portal.kernel.repository.model.FileEntry> getAttachmentsFileEntries() throws com.liferay.portal.kernel.exception.PortalException
getAttachmentsFileEntries
in interface com.liferay.portal.kernel.backgroundtask.BackgroundTask
com.liferay.portal.kernel.exception.PortalException
public int getAttachmentsFileEntriesCount() throws com.liferay.portal.kernel.exception.PortalException
getAttachmentsFileEntriesCount
in interface com.liferay.portal.kernel.backgroundtask.BackgroundTask
com.liferay.portal.kernel.exception.PortalException
public long getAttachmentsFolderId()
getAttachmentsFolderId
in interface com.liferay.portal.kernel.backgroundtask.BackgroundTask
public long getBackgroundTaskId()
getBackgroundTaskId
in interface com.liferay.portal.kernel.backgroundtask.BackgroundTask
public long getCompanyId()
getCompanyId
in interface com.liferay.portal.kernel.backgroundtask.BackgroundTask
public java.util.Date getCompletionDate()
getCompletionDate
in interface com.liferay.portal.kernel.backgroundtask.BackgroundTask
public java.util.Date getCreateDate()
getCreateDate
in interface com.liferay.portal.kernel.backgroundtask.BackgroundTask
public long getGroupId()
getGroupId
in interface com.liferay.portal.kernel.backgroundtask.BackgroundTask
public com.liferay.portal.kernel.model.BaseModel<?> getModel()
getModel
in interface com.liferay.portal.kernel.backgroundtask.BackgroundTask
public java.lang.String getName()
getName
in interface com.liferay.portal.kernel.backgroundtask.BackgroundTask
public java.lang.String getServletContextNames()
getServletContextNames
in interface com.liferay.portal.kernel.backgroundtask.BackgroundTask
public int getStatus()
getStatus
in interface com.liferay.portal.kernel.backgroundtask.BackgroundTask
public java.lang.String getStatusLabel()
getStatusLabel
in interface com.liferay.portal.kernel.backgroundtask.BackgroundTask
public java.lang.String getStatusMessage()
getStatusMessage
in interface com.liferay.portal.kernel.backgroundtask.BackgroundTask
public java.util.Map<java.lang.String,java.io.Serializable> getTaskContextMap()
getTaskContextMap
in interface com.liferay.portal.kernel.backgroundtask.BackgroundTask
public java.lang.String getTaskExecutorClassName()
getTaskExecutorClassName
in interface com.liferay.portal.kernel.backgroundtask.BackgroundTask
public long getUserId()
getUserId
in interface com.liferay.portal.kernel.backgroundtask.BackgroundTask
public boolean isCompleted()
isCompleted
in interface com.liferay.portal.kernel.backgroundtask.BackgroundTask
public boolean isInProgress()
isInProgress
in interface com.liferay.portal.kernel.backgroundtask.BackgroundTask
public void setTaskContextMap(java.util.Map<java.lang.String,java.io.Serializable> taskContextMap)
setTaskContextMap
in interface com.liferay.portal.kernel.backgroundtask.BackgroundTask