public class SimpleContent extends Object implements Serializable, NotExportable
Modifier and Type | Class and Description |
---|---|
static class |
SimpleContent.ContentStatus |
Constructor and Description |
---|
SimpleContent() |
SimpleContent(long id,
Long spaceId,
Long parentId,
String title,
Date creationDate,
Date lastModificationDate,
String status,
Integer position) |
SimpleContent(long id,
Long spaceId,
Long parentId,
String title,
Instant creationDate,
Instant lastModificationDate,
String status,
Integer position) |
Modifier and Type | Method and 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) |
public SimpleContent()
public SimpleContent(long id, Long spaceId, Long parentId, String title, Instant creationDate, Instant lastModificationDate, String status, Integer position)
public long getId()
public void setId(long id)
public String getTitle()
public void setTitle(String title)
public Instant getCreationDate()
public void setCreationDate(Instant creationDate)
public Instant getLastModificationDate()
public void setLastModificationDate(Instant lastModificationDate)
public SimpleContent.ContentStatus getStatus()
public void setStatus(SimpleContent.ContentStatus status)
public Integer getPosition()
public void setPosition(Integer position)
public Long getParentId()
public void setParentId(Long parentId)
public Long getSpaceId()
public void setSpaceId(Long spaceId)
public void mergeFieldsFrom(SimpleContent other)
other
- object to merge.public static SimpleContent from(Page page)
Copyright © 2003–2021 Atlassian. All rights reserved.