Class BackgroundTaskWrapper
java.lang.Object
com.liferay.portal.kernel.model.wrapper.BaseModelWrapper<BackgroundTask>
com.liferay.portal.background.task.model.BackgroundTaskWrapper
- All Implemented Interfaces:
BackgroundTask,BackgroundTaskModel,com.liferay.portal.kernel.model.AuditedModel,com.liferay.portal.kernel.model.BaseModel<BackgroundTask>,com.liferay.portal.kernel.model.ClassedModel,com.liferay.portal.kernel.model.GroupedModel,com.liferay.portal.kernel.model.ModelWrapper<BackgroundTask>,com.liferay.portal.kernel.model.MVCCModel,com.liferay.portal.kernel.model.PersistedModel,com.liferay.portal.kernel.model.ShardedModel,Serializable,Cloneable,Comparable<BackgroundTask>
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.
- See Also:
- Generated:
-
Field Summary
Fields inherited from class com.liferay.portal.kernel.model.wrapper.BaseModelWrapper
modelFields inherited from interface com.liferay.portal.background.task.model.BackgroundTask
BACKGROUND_TASK_ID_ACCESSOR -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddAttachment(long userId, String fileName, File file) voidaddAttachment(long userId, String fileName, InputStream inputStream) com.liferay.portal.kernel.repository.model.FolderList<com.liferay.portal.kernel.repository.model.FileEntry> List<com.liferay.portal.kernel.repository.model.FileEntry> getAttachmentsFileEntries(int start, int end) intlonglongReturns the background task ID of this background task.longReturns the company ID of this background task.booleanReturns the completed of this background task.Returns the completion date of this background task.Returns the create date of this background task.longReturns the group ID of this background task.Returns the modified date of this background task.longReturns the mvcc version of this background task.getName()Returns the name of this background task.longReturns the primary key of this background task.Returns the servlet context names of this background task.intReturns the status of this background task.Returns the status message of this background task.Returns the task context map of this background task.Returns the task executor class name of this background task.longReturns the user ID of this background task.Returns the user name of this background task.Returns the user uuid of this background task.booleanReturnstrueif this background task is completed.booleanvoidpersist()voidsetBackgroundTaskId(long backgroundTaskId) Sets the background task ID of this background task.voidsetCompanyId(long companyId) Sets the company ID of this background task.voidsetCompleted(boolean completed) Sets whether this background task is completed.voidsetCompletionDate(Date completionDate) Sets the completion date of this background task.voidsetCreateDate(Date createDate) Sets the create date of this background task.voidsetGroupId(long groupId) Sets the group ID of this background task.voidsetModelAttributes(Map<String, Object> attributes) voidsetModifiedDate(Date modifiedDate) Sets the modified date of this background task.voidsetMvccVersion(long mvccVersion) Sets the mvcc version of this background task.voidSets the name of this background task.voidsetPrimaryKey(long primaryKey) Sets the primary key of this background task.voidsetServletContextNames(String servletContextNames) Sets the servlet context names of this background task.voidsetStatus(int status) Sets the status of this background task.voidsetStatusMessage(String statusMessage) Sets the status message of this background task.voidsetTaskContextMap(Map<String, Serializable> taskContextMap) Sets the task context map of this background task.voidsetTaskExecutorClassName(String taskExecutorClassName) Sets the task executor class name of this background task.voidsetUserId(long userId) Sets the user ID of this background task.voidsetUserName(String userName) Sets the user name of this background task.voidsetUserUuid(String userUuid) Sets the user uuid of this background task.protected BackgroundTaskWrapperwrap(BackgroundTask backgroundTask) Methods inherited from class com.liferay.portal.kernel.model.wrapper.BaseModelWrapper
clone, compareTo, equals, getExpandoBridge, getModelClass, getModelClassName, getPrimaryKeyObj, getWrappedModel, hashCode, isCachedModel, isEntityCacheEnabled, isEscapedModel, isFinderCacheEnabled, isNew, resetOriginalValues, setCachedModel, setExpandoBridgeAttributes, setExpandoBridgeAttributes, setExpandoBridgeAttributes, setNew, setPrimaryKeyObj, toCacheModel, toEscapedModel, toString, toUnescapedModelMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.liferay.portal.kernel.model.BaseModel
clone, getAttributeGetterFunctions, getAttributeSetterBiConsumers, getExpandoBridge, getPrimaryKeyObj, isCachedModel, isEntityCacheEnabled, isEscapedModel, isFinderCacheEnabled, isNew, resetOriginalValues, setCachedModel, setExpandoBridgeAttributes, setExpandoBridgeAttributes, setExpandoBridgeAttributes, setNew, setPrimaryKeyObj, toCacheModel, toEscapedModel, toUnescapedModelMethods inherited from interface com.liferay.portal.kernel.model.ClassedModel
getModelClass, getModelClassNameMethods inherited from interface java.lang.Comparable
compareToMethods inherited from interface com.liferay.portal.kernel.model.ModelWrapper
getWrappedModel
-
Constructor Details
-
BackgroundTaskWrapper
-
-
Method Details
-
getModelAttributes
- Specified by:
getModelAttributesin interfacecom.liferay.portal.kernel.model.BaseModel<BackgroundTask>
-
setModelAttributes
- Specified by:
setModelAttributesin interfacecom.liferay.portal.kernel.model.BaseModel<BackgroundTask>
-
addAttachment
public void addAttachment(long userId, String fileName, File file) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
addAttachmentin interfaceBackgroundTask- Throws:
com.liferay.portal.kernel.exception.PortalException
-
addAttachment
public void addAttachment(long userId, String fileName, InputStream inputStream) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
addAttachmentin interfaceBackgroundTask- Throws:
com.liferay.portal.kernel.exception.PortalException
-
addAttachmentsFolder
public com.liferay.portal.kernel.repository.model.Folder addAttachmentsFolder() throws com.liferay.portal.kernel.exception.PortalException- Specified by:
addAttachmentsFolderin interfaceBackgroundTask- Throws:
com.liferay.portal.kernel.exception.PortalException
-
cloneWithOriginalValues
- Specified by:
cloneWithOriginalValuesin interfaceBackgroundTaskModel- Specified by:
cloneWithOriginalValuesin interfacecom.liferay.portal.kernel.model.BaseModel<BackgroundTask>
-
getAttachmentsFileEntries
public List<com.liferay.portal.kernel.repository.model.FileEntry> getAttachmentsFileEntries() throws com.liferay.portal.kernel.exception.PortalException- Specified by:
getAttachmentsFileEntriesin interfaceBackgroundTask- Throws:
com.liferay.portal.kernel.exception.PortalException
-
getAttachmentsFileEntries
public List<com.liferay.portal.kernel.repository.model.FileEntry> getAttachmentsFileEntries(int start, int end) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
getAttachmentsFileEntriesin interfaceBackgroundTask- Throws:
com.liferay.portal.kernel.exception.PortalException
-
getAttachmentsFileEntriesCount
public int getAttachmentsFileEntriesCount() throws com.liferay.portal.kernel.exception.PortalException- Specified by:
getAttachmentsFileEntriesCountin interfaceBackgroundTask- Throws:
com.liferay.portal.kernel.exception.PortalException
-
getAttachmentsFolderId
public long getAttachmentsFolderId()- Specified by:
getAttachmentsFolderIdin interfaceBackgroundTask
-
getBackgroundTaskId
public long getBackgroundTaskId()Returns the background task ID of this background task.- Specified by:
getBackgroundTaskIdin interfaceBackgroundTaskModel- Returns:
- the background task ID of this background task
-
getCompanyId
public long getCompanyId()Returns the company ID of this background task.- Specified by:
getCompanyIdin interfacecom.liferay.portal.kernel.model.AuditedModel- Specified by:
getCompanyIdin interfaceBackgroundTaskModel- Specified by:
getCompanyIdin interfacecom.liferay.portal.kernel.model.ShardedModel- Returns:
- the company ID of this background task
-
getCompleted
public boolean getCompleted()Returns the completed of this background task.- Specified by:
getCompletedin interfaceBackgroundTaskModel- Returns:
- the completed of this background task
-
getCompletionDate
Returns the completion date of this background task.- Specified by:
getCompletionDatein interfaceBackgroundTaskModel- Returns:
- the completion date of this background task
-
getCreateDate
Returns the create date of this background task.- Specified by:
getCreateDatein interfacecom.liferay.portal.kernel.model.AuditedModel- Specified by:
getCreateDatein interfaceBackgroundTaskModel- Returns:
- the create date of this background task
-
getGroupId
public long getGroupId()Returns the group ID of this background task.- Specified by:
getGroupIdin interfaceBackgroundTaskModel- Specified by:
getGroupIdin interfacecom.liferay.portal.kernel.model.GroupedModel- Returns:
- the group ID of this background task
-
getModifiedDate
Returns the modified date of this background task.- Specified by:
getModifiedDatein interfacecom.liferay.portal.kernel.model.AuditedModel- Specified by:
getModifiedDatein interfaceBackgroundTaskModel- Returns:
- the modified date of this background task
-
getMvccVersion
public long getMvccVersion()Returns the mvcc version of this background task.- Specified by:
getMvccVersionin interfaceBackgroundTaskModel- Specified by:
getMvccVersionin interfacecom.liferay.portal.kernel.model.MVCCModel- Returns:
- the mvcc version of this background task
-
getName
Returns the name of this background task.- Specified by:
getNamein interfaceBackgroundTaskModel- Returns:
- the name of this background task
-
getPrimaryKey
public long getPrimaryKey()Returns the primary key of this background task.- Specified by:
getPrimaryKeyin interfaceBackgroundTaskModel- Returns:
- the primary key of this background task
-
getServletContextNames
Returns the servlet context names of this background task.- Specified by:
getServletContextNamesin interfaceBackgroundTaskModel- Returns:
- the servlet context names of this background task
-
getStatus
public int getStatus()Returns the status of this background task.- Specified by:
getStatusin interfaceBackgroundTaskModel- Returns:
- the status of this background task
-
getStatusLabel
- Specified by:
getStatusLabelin interfaceBackgroundTask
-
getStatusMessage
Returns the status message of this background task.- Specified by:
getStatusMessagein interfaceBackgroundTaskModel- Returns:
- the status message of this background task
-
getTaskContextMap
Returns the task context map of this background task.- Specified by:
getTaskContextMapin interfaceBackgroundTaskModel- Returns:
- the task context map of this background task
-
getTaskExecutorClassName
Returns the task executor class name of this background task.- Specified by:
getTaskExecutorClassNamein interfaceBackgroundTaskModel- Returns:
- the task executor class name of this background task
-
getUserId
public long getUserId()Returns the user ID of this background task.- Specified by:
getUserIdin interfacecom.liferay.portal.kernel.model.AuditedModel- Specified by:
getUserIdin interfaceBackgroundTaskModel- Returns:
- the user ID of this background task
-
getUserName
Returns the user name of this background task.- Specified by:
getUserNamein interfacecom.liferay.portal.kernel.model.AuditedModel- Specified by:
getUserNamein interfaceBackgroundTaskModel- Returns:
- the user name of this background task
-
getUserUuid
Returns the user uuid of this background task.- Specified by:
getUserUuidin interfacecom.liferay.portal.kernel.model.AuditedModel- Specified by:
getUserUuidin interfaceBackgroundTaskModel- Returns:
- the user uuid of this background task
-
isCompleted
public boolean isCompleted()Returnstrueif this background task is completed.- Specified by:
isCompletedin interfaceBackgroundTaskModel- Returns:
trueif this background task is completed;falseotherwise
-
isInProgress
public boolean isInProgress()- Specified by:
isInProgressin interfaceBackgroundTask
-
persist
public void persist()- Specified by:
persistin interfacecom.liferay.portal.kernel.model.PersistedModel
-
setBackgroundTaskId
public void setBackgroundTaskId(long backgroundTaskId) Sets the background task ID of this background task.- Specified by:
setBackgroundTaskIdin interfaceBackgroundTaskModel- Parameters:
backgroundTaskId- the background task ID of this background task
-
setCompanyId
public void setCompanyId(long companyId) Sets the company ID of this background task.- Specified by:
setCompanyIdin interfacecom.liferay.portal.kernel.model.AuditedModel- Specified by:
setCompanyIdin interfaceBackgroundTaskModel- Specified by:
setCompanyIdin interfacecom.liferay.portal.kernel.model.ShardedModel- Parameters:
companyId- the company ID of this background task
-
setCompleted
public void setCompleted(boolean completed) Sets whether this background task is completed.- Specified by:
setCompletedin interfaceBackgroundTaskModel- Parameters:
completed- the completed of this background task
-
setCompletionDate
Sets the completion date of this background task.- Specified by:
setCompletionDatein interfaceBackgroundTaskModel- Parameters:
completionDate- the completion date of this background task
-
setCreateDate
Sets the create date of this background task.- Specified by:
setCreateDatein interfacecom.liferay.portal.kernel.model.AuditedModel- Specified by:
setCreateDatein interfaceBackgroundTaskModel- Parameters:
createDate- the create date of this background task
-
setGroupId
public void setGroupId(long groupId) Sets the group ID of this background task.- Specified by:
setGroupIdin interfaceBackgroundTaskModel- Specified by:
setGroupIdin interfacecom.liferay.portal.kernel.model.GroupedModel- Parameters:
groupId- the group ID of this background task
-
setModifiedDate
Sets the modified date of this background task.- Specified by:
setModifiedDatein interfacecom.liferay.portal.kernel.model.AuditedModel- Specified by:
setModifiedDatein interfaceBackgroundTaskModel- Parameters:
modifiedDate- the modified date of this background task
-
setMvccVersion
public void setMvccVersion(long mvccVersion) Sets the mvcc version of this background task.- Specified by:
setMvccVersionin interfaceBackgroundTaskModel- Specified by:
setMvccVersionin interfacecom.liferay.portal.kernel.model.MVCCModel- Parameters:
mvccVersion- the mvcc version of this background task
-
setName
Sets the name of this background task.- Specified by:
setNamein interfaceBackgroundTaskModel- Parameters:
name- the name of this background task
-
setPrimaryKey
public void setPrimaryKey(long primaryKey) Sets the primary key of this background task.- Specified by:
setPrimaryKeyin interfaceBackgroundTaskModel- Parameters:
primaryKey- the primary key of this background task
-
setServletContextNames
Sets the servlet context names of this background task.- Specified by:
setServletContextNamesin interfaceBackgroundTaskModel- Parameters:
servletContextNames- the servlet context names of this background task
-
setStatus
public void setStatus(int status) Sets the status of this background task.- Specified by:
setStatusin interfaceBackgroundTaskModel- Parameters:
status- the status of this background task
-
setStatusMessage
Sets the status message of this background task.- Specified by:
setStatusMessagein interfaceBackgroundTaskModel- Parameters:
statusMessage- the status message of this background task
-
setTaskContextMap
Sets the task context map of this background task.- Specified by:
setTaskContextMapin interfaceBackgroundTaskModel- Parameters:
taskContextMap- the task context map of this background task
-
setTaskExecutorClassName
Sets the task executor class name of this background task.- Specified by:
setTaskExecutorClassNamein interfaceBackgroundTaskModel- Parameters:
taskExecutorClassName- the task executor class name of this background task
-
setUserId
public void setUserId(long userId) Sets the user ID of this background task.- Specified by:
setUserIdin interfacecom.liferay.portal.kernel.model.AuditedModel- Specified by:
setUserIdin interfaceBackgroundTaskModel- Parameters:
userId- the user ID of this background task
-
setUserName
Sets the user name of this background task.- Specified by:
setUserNamein interfacecom.liferay.portal.kernel.model.AuditedModel- Specified by:
setUserNamein interfaceBackgroundTaskModel- Parameters:
userName- the user name of this background task
-
setUserUuid
Sets the user uuid of this background task.- Specified by:
setUserUuidin interfacecom.liferay.portal.kernel.model.AuditedModel- Specified by:
setUserUuidin interfaceBackgroundTaskModel- Parameters:
userUuid- the user uuid of this background task
-
toXmlString
- Specified by:
toXmlStringin interfaceBackgroundTaskModel
-
wrap
- Specified by:
wrapin classcom.liferay.portal.kernel.model.wrapper.BaseModelWrapper<BackgroundTask>
-