public class BackgroundTaskWrapper extends com.liferay.portal.kernel.model.wrapper.BaseModelWrapper<BackgroundTask> implements BackgroundTask, com.liferay.portal.kernel.model.ModelWrapper<BackgroundTask>
This class is a wrapper for BackgroundTask.
BackgroundTask,
Serialized FormBACKGROUND_TASK_ID_ACCESSOR| Constructor and Description |
|---|
BackgroundTaskWrapper(BackgroundTask backgroundTask) |
| 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() |
BackgroundTask |
cloneWithOriginalValues() |
java.util.List<com.liferay.portal.kernel.repository.model.FileEntry> |
getAttachmentsFileEntries() |
java.util.List<com.liferay.portal.kernel.repository.model.FileEntry> |
getAttachmentsFileEntries(int start,
int end) |
int |
getAttachmentsFileEntriesCount() |
long |
getAttachmentsFolderId() |
long |
getBackgroundTaskId()
Returns the background task ID of this background task.
|
long |
getCompanyId()
Returns the company ID of this background task.
|
boolean |
getCompleted()
Returns the completed of this background task.
|
java.util.Date |
getCompletionDate()
Returns the completion date of this background task.
|
java.util.Date |
getCreateDate()
Returns the create date of this background task.
|
long |
getGroupId()
Returns the group ID of this background task.
|
java.util.Map<java.lang.String,java.lang.Object> |
getModelAttributes() |
java.util.Date |
getModifiedDate()
Returns the modified date of this background task.
|
long |
getMvccVersion()
Returns the mvcc version of this background task.
|
java.lang.String |
getName()
Returns the name of this background task.
|
long |
getPrimaryKey()
Returns the primary key of this background task.
|
java.lang.String |
getServletContextNames()
Returns the servlet context names of this background task.
|
int |
getStatus()
Returns the status of this background task.
|
java.lang.String |
getStatusLabel() |
java.lang.String |
getStatusMessage()
Returns the status message of this background task.
|
java.util.Map<java.lang.String,java.io.Serializable> |
getTaskContextMap()
Returns the task context map of this background task.
|
java.lang.String |
getTaskExecutorClassName()
Returns the task executor class name of this background task.
|
long |
getUserId()
Returns the user ID of this background task.
|
java.lang.String |
getUserName()
Returns the user name of this background task.
|
java.lang.String |
getUserUuid()
Returns the user uuid of this background task.
|
boolean |
isCompleted()
Returns
true if this background task is completed. |
boolean |
isInProgress() |
void |
persist() |
void |
setBackgroundTaskId(long backgroundTaskId)
Sets the background task ID of this background task.
|
void |
setCompanyId(long companyId)
Sets the company ID of this background task.
|
void |
setCompleted(boolean completed)
Sets whether this background task is completed.
|
void |
setCompletionDate(java.util.Date completionDate)
Sets the completion date of this background task.
|
void |
setCreateDate(java.util.Date createDate)
Sets the create date of this background task.
|
void |
setGroupId(long groupId)
Sets the group ID of this background task.
|
void |
setModelAttributes(java.util.Map<java.lang.String,java.lang.Object> attributes) |
void |
setModifiedDate(java.util.Date modifiedDate)
Sets the modified date of this background task.
|
void |
setMvccVersion(long mvccVersion)
Sets the mvcc version of this background task.
|
void |
setName(java.lang.String name)
Sets the name of this background task.
|
void |
setPrimaryKey(long primaryKey)
Sets the primary key of this background task.
|
void |
setServletContextNames(java.lang.String servletContextNames)
Sets the servlet context names of this background task.
|
void |
setStatus(int status)
Sets the status of this background task.
|
void |
setStatusMessage(java.lang.String statusMessage)
Sets the status message of this background task.
|
void |
setTaskContextMap(java.util.Map<java.lang.String,java.io.Serializable> taskContextMap)
Sets the task context map of this background task.
|
void |
setTaskExecutorClassName(java.lang.String taskExecutorClassName)
Sets the task executor class name of this background task.
|
void |
setUserId(long userId)
Sets the user ID of this background task.
|
void |
setUserName(java.lang.String userName)
Sets the user name of this background task.
|
void |
setUserUuid(java.lang.String userUuid)
Sets the user uuid of this background task.
|
java.lang.String |
toXmlString() |
protected BackgroundTaskWrapper |
wrap(BackgroundTask backgroundTask) |
clone, compareTo, equals, getExpandoBridge, getModelClass, getModelClassName, getPrimaryKeyObj, getWrappedModel, hashCode, isCachedModel, isEntityCacheEnabled, isEscapedModel, isFinderCacheEnabled, isNew, resetOriginalValues, setCachedModel, setExpandoBridgeAttributes, setExpandoBridgeAttributes, setExpandoBridgeAttributes, setNew, setPrimaryKeyObj, toCacheModel, toEscapedModel, toString, toUnescapedModelfinalize, getClass, notify, notifyAll, wait, wait, waitclone, getAttributeGetterFunctions, getAttributeSetterBiConsumers, getExpandoBridge, getPrimaryKeyObj, isCachedModel, isEntityCacheEnabled, isEscapedModel, isFinderCacheEnabled, isNew, resetOriginalValues, setCachedModel, setExpandoBridgeAttributes, setExpandoBridgeAttributes, setExpandoBridgeAttributes, setNew, setPrimaryKeyObj, toCacheModel, toEscapedModel, toUnescapedModelpublic BackgroundTaskWrapper(BackgroundTask backgroundTask)
public java.util.Map<java.lang.String,java.lang.Object> getModelAttributes()
getModelAttributes in interface com.liferay.portal.kernel.model.BaseModel<BackgroundTask>public void setModelAttributes(java.util.Map<java.lang.String,java.lang.Object> attributes)
setModelAttributes in interface com.liferay.portal.kernel.model.BaseModel<BackgroundTask>public void addAttachment(long userId,
java.lang.String fileName,
java.io.File file)
throws com.liferay.portal.kernel.exception.PortalException
addAttachment in interface BackgroundTaskcom.liferay.portal.kernel.exception.PortalExceptionpublic void addAttachment(long userId,
java.lang.String fileName,
java.io.InputStream inputStream)
throws com.liferay.portal.kernel.exception.PortalException
addAttachment in interface BackgroundTaskcom.liferay.portal.kernel.exception.PortalExceptionpublic com.liferay.portal.kernel.repository.model.Folder addAttachmentsFolder()
throws com.liferay.portal.kernel.exception.PortalException
addAttachmentsFolder in interface BackgroundTaskcom.liferay.portal.kernel.exception.PortalExceptionpublic BackgroundTask cloneWithOriginalValues()
cloneWithOriginalValues in interface BackgroundTaskModelcloneWithOriginalValues in interface com.liferay.portal.kernel.model.BaseModel<BackgroundTask>public java.util.List<com.liferay.portal.kernel.repository.model.FileEntry> getAttachmentsFileEntries()
throws com.liferay.portal.kernel.exception.PortalException
getAttachmentsFileEntries in interface BackgroundTaskcom.liferay.portal.kernel.exception.PortalExceptionpublic java.util.List<com.liferay.portal.kernel.repository.model.FileEntry> getAttachmentsFileEntries(int start,
int end)
throws com.liferay.portal.kernel.exception.PortalException
getAttachmentsFileEntries in interface BackgroundTaskcom.liferay.portal.kernel.exception.PortalExceptionpublic int getAttachmentsFileEntriesCount()
throws com.liferay.portal.kernel.exception.PortalException
getAttachmentsFileEntriesCount in interface BackgroundTaskcom.liferay.portal.kernel.exception.PortalExceptionpublic long getAttachmentsFolderId()
getAttachmentsFolderId in interface BackgroundTaskpublic long getBackgroundTaskId()
getBackgroundTaskId in interface BackgroundTaskModelpublic long getCompanyId()
getCompanyId in interface BackgroundTaskModelgetCompanyId in interface com.liferay.portal.kernel.model.AuditedModelgetCompanyId in interface com.liferay.portal.kernel.model.ShardedModelpublic boolean getCompleted()
getCompleted in interface BackgroundTaskModelpublic java.util.Date getCompletionDate()
getCompletionDate in interface BackgroundTaskModelpublic java.util.Date getCreateDate()
getCreateDate in interface BackgroundTaskModelgetCreateDate in interface com.liferay.portal.kernel.model.AuditedModelpublic long getGroupId()
getGroupId in interface BackgroundTaskModelgetGroupId in interface com.liferay.portal.kernel.model.GroupedModelpublic java.util.Date getModifiedDate()
getModifiedDate in interface BackgroundTaskModelgetModifiedDate in interface com.liferay.portal.kernel.model.AuditedModelpublic long getMvccVersion()
getMvccVersion in interface BackgroundTaskModelgetMvccVersion in interface com.liferay.portal.kernel.model.MVCCModelpublic java.lang.String getName()
getName in interface BackgroundTaskModelpublic long getPrimaryKey()
getPrimaryKey in interface BackgroundTaskModelpublic java.lang.String getServletContextNames()
getServletContextNames in interface BackgroundTaskModelpublic int getStatus()
getStatus in interface BackgroundTaskModelpublic java.lang.String getStatusLabel()
getStatusLabel in interface BackgroundTaskpublic java.lang.String getStatusMessage()
getStatusMessage in interface BackgroundTaskModelpublic java.util.Map<java.lang.String,java.io.Serializable> getTaskContextMap()
getTaskContextMap in interface BackgroundTaskModelpublic java.lang.String getTaskExecutorClassName()
getTaskExecutorClassName in interface BackgroundTaskModelpublic long getUserId()
getUserId in interface BackgroundTaskModelgetUserId in interface com.liferay.portal.kernel.model.AuditedModelpublic java.lang.String getUserName()
getUserName in interface BackgroundTaskModelgetUserName in interface com.liferay.portal.kernel.model.AuditedModelpublic java.lang.String getUserUuid()
getUserUuid in interface BackgroundTaskModelgetUserUuid in interface com.liferay.portal.kernel.model.AuditedModelpublic boolean isCompleted()
true if this background task is completed.isCompleted in interface BackgroundTaskModeltrue if this background task is completed; false otherwisepublic boolean isInProgress()
isInProgress in interface BackgroundTaskpublic void persist()
persist in interface com.liferay.portal.kernel.model.PersistedModelpublic void setBackgroundTaskId(long backgroundTaskId)
setBackgroundTaskId in interface BackgroundTaskModelbackgroundTaskId - the background task ID of this background taskpublic void setCompanyId(long companyId)
setCompanyId in interface BackgroundTaskModelsetCompanyId in interface com.liferay.portal.kernel.model.AuditedModelsetCompanyId in interface com.liferay.portal.kernel.model.ShardedModelcompanyId - the company ID of this background taskpublic void setCompleted(boolean completed)
setCompleted in interface BackgroundTaskModelcompleted - the completed of this background taskpublic void setCompletionDate(java.util.Date completionDate)
setCompletionDate in interface BackgroundTaskModelcompletionDate - the completion date of this background taskpublic void setCreateDate(java.util.Date createDate)
setCreateDate in interface BackgroundTaskModelsetCreateDate in interface com.liferay.portal.kernel.model.AuditedModelcreateDate - the create date of this background taskpublic void setGroupId(long groupId)
setGroupId in interface BackgroundTaskModelsetGroupId in interface com.liferay.portal.kernel.model.GroupedModelgroupId - the group ID of this background taskpublic void setModifiedDate(java.util.Date modifiedDate)
setModifiedDate in interface BackgroundTaskModelsetModifiedDate in interface com.liferay.portal.kernel.model.AuditedModelmodifiedDate - the modified date of this background taskpublic void setMvccVersion(long mvccVersion)
setMvccVersion in interface BackgroundTaskModelsetMvccVersion in interface com.liferay.portal.kernel.model.MVCCModelmvccVersion - the mvcc version of this background taskpublic void setName(java.lang.String name)
setName in interface BackgroundTaskModelname - the name of this background taskpublic void setPrimaryKey(long primaryKey)
setPrimaryKey in interface BackgroundTaskModelprimaryKey - the primary key of this background taskpublic void setServletContextNames(java.lang.String servletContextNames)
setServletContextNames in interface BackgroundTaskModelservletContextNames - the servlet context names of this background taskpublic void setStatus(int status)
setStatus in interface BackgroundTaskModelstatus - the status of this background taskpublic void setStatusMessage(java.lang.String statusMessage)
setStatusMessage in interface BackgroundTaskModelstatusMessage - the status message of this background taskpublic void setTaskContextMap(java.util.Map<java.lang.String,java.io.Serializable> taskContextMap)
setTaskContextMap in interface BackgroundTaskModeltaskContextMap - the task context map of this background taskpublic void setTaskExecutorClassName(java.lang.String taskExecutorClassName)
setTaskExecutorClassName in interface BackgroundTaskModeltaskExecutorClassName - the task executor class name of this background taskpublic void setUserId(long userId)
setUserId in interface BackgroundTaskModelsetUserId in interface com.liferay.portal.kernel.model.AuditedModeluserId - the user ID of this background taskpublic void setUserName(java.lang.String userName)
setUserName in interface BackgroundTaskModelsetUserName in interface com.liferay.portal.kernel.model.AuditedModeluserName - the user name of this background taskpublic void setUserUuid(java.lang.String userUuid)
setUserUuid in interface BackgroundTaskModelsetUserUuid in interface com.liferay.portal.kernel.model.AuditedModeluserUuid - the user uuid of this background taskpublic java.lang.String toXmlString()
toXmlString in interface BackgroundTaskModelprotected BackgroundTaskWrapper wrap(BackgroundTask backgroundTask)
wrap in class com.liferay.portal.kernel.model.wrapper.BaseModelWrapper<BackgroundTask>