taylor      2004/04/30 16:07:32

  Modified:    src/java/org/apache/jetspeed/portal/controls
                        VelocityPortletSetControl.java
  Log:
  Allow for hidden top level menus (tabs).

  New feature provides for a tab and its submenus to be hidden from normal usage, but 
be addressable via a $jslink assuming the user has sufficient access.

  

  http://nagoya.apache.org/jira/browse/JS1-465

  

  PR:

  Obtained from:

  Submitted by: 

  Reviewed by:  

  CVS: ----------------------------------------------------------------------

  CVS: PR:

  CVS:   If this change addresses a PR in the problem report tracking

  CVS:   database, then enter the PR number(s) here.

  CVS: Obtained from:

  CVS:   If this change has been taken from another system, such as NCSA,

  CVS:   then name the system in this line, otherwise delete it.

  CVS: Submitted by:

  CVS:   If this code has been contributed to Apache by someone else; i.e.,

  CVS:   they sent us a patch or a new module, then include their name/email

  CVS:   address here. If this is your work then delete this line.

  CVS: Reviewed by:

  CVS:   If we are doing pre-commit code reviews and someone else has

  CVS:   reviewed your changes, include their name(s) here.

  CVS:   If you have not had it reviewed then delete this line.

  
  Revision  Changes    Path
  1.16      +9 -2      
jakarta-jetspeed/src/java/org/apache/jetspeed/portal/controls/VelocityPortletSetControl.java
  
  Index: VelocityPortletSetControl.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-jetspeed/src/java/org/apache/jetspeed/portal/controls/VelocityPortletSetControl.java,v
  retrieving revision 1.15
  retrieving revision 1.16
  diff -u -r1.15 -r1.16
  --- VelocityPortletSetControl.java    23 Feb 2004 03:25:35 -0000      1.15
  +++ VelocityPortletSetControl.java    30 Apr 2004 23:07:32 -0000      1.16
  @@ -22,6 +22,7 @@
   // Jetspeed stuff
   import org.apache.jetspeed.om.security.JetspeedUser;
   import org.apache.jetspeed.portal.Portlet;
  +import org.apache.jetspeed.portal.PortletConfig;
   import org.apache.jetspeed.portal.PortletSet;
   import org.apache.jetspeed.portal.PortletState;
   import org.apache.jetspeed.portal.PanedPortletController;
  @@ -130,7 +131,13 @@
                   continue;
               }            
   
  -            String mstate = p.getAttribute("_menustate", "open", rundata);
  +            String mstate = p.getAttribute("_menustate", null, rundata);
  +            PortletConfig pc= p.getPortletConfig();
  +            if (mstate == null && pc != null)
  +            {
  +                mstate = pc.getInitParameter("_menustate", "open");
  +            }
  +            
               if (mstate.equals("closed"))
               {
                   continue;
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to