<%-- 

AdminLinkBarInclude.jsp

Licensed Materials 
Property of IBM, 5724-E76, (C) Copyright IBM Corp. 2001, 2004 
All Rights reserved. --%>

If you change this file,  "touch" the version of Default.jsp which includes
it to see your changes.  You can do this by editing Default.jsp and saving it.

Default.jsp uses the @include JSP directive which compiles this file into the
servlet for Default.jsp.


By default, automatic reloading of theme and skin JSP files is turned off.
To see the changes you make to this file without stopping and restarting
the server, follow the instructions for enabling automatic JSP reloading
in the InfoCenter.
          
Do not enable automatic JSP reloading in a production environment
because performance will decrease.

--%>



<%--  AdminLinkBarInclude.jsp  --%>

<%@ page import="com.ibm.wps.portlets.admin.AdminPortletUtils, 
                 com.ibm.wps.util.CreateUrlCommand, 
                 com.ibm.wps.portlets.admin.shared.*"%>


<%-- toolbar --%>
<table border="0" cellspacing="0" cellpadding="5" width="100%">
  <tr>

      <%-- spacer - for alignment --%>

      <td class="wpsLinkBar" 
          valign="middle" 
          align="<%=bidiAlignLeft%>" 
          width="100%" 
          nowrap>

            <img width="0" 
                  
                 border="0" 
                 src='<%= wpsBaseURL %>/images/dot.gif' alt="">
      </td>

      <wps:if loggedIn="yes">


        <%-- New page --%>

        <wps-internal:adminlinkinfo name="<%=AdminUniqueNamesMappingService.PROPERTIES_PORTLET%>">

          <wps:urlGeneration contentNode="<%=wpsContentNode%>"
                             compositionNode='<%= wpsCompositionNode %>'
                             portletWindowState="Solo" 
                             pacCheck="<%=CreateUrlCommand.PAC_CREATE_PAGE%>">

            <wps:urlParam name="<%= SharedParamConstants.WPS_ADMIN_NAVIGATION_INIT %>" 
                          value="init" />

            <wps:urlParam name="<%= SharedParamConstants.ORIGIN_CONTENT_NODE %>" 
                          value="<%= wpsContentNodeID %>" />

            <wps:urlParam name="<%= SharedParamConstants.WORKING_CONTENT_NODE%>" 
                          value="<%= wpsContentNodeID %>"/>

            <wps:urlParam name="<%= SharedParamConstants.PROPERTIES_ACTION_TYPE %>" 
                          value="<%= SharedParamConstants.PROPERTIES_ACTION_TYPE_QUICK_CREATE %>" />

            <wps:urlParam name="<%= SharedParamConstants.PROPERTIES_CONTENT_NODE_TYPE %>" 
                          value="<%= SharedParamConstants.PROPERTIES_CONTENT_NODE_TYPE_COMPOSITION %>" />

            <wps:urlParam name="<%= SharedParamConstants.WPS_ADMIN_NAVIGATION_PUSH %>" 
                          value="push" />

            <td class="wpsLinkBar" valign="middle" align="<%=bidiAlignRight%>" nowrap>
  
              <a href="<% wpsURL.write(out); %>" class="wpsLinkBarLink">

                <wps:text key="link.createpage" 
                          bundle="nls.engine"/>

              </a>

            </td>

          </wps:urlGeneration>
      </wps-internal:adminlinkinfo>


      <%-- Edit page --%>
      <wps-internal:adminlinkinfo name="<%=AdminUniqueNamesMappingService.CONTENT_LAYOUT%>">

      <%
        if (((ContentNodeType.COMPOSITION).toString()).equals(wpsContentNodeTypeString)) 
        {
      %>
          <wps:urlGeneration contentNode="<%=wpsContentNode%>"
                             portletWindowState="Normal"
                             pacCheck="<%=CreateUrlCommand.PAC_EDIT_LAYOUT%>">

            <wps:urlParam name="<%= SharedParamConstants.WPS_ADMIN_NAVIGATION_INIT %>" 
                          value="init" />

            <wps:urlParam name="<%= SharedParamConstants.WORKING_CONTENT_NODE%>" 
                          value="<%= wpsContentNodeID %>"/>

            <wps:urlParam name="<%= SharedParamConstants.ORIGIN_CONTENT_NODE %>" 
                          value="<%= wpsContentNodeID %>" />

            <wps:urlParam name="<%= SharedParamConstants.WORKING_NAVIGATION_NODE %>" 
                          value="<%= wpsNavigationNodeID %>" />

            <wps:urlParam name="<%= SharedParamConstants.WPS_ADMIN_NAVIGATION_PUSH %>" 
                          value="push" />

            <td class="wpsLinkBar" valign="middle" align="<%=bidiAlignRight%>" nowrap>

              <a href="<% wpsURL.write(out); %>" class="wpsLinkBarLink">
                <wps:text key="link.editlayout" bundle="nls.engine"/>
              </a>

            </td>

          </wps:urlGeneration>

        <%
          }
        %>

      </wps-internal:adminlinkinfo>


      <wps-internal:adminlinkinfo name="<%=AdminUniqueNamesMappingService.PROPERTIES_PORTLET%>">
        <%
          if (((ContentNodeType.LABEL).toString()).equals(wpsContentNodeTypeString)) {
        %>

        <wps:urlGeneration contentNode="<%=wpsContentNode%>"
                          compositionNode='<%= wpsCompositionNode %>'
                          portletWindowState="Solo"
                   pacCheck="<%=CreateUrlCommand.PAC_EDIT_LAYOUT%>">
    
          <wps:urlParam name="<%= SharedParamConstants.WPS_ADMIN_NAVIGATION_INIT %>" 
                        value="init" />

          <wps:urlParam name="<%= SharedParamConstants.ORIGIN_CONTENT_NODE %>" 
                        value="<%= wpsContentNodeID %>" />

          <wps:urlParam name="<%= SharedParamConstants.WORKING_CONTENT_NODE%>" 
                        value="<%= wpsContentNodeID %>"/>

          <wps:urlParam name="<%= SharedParamConstants.PROPERTIES_ACTION_TYPE %>" 
                        value="<%= SharedParamConstants.PROPERTIES_ACTION_TYPE_EDIT %>" />

          <wps:urlParam name="<%= SharedParamConstants.PROPERTIES_CONTENT_NODE_TYPE %>" 
                        value="<%= SharedParamConstants.PROPERTIES_CONTENT_NODE_TYPE_LABEL %>" />

          <wps:urlParam name="<%= SharedParamConstants.WPS_ADMIN_NAVIGATION_PUSH %>" 
                        value="push" />
    
          <td class="wpsLinkBar" valign="middle" align="<%=bidiAlignRight%>" nowrap>
            <a href="<% wpsURL.write(out); %>" class="wpsLinkBarLink">
              <wps:text key="link.editlayout" bundle="nls.engine"/>
            </a>
          </td>
    
        </wps:urlGeneration>

        <%
        }
        %>

      </wps-internal:adminlinkinfo>
    
    
      <%-- Assign permissions --%>
      <wps-internal:adminlinkinfo name="<%=AdminUniqueNamesMappingService.ASSIGN_ROLES%>">
          <wps:urlGeneration contentNode="<%=wpsContentNode%>"
                    compositionNode='<%= wpsCompositionNode %>'
                    portletWindowState="Solo" pacCheck="<%=CreateUrlCommand.PAC_ASSIGN_ROLES%>">
    
            <wps:urlParam name="<%= SharedParamConstants.WPS_ADMIN_NAVIGATION_INIT %>" 
                          value="init" />
            <wps:urlParam name="<%= SharedParamConstants.WORKING_CONTENT_NODE%>" 
                          value="<%= wpsContentNodeID %>"/>
            <wps:urlParam name="<%= SharedParamConstants.ORIGIN_CONTENT_NODE %>" 
                          value="<%= wpsContentNodeID %>" />
            <wps:urlParam name="<%= SharedParamConstants.WPS_ADMIN_NAVIGATION_PUSH %>" 
                          value="push" />
    
            <td class="wpsLinkBar" valign="middle" align="<%=bidiAlignRight%>" nowrap>
              <a href="<% wpsURL.write(out); %>" class="wpsLinkBarLink">
                <wps:text key="link.assign.permissions" bundle="nls.engine"/>
              </a>
            </td>
    
          </wps:urlGeneration>
        </wps-internal:adminlinkinfo>



            <%-- search bar --%>
            <%@ include file="./SearchBarInclude.jsp" %>


        </wps:if>

  </tr>
</table>


 

IBM is a trademark of the IBM Corporation in the United States, other countries, or both.