|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.chromattic.ext.ntdef.NTHierarchyNode
org.chromattic.ext.ntdef.NTFolder
org.exoplatform.wiki.mow.core.api.wiki.PageImpl
public abstract class PageImpl
| Constructor Summary | |
|---|---|
PageImpl()
|
|
| Method Summary | |
|---|---|
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 VersionableMixin |
createVersionableMixin()
|
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 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 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 VersionableMixin |
getVersionableMixinByChromattic()
|
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()
|
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)
|
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 |
setURL(String url)
set url |
protected abstract void |
setVersionableMixinByChromattic(VersionableMixin mix)
|
abstract void |
setWatchedMixin(WatchedMixin mix)
|
void |
setWikiService(WikiService wService)
|
| Methods inherited from class org.chromattic.ext.ntdef.NTFolder |
|---|
addChild, addChild, createFile, createFile, createFolder, createFolder, getChild, getChildren, getFile, getFolder, iterator |
| Methods inherited from class org.chromattic.ext.ntdef.NTHierarchyNode |
|---|
getCreated, getParent, setParent |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PageImpl()
| Method Detail |
|---|
public 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
Page
getJCRPageNode in interface PageExceptionpublic abstract String getName()
Page
getName in interface PagegetName in class org.chromattic.ext.ntdef.NTHierarchyNodepublic abstract void setName(String name)
Page
setName in interface Pagename - Nodenamepublic abstract String getPath()
public abstract String getWorkspace()
protected abstract AttachmentImpl getContentByChromattic()
protected abstract void setContentByChromattic(AttachmentImpl content)
protected abstract AttachmentImpl createContent()
public AttachmentImpl getContent()
Page
getContent in interface Pagepublic abstract String getTitleByChromattic()
public abstract void setTitleByChromattic(String title)
public String getTitle()
getTitle in interface Pagepublic void setTitle(String title)
setTitle in interface Pagepublic abstract String getSyntax()
Page
getSyntax in interface Pagepublic abstract void setSyntax(String syntax)
setSyntax in interface Pagepublic abstract String getComment()
getComment in interface Pagepublic abstract void setComment(String comment)
setComment in interface Pagepublic abstract String getOwner()
Page
getOwner in interface Pagepublic abstract void setOwner(String owner)
public abstract String getAuthor()
Page
getAuthor in interface Pagepublic abstract Date getCreatedDate()
Page
getCreatedDate in interface Pagepublic abstract void setCreatedDate(Date date)
public abstract Date getUpdatedDate()
Page
getUpdatedDate in interface Pagepublic abstract String getURL()
Page
getURL in interface Pagepublic abstract void setURL(String url)
Page
setURL in interface 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 WatchedMixin getWatchedMixin()
public abstract void setWatchedMixin(WatchedMixin mix)
protected abstract WatchedMixin createWatchedMixin()
public void makeWatched()
public abstract VersionableMixin getVersionableMixinByChromattic()
protected abstract void setVersionableMixinByChromattic(VersionableMixin mix)
protected abstract VersionableMixin createVersionableMixin()
public VersionableMixin getVersionableMixin()
Page
getVersionableMixin in interface Pagepublic void makeVersionable()
public NTVersion checkin()
throws Exception
Exception
public void checkout()
throws Exception
Exception
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()
Page
getAttachments in interface Page
public Collection<AttachmentImpl> getAttachmentsExcludeContent()
throws Exception
Exception
public Collection<AttachmentImpl> getAttachmentsExcludeContentByRootPermisison()
throws Exception
Exception
public AttachmentImpl getAttachment(String attachmentId)
throws Exception
Exception
public AttachmentImpl getAttachmentByRootPermisison(String attachmentId)
throws Exception
Exception
public void addAttachment(AttachmentImpl attachment)
throws org.chromattic.api.DuplicateNameException
org.chromattic.api.DuplicateNameException
public void removeAttachment(String attachmentId)
throws Exception
Exceptionpublic abstract PageImpl getParentPage()
Page
getParentPage in interface Pagepublic abstract void setParentPage(PageImpl page)
public abstract Trash getTrash()
public abstract void setTrash(Trash trash)
protected abstract Map<String,PageImpl> getChildrenContainer()
public Map<String,PageImpl> getChildPages()
throws Exception
Exception
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 PageException
public boolean hasPermission(PermissionType permissionType,
org.exoplatform.services.security.Identity user)
throws Exception
Page
hasPermission in interface PagepermissionType - The type of permisison to check PermissionType}user - The user to check
Exception
public HashMap<String,String[]> getPermission()
throws Exception
Page
getPermission in interface PageException
public void setPermission(HashMap<String,String[]> permissions)
throws Exception
Page
setPermission in interface PageException
public void setNonePermission()
throws Exception
Page
setNonePermission in interface PageException
protected void addPage(String pageName,
Page page)
public void addWikiPage(Page page)
Page
addWikiPage in interface Page
public void addPublicPage(Page page)
throws Exception
Page
addPublicPage in interface PageException
public PageImpl getWikiPage(String pageId)
throws Exception
Exceptionpublic Wiki getWiki()
Page
getWiki in interface Pagepublic WikiHome getWikiHome()
public boolean isMinorEdit()
Page
isMinorEdit in interface Pagepublic void setMinorEdit(boolean isMinorEdit)
Page
setMinorEdit in interface Pagepublic abstract void remove()
Page
remove in interface Page
public String addRelatedPage(PageImpl page)
throws Exception
page -
NullPointerException - if the param is null
Exception - when any error occurs.
public List<PageImpl> getRelatedPages()
throws Exception
Exception
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 removeAllRelatedPages()
throws Exception
Exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||