|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jahia.content.AbstractContentTreeVisitor
org.jahia.workflow.AuthoringContentTreeVisitor
public class AuthoringContentTreeVisitor
Title: A Visitor used to check if a user has any write right ( Authoring ) on any Content Object of a given page
Description:
Copyright: Copyright (c) 2002
Company:
| Field Summary | |
|---|---|
static int |
ADMIN_RIGHTS
|
protected java.util.ArrayList |
contents
|
protected ContentTree |
contentTree
|
static int |
READ_RIGHTS
|
static int |
WRITE_RIGHTS
|
| Constructor Summary | |
|---|---|
AuthoringContentTreeVisitor(ContentObject rootContentObject,
JahiaUser user,
int permission,
boolean iterateAll,
EntryLoadRequest loadRequest,
java.lang.String operationMode)
|
|
| Method Summary | |
|---|---|
java.util.ArrayList |
getChilds(ContentObject contentObject,
int currentPageLevel)
Returns an array list of childs for a given ContentObject |
java.util.ArrayList |
getContents()
Return the array list of ContentObjects the user has access |
ContentTree |
getContentTree()
Return the internal ContentTree used to traverse the Content Tree |
ContentTreeStatusInterface |
getContentTreeStatus(ContentObject contentObject,
int currentPageLevel)
Returns a ContentTreeStatus implementation for a given ContentObject |
static AuthoringContentTreeVisitor |
getInstance(ContentObject rootContentObject,
JahiaUser user,
int permission,
boolean iterateAll,
EntryLoadRequest loadRequest,
java.lang.String operationMode)
|
void |
processContentObjectBeforeChilds(ContentObject contentObject,
ContentTreeStatusInterface contentTreeStatus,
int currentPageLevel)
process the current content object when traversing the tree |
void |
visite()
Start visiting the tree |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int READ_RIGHTS
public static final int WRITE_RIGHTS
public static final int ADMIN_RIGHTS
protected ContentTree contentTree
protected java.util.ArrayList contents
| Constructor Detail |
|---|
public AuthoringContentTreeVisitor(ContentObject rootContentObject,
JahiaUser user,
int permission,
boolean iterateAll,
EntryLoadRequest loadRequest,
java.lang.String operationMode)
rootContentObject - user - permission - loadRequest - operationMode - jParams - | Method Detail |
|---|
public static AuthoringContentTreeVisitor getInstance(ContentObject rootContentObject,
JahiaUser user,
int permission,
boolean iterateAll,
EntryLoadRequest loadRequest,
java.lang.String operationMode)
public void visite()
throws JahiaException
JahiaExceptionpublic ContentTree getContentTree()
getContentTree in interface ContentTreeVisitorInterfacegetContentTree in class AbstractContentTreeVisitor
public ContentTreeStatusInterface getContentTreeStatus(ContentObject contentObject,
int currentPageLevel)
throws JahiaException
getContentTreeStatus in interface ContentTreeVisitorInterfacegetContentTreeStatus in class AbstractContentTreeVisitorcontentObject -
JahiaException
public void processContentObjectBeforeChilds(ContentObject contentObject,
ContentTreeStatusInterface contentTreeStatus,
int currentPageLevel)
throws JahiaException
contentObject - contentTreeStatus - currentPageLevel -
JahiaExceptionpublic java.util.ArrayList getContents()
public java.util.ArrayList getChilds(ContentObject contentObject,
int currentPageLevel)
throws JahiaException
getChilds in interface ContentTreeVisitorInterfacegetChilds in class AbstractContentTreeVisitorcontentObject - currentPageLevel -
JahiaException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||