|
Liferay 6.2-ce-ga5 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.liferay.portal.model.BackgroundTaskWrapper
@ProviderType public class BackgroundTaskWrapper
This class is a wrapper for BackgroundTask
.
BackgroundTask
,
Serialized FormConstructor Summary | |
---|---|
BackgroundTaskWrapper(BackgroundTask backgroundTask)
|
Method Summary | |
---|---|
Folder |
addAttachmentsFolder()
|
Object |
clone()
Creates a shallow clone of this model instance. |
int |
compareTo(BackgroundTask backgroundTask)
|
boolean |
equals(Object obj)
|
List<FileEntry> |
getAttachmentsFileEntries()
|
List<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. |
Date |
getCompletionDate()
Returns the completion date of this background task. |
Date |
getCreateDate()
Returns the create date of this background task. |
ExpandoBridge |
getExpandoBridge()
Returns the expando bridge for this model instance. |
long |
getGroupId()
Returns the group ID of this background task. |
Map<String,Object> |
getModelAttributes()
|
Class<?> |
getModelClass()
|
String |
getModelClassName()
|
Date |
getModifiedDate()
Returns the modified date of this background task. |
String |
getName()
Returns the name of this background task. |
long |
getPrimaryKey()
Returns the primary key of this background task. |
Serializable |
getPrimaryKeyObj()
Returns the primary key of this model instance. |
String |
getServletContextNames()
Returns the servlet context names of this background task. |
int |
getStatus()
Returns the status of this background task. |
String |
getStatusLabel()
|
String |
getStatusMessage()
Returns the status message of this background task. |
String |
getTaskContext()
Returns the task context of this background task. |
Map<String,Serializable> |
getTaskContextMap()
|
String |
getTaskExecutorClassName()
Returns the task executor class name of this background task. |
long |
getUserId()
Returns the user ID of this background task. |
String |
getUserName()
Returns the user name of this background task. |
String |
getUserUuid()
Returns the user uuid of this background task. |
BackgroundTask |
getWrappedBackgroundTask()
Deprecated. As of 6.1.0, replaced by getWrappedModel() |
BackgroundTask |
getWrappedModel()
|
int |
hashCode()
|
boolean |
isCachedModel()
Returns true if this model instance was retrieved from the
entity cache. |
boolean |
isCompleted()
Returns true if this background task is completed. |
boolean |
isEscapedModel()
Returns true if this model instance is escaped. |
boolean |
isInProgress()
|
boolean |
isNew()
Returns true if this model instance does not yet exist in
the database. |
void |
persist()
Updates this model instance in the database or adds it if it does not yet exist. |
void |
resetOriginalValues()
Reset all original fields to current values. |
void |
setBackgroundTaskId(long backgroundTaskId)
Sets the background task ID of this background task. |
void |
setCachedModel(boolean cachedModel)
Sets whether this model instance was retrieved from the entity cache. |
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(Date completionDate)
Sets the completion date of this background task. |
void |
setCreateDate(Date createDate)
Sets the create date of this background task. |
void |
setExpandoBridgeAttributes(BaseModel<?> baseModel)
|
void |
setExpandoBridgeAttributes(ExpandoBridge expandoBridge)
|
void |
setExpandoBridgeAttributes(ServiceContext serviceContext)
Sets the expando bridge attributes for this model instance to the attributes stored in the service context. |
void |
setGroupId(long groupId)
Sets the group ID of this background task. |
void |
setModelAttributes(Map<String,Object> attributes)
|
void |
setModifiedDate(Date modifiedDate)
Sets the modified date of this background task. |
void |
setName(String name)
Sets the name of this background task. |
void |
setNew(boolean n)
Sets whether this model instance does not yet exist in the database. |
void |
setPrimaryKey(long primaryKey)
Sets the primary key of this background task. |
void |
setPrimaryKeyObj(Serializable primaryKeyObj)
Sets the primary key of this model instance. |
void |
setServletContextNames(String servletContextNames)
Sets the servlet context names of this background task. |
void |
setStatus(int status)
Sets the status of this background task. |
void |
setStatusMessage(String statusMessage)
Sets the status message of this background task. |
void |
setTaskContext(String taskContext)
Sets the task context of this background task. |
void |
setTaskExecutorClassName(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(String userName)
Sets the user name of this background task. |
void |
setUserUuid(String userUuid)
Sets the user uuid of this background task. |
CacheModel<BackgroundTask> |
toCacheModel()
Returns a cache model object for this entity used by entity cache. |
BackgroundTask |
toEscapedModel()
Returns a copy of this entity as an escaped model instance by wrapping it with an AutoEscapeBeanHandler . |
String |
toString()
|
BackgroundTask |
toUnescapedModel()
|
String |
toXmlString()
Returns the XML representation of this model instance. |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public BackgroundTaskWrapper(BackgroundTask backgroundTask)
Method Detail |
---|
public Class<?> getModelClass()
getModelClass
in interface ClassedModel
public String getModelClassName()
getModelClassName
in interface ClassedModel
public Map<String,Object> getModelAttributes()
getModelAttributes
in interface BaseModel<BackgroundTask>
public void setModelAttributes(Map<String,Object> attributes)
setModelAttributes
in interface BaseModel<BackgroundTask>
public long getPrimaryKey()
getPrimaryKey
in interface BackgroundTaskModel
public void setPrimaryKey(long primaryKey)
setPrimaryKey
in interface BackgroundTaskModel
primaryKey
- the primary key of this background taskpublic long getBackgroundTaskId()
getBackgroundTaskId
in interface BackgroundTaskModel
public void setBackgroundTaskId(long backgroundTaskId)
setBackgroundTaskId
in interface BackgroundTaskModel
backgroundTaskId
- the background task ID of this background taskpublic long getGroupId()
getGroupId
in interface BackgroundTaskModel
getGroupId
in interface GroupedModel
public void setGroupId(long groupId)
setGroupId
in interface BackgroundTaskModel
setGroupId
in interface GroupedModel
groupId
- the group ID of this background taskpublic long getCompanyId()
getCompanyId
in interface AuditedModel
getCompanyId
in interface BackgroundTaskModel
public void setCompanyId(long companyId)
setCompanyId
in interface AuditedModel
setCompanyId
in interface BackgroundTaskModel
companyId
- the company ID of this background taskpublic long getUserId()
getUserId
in interface AuditedModel
getUserId
in interface BackgroundTaskModel
public void setUserId(long userId)
setUserId
in interface AuditedModel
setUserId
in interface BackgroundTaskModel
userId
- the user ID of this background taskpublic String getUserUuid() throws SystemException
getUserUuid
in interface AuditedModel
getUserUuid
in interface BackgroundTaskModel
SystemException
- if a system exception occurredpublic void setUserUuid(String userUuid)
setUserUuid
in interface AuditedModel
setUserUuid
in interface BackgroundTaskModel
userUuid
- the user uuid of this background taskpublic String getUserName()
getUserName
in interface AuditedModel
getUserName
in interface BackgroundTaskModel
public void setUserName(String userName)
setUserName
in interface AuditedModel
setUserName
in interface BackgroundTaskModel
userName
- the user name of this background taskpublic Date getCreateDate()
getCreateDate
in interface AuditedModel
getCreateDate
in interface BackgroundTaskModel
public void setCreateDate(Date createDate)
setCreateDate
in interface AuditedModel
setCreateDate
in interface BackgroundTaskModel
createDate
- the create date of this background taskpublic Date getModifiedDate()
getModifiedDate
in interface AuditedModel
getModifiedDate
in interface BackgroundTaskModel
public void setModifiedDate(Date modifiedDate)
setModifiedDate
in interface AuditedModel
setModifiedDate
in interface BackgroundTaskModel
modifiedDate
- the modified date of this background taskpublic String getName()
getName
in interface BackgroundTaskModel
public void setName(String name)
setName
in interface BackgroundTaskModel
name
- the name of this background taskpublic String getServletContextNames()
getServletContextNames
in interface BackgroundTaskModel
public void setServletContextNames(String servletContextNames)
setServletContextNames
in interface BackgroundTaskModel
servletContextNames
- the servlet context names of this background taskpublic String getTaskExecutorClassName()
getTaskExecutorClassName
in interface BackgroundTaskModel
public void setTaskExecutorClassName(String taskExecutorClassName)
setTaskExecutorClassName
in interface BackgroundTaskModel
taskExecutorClassName
- the task executor class name of this background taskpublic String getTaskContext()
getTaskContext
in interface BackgroundTaskModel
public void setTaskContext(String taskContext)
setTaskContext
in interface BackgroundTaskModel
taskContext
- the task context of this background taskpublic boolean getCompleted()
getCompleted
in interface BackgroundTaskModel
public boolean isCompleted()
true
if this background task is completed.
isCompleted
in interface BackgroundTaskModel
true
if this background task is completed; false
otherwisepublic void setCompleted(boolean completed)
setCompleted
in interface BackgroundTaskModel
completed
- the completed of this background taskpublic Date getCompletionDate()
getCompletionDate
in interface BackgroundTaskModel
public void setCompletionDate(Date completionDate)
setCompletionDate
in interface BackgroundTaskModel
completionDate
- the completion date of this background taskpublic int getStatus()
getStatus
in interface BackgroundTaskModel
public void setStatus(int status)
setStatus
in interface BackgroundTaskModel
status
- the status of this background taskpublic String getStatusMessage()
getStatusMessage
in interface BackgroundTaskModel
public void setStatusMessage(String statusMessage)
setStatusMessage
in interface BackgroundTaskModel
statusMessage
- the status message of this background taskpublic boolean isNew()
BaseModel
true
if this model instance does not yet exist in
the database.
isNew
in interface BackgroundTaskModel
isNew
in interface BaseModel<BackgroundTask>
true
if this model instance does not yet exist in
the database; false
otherwisepublic void setNew(boolean n)
BaseModel
setNew
in interface BackgroundTaskModel
setNew
in interface BaseModel<BackgroundTask>
n
- whether this model instance does not yet exist in the databasepublic boolean isCachedModel()
BaseModel
true
if this model instance was retrieved from the
entity cache.
isCachedModel
in interface BackgroundTaskModel
isCachedModel
in interface BaseModel<BackgroundTask>
true
if this model instance was retrieved from the
entity cache; false
otherwiseBaseModel.setCachedModel(boolean)
public void setCachedModel(boolean cachedModel)
BaseModel
setCachedModel
in interface BackgroundTaskModel
setCachedModel
in interface BaseModel<BackgroundTask>
cachedModel
- whether this model instance was retrieved from the
entity cacheEntityCache
public boolean isEscapedModel()
BaseModel
true
if this model instance is escaped.
isEscapedModel
in interface BackgroundTaskModel
isEscapedModel
in interface BaseModel<BackgroundTask>
true
if this model instance is escaped;
false
otherwisepublic Serializable getPrimaryKeyObj()
BaseModel
getPrimaryKeyObj
in interface BackgroundTaskModel
getPrimaryKeyObj
in interface BaseModel<BackgroundTask>
getPrimaryKeyObj
in interface ClassedModel
public void setPrimaryKeyObj(Serializable primaryKeyObj)
BaseModel
setPrimaryKeyObj
in interface BackgroundTaskModel
setPrimaryKeyObj
in interface BaseModel<BackgroundTask>
setPrimaryKeyObj
in interface ClassedModel
primaryKeyObj
- the primary key of this model instancepublic ExpandoBridge getExpandoBridge()
BaseModel
getExpandoBridge
in interface BackgroundTaskModel
getExpandoBridge
in interface BaseModel<BackgroundTask>
getExpandoBridge
in interface ClassedModel
public void setExpandoBridgeAttributes(BaseModel<?> baseModel)
setExpandoBridgeAttributes
in interface BackgroundTaskModel
setExpandoBridgeAttributes
in interface BaseModel<BackgroundTask>
public void setExpandoBridgeAttributes(ExpandoBridge expandoBridge)
setExpandoBridgeAttributes
in interface BackgroundTaskModel
setExpandoBridgeAttributes
in interface BaseModel<BackgroundTask>
public void setExpandoBridgeAttributes(ServiceContext serviceContext)
BaseModel
setExpandoBridgeAttributes
in interface BackgroundTaskModel
setExpandoBridgeAttributes
in interface BaseModel<BackgroundTask>
serviceContext
- the service context to be appliedServiceContext.getExpandoBridgeAttributes(
)
public Object clone()
BaseModel
clone
in interface BackgroundTaskModel
clone
in interface BaseModel<BackgroundTask>
clone
in class Object
public int compareTo(BackgroundTask backgroundTask)
compareTo
in interface BackgroundTaskModel
compareTo
in interface Comparable<BackgroundTask>
public int hashCode()
hashCode
in interface BackgroundTaskModel
hashCode
in class Object
public CacheModel<BackgroundTask> toCacheModel()
BaseModel
toCacheModel
in interface BackgroundTaskModel
toCacheModel
in interface BaseModel<BackgroundTask>
public BackgroundTask toEscapedModel()
BaseModel
AutoEscapeBeanHandler
.
toEscapedModel
in interface BackgroundTaskModel
toEscapedModel
in interface BaseModel<BackgroundTask>
AutoEscapeBeanHandler
public BackgroundTask toUnescapedModel()
toUnescapedModel
in interface BackgroundTaskModel
toUnescapedModel
in interface BaseModel<BackgroundTask>
public String toString()
toString
in interface BackgroundTaskModel
toString
in class Object
public String toXmlString()
BaseModel
toXmlString
in interface BackgroundTaskModel
toXmlString
in interface BaseModel<BackgroundTask>
public void persist() throws SystemException
PersistedModel
persist
in interface PersistedModel
SystemException
- if a system exception occurredpublic Folder addAttachmentsFolder() throws PortalException, SystemException
addAttachmentsFolder
in interface BackgroundTask
PortalException
SystemException
public List<FileEntry> getAttachmentsFileEntries() throws SystemException
getAttachmentsFileEntries
in interface BackgroundTask
SystemException
public List<FileEntry> getAttachmentsFileEntries(int start, int end) throws SystemException
getAttachmentsFileEntries
in interface BackgroundTask
SystemException
public int getAttachmentsFileEntriesCount() throws SystemException
getAttachmentsFileEntriesCount
in interface BackgroundTask
SystemException
public long getAttachmentsFolderId() throws SystemException
getAttachmentsFolderId
in interface BackgroundTask
SystemException
public String getStatusLabel()
getStatusLabel
in interface BackgroundTask
public Map<String,Serializable> getTaskContextMap()
getTaskContextMap
in interface BackgroundTask
public boolean isInProgress()
isInProgress
in interface BackgroundTask
public boolean equals(Object obj)
equals
in class Object
public BackgroundTask getWrappedBackgroundTask()
getWrappedModel()
public BackgroundTask getWrappedModel()
getWrappedModel
in interface ModelWrapper<BackgroundTask>
public void resetOriginalValues()
BaseModel
resetOriginalValues
in interface BaseModel<BackgroundTask>
|
Liferay 6.2-ce-ga5 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |