Class SimpleContent
- java.lang.Object
-
- com.atlassian.confluence.security.denormalisedpermissions.impl.content.domain.SimpleContent
-
- All Implemented Interfaces:
NotExportable
,Serializable
public class SimpleContent extends Object implements Serializable, NotExportable
Lite representation of content table used by denormalised permissions. Contains only crucial information.- Since:
- 7.11.0
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
SimpleContent.ContentStatus
-
Constructor Summary
Constructors Constructor Description SimpleContent()
SimpleContent(long id, Long spaceId, Long parentId, String title, Instant creationDate, Instant lastModificationDate, String status, Integer position)
SimpleContent(long id, Long spaceId, Long parentId, String title, Date creationDate, Date lastModificationDate, String status, Integer position)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static SimpleContent
from(Page page)
Instant
getCreationDate()
long
getId()
Instant
getLastModificationDate()
Long
getParentId()
Integer
getPosition()
Long
getSpaceId()
SimpleContent.ContentStatus
getStatus()
String
getTitle()
void
mergeFieldsFrom(SimpleContent other)
Updates all fields from other (except id because id must not be changed).void
setCreationDate(Instant creationDate)
void
setId(long id)
void
setLastModificationDate(Instant lastModificationDate)
void
setParentId(Long parentId)
void
setPosition(Integer position)
void
setSpaceId(Long spaceId)
void
setStatus(SimpleContent.ContentStatus status)
void
setTitle(String title)
-
-
-
Method Detail
-
getId
public long getId()
-
setId
public void setId(long id)
-
getTitle
public String getTitle()
-
setTitle
public void setTitle(String title)
-
getCreationDate
public Instant getCreationDate()
-
setCreationDate
public void setCreationDate(Instant creationDate)
-
getLastModificationDate
public Instant getLastModificationDate()
-
setLastModificationDate
public void setLastModificationDate(Instant lastModificationDate)
-
getStatus
public SimpleContent.ContentStatus getStatus()
-
setStatus
public void setStatus(SimpleContent.ContentStatus status)
-
getPosition
public Integer getPosition()
-
setPosition
public void setPosition(Integer position)
-
getParentId
public Long getParentId()
-
setParentId
public void setParentId(Long parentId)
-
getSpaceId
public Long getSpaceId()
-
setSpaceId
public void setSpaceId(Long spaceId)
-
mergeFieldsFrom
public void mergeFieldsFrom(SimpleContent other)
Updates all fields from other (except id because id must not be changed).- Parameters:
other
- object to merge.
-
from
public static SimpleContent from(Page page)
-
-