@Entity @Indexed(routingBinder=@RoutingBinderRef(type=CmsContentStatusRoutingBinder.class)) @TypeBinding(binder=@TypeBinderRef(type=CmsContentAttributeBinder.class)) public class CmsContent extends Attribute implements java.io.Serializable
限定符和类型 | 字段和说明 |
---|---|
private java.lang.String |
author
author
作者
|
private int |
categoryId
category id
分类ID
|
private java.util.Date |
checkDate
check date
审核日期
|
private java.lang.Long |
checkUserId
check user id
审核用户ID
|
private int |
childs
childs
子内容数
|
private int |
clicks
clicks
点击数
|
private int |
collections
collections
收藏数
|
private int |
comments
comments
评论数
|
private boolean |
copied
copied
转载
|
private java.lang.String |
cover
cover
封面图
|
private java.util.Date |
createDate
create date
创建日期
|
private java.lang.Integer |
deptId
dept id
发布用户部门ID
|
private @Length(max=300) java.lang.String |
description
description
描述
|
private boolean |
disabled |
private java.lang.String |
editor
editor
编辑
|
private java.util.Date |
expiryDate
expiry date
过期日期
|
private boolean |
hasFiles
has files
拥有附件列表
|
private boolean |
hasImages
has images
拥有图片列表
|
private boolean |
hasProducts
has products
拥有产品列表
|
private boolean |
hasStatic
has static file
静态化
|
private java.lang.Long |
id
id
|
private @NotBlank @Length(max=20) java.lang.String |
modelId
model id
模型ID
|
private boolean |
onlyUrl
external link
外链
|
private java.lang.Long |
parentId
parent id
父内容ID
|
private java.util.Date |
publishDate
publish date
发布日期
|
private java.lang.Long |
quoteContentId
quote content id
引用内容ID
|
private java.math.BigDecimal |
score
score
分数
|
private int |
scores
total scores
总分数
|
private int |
scoreUsers
score users
评分用户数
|
private static long |
serialVersionUID |
private short |
siteId |
private int |
sort
top
置顶级别
|
private int |
status
status(0:Draft,1:Published,2:Pending,3:Rejected)
状态(0:草稿,1:已发布,2:待审核,3:驳回)
|
private java.lang.String |
tagIds
tag ids
多个标签id
|
private @NotBlank @Length(max=255) java.lang.String |
title
title
标题
|
private java.util.Date |
updateDate
update date
更新日期
|
private java.lang.Long |
updateUserId
update user id
更新用户id
|
private @Length(max=1000) java.lang.String |
url
url
链接地址
|
private long |
userId
user id
发布用户ID
|
构造器和说明 |
---|
CmsContent() |
CmsContent(short siteId,
java.lang.String title,
long userId,
int categoryId,
java.lang.String modelId,
boolean copied,
boolean onlyUrl,
boolean hasImages,
boolean hasFiles,
boolean hasProducts,
boolean hasStatic,
int childs,
int scores,
int scoreUsers,
java.math.BigDecimal score,
int comments,
int clicks,
int collections,
java.util.Date publishDate,
java.util.Date createDate,
int sort,
int status,
boolean disabled) |
CmsContent(short siteId,
java.lang.String title,
long userId,
int categoryId,
java.lang.String modelId,
boolean onlyUrl,
boolean hasImages,
boolean hasFiles,
boolean hasProducts,
int childs,
java.util.Date publishDate,
java.util.Date createDate,
int sort,
int status) |
限定符和类型 | 方法和说明 |
---|---|
java.lang.String |
getAuthor() |
int |
getCategoryId() |
java.util.Date |
getCheckDate() |
java.lang.Long |
getCheckUserId() |
int |
getChilds() |
int |
getClicks() |
int |
getCollections() |
int |
getComments() |
java.lang.String |
getCover() |
java.util.Date |
getCreateDate() |
java.lang.Integer |
getDeptId() |
java.lang.String |
getDescription() |
java.lang.String |
getEditor() |
java.util.Date |
getExpiryDate() |
java.lang.Long |
getId() |
java.lang.String |
getModelId() |
java.lang.Long |
getParentId() |
java.util.Date |
getPublishDate() |
java.lang.Long |
getQuoteContentId() |
java.math.BigDecimal |
getScore() |
int |
getScores() |
int |
getScoreUsers() |
short |
getSiteId() |
int |
getSort() |
int |
getStatus() |
java.lang.String |
getTagIds() |
java.lang.String |
getTitle() |
java.util.Date |
getUpdateDate() |
java.lang.Long |
getUpdateUserId() |
java.lang.String |
getUrl() |
long |
getUserId() |
boolean |
isCopied() |
boolean |
isDisabled() |
boolean |
isHasFiles() |
boolean |
isHasImages() |
boolean |
isHasProducts() |
boolean |
isHasStatic() |
boolean |
isOnlyUrl() |
void |
setAuthor(java.lang.String author) |
void |
setCategoryId(int categoryId) |
void |
setCheckDate(java.util.Date checkDate) |
void |
setCheckUserId(java.lang.Long checkUserId) |
void |
setChilds(int childs) |
void |
setClicks(int clicks) |
void |
setCollections(int collections) |
void |
setComments(int comments) |
void |
setCopied(boolean copied) |
void |
setCover(java.lang.String cover) |
void |
setCreateDate(java.util.Date createDate) |
void |
setDeptId(java.lang.Integer deptId) |
void |
setDescription(java.lang.String description) |
void |
setDisabled(boolean disabled) |
void |
setEditor(java.lang.String editor) |
void |
setExpiryDate(java.util.Date expiryDate) |
void |
setHasFiles(boolean hasFiles) |
void |
setHasImages(boolean hasImages) |
void |
setHasProducts(boolean hasProducts) |
void |
setHasStatic(boolean hasStatic) |
void |
setId(java.lang.Long id) |
void |
setModelId(java.lang.String modelId) |
void |
setOnlyUrl(boolean onlyUrl) |
void |
setParentId(java.lang.Long parentId) |
void |
setPublishDate(java.util.Date publishDate) |
void |
setQuoteContentId(java.lang.Long quoteContentId) |
void |
setScore(java.math.BigDecimal score) |
void |
setScores(int scores) |
void |
setScoreUsers(int scoreUsers) |
void |
setSiteId(short siteId) |
void |
setSort(int sort) |
void |
setStatus(int status) |
void |
setTagIds(java.lang.String tagIds) |
void |
setTitle(java.lang.String title) |
void |
setUpdateDate(java.util.Date updateDate) |
void |
setUpdateUserId(java.lang.Long updateUserId) |
void |
setUrl(java.lang.String url) |
void |
setUserId(long userId) |
getAttribute, setAttribute
private static final long serialVersionUID
private java.lang.Long id
@GenericField private short siteId
@FullTextField(analyzer="cms", projectable=YES) @NotBlank @Length(max=255) private @NotBlank @Length(max=255) java.lang.String title
标题
@GenericField(aggregable=YES, projectable=YES) private long userId
发布用户ID
private java.lang.Integer deptId
发布用户部门ID
private java.lang.Long checkUserId
审核用户ID
@GenericField(aggregable=YES, projectable=YES) private int categoryId
分类ID
@GenericField(aggregable=YES, projectable=YES) @NotBlank @Length(max=20) private @NotBlank @Length(max=20) java.lang.String modelId
模型ID
@GenericField(aggregable=YES, projectable=YES) private java.lang.Long parentId
父内容ID
@GenericField(projectable=YES) private java.lang.Long quoteContentId
引用内容ID
private boolean copied
转载
@GenericField(projectable=YES) private java.lang.String author
作者
@GenericField(projectable=YES) private java.lang.String editor
编辑
@GenericField(projectable=YES) private boolean onlyUrl
外链
@GenericField private boolean hasImages
拥有图片列表
@GenericField private boolean hasFiles
拥有附件列表
@GenericField private boolean hasProducts
拥有产品列表
@GenericField(projectable=YES) private boolean hasStatic
静态化
@GenericField(projectable=YES) @Length(max=1000) private @Length(max=1000) java.lang.String url
链接地址
@FullTextField(analyzer="cms", projectable=YES) @Length(max=300) private @Length(max=300) java.lang.String description
描述
@FullTextField(analyzer="whitespace") private java.lang.String tagIds
多个标签id
private java.lang.String cover
封面图
private int childs
子内容数
private int scores
总分数
private int scoreUsers
评分用户数
@GenericField(sortable=YES, projectable=YES) private java.math.BigDecimal score
分数
private int comments
评论数
@GenericField(sortable=YES, projectable=YES) private int clicks
点击数
@GenericField(sortable=YES, projectable=YES) private int collections
收藏数
@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss") @GenericField(sortable=YES, projectable=YES) private java.util.Date publishDate
发布日期
@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss") @GenericField private java.util.Date expiryDate
过期日期
private java.util.Date checkDate
审核日期
private java.lang.Long updateUserId
更新用户id
private java.util.Date updateDate
更新日期
private java.util.Date createDate
创建日期
@GenericField(sortable=YES, projectable=YES) private int sort
置顶级别
private int status
状态(0:草稿,1:已发布,2:待审核,3:驳回)
private boolean disabled
public CmsContent()
public CmsContent(short siteId, java.lang.String title, long userId, int categoryId, java.lang.String modelId, boolean onlyUrl, boolean hasImages, boolean hasFiles, boolean hasProducts, int childs, java.util.Date publishDate, java.util.Date createDate, int sort, int status)
public CmsContent(short siteId, java.lang.String title, long userId, int categoryId, java.lang.String modelId, boolean copied, boolean onlyUrl, boolean hasImages, boolean hasFiles, boolean hasProducts, boolean hasStatic, int childs, int scores, int scoreUsers, java.math.BigDecimal score, int comments, int clicks, int collections, java.util.Date publishDate, java.util.Date createDate, int sort, int status, boolean disabled)
public java.lang.Long getId()
public void setId(java.lang.Long id)
public short getSiteId()
public void setSiteId(short siteId)
public java.lang.String getTitle()
public void setTitle(java.lang.String title)
public long getUserId()
public void setUserId(long userId)
public java.lang.Integer getDeptId()
public void setDeptId(java.lang.Integer deptId)
public java.lang.Long getCheckUserId()
public void setCheckUserId(java.lang.Long checkUserId)
public int getCategoryId()
public void setCategoryId(int categoryId)
public java.lang.String getModelId()
public void setModelId(java.lang.String modelId)
public java.lang.Long getParentId()
public void setParentId(java.lang.Long parentId)
public java.lang.Long getQuoteContentId()
public void setQuoteContentId(java.lang.Long quoteContentId)
public boolean isCopied()
public void setCopied(boolean copied)
public java.lang.String getAuthor()
public void setAuthor(java.lang.String author)
public java.lang.String getEditor()
public void setEditor(java.lang.String editor)
public boolean isOnlyUrl()
public void setOnlyUrl(boolean onlyUrl)
public boolean isHasImages()
public void setHasImages(boolean hasImages)
public boolean isHasFiles()
public void setHasFiles(boolean hasFiles)
public boolean isHasProducts()
public void setHasProducts(boolean hasProducts)
public boolean isHasStatic()
public void setHasStatic(boolean hasStatic)
public java.lang.String getUrl()
public void setUrl(java.lang.String url)
public java.lang.String getDescription()
public void setDescription(java.lang.String description)
public java.lang.String getTagIds()
public void setTagIds(java.lang.String tagIds)
public java.lang.String getCover()
public void setCover(java.lang.String cover)
public int getChilds()
public void setChilds(int childs)
public int getScores()
public void setScores(int scores)
public int getScoreUsers()
public void setScoreUsers(int scoreUsers)
public java.math.BigDecimal getScore()
public void setScore(java.math.BigDecimal score)
public int getComments()
public void setComments(int comments)
public int getClicks()
public void setClicks(int clicks)
public int getCollections()
public void setCollections(int collections)
public java.util.Date getPublishDate()
public void setPublishDate(java.util.Date publishDate)
public java.util.Date getExpiryDate()
public void setExpiryDate(java.util.Date expiryDate)
public java.util.Date getCheckDate()
public void setCheckDate(java.util.Date checkDate)
public java.lang.Long getUpdateUserId()
public void setUpdateUserId(java.lang.Long updateUserId)
public java.util.Date getUpdateDate()
public void setUpdateDate(java.util.Date updateDate)
public java.util.Date getCreateDate()
public void setCreateDate(java.util.Date createDate)
public int getSort()
public void setSort(int sort)
public int getStatus()
public void setStatus(int status)
public boolean isDisabled()
public void setDisabled(boolean disabled)