| Constructor and Description |
|---|
SimplePageImpl(String name,
String title,
String owner) |
| Modifier and Type | Method and Description |
|---|---|
void |
addPublicPage(Page page)
Add a public wiki page
|
void |
addWikiPage(Page page)
Add a wiki page as child page
|
SimplePageImpl |
attachments(Collection<? extends Attachment> attachments) |
SimplePageImpl |
author(String author) |
SimplePageImpl |
comment(String comment) |
SimplePageImpl |
createDate(Date date) |
Collection<? extends Attachment> |
getAttachments()
Get the attachments of this page
|
String |
getAuthor()
The Author is changed when any part of the document changes (content, attachments).
|
String |
getComment() |
Attachment |
getContent()
Get the actual content of the page
|
Date |
getCreatedDate()
The date when creating page.
|
javax.jcr.Node |
getJCRPageNode()
Get JCR node of wiki page
|
String |
getName()
Get jcr node name
|
String |
getOwner()
Get the owner of the page
|
PageImpl |
getParentPage()
get the parent page
|
HashMap<String,String[]> |
getPermission()
Get map of permission of page
|
String |
getSyntax()
Get the syntax used in that page
|
String |
getTitle() |
Date |
getUpdatedDate()
The date when any part of the document changes (content, attachments).
|
String |
getURL()
get URL of page.
|
VersionableMixin |
getVersionableMixin()
get Versionable Mixin
|
Wiki |
getWiki()
get Wiki of page
|
SimplePageImpl |
hasPermission(boolean hasPermission) |
boolean |
hasPermission(PermissionType permissionType) |
boolean |
hasPermission(PermissionType permissionType,
org.exoplatform.services.security.Identity user)
Check if user has permisison on page or not
|
boolean |
isMinorEdit()
is page in minor edit or not
|
SimplePageImpl |
permission(HashMap<String,String[]> permission) |
void |
remove()
Detroy wiki page
|
void |
setComment(String comment) |
void |
setMinorEdit(boolean isMinorEdit)
is page in minor edit or not
|
void |
setName(String name)
set jcr node name
|
void |
setNonePermission()
Reset page permisison
|
void |
setPermission(HashMap<String,String[]> permissions)
Set permission to page
|
void |
setSyntax(String syntax) |
void |
setTitle(String title) |
void |
setURL(String url)
set url
|
SimplePageImpl |
syntax(String syntax) |
SimplePageImpl |
updateDate(Date date) |
SimplePageImpl |
url(String url) |
public SimplePageImpl author(String author)
public SimplePageImpl comment(String comment)
public SimplePageImpl url(String url)
public SimplePageImpl attachments(Collection<? extends Attachment> attachments)
public SimplePageImpl createDate(Date date)
public SimplePageImpl updateDate(Date date)
public SimplePageImpl hasPermission(boolean hasPermission)
public SimplePageImpl permission(HashMap<String,String[]> permission)
public SimplePageImpl syntax(String syntax)
public Collection<? extends Attachment> getAttachments()
PagegetAttachments in interface Pagepublic String getAuthor()
Pagepublic String getComment()
getComment in interface Pagepublic Attachment getContent()
PagegetContent in interface Pagepublic Date getCreatedDate()
PagegetCreatedDate in interface Pagepublic HashMap<String,String[]> getPermission() throws Exception
PagegetPermission in interface PageExceptionpublic String getSyntax()
Pagepublic Date getUpdatedDate()
PagegetUpdatedDate in interface Pagepublic boolean hasPermission(PermissionType permissionType) throws Exception
hasPermission in interface PageExceptionpublic boolean hasPermission(PermissionType permissionType, org.exoplatform.services.security.Identity user) throws Exception
PagehasPermission in interface PagepermissionType - The type of permisison to check PermissionType}user - The user to checkExceptionpublic void setComment(String comment)
setComment in interface Pagepublic void setPermission(HashMap<String,String[]> permissions) throws Exception
PagesetPermission in interface PageExceptionpublic String getURL()
Pagepublic void addWikiPage(Page page)
PageaddWikiPage in interface Pagepublic javax.jcr.Node getJCRPageNode()
throws Exception
PagegetJCRPageNode in interface PageExceptionpublic VersionableMixin getVersionableMixin()
PagegetVersionableMixin in interface Pagepublic void remove()
Pagepublic void setMinorEdit(boolean isMinorEdit)
PagesetMinorEdit in interface Pagepublic PageImpl getParentPage()
PagegetParentPage in interface Pagepublic void addPublicPage(Page page) throws Exception
PageaddPublicPage in interface PageExceptionpublic void setNonePermission()
throws Exception
PagesetNonePermission in interface PageExceptionpublic boolean isMinorEdit()
PageisMinorEdit in interface PageCopyright © 2003–2015 eXo Platform SAS. All rights reserved.