Re: Porttlet action

2003-07-22 Thread luca . forni

Hi all,
I have an entry like this in security.xreg:

   

user+V and Admin+C
user can view and Admin have full access.


http://www.w3.org/2001/XMLSchema-instance";
xsi:type="java:org.apache.jetspeed.om.registry.base.BaseSecurityAllow"/>


http://www.w3.org/2001/XMLSchema-instance";
xsi:type="java:org.apache.jetspeed.om.registry.base.BaseSecurityAllow"/>


http://www.w3.org/2001/XMLSchema-instance";
xsi:type="java:org.apache.jetspeed.om.registry.base.BaseSecurityAllow"/>


http://www.w3.org/2001/XMLSchema-instance";
xsi:type="java:org.apache.jetspeed.om.registry.base.BaseSecurityAllow"/>


http://www.w3.org/2001/XMLSchema-instance";
xsi:type="java:org.apache.jetspeed.om.registry.base.BaseSecurityAllow"/>



Remember to update your portlet entry with :
 

Bye

Luca Forni



   
  
Raffaele Ragni 
  
   
[EMAIL PROTECTED]>  cc:
  
Subject: Re: Porttlet action   
  
22/07/2003 15.00   
  
Please respond to  
  
"Jetspeed Users
  
List"  
  
   
  
   
  




Il mar, 2003-07-22 alle 13:51, ihepda ha scritto:
> Ok,
> but how can I view the printable action?
>
> thank's for the response
>
> Claudio

Other than setting the print permission with all the others i don't
know...



