|
Liferay 6.0.5 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.liferay.portlet.messageboards.model.MBThreadWrapper
public class MBThreadWrapper
This class is a wrapper for MBThread
.
MBThread
,
Serialized FormConstructor Summary | |
---|---|
MBThreadWrapper(MBThread mbThread)
|
Method Summary | |
---|---|
Object |
clone()
Creates a shallow clone of this model instance. |
int |
compareTo(MBThread mbThread)
|
String |
getAttachmentsDir()
|
long |
getCategoryId()
Gets the category id of this message boards thread. |
ExpandoBridge |
getExpandoBridge()
Gets the expando bridge for this model instance. |
long |
getGroupId()
Gets the group id of this message boards thread. |
long |
getLastPostByUserId()
Gets the last post by user id of this message boards thread. |
String |
getLastPostByUserUuid()
Gets the last post by user uuid of this message boards thread. |
Date |
getLastPostDate()
Gets the last post date of this message boards thread. |
Lock |
getLock()
|
int |
getMessageCount()
Gets the message count of this message boards thread. |
long |
getPrimaryKey()
Gets the primary key of this message boards thread. |
Serializable |
getPrimaryKeyObj()
Gets the primary key of this model instance. |
double |
getPriority()
Gets the priority of this message boards thread. |
long |
getRootMessageId()
Gets the root message id of this message boards thread. |
int |
getStatus()
Gets the status of this message boards thread. |
long |
getStatusByUserId()
Gets the status by user id of this message boards thread. |
String |
getStatusByUserName()
Gets the status by user name of this message boards thread. |
String |
getStatusByUserUuid()
Gets the status by user uuid of this message boards thread. |
Date |
getStatusDate()
Gets the status date of this message boards thread. |
long |
getThreadId()
Gets the thread id of this message boards thread. |
int |
getViewCount()
Gets the view count of this message boards thread. |
MBThread |
getWrappedMBThread()
|
int |
hashCode()
|
boolean |
hasLock(long userId)
|
boolean |
isApproved()
Determines whether this message boards thread is approved. |
boolean |
isCachedModel()
Determines if this model instance was retrieved from the entity cache. |
boolean |
isDraft()
Determines whether this message boards thread is a draft. |
boolean |
isEscapedModel()
Determines if this model instance is escaped. |
boolean |
isExpired()
Determines whether this message boards thread is expired. |
boolean |
isLocked()
|
boolean |
isNew()
Determines if this model instance does not yet exist in the database. |
boolean |
isPending()
Determines whether this message boards thread is pending. |
void |
setCachedModel(boolean cachedModel)
Sets whether this model instance was retrieved from the entity cache. |
void |
setCategoryId(long categoryId)
Sets the category id of this message boards thread. |
void |
setEscapedModel(boolean escapedModel)
Sets whether this model instance is escaped, meaning that all strings returned from getter methods are HTML safe. |
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 message boards thread. |
void |
setLastPostByUserId(long lastPostByUserId)
Sets the last post by user id of this message boards thread. |
void |
setLastPostByUserUuid(String lastPostByUserUuid)
Sets the last post by user uuid of this message boards thread. |
void |
setLastPostDate(Date lastPostDate)
Sets the last post date of this message boards thread. |
void |
setMessageCount(int messageCount)
Sets the message count of this message boards thread. |
void |
setNew(boolean n)
Sets whether this model instance does not yet exist in the database. |
void |
setPrimaryKey(long pk)
Sets the primary key of this message boards thread |
void |
setPriority(double priority)
Sets the priority of this message boards thread. |
void |
setRootMessageId(long rootMessageId)
Sets the root message id of this message boards thread. |
void |
setStatus(int status)
Sets the status of this message boards thread. |
void |
setStatusByUserId(long statusByUserId)
Sets the status by user id of this message boards thread. |
void |
setStatusByUserName(String statusByUserName)
Sets the status by user name of this message boards thread. |
void |
setStatusByUserUuid(String statusByUserUuid)
Sets the status by user uuid of this message boards thread. |
void |
setStatusDate(Date statusDate)
Sets the status date of this message boards thread. |
void |
setThreadId(long threadId)
Sets the thread id of this message boards thread. |
void |
setViewCount(int viewCount)
Sets the view count of this message boards thread. |
MBThread |
toEscapedModel()
Gets a copy of this message boards thread as an escaped model instance by wrapping it with an AutoEscapeBeanHandler . |
String |
toString()
|
String |
toXmlString()
Gets the XML representation of this model instance. |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public MBThreadWrapper(MBThread mbThread)
Method Detail |
---|
public long getPrimaryKey()
MBThreadModel
getPrimaryKey
in interface MBThreadModel
public void setPrimaryKey(long pk)
MBThreadModel
setPrimaryKey
in interface MBThreadModel
pk
- the primary key of this message boards threadpublic long getThreadId()
MBThreadModel
getThreadId
in interface MBThreadModel
public void setThreadId(long threadId)
MBThreadModel
setThreadId
in interface MBThreadModel
threadId
- the thread id of this message boards threadpublic long getGroupId()
MBThreadModel
getGroupId
in interface MBThreadModel
public void setGroupId(long groupId)
MBThreadModel
setGroupId
in interface MBThreadModel
groupId
- the group id of this message boards threadpublic long getCategoryId()
MBThreadModel
getCategoryId
in interface MBThreadModel
public void setCategoryId(long categoryId)
MBThreadModel
setCategoryId
in interface MBThreadModel
categoryId
- the category id of this message boards threadpublic long getRootMessageId()
MBThreadModel
getRootMessageId
in interface MBThreadModel
public void setRootMessageId(long rootMessageId)
MBThreadModel
setRootMessageId
in interface MBThreadModel
rootMessageId
- the root message id of this message boards threadpublic int getMessageCount()
MBThreadModel
getMessageCount
in interface MBThreadModel
public void setMessageCount(int messageCount)
MBThreadModel
setMessageCount
in interface MBThreadModel
messageCount
- the message count of this message boards threadpublic int getViewCount()
MBThreadModel
getViewCount
in interface MBThreadModel
public void setViewCount(int viewCount)
MBThreadModel
setViewCount
in interface MBThreadModel
viewCount
- the view count of this message boards threadpublic long getLastPostByUserId()
MBThreadModel
getLastPostByUserId
in interface MBThreadModel
public void setLastPostByUserId(long lastPostByUserId)
MBThreadModel
setLastPostByUserId
in interface MBThreadModel
lastPostByUserId
- the last post by user id of this message boards threadpublic String getLastPostByUserUuid() throws SystemException
MBThreadModel
getLastPostByUserUuid
in interface MBThreadModel
SystemException
- if a system exception occurredpublic void setLastPostByUserUuid(String lastPostByUserUuid)
MBThreadModel
setLastPostByUserUuid
in interface MBThreadModel
lastPostByUserUuid
- the last post by user uuid of this message boards threadpublic Date getLastPostDate()
MBThreadModel
getLastPostDate
in interface MBThreadModel
public void setLastPostDate(Date lastPostDate)
MBThreadModel
setLastPostDate
in interface MBThreadModel
lastPostDate
- the last post date of this message boards threadpublic double getPriority()
MBThreadModel
getPriority
in interface MBThreadModel
public void setPriority(double priority)
MBThreadModel
setPriority
in interface MBThreadModel
priority
- the priority of this message boards threadpublic int getStatus()
MBThreadModel
getStatus
in interface MBThreadModel
public void setStatus(int status)
MBThreadModel
setStatus
in interface MBThreadModel
status
- the status of this message boards threadpublic long getStatusByUserId()
MBThreadModel
getStatusByUserId
in interface MBThreadModel
public void setStatusByUserId(long statusByUserId)
MBThreadModel
setStatusByUserId
in interface MBThreadModel
statusByUserId
- the status by user id of this message boards threadpublic String getStatusByUserUuid() throws SystemException
MBThreadModel
getStatusByUserUuid
in interface MBThreadModel
SystemException
- if a system exception occurredpublic void setStatusByUserUuid(String statusByUserUuid)
MBThreadModel
setStatusByUserUuid
in interface MBThreadModel
statusByUserUuid
- the status by user uuid of this message boards threadpublic String getStatusByUserName()
MBThreadModel
getStatusByUserName
in interface MBThreadModel
public void setStatusByUserName(String statusByUserName)
MBThreadModel
setStatusByUserName
in interface MBThreadModel
statusByUserName
- the status by user name of this message boards threadpublic Date getStatusDate()
MBThreadModel
getStatusDate
in interface MBThreadModel
public void setStatusDate(Date statusDate)
MBThreadModel
setStatusDate
in interface MBThreadModel
statusDate
- the status date of this message boards threadpublic boolean isApproved()
MBThreadModel
isApproved
in interface MBThreadModel
public boolean isDraft()
MBThreadModel
isDraft
in interface MBThreadModel
public boolean isExpired()
MBThreadModel
isExpired
in interface MBThreadModel
public boolean isPending()
MBThreadModel
isPending
in interface MBThreadModel
public MBThread toEscapedModel()
MBThreadModel
AutoEscapeBeanHandler
.
toEscapedModel
in interface MBThreadModel
AutoEscapeBeanHandler
public boolean isNew()
BaseModel
isNew
in interface BaseModel<MBThread>
isNew
in interface MBThreadModel
true
if this model instance does not yet exist in
the database; false
otherwisepublic void setNew(boolean n)
BaseModel
setNew
in interface BaseModel<MBThread>
setNew
in interface MBThreadModel
n
- whether this model instance does not yet exist in the databasepublic boolean isCachedModel()
BaseModel
isCachedModel
in interface BaseModel<MBThread>
isCachedModel
in interface MBThreadModel
true
if this model instance was retrieved from the
entity cache; false
otherwiseBaseModel.setCachedModel(boolean)
public void setCachedModel(boolean cachedModel)
BaseModel
setCachedModel
in interface BaseModel<MBThread>
setCachedModel
in interface MBThreadModel
cachedModel
- whether this model instance was retrieved from the
entity cacheEntityCache
public boolean isEscapedModel()
BaseModel
isEscapedModel
in interface BaseModel<MBThread>
isEscapedModel
in interface MBThreadModel
true
if this model instance is escaped;
false
otherwiseBaseModel.setEscapedModel(boolean)
public void setEscapedModel(boolean escapedModel)
BaseModel
A model instance can be made escaped by wrapping it with an HTML auto
escape handler using its toEscapedModel
method. For example,
UserModel.toEscapedModel()
.
setEscapedModel
in interface BaseModel<MBThread>
setEscapedModel
in interface MBThreadModel
escapedModel
- whether this model instance is escapedAutoEscapeBeanHandler
public Serializable getPrimaryKeyObj()
BaseModel
getPrimaryKeyObj
in interface BaseModel<MBThread>
getPrimaryKeyObj
in interface MBThreadModel
public ExpandoBridge getExpandoBridge()
BaseModel
getExpandoBridge
in interface BaseModel<MBThread>
getExpandoBridge
in interface MBThreadModel
public void setExpandoBridgeAttributes(ServiceContext serviceContext)
BaseModel
setExpandoBridgeAttributes
in interface BaseModel<MBThread>
setExpandoBridgeAttributes
in interface MBThreadModel
serviceContext
- the service context to retrieve the expando bridge
attributes fromServiceContext.getExpandoBridgeAttributes(
)
public Object clone()
BaseModel
clone
in interface BaseModel<MBThread>
clone
in interface MBThreadModel
clone
in class Object
public int compareTo(MBThread mbThread)
compareTo
in interface MBThreadModel
compareTo
in interface Comparable<MBThread>
public int hashCode()
hashCode
in interface MBThreadModel
hashCode
in class Object
public String toString()
toString
in interface MBThreadModel
toString
in class Object
public String toXmlString()
BaseModel
toXmlString
in interface BaseModel<MBThread>
toXmlString
in interface MBThreadModel
public String getAttachmentsDir()
getAttachmentsDir
in interface MBThread
public Lock getLock()
getLock
in interface MBThread
public boolean hasLock(long userId)
hasLock
in interface MBThread
public boolean isLocked()
isLocked
in interface MBThread
public MBThread getWrappedMBThread()
|
Liferay 6.0.5 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |