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 classSimpleContent.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 SimpleContentfrom(Page page)InstantgetCreationDate()longgetId()InstantgetLastModificationDate()LonggetParentId()IntegergetPosition()LonggetSpaceId()SimpleContent.ContentStatusgetStatus()StringgetTitle()voidmergeFieldsFrom(SimpleContent other)Updates all fields from other (except id because id must not be changed).voidsetCreationDate(Instant creationDate)voidsetId(long id)voidsetLastModificationDate(Instant lastModificationDate)voidsetParentId(Long parentId)voidsetPosition(Integer position)voidsetSpaceId(Long spaceId)voidsetStatus(SimpleContent.ContentStatus status)voidsetTitle(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)
-
-