Class Wikipage
Object
Wikipage
-
Constructor Summary
ConstructorsConstructorDescriptionWikipage()
Wikipage
(String title, String name, LocalDateTime createDate, LocalDateTime modifiedDate, String version, String content) -
Method Summary
Modifier and TypeMethodDescriptionboolean
boolean
As this Wikipage does not know anything about processing a wiki format, this just returns a transient field.getName()
The owner of the wikipage, or at least the last one modifying it.getTitle()
int
hashCode()
void
void
setAdministration
(boolean administration) void
setChildren
(List<Wikipage> children) void
setComment
(String comment) void
setContent
(String content) void
setCreateDate
(LocalDateTime createDate) void
setHtmlContent
(String htmlContent) Set the appropriate HTML format of the wikipage.void
setModifiedDate
(LocalDateTime modifiedDate) void
void
setOrdering
(Integer ordering) void
void
setSummary
(String summary) void
void
setVersion
(String version) toString()
-
Constructor Details
-
Wikipage
public Wikipage() -
Wikipage
-
Wikipage
public Wikipage(String title, String name, LocalDateTime createDate, LocalDateTime modifiedDate, String version, String content)
-
-
Method Details
-
getTitle
-
setTitle
-
getName
The owner of the wikipage, or at least the last one modifying it.- Returns:
- the name of a player.
-
setName
-
getCreateDate
-
setCreateDate
-
getModifiedDate
-
setModifiedDate
-
getVersion
-
setVersion
-
getContent
-
setContent
-
getSummary
-
setSummary
-
getChildren
-
setChildren
-
getParent
-
setParent
-
getAdministration
public boolean getAdministration() -
setAdministration
public void setAdministration(boolean administration) -
getComment
-
setComment
-
getOrdering
-
setOrdering
-
hashCode
-
equals
-
toString
-
increaseVersion
public void increaseVersion() -
getHtmlContent
As this Wikipage does not know anything about processing a wiki format, this just returns a transient field. Formatting is done elsewhere. Simply make sure to callsetHtmlContent(java.lang.String)
appropriately beforehand.- Returns:
- a string
- See Also:
-
setHtmlContent
Set the appropriate HTML format of the wikipage. This sets a transient field which can then be used for displaying. This field is not stored in the database.- Parameters:
htmlContent
- the html content representation of thegetContent()
.
-