[jboss-cvs] jboss-portal/core/src/main/org/jboss/portal/core/portlet/management ...
Boleslaw Dawidowicz
bdaw at o2.pl
Thu Jul 27 08:36:03 EDT 2006
User: bdaw
Date: 06/07/27 08:36:03
Modified: core/src/main/org/jboss/portal/core/portlet/management
PortalObjectManagerBean.java
Log:
management - enabling portal defaut page choice
Revision Changes Path
1.42 +22 -0 jboss-portal/core/src/main/org/jboss/portal/core/portlet/management/PortalObjectManagerBean.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: PortalObjectManagerBean.java
===================================================================
RCS file: /cvsroot/jboss/jboss-portal/core/src/main/org/jboss/portal/core/portlet/management/PortalObjectManagerBean.java,v
retrieving revision 1.41
retrieving revision 1.42
diff -u -b -r1.41 -r1.42
--- PortalObjectManagerBean.java 26 Jul 2006 22:03:55 -0000 1.41
+++ PortalObjectManagerBean.java 27 Jul 2006 12:36:03 -0000 1.42
@@ -284,6 +284,8 @@
return themeService;
}
+
+
/**
* bind the theme service.
* (defined in the faces-config.xml; injected in WebAppEnhancer, based on jboss-portlet.xml service entry)
@@ -472,6 +474,26 @@
return (SelectItem[])list.toArray(new SelectItem[list.size()]);
}
+ public SelectItem[] getPortalPageItems()
+ {
+ Collection pages = getSelectedObject().getChildren();
+
+ ArrayList list = new ArrayList(pages.size() + 1);
+ for (Iterator iterator = pages.iterator(); iterator.hasNext();)
+ {
+ PortalObject o = (PortalObject)iterator.next();
+ if (o.getType() == PortalObject.TYPE_PAGE)
+ {
+ SelectItem item = new SelectItem(o.getName());
+ list.add(item);
+ }
+
+ }
+ list.add(new SelectItem("","no selection"));
+
+ return (SelectItem[])list.toArray(new SelectItem[list.size()]);
+ }
+
public static void sortInstances(List instances, final String column, final boolean ascending)
{
More information about the jboss-cvs-commits
mailing list