| Modifier and Type | Class and Description |
|---|---|
class |
PageImpl.RemoveMixVersionable |
class |
PageImpl.VersionData |
| Constructor and Description |
|---|
PageImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
addAttachment(AttachmentImpl attachment) |
protected void |
addPage(String pageName,
Page page) |
void |
addPublicPage(Page page)
Add a public wiki page
|
String |
addRelatedPage(PageImpl page)
add a related page
|
void |
addWikiPage(Page page)
Add a wiki page as child page
|
NTVersion |
checkin() |
void |
checkout() |
abstract AttachmentImpl |
createAttachment() |
AttachmentImpl |
createAttachment(String fileName,
org.chromattic.ext.ntdef.Resource contentResource) |
protected abstract AttachmentImpl |
createContent() |
protected abstract MigratingMixin |
createMigratingMixin() |
abstract UpdateAttachmentMixin |
createUpdateAttachmentMixin() |
protected abstract WatchedMixin |
createWatchedMixin() |
AttachmentImpl |
getAttachment(String attachmentId) |
AttachmentImpl |
getAttachmentByRootPermisison(String attachmentId) |
Collection<AttachmentImpl> |
getAttachments()
Get the attachments of this page
|
abstract Collection<AttachmentImpl> |
getAttachmentsByChromattic() |
Collection<AttachmentImpl> |
getAttachmentsExcludeContent() |
Collection<AttachmentImpl> |
getAttachmentsExcludeContentByRootPermisison() |
abstract String |
getAuthor()
The Author is changed when any part of the document changes (content, attachments).
|
Map<String,PageImpl> |
getChildPages() |
Map<String,PageImpl> |
getChildrenByRootPermission() |
protected abstract Map<String,PageImpl> |
getChildrenContainer() |
org.chromattic.api.ChromatticSession |
getChromatticSession() |
abstract String |
getComment() |
AttachmentImpl |
getContent()
Get the actual content of the page
|
protected abstract AttachmentImpl |
getContentByChromattic() |
abstract Date |
getCreatedDate()
The date when creating page.
|
javax.jcr.Node |
getJCRPageNode()
Get JCR node of wiki page
|
javax.jcr.Session |
getJCRSession() |
abstract MigratingMixin |
getMigratingMixin() |
abstract MovedMixin |
getMovedMixin() |
MOWService |
getMOWService() |
abstract String |
getName()
Get jcr node name
|
abstract boolean |
getOverridePermission() |
abstract String |
getOwner()
Get the owner of the page
|
abstract PageImpl |
getParentPage()
get the parent page
|
abstract String |
getPath() |
HashMap<String,String[]> |
getPermission()
Get map of permission of page
|
Map<String,javax.jcr.Value> |
getReferredUUIDs()
get reference uuids of current page
|
List<PageImpl> |
getRelatedPages() |
abstract RemovedMixin |
getRemovedMixin() |
abstract RenamedMixin |
getRenamedMixin() |
abstract String |
getSyntax()
Get the syntax used in that page
|
String |
getTitle() |
abstract String |
getTitleByChromattic() |
abstract Trash |
getTrash() |
abstract UncachedMixin |
getUncachedMixin() |
abstract UpdateAttachmentMixin |
getUpdateAttachmentMixin() |
abstract Date |
getUpdatedDate()
The date when any part of the document changes (content, attachments).
|
abstract String |
getURL()
get URL of page.
|
VersionableMixin |
getVersionableMixin()
get Versionable Mixin
|
abstract WatchedMixin |
getWatchedMixin() |
Wiki |
getWiki()
get Wiki of page
|
WikiHome |
getWikiHome() |
PageImpl |
getWikiPage(String pageId) |
WikiService |
getWikiService() |
abstract String |
getWorkspace() |
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
|
void |
makeVersionable() |
void |
makeWatched() |
void |
migrateAttachmentPermission() |
void |
migrateLegacyData()
Migrates old page history data on the fly: 1.create version history of content child node
based on the history of page node, 2.remove the mix:versionable from page node. |
abstract void |
remove()
Detroy wiki page
|
void |
removeAllRelatedPages() |
void |
removeAttachment(String attachmentId) |
String |
removeRelatedPage(PageImpl page)
remove a specified related page.
|
void |
restore(String versionName,
boolean removeExisting) |
abstract void |
setComment(String comment) |
void |
setComponentManager(org.xwiki.component.manager.ComponentManager componentManager) |
protected abstract void |
setContentByChromattic(AttachmentImpl content) |
abstract void |
setCreatedDate(Date date) |
abstract void |
setMigratingMixin(MigratingMixin mix) |
void |
setMinorEdit(boolean isMinorEdit)
is page in minor edit or not
|
abstract void |
setMovedMixin(MovedMixin move) |
void |
setMOWService(MOWService mowService) |
abstract void |
setName(String name)
set jcr node name
|
void |
setNonePermission()
Reset page permisison
|
abstract void |
setOverridePermission(boolean isOverridePermission) |
abstract void |
setOwner(String owner) |
abstract void |
setParentPage(PageImpl page) |
void |
setPermission(HashMap<String,String[]> permissions)
Set permission to page
|
abstract void |
setRemovedMixin(RemovedMixin remove) |
abstract void |
setRenamedMixin(RenamedMixin mix) |
abstract void |
setSyntax(String syntax) |
void |
setTitle(String title) |
abstract void |
setTitleByChromattic(String title) |
abstract void |
setTrash(Trash trash) |
abstract void |
setUncachedMixin(UncachedMixin mix) |
abstract void |
setUpdateAttachmentMixin(UpdateAttachmentMixin mix) |
abstract void |
setURL(String url)
set url
|
abstract void |
setWatchedMixin(WatchedMixin mix) |
void |
setWikiService(WikiService wService) |
addChild, addChild, createFile, createFile, createFolder, createFolder, getChild, getChildren, getFile, getFolder, iteratorpublic void setMOWService(MOWService mowService)
public MOWService getMOWService()
public void setWikiService(WikiService wService)
public org.chromattic.api.ChromatticSession getChromatticSession()
public javax.jcr.Session getJCRSession()
public WikiService getWikiService()
public void setComponentManager(org.xwiki.component.manager.ComponentManager componentManager)
public javax.jcr.Node getJCRPageNode()
throws Exception
PagegetJCRPageNode in interface PageExceptionpublic abstract void setName(String name)
Pagepublic abstract String getPath()
public abstract String getWorkspace()
protected abstract AttachmentImpl getContentByChromattic()
protected abstract void setContentByChromattic(AttachmentImpl content)
protected abstract AttachmentImpl createContent()
public AttachmentImpl getContent()
PagegetContent in interface Pagepublic abstract String getTitleByChromattic()
public abstract void setTitleByChromattic(String title)
public abstract String getSyntax()
Pagepublic abstract String getComment()
getComment in interface Pagepublic abstract void setComment(String comment)
setComment in interface Pagepublic abstract String getOwner()
Pagepublic abstract void setOwner(String owner)
public abstract String getAuthor()
Pagepublic abstract Date getCreatedDate()
PagegetCreatedDate in interface Pagepublic abstract void setCreatedDate(Date date)
public abstract Date getUpdatedDate()
PagegetUpdatedDate in interface Pagepublic abstract String getURL()
Pagepublic abstract MovedMixin getMovedMixin()
public abstract void setMovedMixin(MovedMixin move)
public abstract RemovedMixin getRemovedMixin()
public abstract void setRemovedMixin(RemovedMixin remove)
public abstract RenamedMixin getRenamedMixin()
public abstract void setRenamedMixin(RenamedMixin mix)
public abstract UncachedMixin getUncachedMixin()
public abstract void setUncachedMixin(UncachedMixin mix)
public abstract WatchedMixin getWatchedMixin()
public abstract void setWatchedMixin(WatchedMixin mix)
protected abstract WatchedMixin createWatchedMixin()
public abstract MigratingMixin getMigratingMixin()
public abstract void setMigratingMixin(MigratingMixin mix)
protected abstract MigratingMixin createMigratingMixin()
public void makeWatched()
public VersionableMixin getVersionableMixin()
PagegetVersionableMixin in interface Pagepublic void makeVersionable()
public void restore(String versionName, boolean removeExisting) throws Exception
Exceptionpublic abstract AttachmentImpl createAttachment()
public AttachmentImpl createAttachment(String fileName, org.chromattic.ext.ntdef.Resource contentResource) throws Exception
Exceptionpublic abstract Collection<AttachmentImpl> getAttachmentsByChromattic()
public Collection<AttachmentImpl> getAttachments()
PagegetAttachments in interface Pagepublic Collection<AttachmentImpl> getAttachmentsExcludeContent() throws Exception
Exceptionpublic Collection<AttachmentImpl> getAttachmentsExcludeContentByRootPermisison() throws Exception
Exceptionpublic AttachmentImpl getAttachment(String attachmentId) throws Exception
Exceptionpublic AttachmentImpl getAttachmentByRootPermisison(String attachmentId) throws Exception
Exceptionpublic void addAttachment(AttachmentImpl attachment) throws org.chromattic.api.DuplicateNameException
org.chromattic.api.DuplicateNameExceptionpublic void removeAttachment(String attachmentId) throws Exception
Exceptionpublic abstract PageImpl getParentPage()
PagegetParentPage in interface Pagepublic abstract void setParentPage(PageImpl page)
public abstract Trash getTrash()
public abstract void setTrash(Trash trash)
public Map<String,PageImpl> getChildrenByRootPermission() throws Exception
Exceptionpublic abstract boolean getOverridePermission()
public abstract void setOverridePermission(boolean isOverridePermission)
public 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 HashMap<String,String[]> getPermission() throws Exception
PagegetPermission in interface PageExceptionpublic void setPermission(HashMap<String,String[]> permissions) throws Exception
PagesetPermission in interface PageExceptionpublic void setNonePermission()
throws Exception
PagesetNonePermission in interface PageExceptionpublic void addWikiPage(Page page)
PageaddWikiPage in interface Pagepublic void addPublicPage(Page page) throws Exception
PageaddPublicPage in interface PageExceptionpublic WikiHome getWikiHome()
public boolean isMinorEdit()
PageisMinorEdit in interface Pagepublic void setMinorEdit(boolean isMinorEdit)
PagesetMinorEdit in interface Pagepublic abstract void remove()
Pagepublic String addRelatedPage(PageImpl page) throws Exception
page - NullPointerException - if the param is nullException - when any error occurs.public String removeRelatedPage(PageImpl page) throws Exception
page - Exception - when an error is thrown.public Map<String,javax.jcr.Value> getReferredUUIDs() throws Exception
Exception - when an error is thrown.public void migrateLegacyData()
throws Exception
Exceptionpublic abstract UpdateAttachmentMixin getUpdateAttachmentMixin()
public abstract void setUpdateAttachmentMixin(UpdateAttachmentMixin mix)
public abstract UpdateAttachmentMixin createUpdateAttachmentMixin()
Copyright © 2003–2015 eXo Platform SAS. All rights reserved.