I took Kevin's suggestion and created my own portlet that over rides
getAllowEdit() and getAllowMaximize()

I enable each of these edit and maximize features if the User is logged
in.

I suggest the same should be done with the default Jetspeed Portlets
(like FileWatchPortlet, etc.).  This makes the user interface more
understandable.

example code:

    public boolean getAllowEdit() {
          User user = this.getPortletConfig().getRunData().getUser();
          boolean logedin = ( user == null ) ? false :
user.hasLoggedIn();
          return logedin;
    }

    public boolean getAllowMaximize() {
          User user = this.getPortletConfig().getRunData().getUser();
          boolean logedin = ( user == null ) ? false :
user.hasLoggedIn();
          return logedin;
    }


--
--------------------------------------------------------------
Please read the FAQ! <http://java.apache.org/faq/>
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Archives and Other:  <http://java.apache.org/main/mail.html>
Problems?:           [EMAIL PROTECTED]

Reply via email to