@ProviderType public class BackgroundTaskWrapper extends java.lang.Object 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() |
java.lang.Object |
clone() |
int |
compareTo(BackgroundTask backgroundTask) |
boolean |
equals(java.lang.Object obj) |
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.
|
com.liferay.expando.kernel.model.ExpandoBridge |
getExpandoBridge() |
long |
getGroupId()
Returns the group ID of this background task.
|
java.util.Map<java.lang.String,java.lang.Object> |
getModelAttributes() |
java.lang.Class<?> |
getModelClass() |
java.lang.String |
getModelClassName() |
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.io.Serializable |
getPrimaryKeyObj() |
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.
|
BackgroundTask |
getWrappedModel() |
int |
hashCode() |
boolean |
isCachedModel() |
boolean |
isCompleted()
Returns
true if this background task is completed. |
boolean |
isEntityCacheEnabled() |
boolean |
isEscapedModel() |
boolean |
isFinderCacheEnabled() |
boolean |
isInProgress() |
boolean |
isNew() |
void |
persist() |
void |
resetOriginalValues() |
void |
setBackgroundTaskId(long backgroundTaskId)
Sets the background task ID of this background task.
|
void |
setCachedModel(boolean cachedModel) |
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 |
setExpandoBridgeAttributes(com.liferay.portal.kernel.model.BaseModel<?> baseModel) |
void |
setExpandoBridgeAttributes(com.liferay.expando.kernel.model.ExpandoBridge expandoBridge) |
void |
setExpandoBridgeAttributes(com.liferay.portal.kernel.service.ServiceContext serviceContext) |
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 |
setNew(boolean n) |
void |
setPrimaryKey(long primaryKey)
Sets the primary key of this background task.
|
void |
setPrimaryKeyObj(java.io.Serializable primaryKeyObj) |
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.
|
com.liferay.portal.kernel.model.CacheModel<BackgroundTask> |
toCacheModel() |
BackgroundTask |
toEscapedModel() |
java.lang.String |
toString() |
BackgroundTask |
toUnescapedModel() |
java.lang.String |
toXmlString() |
public BackgroundTaskWrapper(BackgroundTask backgroundTask)
public java.lang.Class<?> getModelClass()
getModelClass
in interface com.liferay.portal.kernel.model.ClassedModel
public java.lang.String getModelClassName()
getModelClassName
in interface com.liferay.portal.kernel.model.ClassedModel
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 BackgroundTask toEscapedModel()
toEscapedModel
in interface BackgroundTaskModel
toEscapedModel
in interface com.liferay.portal.kernel.model.BaseModel<BackgroundTask>
public BackgroundTask toUnescapedModel()
toUnescapedModel
in interface BackgroundTaskModel
toUnescapedModel
in interface com.liferay.portal.kernel.model.BaseModel<BackgroundTask>
public boolean getCompleted()
getCompleted
in interface BackgroundTaskModel
public boolean isCachedModel()
isCachedModel
in interface BackgroundTaskModel
isCachedModel
in interface com.liferay.portal.kernel.model.BaseModel<BackgroundTask>
public boolean isCompleted()
true
if this background task is completed.isCompleted
in interface BackgroundTaskModel
true
if this background task is completed; false
otherwisepublic boolean isEscapedModel()
isEscapedModel
in interface BackgroundTaskModel
isEscapedModel
in interface com.liferay.portal.kernel.model.BaseModel<BackgroundTask>
public boolean isInProgress()
isInProgress
in interface BackgroundTask
public boolean isNew()
isNew
in interface BackgroundTaskModel
isNew
in interface com.liferay.portal.kernel.model.BaseModel<BackgroundTask>
public com.liferay.expando.kernel.model.ExpandoBridge getExpandoBridge()
getExpandoBridge
in interface BackgroundTaskModel
getExpandoBridge
in interface com.liferay.portal.kernel.model.BaseModel<BackgroundTask>
getExpandoBridge
in interface com.liferay.portal.kernel.model.ClassedModel
public com.liferay.portal.kernel.model.CacheModel<BackgroundTask> toCacheModel()
toCacheModel
in interface BackgroundTaskModel
toCacheModel
in interface com.liferay.portal.kernel.model.BaseModel<BackgroundTask>
public com.liferay.portal.kernel.repository.model.Folder addAttachmentsFolder() throws com.liferay.portal.kernel.exception.PortalException
addAttachmentsFolder
in interface BackgroundTask
com.liferay.portal.kernel.exception.PortalException
public int compareTo(BackgroundTask backgroundTask)
compareTo
in interface BackgroundTaskModel
compareTo
in interface java.lang.Comparable<BackgroundTask>
public int getAttachmentsFileEntriesCount() throws com.liferay.portal.kernel.exception.PortalException
getAttachmentsFileEntriesCount
in interface BackgroundTask
com.liferay.portal.kernel.exception.PortalException
public int getStatus()
getStatus
in interface BackgroundTaskModel
public int hashCode()
hashCode
in interface BackgroundTaskModel
hashCode
in class java.lang.Object
public java.io.Serializable getPrimaryKeyObj()
getPrimaryKeyObj
in interface BackgroundTaskModel
getPrimaryKeyObj
in interface com.liferay.portal.kernel.model.BaseModel<BackgroundTask>
getPrimaryKeyObj
in interface com.liferay.portal.kernel.model.ClassedModel
public java.lang.Object clone()
clone
in interface BackgroundTaskModel
clone
in interface com.liferay.portal.kernel.model.BaseModel<BackgroundTask>
clone
in class java.lang.Object
public java.lang.String getName()
getName
in interface BackgroundTaskModel
public java.lang.String getServletContextNames()
getServletContextNames
in interface BackgroundTaskModel
public java.lang.String getStatusLabel()
getStatusLabel
in interface BackgroundTask
public java.lang.String getStatusMessage()
getStatusMessage
in interface BackgroundTaskModel
public java.lang.String getTaskExecutorClassName()
getTaskExecutorClassName
in interface BackgroundTaskModel
public java.lang.String getUserName()
getUserName
in interface BackgroundTaskModel
getUserName
in interface com.liferay.portal.kernel.model.AuditedModel
public java.lang.String getUserUuid()
getUserUuid
in interface BackgroundTaskModel
getUserUuid
in interface com.liferay.portal.kernel.model.AuditedModel
public java.lang.String toString()
toString
in interface BackgroundTaskModel
toString
in class java.lang.Object
public java.lang.String toXmlString()
toXmlString
in interface BackgroundTaskModel
toXmlString
in interface com.liferay.portal.kernel.model.BaseModel<BackgroundTask>
public java.util.Date getCompletionDate()
getCompletionDate
in interface BackgroundTaskModel
public java.util.Date getCreateDate()
getCreateDate
in interface BackgroundTaskModel
getCreateDate
in interface com.liferay.portal.kernel.model.AuditedModel
public java.util.Date getModifiedDate()
getModifiedDate
in interface BackgroundTaskModel
getModifiedDate
in interface com.liferay.portal.kernel.model.AuditedModel
public java.util.List<com.liferay.portal.kernel.repository.model.FileEntry> getAttachmentsFileEntries() throws com.liferay.portal.kernel.exception.PortalException
getAttachmentsFileEntries
in interface BackgroundTask
com.liferay.portal.kernel.exception.PortalException
public 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 BackgroundTask
com.liferay.portal.kernel.exception.PortalException
public java.util.Map<java.lang.String,java.io.Serializable> getTaskContextMap()
getTaskContextMap
in interface BackgroundTaskModel
public long getAttachmentsFolderId()
getAttachmentsFolderId
in interface BackgroundTask
public long getBackgroundTaskId()
getBackgroundTaskId
in interface BackgroundTaskModel
public long getCompanyId()
getCompanyId
in interface BackgroundTaskModel
getCompanyId
in interface com.liferay.portal.kernel.model.AuditedModel
getCompanyId
in interface com.liferay.portal.kernel.model.ShardedModel
public long getGroupId()
getGroupId
in interface BackgroundTaskModel
getGroupId
in interface com.liferay.portal.kernel.model.GroupedModel
public long getMvccVersion()
getMvccVersion
in interface BackgroundTaskModel
getMvccVersion
in interface com.liferay.portal.kernel.model.MVCCModel
public long getPrimaryKey()
getPrimaryKey
in interface BackgroundTaskModel
public long getUserId()
getUserId
in interface BackgroundTaskModel
getUserId
in interface com.liferay.portal.kernel.model.AuditedModel
public void addAttachment(long userId, java.lang.String fileName, java.io.File file) throws com.liferay.portal.kernel.exception.PortalException
addAttachment
in interface 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 BackgroundTask
com.liferay.portal.kernel.exception.PortalException
public void persist()
persist
in interface com.liferay.portal.kernel.model.PersistedModel
public void setBackgroundTaskId(long backgroundTaskId)
setBackgroundTaskId
in interface BackgroundTaskModel
backgroundTaskId
- the background task ID of this background taskpublic void setCachedModel(boolean cachedModel)
setCachedModel
in interface BackgroundTaskModel
setCachedModel
in interface com.liferay.portal.kernel.model.BaseModel<BackgroundTask>
public void setCompanyId(long companyId)
setCompanyId
in interface BackgroundTaskModel
setCompanyId
in interface com.liferay.portal.kernel.model.AuditedModel
setCompanyId
in interface com.liferay.portal.kernel.model.ShardedModel
companyId
- the company ID of this background taskpublic void setCompleted(boolean completed)
setCompleted
in interface BackgroundTaskModel
completed
- the completed of this background taskpublic void setCompletionDate(java.util.Date completionDate)
setCompletionDate
in interface BackgroundTaskModel
completionDate
- the completion date of this background taskpublic void setCreateDate(java.util.Date createDate)
setCreateDate
in interface BackgroundTaskModel
setCreateDate
in interface com.liferay.portal.kernel.model.AuditedModel
createDate
- the create date of this background taskpublic void setExpandoBridgeAttributes(com.liferay.expando.kernel.model.ExpandoBridge expandoBridge)
setExpandoBridgeAttributes
in interface BackgroundTaskModel
setExpandoBridgeAttributes
in interface com.liferay.portal.kernel.model.BaseModel<BackgroundTask>
public void setExpandoBridgeAttributes(com.liferay.portal.kernel.model.BaseModel<?> baseModel)
setExpandoBridgeAttributes
in interface BackgroundTaskModel
setExpandoBridgeAttributes
in interface com.liferay.portal.kernel.model.BaseModel<BackgroundTask>
public void setExpandoBridgeAttributes(com.liferay.portal.kernel.service.ServiceContext serviceContext)
setExpandoBridgeAttributes
in interface BackgroundTaskModel
setExpandoBridgeAttributes
in interface com.liferay.portal.kernel.model.BaseModel<BackgroundTask>
public void setGroupId(long groupId)
setGroupId
in interface BackgroundTaskModel
setGroupId
in interface com.liferay.portal.kernel.model.GroupedModel
groupId
- the group ID of this background taskpublic void setModifiedDate(java.util.Date modifiedDate)
setModifiedDate
in interface BackgroundTaskModel
setModifiedDate
in interface com.liferay.portal.kernel.model.AuditedModel
modifiedDate
- the modified date of this background taskpublic void setMvccVersion(long mvccVersion)
setMvccVersion
in interface BackgroundTaskModel
setMvccVersion
in interface com.liferay.portal.kernel.model.MVCCModel
mvccVersion
- the mvcc version of this background taskpublic void setName(java.lang.String name)
setName
in interface BackgroundTaskModel
name
- the name of this background taskpublic void setNew(boolean n)
setNew
in interface BackgroundTaskModel
setNew
in interface com.liferay.portal.kernel.model.BaseModel<BackgroundTask>
public void setPrimaryKey(long primaryKey)
setPrimaryKey
in interface BackgroundTaskModel
primaryKey
- the primary key of this background taskpublic void setPrimaryKeyObj(java.io.Serializable primaryKeyObj)
setPrimaryKeyObj
in interface BackgroundTaskModel
setPrimaryKeyObj
in interface com.liferay.portal.kernel.model.BaseModel<BackgroundTask>
setPrimaryKeyObj
in interface com.liferay.portal.kernel.model.ClassedModel
public void setServletContextNames(java.lang.String servletContextNames)
setServletContextNames
in interface BackgroundTaskModel
servletContextNames
- the servlet context names of this background taskpublic void setStatus(int status)
setStatus
in interface BackgroundTaskModel
status
- the status of this background taskpublic void setStatusMessage(java.lang.String statusMessage)
setStatusMessage
in interface BackgroundTaskModel
statusMessage
- the status message of this background taskpublic void setTaskContextMap(java.util.Map<java.lang.String,java.io.Serializable> taskContextMap)
setTaskContextMap
in interface BackgroundTaskModel
taskContextMap
- the task context map of this background taskpublic void setTaskExecutorClassName(java.lang.String taskExecutorClassName)
setTaskExecutorClassName
in interface BackgroundTaskModel
taskExecutorClassName
- the task executor class name of this background taskpublic void setUserId(long userId)
setUserId
in interface BackgroundTaskModel
setUserId
in interface com.liferay.portal.kernel.model.AuditedModel
userId
- the user ID of this background taskpublic void setUserName(java.lang.String userName)
setUserName
in interface BackgroundTaskModel
setUserName
in interface com.liferay.portal.kernel.model.AuditedModel
userName
- the user name of this background taskpublic void setUserUuid(java.lang.String userUuid)
setUserUuid
in interface BackgroundTaskModel
setUserUuid
in interface com.liferay.portal.kernel.model.AuditedModel
userUuid
- the user uuid of this background taskpublic boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public BackgroundTask getWrappedModel()
getWrappedModel
in interface com.liferay.portal.kernel.model.ModelWrapper<BackgroundTask>
public boolean isEntityCacheEnabled()
isEntityCacheEnabled
in interface com.liferay.portal.kernel.model.BaseModel<BackgroundTask>
public boolean isFinderCacheEnabled()
isFinderCacheEnabled
in interface com.liferay.portal.kernel.model.BaseModel<BackgroundTask>
public void resetOriginalValues()
resetOriginalValues
in interface com.liferay.portal.kernel.model.BaseModel<BackgroundTask>