<%-- Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to You under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. --%> <%@ page language="java" import="javax.portlet.*, java.util.List, java.util.Iterator, org.apache.jetspeed.om.common.portlet.MutablePortletApplication" session="true" %> <%@ taglib uri='/WEB-INF/portlet.tld' prefix='portlet'%> <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %> <%@ taglib uri="/WEB-INF/pam.tld" prefix="pam" %> <%@ page import="java.util.Collection" %> <%@ page import ="java.util.Map" %> <%@ page import="org.apache.jetspeed.search.ParsedObject" %>

Portlet Application Manager

Search

" method="post">
" method="post">
<% String name = ""; ParsedObject po = (ParsedObject)pageContext.findAttribute("result"); Map fields = po.getFields(); if(fields != null) { Object id = fields.get("ID"); if(id != null) { if(id instanceof Collection) { Collection coll = (Collection)id; name = (String) coll.iterator().next(); } else { name = (String)id; } } if(po.getType().equals("portlet")) { Object pa = fields.get("portlet_application"); String paName = ""; if(pa != null) { if(id instanceof Collection) { Collection coll = (Collection)pa; paName = (String) coll.iterator().next(); } else { paName = (String)pa; } } name = paName + "::" + name; } } %> ?select_node=<%=name%>">
<%-- |
--%>

Application Tree View