> -- Initial Header ---
>
> >From  : Raffaele Ragni
> To  : Jetspeed Users List
> Cc  :
> Date  : 22 Jul 2003 11:31:11 +0200
> Subject : Re: Porttlet action
>
> > Il mar, 2003-07-22 alle 08:48, ihepda ha scritto:
> > > Hi,
> > > I don't understand how can I modify the portlet action (maximize,
minimize, close, ecc...) permissions.
> > >
> > > I've an user "perelli" in the role "tecno-admin". I've modified the
role permission disabling the close and info but notting.
> > >
> > > I've inserted a new security "tecno" with enabled all action except
the close and the info but the print isn't viewed.
> > >
> > > At what is used the role permission?
> > >
> > > There is a document that explain this? (I've read the tutorial yet).
> > >
> > > Thank's
> > >
> > >
> > > -
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail:
[EMAIL PROTECTED]
> > >
> > >
> >
> > Those permissions (in the database) aren't used as far as i know.
> > You can define a new 'security' type on security.xreg, and then use
that
> > one when modifying psml (if i remember right only admin can set that)
> > Or just modifying the default one. It did work for me..
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>



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






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



Re: erratic performance

2003-02-27 Thread luca . forni

I solved the problem removing portlets that use web-service (For example
StockQuotes)
They make all the system waiting for their data.

 Luca Forni



   
  
Werner 
  
Bredenkamp   To: [EMAIL PROTECTED] 
   
<[EMAIL PROTECTED]   cc:   
  
np.co.za>Subject: erratic performance  
  
   
  
27/02/2003 
  
10.25  
  
Please respond 
  
to "Jetspeed   
  
Users List"
  
   
  
   
  




hi

I have just deployed the Jetspeed 1.4b3 .war on Tomcat 4.1.18. There seems
to
be something horribly wrong somewhere since the performance is terrible and

erratic. At times the response is fine (sub 2 seconds) but at other time it

deteriorates to the point where loading jetspeed/index.jsp takes more than
3
minutes. I am running it on Red Hat 8 and top reports that the Java VM is
using only 0.3% of the available CPU time.

I have tried switching the database to MySQL and have modified the
configuration as was suggested in an earlier post on the list. None of this

has helped.

any suggestions?

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






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



Re: R: jsp portlet and Maximize action

2003-02-27 Thread luca . forni

I tried your solution too, but also this doesn't work. :-(

With Jetspeed 1.4b3 i used a redirect (that doesn't work with 1.4b4-dev)
This method is called in doAction() :

 public static void changeView(
  String portletId,
  RunData rundata,
  int modeView) {

  try {
   JetspeedLink link =
JetspeedLinkFactory.getInstance(rundata);
   DynamicURI duri = new DynamicURI(rundata);

   switch (modeView) {
case MAXIMIZE :
 duri = link.getAction(MAXIMIZE_ACTION, portletId);
 break;

case NORMAL :
 duri = link.getAction(RESTORE_ACTION, portletId);
 break;

case PRINT :
 duri = link.getAction(PRINT_ACTION, portletId);
 break;
   }

   JetspeedLinkFactory.putInstance(link);
   rundata.setRedirectURI(duri.toString());
  } catch (TurbineException te) {
   Log.error(te);
  }
 }

Where is the mistake? Why it doesn't work with 1.4b4-dev?
Do you have any idea to do this better?

Thanx.
Luca Forni



I think you can just add the variable "js_peid" with the peid of the
portlet
to be maximized to the users temp data.  (It might be js-peid, it's been a
while since I saw it.)

-- Michael

On 2/26/03 11:03 AM, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote:

>
>
> I tried your solution but it doesn't work. :-(
> Jetspeed reset that value building the page (setMode() method is called
> with parameter "default").
> Thanx anyway
>
> Luca Forni
>
>
>
>
>   "Raffaele
>   Ragni"   To: "'Jetspeed Users List'"
> <[EMAIL PROTECTED]>
>  [EMAIL PROTECTED]>   Subject: R: jsp portlet and
> Maximize action
>
>   26/02/2003
>   18.28
>   Please respond
>   to "Jetspeed
>   Users List"
>
>
>
>
>
>
> Try with ((JetspeedRunData)rundata).setMode() ?
>
> -Messaggio originale-
> Da: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> Inviato: martedì 25 febbraio 2003 11.32
> A: Jetspeed Users List
> Oggetto: jsp portlet and Maximize action
>
> Hi all!!
>
> I need to maximize portlet when its doUpdate() action is called.
>
> I have no idea to solve this problem.
> Please help me!!!
>
> Thanx
> Luca Forni
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


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






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



Re: R: jsp portlet and Maximize action

2003-02-26 Thread luca . forni


I tried your solution but it doesn't work. :-(
Jetspeed reset that value building the page (setMode() method is called
with parameter "default").
Thanx anyway

Luca Forni



   
  
"Raffaele  
  
Ragni"   To: "'Jetspeed Users List'" <[EMAIL 
PROTECTED]>  
   Subject: R: jsp portlet and 
Maximize action 
   
  
26/02/2003 
  
18.28  
  
Please respond 
  
to "Jetspeed   
  
Users List"
  
   
  
   
  




Try with ((JetspeedRunData)rundata).setMode() ?

-Messaggio originale-
Da: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Inviato: martedì 25 febbraio 2003 11.32
A: Jetspeed Users List
Oggetto: jsp portlet and Maximize action

Hi all!!

I need to maximize portlet when its doUpdate() action is called.

I have no idea to solve this problem.
Please help me!!!

Thanx
Luca Forni


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



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






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



jsp portlet and Maximize action

2003-02-25 Thread luca . forni
Hi all!!

I need to maximize portlet when its doUpdate() action is called.

I have no idea to solve this problem.
Please help me!!!

Thanx
Luca Forni


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



Jsp portlet action and maximize action

2003-02-21 Thread luca . forni
Hi all!
I have a problem with jetspeed 1.4-b4 :
 I have to set maximize to jsp portlet during a doAction().

I used this solution that worked with 1.4-b3:

// CsAction.java
public void doUpdate( RunData rundata,Portlet portlet ) {
 String portletId = ((JetspeedRunData)rundata).getJs_peid();
 PortletUtil.changeView(portletId, rundata, PortletUtil.MAXIMIZE);
}


// PortletUtil.java
 public static void changeView(
  String portletId,
  RunData rundata,
  int modeView) {

  try {
   JetspeedLink link =
JetspeedLinkFactory.getInstance(rundata);
   DynamicURI duri = new DynamicURI(rundata);

   switch (modeView) {
case MAXIMIZE :
 duri = link.getAction(MAXIMIZE_ACTION, portletId);
 break;

case NORMAL :
 duri = link.getAction(RESTORE_ACTION, portletId);
 break;

case PRINT :
 duri = link.getAction(PRINT_ACTION, portletId);
 break;
   }

   JetspeedLinkFactory.putInstance(link);
   rundata.setRedirectURI(duri.toString());

  } catch (TurbineException te) {
   Log.error(te);
  }
 }

// form html

"/>





Any idea?

Thanx to all.

Luca Forni.


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




SSL question

2003-02-19 Thread luca . forni
Hi all!
I would like to know more on ssl support in jetspeed.
What does it means :
# ---
#
#  S E C U R E  S O C K E T S  L A Y E R
#
# ---
# Whether the web server is able to use SSL.  Links in Turbine can
# check this property to determine if SSL can be used.
#
# Default: true
# ---

use.ssl=true

in TurbineResource.properties.

What can i have to do if i want to access portal homepage using http and
user homepage using https?

Thanx to all!


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




RE: Remove Maximize, minimise etc. buttons from portlet

2003-02-06 Thread luca . forni

Hi all!!
Try this for print button:





   
Moabi Nyokong  
<[EMAIL PROTECTED]>   
 cc:   
22/01/2003   Subject: RE: Remove Maximize, minimise
12.50 etc. buttons from portlet
Please respond 
to "Jetspeed   
Users List"
   
   




Thanks! It works for the normal buttonsAny luck with the info and print
buttons?

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: 22 January 2003 12:18
To: [EMAIL PROTECTED]
Subject: RE: Remove Maximize, minimise etc. buttons from portlet


I've had some success by creating a new security reference in security.xreg
and assigning the user to the appropriate role and enabling the security
reference over the portlet or pane.



View Minimize and Maximize
Access type allows view, minimize, and
maximize.


http://www.w3.org/2001/XMLSchema-instance";
xsi:type="java:org.apache.jetspeed.om.registry.base.BaseSecurityAllow"/>


http://www.w3.org/2001/XMLSchema-instance";
xsi:type="java:org.apache.jetspeed.om.registry.base.BaseSecurityAllow"/>


http://www.w3.org/2001/XMLSchema-instance";
xsi:type="java:org.apache.jetspeed.om.registry.base.BaseSecurityAllow"/>



Regards,

Brad

Moabi Nyokong <[EMAIL PROTECTED]> wrote:

>Hi All,
>I've searched through the mailing list for clues on how to do this, but
>every strategy (Permisssions, ,  etc.) doesn't
>seem to work on JS 1.4-b3. The only thing I am able to do completely
>remove any buttons by modifying :
>
>services.JetspeedSecurity.action.allusers.disable=false
>
>To "true" in JetspeedSecurity.prop
>
>
>Has anybody been able to do this?
>
>--
>To unsubscribe, e-mail:
>
>For additional commands, e-mail:

>
>

__
The NEW Netscape 7.0 browser is now available. Upgrade now!
http://channels.netscape.com/ns/browsers/download.jsp

Get your own FREE, personal Netscape Mail account today at
http://webmail.netscape.com/

--
To unsubscribe, e-mail:

For additional commands, e-mail:


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






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




Re: Memory and JetSpeed

2003-01-30 Thread luca . forni

Hi !!
I'm developing a portal system based on jetspeed 1.4b3 on a similar system
and i haven't this problem, it works great!
How much psml files do you have?




   
 
"Weßling, Achim"   
 
   
gt-net.de> cc: 
 
   Subject: Memory and JetSpeed
 
30/01/2003 18.15   
 
Please respond 
 
to "Jetspeed   
 
Users List"
 
   
 
   
 




Hallo,

I just setup Jetspeed 1.4B3 on a win2000 system with 2 Pentium III/700 and
1GB Memory. I use JDK 1.4.1 with Tomcat 4.1.18. The responsetime when I for
example open the PSML Browser Portlet is about 30 seconds! Both cpu are
working at about 50% for this time! Whats wrong? Did I have to give the
tomcat some extra Memory when starting it? Did others also got those
experiences?
Thanks!

Mit freundlichem Gruß

Achim Weßling


**
INFOKOM Gütersloh
Fachbereich Technische Anwendungen / Zentrale Anwendungen
Tel.: 05241/85-2926
[EMAIL PROTECTED]
http://www2.infokom-gt.de/produkte


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






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




How can I get the Locale (language) in a JSP portlet ?

2003-01-28 Thread luca . forni
Hi All !

I want to have a JSP portlet to get the locale (language). What's the way
to do this ?

In JspPortlet --> During debug, i noticed that Rundata.locale == null!!!

I'm using velocity as layout manager and it uses the correct language.

Please... Help me!!
Thanx.


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Problem with second db [AS400]

2003-01-10 Thread luca . forni

I found the problem!!!
If you have to connect to AS400 using Torque, you have to configure it in
this way:

torque.database.name.adapter=as400
torque.dsfactory.icaro400.factory=org.apache.torque.dsfactory.TorqueDataSourceFactory

torque.dsfactory.icaro400.pool.defaultMaxConnections=10
torque.dsfactory.icaro400.pool.maxExpiryTime=3600
torque.dsfactory.icaro400.pool.connectionWaitTimeout=10
torque.dsfactory.icaro400.connection.driver =
com.ibm.as400.access.AS400JDBCDriver
torque.dsfactory.icaro400.connection.url = jdbc:as400://system/collection
torque.dsfactory.icaro400.connection.user = user
torque.dsfactory.icaro400.connection.password = password

(Do not use adapter name "db2400" as it is said on torque doc!)

Luca Forni


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




Problem with second db

2003-01-09 Thread luca . forni
Hi all!

I took a look at all the email about "using secondary db".
if i use only Hypersonic, it's ok, but if i add a second db, this is what i
see in the home page:

Horrible Exception: java.lang.Error: Error in
BasePeer.initTableSchema(TURBINE_USER): There was no DataSourceFactory
configured for the connection default
   at
org.apache.jetspeed.om.security.turbine.BaseTurbineUserPeer.initClass(BaseTurbineUserPeer.java:169)

   at
org.apache.jetspeed.om.security.turbine.BaseTurbineUserPeer.(BaseTurbineUserPeer.java:143)

...

My configuration is similar to default with a second db in
Torque.properties.

torque.database.default=default
torque.database.default.adapter=hypersonic
torque.dsfactory.default.connection.driver = org.hsqldb.jdbcDriver
torque.dsfactory.default.connection.url = jdbc:hsqldb:
${webappRoot}/WEB-INF/db/jetspeed
torque.dsfactory.default.connection.user = sa
torque.dsfactory.default.connection.password =
torque.dsfactory.default.factory=org.apache.torque.dsfactory.TorqueDataSourceFactory
torque.dsfactory.default.pool.defaultMaxConnections=10
torque.dsfactory.default.pool.maxExpiryTime=3600
torque.dsfactory.default.pool.connectionWaitTimeout=10

torque.database.icaro400.adapter=db2400
torque.dsfactory.icaro400.factory=org.apache.torque.dsfactory.TorqueDataSourceFactory
torque.dsfactory.icaro400.pool.defaultMaxConnections=10
torque.dsfactory.icaro400.pool.maxExpiryTime=3600
torque.dsfactory.icaro400.pool.connectionWaitTimeout=10
torque.dsfactory.icaro400.connection.driver =
com.ibm.as400.access.AS400JDBCDriver
torque.dsfactory.icaro400.connection.url = jdbc:as400://system/collection
torque.dsfactory.icaro400.connection.user = user
torque.dsfactory.icaro400.connection.password = password

It seems to lost the configuration for default db.

Thanx.

Luca Forni


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