|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.arsdigita.util.LockableImpl
com.arsdigita.portalserver.ui.admin.PortalTreeModelBuilder
TreeModelBuilder for Portal Site hierarchies. This Class will work in two different modes by setting the internal boolean class var. This can be done during construction or via a setter method. A true value filters PortalSites to include only those that are online. This mode is helpful for typical user UI. If the value is set to false, then all Portal Sites, including those that are archived and in Draft status, are included in the tree model. This mode is useful for admin UI.
Nested Class Summary | |
static class |
PortalTreeModelBuilder.DefaultRenderer
|
Field Summary |
Fields inherited from interface com.arsdigita.bebop.tree.TreeModelBuilder |
versionId |
Constructor Summary | |
PortalTreeModelBuilder()
Construct a new PortalTreeModelBuilder whose root is the toplevel portal. |
|
PortalTreeModelBuilder(BigDecimal rootprtlId)
Construct a new PortalTreeModelBuilder whose root is the portal with the specified ID. |
|
PortalTreeModelBuilder(BigDecimal rootprtlId,
boolean filterPSites)
|
|
PortalTreeModelBuilder(boolean filterPSites)
|
Method Summary | |
boolean |
getFilterPSites()
Get the filter mode value for this ModelBuilder. |
BigDecimal |
getRootID()
Get the ID of the portal at which the tree built by this ModelBuilder will be rooted. |
com.arsdigita.bebop.tree.TreeModel |
makeModel(com.arsdigita.bebop.Tree t,
com.arsdigita.bebop.PageState s)
|
void |
setFilterPSites(boolean filterPSites)
Set the filter mode value for this ModelBuilder. |
Methods inherited from class com.arsdigita.util.LockableImpl |
isLocked, lock |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.arsdigita.util.Lockable |
isLocked, lock |
Constructor Detail |
public PortalTreeModelBuilder()
Construct a new PortalTreeModelBuilder whose root is the toplevel portal.
public PortalTreeModelBuilder(boolean filterPSites)
public PortalTreeModelBuilder(BigDecimal rootprtlId)
Construct a new PortalTreeModelBuilder whose root is the portal with the specified ID.
public PortalTreeModelBuilder(BigDecimal rootprtlId, boolean filterPSites)
Method Detail |
public BigDecimal getRootID()
Get the ID of the portal at which the tree built by this ModelBuilder will be rooted.
public boolean getFilterPSites()
Get the filter mode value for this ModelBuilder.
public void setFilterPSites(boolean filterPSites)
Set the filter mode value for this ModelBuilder. Setting this value to false results in the TreeModel including ALL PortalSites in the system: Archived and Draft versions as well as online Portal Sites. A true value for this parameter filters PortalSite collections to include only online Portal Sites.
public com.arsdigita.bebop.tree.TreeModel makeModel(com.arsdigita.bebop.Tree t, com.arsdigita.bebop.PageState s)
makeModel
in interface com.arsdigita.bebop.tree.TreeModelBuilder
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |