I like the idea for edit. I am not sure I understand the purpose of logging
in for being able to maximize ...


----- Original Message -----
From: "Mike Mondragon" <[EMAIL PROTECTED]>
To: "JetSpeed" <[EMAIL PROTECTED]>
Sent: Wednesday, July 19, 2000 02:06 PM
Subject: edit button feature...


> 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]
>
>



--
--------------------------------------------------------------
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