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:
  • Constructor Details

    • BackgroundTaskWrapper

      public BackgroundTaskWrapper(BackgroundTask backgroundTask)
  • Method Details

    • getModelAttributes

      public Map<String,Object> getModelAttributes()
      Specified by:
      getModelAttributes in interface com.liferay.portal.kernel.model.BaseModel<BackgroundTask>
    • setModelAttributes

      public void setModelAttributes(Map<String,Object> attributes)
      Specified by:
      setModelAttributes in interface com.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:
      addAttachment in interface BackgroundTask
      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:
      addAttachment in interface BackgroundTask
      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:
      addAttachmentsFolder in interface BackgroundTask
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • cloneWithOriginalValues

      public BackgroundTask cloneWithOriginalValues()
      Specified by:
      cloneWithOriginalValues in interface BackgroundTaskModel
      Specified by:
      cloneWithOriginalValues in interface com.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:
      getAttachmentsFileEntries in interface BackgroundTask
      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:
      getAttachmentsFileEntries in interface BackgroundTask
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getAttachmentsFileEntriesCount

      public int getAttachmentsFileEntriesCount() throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      getAttachmentsFileEntriesCount in interface BackgroundTask
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getAttachmentsFolderId

      public long getAttachmentsFolderId()
      Specified by:
      getAttachmentsFolderId in interface BackgroundTask
    • getBackgroundTaskId

      public long getBackgroundTaskId()
      Returns the background task ID of this background task.
      Specified by:
      getBackgroundTaskId in interface BackgroundTaskModel
      Returns:
      the background task ID of this background task
    • getCompanyId

      public long getCompanyId()
      Returns the company ID of this background task.
      Specified by:
      getCompanyId in interface com.liferay.portal.kernel.model.AuditedModel
      Specified by:
      getCompanyId in interface BackgroundTaskModel
      Specified by:
      getCompanyId in interface com.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:
      getCompleted in interface BackgroundTaskModel
      Returns:
      the completed of this background task
    • getCompletionDate

      public Date getCompletionDate()
      Returns the completion date of this background task.
      Specified by:
      getCompletionDate in interface BackgroundTaskModel
      Returns:
      the completion date of this background task
    • getCreateDate

      public Date getCreateDate()
      Returns the create date of this background task.
      Specified by:
      getCreateDate in interface com.liferay.portal.kernel.model.AuditedModel
      Specified by:
      getCreateDate in interface BackgroundTaskModel
      Returns:
      the create date of this background task
    • getGroupId

      public long getGroupId()
      Returns the group ID of this background task.
      Specified by:
      getGroupId in interface BackgroundTaskModel
      Specified by:
      getGroupId in interface com.liferay.portal.kernel.model.GroupedModel
      Returns:
      the group ID of this background task
    • getModifiedDate

      public Date getModifiedDate()
      Returns the modified date of this background task.
      Specified by:
      getModifiedDate in interface com.liferay.portal.kernel.model.AuditedModel
      Specified by:
      getModifiedDate in interface BackgroundTaskModel
      Returns:
      the modified date of this background task
    • getMvccVersion

      public long getMvccVersion()
      Returns the mvcc version of this background task.
      Specified by:
      getMvccVersion in interface BackgroundTaskModel
      Specified by:
      getMvccVersion in interface com.liferay.portal.kernel.model.MVCCModel
      Returns:
      the mvcc version of this background task
    • getName

      public String getName()
      Returns the name of this background task.
      Specified by:
      getName in interface BackgroundTaskModel
      Returns:
      the name of this background task
    • getPrimaryKey

      public long getPrimaryKey()
      Returns the primary key of this background task.
      Specified by:
      getPrimaryKey in interface BackgroundTaskModel
      Returns:
      the primary key of this background task
    • getServletContextNames

      public String getServletContextNames()
      Returns the servlet context names of this background task.
      Specified by:
      getServletContextNames in interface BackgroundTaskModel
      Returns:
      the servlet context names of this background task
    • getStatus

      public int getStatus()
      Returns the status of this background task.
      Specified by:
      getStatus in interface BackgroundTaskModel
      Returns:
      the status of this background task
    • getStatusLabel

      public String getStatusLabel()
      Specified by:
      getStatusLabel in interface BackgroundTask
    • getStatusMessage

      public String getStatusMessage()
      Returns the status message of this background task.
      Specified by:
      getStatusMessage in interface BackgroundTaskModel
      Returns:
      the status message of this background task
    • getTaskContextMap

      public Map<String,Serializable> getTaskContextMap()
      Returns the task context map of this background task.
      Specified by:
      getTaskContextMap in interface BackgroundTaskModel
      Returns:
      the task context map of this background task
    • getTaskExecutorClassName

      public String getTaskExecutorClassName()
      Returns the task executor class name of this background task.
      Specified by:
      getTaskExecutorClassName in interface BackgroundTaskModel
      Returns:
      the task executor class name of this background task
    • getUserId

      public long getUserId()
      Returns the user ID of this background task.
      Specified by:
      getUserId in interface com.liferay.portal.kernel.model.AuditedModel
      Specified by:
      getUserId in interface BackgroundTaskModel
      Returns:
      the user ID of this background task
    • getUserName

      public String getUserName()
      Returns the user name of this background task.
      Specified by:
      getUserName in interface com.liferay.portal.kernel.model.AuditedModel
      Specified by:
      getUserName in interface BackgroundTaskModel
      Returns:
      the user name of this background task
    • getUserUuid

      public String getUserUuid()
      Returns the user uuid of this background task.
      Specified by:
      getUserUuid in interface com.liferay.portal.kernel.model.AuditedModel
      Specified by:
      getUserUuid in interface BackgroundTaskModel
      Returns:
      the user uuid of this background task
    • isCompleted

      public boolean isCompleted()
      Returns true if this background task is completed.
      Specified by:
      isCompleted in interface BackgroundTaskModel
      Returns:
      true if this background task is completed; false otherwise
    • isInProgress

      public boolean isInProgress()
      Specified by:
      isInProgress in interface BackgroundTask
    • persist

      public void persist()
      Specified by:
      persist in interface com.liferay.portal.kernel.model.PersistedModel
    • setBackgroundTaskId

      public void setBackgroundTaskId(long backgroundTaskId)
      Sets the background task ID of this background task.
      Specified by:
      setBackgroundTaskId in interface BackgroundTaskModel
      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:
      setCompanyId in interface com.liferay.portal.kernel.model.AuditedModel
      Specified by:
      setCompanyId in interface BackgroundTaskModel
      Specified by:
      setCompanyId in interface com.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:
      setCompleted in interface BackgroundTaskModel
      Parameters:
      completed - the completed of this background task
    • setCompletionDate

      public void setCompletionDate(Date completionDate)
      Sets the completion date of this background task.
      Specified by:
      setCompletionDate in interface BackgroundTaskModel
      Parameters:
      completionDate - the completion date of this background task
    • setCreateDate

      public void setCreateDate(Date createDate)
      Sets the create date of this background task.
      Specified by:
      setCreateDate in interface com.liferay.portal.kernel.model.AuditedModel
      Specified by:
      setCreateDate in interface BackgroundTaskModel
      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:
      setGroupId in interface BackgroundTaskModel
      Specified by:
      setGroupId in interface com.liferay.portal.kernel.model.GroupedModel
      Parameters:
      groupId - the group ID of this background task
    • setModifiedDate

      public void setModifiedDate(Date modifiedDate)
      Sets the modified date of this background task.
      Specified by:
      setModifiedDate in interface com.liferay.portal.kernel.model.AuditedModel
      Specified by:
      setModifiedDate in interface BackgroundTaskModel
      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:
      setMvccVersion in interface BackgroundTaskModel
      Specified by:
      setMvccVersion in interface com.liferay.portal.kernel.model.MVCCModel
      Parameters:
      mvccVersion - the mvcc version of this background task
    • setName

      public void setName(String name)
      Sets the name of this background task.
      Specified by:
      setName in interface BackgroundTaskModel
      Parameters:
      name - the name of this background task
    • setPrimaryKey

      public void setPrimaryKey(long primaryKey)
      Sets the primary key of this background task.
      Specified by:
      setPrimaryKey in interface BackgroundTaskModel
      Parameters:
      primaryKey - the primary key of this background task
    • setServletContextNames

      public void setServletContextNames(String servletContextNames)
      Sets the servlet context names of this background task.
      Specified by:
      setServletContextNames in interface BackgroundTaskModel
      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:
      setStatus in interface BackgroundTaskModel
      Parameters:
      status - the status of this background task
    • setStatusMessage

      public void setStatusMessage(String statusMessage)
      Sets the status message of this background task.
      Specified by:
      setStatusMessage in interface BackgroundTaskModel
      Parameters:
      statusMessage - the status message of this background task
    • setTaskContextMap

      public void setTaskContextMap(Map<String,Serializable> taskContextMap)
      Sets the task context map of this background task.
      Specified by:
      setTaskContextMap in interface BackgroundTaskModel
      Parameters:
      taskContextMap - the task context map of this background task
    • setTaskExecutorClassName

      public void setTaskExecutorClassName(String taskExecutorClassName)
      Sets the task executor class name of this background task.
      Specified by:
      setTaskExecutorClassName in interface BackgroundTaskModel
      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:
      setUserId in interface com.liferay.portal.kernel.model.AuditedModel
      Specified by:
      setUserId in interface BackgroundTaskModel
      Parameters:
      userId - the user ID of this background task
    • setUserName

      public void setUserName(String userName)
      Sets the user name of this background task.
      Specified by:
      setUserName in interface com.liferay.portal.kernel.model.AuditedModel
      Specified by:
      setUserName in interface BackgroundTaskModel
      Parameters:
      userName - the user name of this background task
    • setUserUuid

      public void setUserUuid(String userUuid)
      Sets the user uuid of this background task.
      Specified by:
      setUserUuid in interface com.liferay.portal.kernel.model.AuditedModel
      Specified by:
      setUserUuid in interface BackgroundTaskModel
      Parameters:
      userUuid - the user uuid of this background task
    • toXmlString

      public String toXmlString()
      Specified by:
      toXmlString in interface BackgroundTaskModel
    • wrap

      protected BackgroundTaskWrapper wrap(BackgroundTask backgroundTask)
      Specified by:
      wrap in class com.liferay.portal.kernel.model.wrapper.BaseModelWrapper<BackgroundTask>