Re: Has anyone ever gotten Jetspeed-2 to compile and actuallly run?

2004-07-16 Thread GM
Out of interest, how often do you clear out your jetspeed 2 and checkout 
head into a new directory? What about deleting your maven repo? I ask 
because it seems to me that new people can't compile, but those who have 
been around for a bit can. Which points in an obvious direction.

Cheers,
Gerard.
Scott T. Weaver wrote:
Everyday ;)  Using it in a project as we speak.
[EMAIL PROTECTED] wrote:
We are wondering if we are just a bunch of clueless Java Portlet 
wanna-be's.  Has anyone actually gotten Jetspeed-2 to compile from CVS 
and actually run?

--Brad Simonin
-Original Message-
From:Roger Ruttimann [mailto:[EMAIL PROTECTED]
Sent:Thu 7/15/2004 12:26 PM
To:Jetspeed Developers List
Cc:Simonin, Bradley K. (Brad)
Subject:Re: Is there a Jetspeed-2 in binary format I can download?
No. It's still in alpha phase.
CVS head and compile is the only way to get J2
Roger
[EMAIL PROTECTED] wrote:
 

We would like to find a binary installation instead of compiling from 
source.
Is there a binary format available for Jetspeed-2?

Thanks in advance,
--Brad Simonin
-Original Message-
From:Simonin, Bradley K. (Brad)
Sent:Thu 7/15/2004 7:40 AM
To:[EMAIL PROTECTED]
Cc:   
Subject:Jetspeed-2 source failing to compile from CVS:  Can 
anyone help?

Scott.  We are still getting the following error.  We are using 
servlet jar 2.3.

We have the jar in the following directory structure:
~/.maven/repository/servletapi/jars with the jar being:
servletapi-2.3.jar
and we are still getting the following error:
java:compile:
  [echo] Compiling to 
/home/apache/jakarta-jetspeed-2/jetspeed-api/target/classes
  [javac] Compiling 103 source files to 
/home/apache/jakarta-jetspeed-2/jetspeed-api/target/classes
  [javac] 
/home/apache/jakarta-jetspeed-2/jetspeed-api/src/java/org/apache/jetspeed/mockobjects/MockHttpServletRequest.java:26: 
org.apache.jetspeed.mockobjects.MockHttpServletRequest is not 
abstract and does not override abstract method getLocalPort() in 
javax.servlet.ServletRequest
  [javac] public class MockHttpServletRequest implements 
HttpServletRequest
  [javac]^
  [javac] 1 error

BUILD FAILED
File.. /home/apache/jakarta-jetspeed-2/maven.xml
Element... maven:reactor
Line.. 158
Column 40
Unable to obtain goal [java:compile] -- 
/root/.maven/cache/maven-java-plugin-1.4/plugin.jelly:53:48: 
 Compile failed; see the compiler error output for details.
Total time: 13 minutes 17 seconds
Finished at: Wed Jul 14 15:06:24 MDT 2004

Can you help?
--Brad
-Original Message-
From:Scott T. Weaver 
[mailto:[EMAIL PROTECTED]
Sent:Tue 7/13/2004 2:45 PM
To:Jetspeed Developers List
Cc:   
Subject:Re: Jetspeed-2 source failing to compile from CVS:  Can 
anyone help?
Hi Brad,

It appears that Jetspeed is being compiled against an incompatible 
version of the servlet api.  Make sure the jar in your maven repo is 
actually version 2.3 of the servlet api.  This requiremtn only 
applies durning compile time as J2 will run fine under servlet api 
version 2.3 and up.

[EMAIL PROTECTED] wrote:

  

Hello.  We are trying to compile and install Jetspeed-2 for our future
portal system.  We are having problems compiling from the source from
CVS.  Can you look at our log and tell me if you see what we are doing
wrong?
We are using the following in a Slackware Linux environment:
Ant  v1.6.1
Maven v1.0
Tomcat v5.0.25
Java 1.4.2_04
The error part of the log is as follows:
java:prepare-filesystem:
 [mkdir] Created dir:
/home/apache/jakarta-jetspeed-2/jetspeed-api/target/classes
java:compile:
 [echo] Compiling to
/home/apache/jakarta-jetspeed-2/jetspeed-api/target/classes
 [javac] Compiling 103 source files to
/home/apache/jakarta-jetspeed-2/jetspeed-api/target/classes
 [javac]
/home/apache/jakarta-jetspeed-2/jetspeed-api/src/java/org/apache/jetspee 

d/mockobjects/MockHttpServletRequest.java:26:
org.apache.jetspeed.mockobjects.MockHttpServletRequest is not abstract
and does not override abstract method getLocalPort() in
javax.servlet.ServletRequest
 [javac] public class MockHttpServletRequest implements
HttpServletRequest
 [javac]^
 [javac] 1 error
Total time: 2 minutes 26 seconds
Finished at: Tue Jul 13 12:02:12 MDT 2004
BUILD FAILED
File.. /home/apache/jakarta-jetspeed-2/maven.xml
Element... maven:reactor
Line.. 158
Column 40
Unable to obtain goal [java:compile] --
/root/.maven/cache/maven-java-plugin-1.4/plugin.jelly:53:48: 
 Compile failed; see the compiler error output for details.

Can anyone point us in the right direction?  Thank you in advance.
--Brad Simonin

THE FULL LOG IS AS FOLLOWS:
__  __
|  \/  |__ _Apache__ ___
| |\/| / _` \ V / -_) ' \  ~ intelligent projects ~
|_|  |_\__,_|\_/\___|_||_|  v. 1.0
Starting the reactor...
Our processing order:
Jetspeed-2 Component Manager
Jetspeed-2 RDBMS Components
Jetspeed-2 Common Portal Services
Jetspeed 2 Site
Java Portlet API
Jetspeed-2 Core API
Jetspeed-2 Portal Commons
Jetspeed 2 Maven Plugin
J

[jira] Created: (JS1-506) Plugin has spurious directories

2004-07-16 Thread jetspeed-dev
Message:

  A new issue has been created in JIRA.

-
View the issue:
  http://issues.apache.org/jira/browse/JS1-506

Here is an overview of the issue:
-
Key: JS1-506
Summary: Plugin has spurious directories
   Type: Bug

 Status: Unassigned
   Priority: Minor

Project: Jetspeed
 Components: 
 Plugin
   Versions:
 1.6-dev

   Assignee: 
   Reporter: Bob Fleischman

Created: Fri, 16 Jul 2004 4:16 PM
Updated: Fri, 16 Jul 2004 4:16 PM

Description:
Under 
jakarta-jetspeed/plugin/src/plugin-resources/default/template-resources/src/webapp/WEB-INF/
 there are directories 'template' and 'templates'.

Also, under 
jakarta-jetspeed/plugin/src/plugin-resources/default/template-resources/src/webapp/WEB-INF/templates/vm
 there are directories 'portlet' and 'portlets'.

For someone new to the plugin and to jetspeed this can be confusing. I assume that 
template is wrong, as is portlet.

can I submit a patch that involves the removal of a directories??


-
JIRA INFORMATION:
This message is automatically generated by JIRA.

If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa

If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


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



Re: my faces

2004-07-16 Thread David Le Strat
Are you saying that you have updated MyFaces to
support portlets?  I would love to see that.  I have
started to work on it myself, but time has been scarce
;(

I also know that Jason Novotny from Gridsphere is
interested in this as well.

David.
--- Massimiliano Dessì <[EMAIL PROTECTED]> wrote:
> I have spent a bit of time in a use of jsf (with
> Java
> Studio Creator) for
> a  rapid develop of JSF portlet (with SUN RI), an
> article about the work
> of this portlet are in progress (article available
> when are completed on
> jugsardegna.org).
> The function of the portlet it's very simple, i use
> the same examples of the
>
http://www.jugsardegna.org/vqwiki/jsp/Wiki?PortletJava2En
> for a better comprension, if you think that are
> interesting, i can
> modified or integrate the code with the version for
> jet1 and jet2 with myfaces.
> 
> Massimiliano Dessì
> 
> --- David Sean Taylor <[EMAIL PROTECTED]> ha
> scritto: > Has anyone had a look at MyFaces?
> > 
> > http://myfaces.org
> > 
> > I think we can gain a lot of time downstream by
> > building in JSF support 
> > and using these components in the admin and demo
> > portlets...
> > 
> > 
> >
>
-
> > To unsubscribe, e-mail:
> > [EMAIL PROTECTED]
> > For additional commands, e-mail:
> > [EMAIL PROTECTED]
> > 
> >  
> 
> 
>   
> 
>   
>   
>

> Yahoo! Companion - Scarica gratis la toolbar di
> Ricerca di Yahoo! 
> http://companion.yahoo.it
> 
>
-
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 
> 




__
Do you Yahoo!?
Vote for the stars of Yahoo!'s next ad campaign!
http://advision.webevents.yahoo.com/yahoo/votelifeengine/


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



maven failed

2004-07-16 Thread ..::luq::..
hi
I have tomcat 5.0.25 , maven 1.0 rc3, ant 1.6.1 and w2k..
I build the jetspeed2 from cvs and I get this:(this is the last lines)
java:jar-resources:
Copying 7 files to C:\JAKART~1\portal\target\classes
Copied 54 empty directories to C:\JAKART~1\portal\target\classes
test:prepare-filesystem:
[mkdir] Created dir: C:\JAKART~1\portal\target\test-classes
[mkdir] Created dir: C:\JAKART~1\portal\target\test-reports
test:test-resources:
Copying 7 files to C:\JAKART~1\portal\target\test-classes
Copied 86 empty directories to C:\JAKART~1\portal\target\test-classes
Copying 1 file to C:\JAKART~1\portal\target\test-classes
Copied 4 empty directories to C:\JAKART~1\portal\target\test-classes
test:compile:
[javac] Compiling 18 source files to 
C:\JAKART~1\portal\target\test-classes
[javac] 
C:\jakarta-jetspeed-2\portal\src\test\org\apache\jetspeed\PortalComp
onentAssemblyTestCase.java:24: warning: 
org.apache.commons.logging.impl.Log4jFac
tory in org.apache.commons.logging.impl has been deprecated
[javac] import org.apache.commons.logging.impl.Log4jFactory;
[javac]^
[javac] 
C:\jakarta-jetspeed-2\portal\src\test\org\apache\jetspeed\userinfo\T
estUserInfoManager.java:33: cannot resolve symbol
[javac] symbol  : class PropertyException
[javac] location: package impl
[javac] import org.apache.jetspeed.prefs.impl.PropertyException;
[javac]   ^
[javac] 
C:\jakarta-jetspeed-2\portal\src\test\org\apache\jetspeed\PortalComp
onentAssemblyTestCase.java:71: warning: 
org.apache.commons.logging.impl.Log4jFac
tory in org.apache.commons.logging.impl has been deprecated
[javac] 
System.getProperties().setProperty(LogFactory.class.getName(
), Log4jFactory.class.getName());
[javac]
   ^
[javac] 
C:\jakarta-jetspeed-2\portal\src\test\org\apache\jetspeed\userinfo\T
estUserInfoManager.java:214: cannot resolve symbol
[javac] symbol  : class PropertyException
[javac] location: class 
org.apache.jetspeed.userinfo.TestUserInfoManager
[javac] catch (PropertyException pex)
[javac]^
[javac] 2 errors
[javac] 2 warnings

BUILD FAILED
File.. C:\JAKART~1\maven.xml
Element... maven:reactor
Line.. 266
Column 40
Unable to obtain goal [war:init] -- C:\Documents and 
Settings\Administrator\.maven\plugins\maven-test-plugin-1.6.1\plugin.jelly:52:46: 
 Compile failed; see the compiler error output for details.
Total time: 9 minutes 46 seconds
Finished at: Sat Jul 17 00:37:42 CEST 2004

Have anybody any idea??
thx
..::luq::..
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


What Maven version is everone using?

2004-07-16 Thread brad.simonin
We are using Maven version 1.0.  Just curious as to what else everyone is using.

--Brad Simonin


-Original Message-
From:   Simonin, Bradley K. (Brad)
Sent:   Fri 7/16/2004 9:14 AM
To: Jetspeed Developers List; Jetspeed Developers List
Cc: 
Subject:RE: Jetspeed-2 source failing to compile from CVS:  Can anyone help?
Okay.  Let me ask you a very clueless question.  In which Maven directory is the 
Servlet 2.3 jar file supposed to go in.  If it sounds like we are feeling 
clueless then yes we are.  Just call us clueless portless confused Jetspeed portal 
wanna-be's. 

--Brad


-Original Message-
From:   Scott T. Weaver [mailto:[EMAIL PROTECTED]
Sent:   Thu 7/15/2004 8:07 AM
To: Jetspeed Developers List
Cc: 
Subject:Re: Jetspeed-2 source failing to compile from CVS:  Can anyone help?
Hi Brad,

I still think there is a problem with your version of the servlet jar.  
I say this because javax.servlet.ServletRequest interface in release 2.3 
does not have a getLocalPort() method which is the method that is 
causing the mock's compile to fail.

See: 
http://java.sun.com/products/servlet/2.3/javadoc/javax/servlet/ServletRequest.html


[EMAIL PROTECTED] wrote:

>Scott.  We are still getting the following error.  We are using servlet jar 2.3.
>
>We have the jar in the following directory structure:
>~/.maven/repository/servletapi/jars 
>with the jar being:
>servletapi-2.3.jar
>
>and we are still getting the following error:
>
>java:compile:
>[echo] Compiling to /home/apache/jakarta-jetspeed-2/jetspeed-api/target/classes
>[javac] Compiling 103 source files to 
> /home/apache/jakarta-jetspeed-2/jetspeed-api/target/classes
>[javac] 
> /home/apache/jakarta-jetspeed-2/jetspeed-api/src/java/org/apache/jetspeed/mockobjects/MockHttpServletRequest.java:26:
>  org.apache.jetspeed.mockobjects.MockHttpServletRequest is not abstract and does not 
> override abstract method getLocalPort() in javax.servlet.ServletRequest
>[javac] public class MockHttpServletRequest implements HttpServletRequest
>[javac]^
>[javac] 1 error
>
>BUILD FAILED
>File.. /home/apache/jakarta-jetspeed-2/maven.xml
>Element... maven:reactor
>Line.. 158
>Column 40
>Unable to obtain goal [java:compile] -- 
>/root/.maven/cache/maven-java-plugin-1.4/plugin.jelly:53:48:  Compile 
>failed; see the compiler error output for details.
>Total time: 13 minutes 17 seconds
>Finished at: Wed Jul 14 15:06:24 MDT 2004
>
>Can you help?
>
>
>--Brad
>
>-Original Message-
>From:  Scott T. Weaver [mailto:[EMAIL PROTECTED]
>Sent:  Tue 7/13/2004 2:45 PM
>To:Jetspeed Developers List
>Cc:
>Subject:   Re: Jetspeed-2 source failing to compile from CVS:  Can anyone help?
>Hi Brad,
>
>It appears that Jetspeed is being compiled against an incompatible 
>version of the servlet api.  Make sure the jar in your maven repo is 
>actually version 2.3 of the servlet api.  This requiremtn only applies 
>durning compile time as J2 will run fine under servlet api version 2.3 
>and up.
>
>[EMAIL PROTECTED] wrote:
>
>  
>
>>Hello.  We are trying to compile and install Jetspeed-2 for our future
>>portal system.  We are having problems compiling from the source from
>>CVS.  Can you look at our log and tell me if you see what we are doing
>>wrong?
>>
>>We are using the following in a Slackware Linux environment:
>>Ant  v1.6.1
>>Maven v1.0
>>Tomcat v5.0.25
>>Java 1.4.2_04
>>
>>The error part of the log is as follows:
>>
>>java:prepare-filesystem:
>>   [mkdir] Created dir:
>>/home/apache/jakarta-jetspeed-2/jetspeed-api/target/classes
>>
>>java:compile:
>>   [echo] Compiling to
>>/home/apache/jakarta-jetspeed-2/jetspeed-api/target/classes
>>   [javac] Compiling 103 source files to
>>/home/apache/jakarta-jetspeed-2/jetspeed-api/target/classes
>>   [javac]
>>/home/apache/jakarta-jetspeed-2/jetspeed-api/src/java/org/apache/jetspee
>>d/mockobjects/MockHttpServletRequest.java:26:
>>org.apache.jetspeed.mockobjects.MockHttpServletRequest is not abstract
>>and does not override abstract method getLocalPort() in
>>javax.servlet.ServletRequest
>>   [javac] public class MockHttpServletRequest implements
>>HttpServletRequest
>>   [javac]^
>>   [javac] 1 error
>>Total time: 2 minutes 26 seconds
>>Finished at: Tue Jul 13 12:02:12 MDT 2004
>>
>>BUILD FAILED
>>File.. /home/apache/jakarta-jetspeed-2/maven.xml
>>Element... maven:reactor
>>Line.. 158
>>Column 40
>>Unable to obtain goal [java:compile] --
>>/root/.maven/cache/maven-java-plugin-1.4/plugin.jelly:53:48: 
>> Compile failed; see the compiler error output for details.
>>
>>
>>Can anyone point us in the right direction?  Thank you in advance.
>>
>>--Brad Simonin
>>
>>
>>
>>THE FULL LOG IS AS FOLLOWS:
>>
>>__  __
>>|  \/  |__ _Apache__ ___
>>| |\/| / _` \ V / -_) ' \  ~ intelligent projects ~
>>|_|  |_\__,_|\_/\___|_||_|  v. 1.0
>>
>>Starting the reactor...
>>Our processing order:
>>Jetspeed-2 Component Manager
>>Jetspeed-2 RDBMS Component

Re: my faces

2004-07-16 Thread Massimiliano Dessì
I have spent a bit of time in a use of jsf (with Java
Studio Creator) for
a  rapid develop of JSF portlet (with SUN RI), an
article about the work
of this portlet are in progress (article available
when are completed on
jugsardegna.org).
The function of the portlet it's very simple, i use
the same examples of the
http://www.jugsardegna.org/vqwiki/jsp/Wiki?PortletJava2En
for a better comprension, if you think that are
interesting, i can
modified or integrate the code with the version for
jet1 and jet2 with myfaces.

Massimiliano Dessì

--- David Sean Taylor <[EMAIL PROTECTED]> ha
scritto: > Has anyone had a look at MyFaces?
> 
> http://myfaces.org
> 
> I think we can gain a lot of time downstream by
> building in JSF support 
> and using these components in the admin and demo
> portlets...
> 
> 
>
-
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 
>  







Yahoo! Companion - Scarica gratis la toolbar di Ricerca di Yahoo! 
http://companion.yahoo.it

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



Re: [J2] moving Prefs and Security api interfaces to jetspeed-api

2004-07-16 Thread Scott T. Weaver
No problem.  I really didn't think that there would be an issue, it was 
more of "heads up" email anyway.  I figured either you or David Le Strat 
more specifically would no of any possible issues this would cause.

David Sean Taylor wrote:
On Jul 16, 2004, at 12:25 PM, Scott T. Weaver wrote:
Since I haven't heard anything, I am going to take it that no one has 
any objections and I will commit my refactorings.

Sorry Im with a client today and couldn't get into the office this 
morning to get internet access
I have a meeting and then a flight to catch

+1 on moving the interfaces into the api
--
David Sean Taylor
Bluesunrise Software
[EMAIL PROTECTED]
[office]   +01 707 773-4646
[mobile] +01 707 529 9194

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


--
**
*   Scott T. Weaver  *
* <[EMAIL PROTECTED]>*
*    *
* -- *
*   Apache Jetspeed Enterprise Portal*
* Apache Pluto Portlet Container *
**
* OpenEditPro, Website Content Mangement *
*    *
**
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: [J2] moving Prefs and Security api interfaces to jetspeed-api

2004-07-16 Thread David Sean Taylor
On Jul 16, 2004, at 12:25 PM, Scott T. Weaver wrote:
Since I haven't heard anything, I am going to take it that no one has 
any objections and I will commit my refactorings.

Sorry Im with a client today and couldn't get into the office this 
morning to get internet access
I have a meeting and then a flight to catch

+1 on moving the interfaces into the api
--
David Sean Taylor
Bluesunrise Software
[EMAIL PROTECTED]
[office]   +01 707 773-4646
[mobile] +01 707 529 9194

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


cvs commit: jakarta-jetspeed-2/components/security/src/java/org/apache/jetspeed/security/impl UserManagerImpl.java

2004-07-16 Thread weaver
weaver  2004/07/16 12:31:51

  Modified:components/security/src/java/org/apache/jetspeed/security/impl
UserManagerImpl.java
  Log:
  Get users no throws an UnsupportedOperationException
  
  Revision  ChangesPath
  1.7   +3 -3  
jakarta-jetspeed-2/components/security/src/java/org/apache/jetspeed/security/impl/UserManagerImpl.java
  
  Index: UserManagerImpl.java
  ===
  RCS file: 
/home/cvs/jakarta-jetspeed-2/components/security/src/java/org/apache/jetspeed/security/impl/UserManagerImpl.java,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- UserManagerImpl.java  16 Jun 2004 22:47:00 -  1.6
  +++ UserManagerImpl.java  16 Jul 2004 19:31:51 -  1.7
  @@ -231,8 +231,8 @@
*/
   public Iterator getUsers(String filter)
   {
  -// TODO Not Implemented
  -return null;
  +throw new UnsupportedOperationException("getUsers no implemented yet.");
  +   // return null;
   }
   
   /**
  
  
  

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



cvs commit: jakarta-jetspeed-2/jetspeed-api/src/java/org/apache/jetspeed/security/om JetspeedRolePrincipal.java JetspeedUserPrincipal.java JetspeedCredential.java package.html JetspeedGroupPrincipal.java JetspeedPrincipal.java JetspeedPermission.java

2004-07-16 Thread weaver
weaver  2004/07/16 12:31:24

  Added:   jetspeed-api/src/java/org/apache/jetspeed/security/om
JetspeedRolePrincipal.java
JetspeedUserPrincipal.java JetspeedCredential.java
package.html JetspeedGroupPrincipal.java
JetspeedPrincipal.java JetspeedPermission.java
  Removed: components/security/src/java/org/apache/jetspeed/security/om
JetspeedGroupPrincipal.java JetspeedPermission.java
JetspeedCredential.java JetspeedUserPrincipal.java
package.html JetspeedPrincipal.java
JetspeedRolePrincipal.java
  Log:
  security interfaces moved to jetspeed-api
  
  Revision  ChangesPath
  1.1  
jakarta-jetspeed-2/jetspeed-api/src/java/org/apache/jetspeed/security/om/JetspeedRolePrincipal.java
  
  Index: JetspeedRolePrincipal.java
  ===
  /* Copyright 2004 Apache Software Foundation
   *
   * Licensed under the Apache License, Version 2.0 (the "License");
   * you may not use this file except in compliance with the License.
   * You may obtain a copy of the License at
   *
   * http://www.apache.org/licenses/LICENSE-2.0
   *
   * Unless required by applicable law or agreed to in writing, software
   * distributed under the License is distributed on an "AS IS" BASIS,
   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
   * See the License for the specific language governing permissions and
   * limitations under the License.
   */
  package org.apache.jetspeed.security.om;
  
  import java.util.Collection;
  
  /**
   * Interface representing Jetspeed security role principal object model.
   * @author mailto:[EMAIL PROTECTED]">David Le Strat
   */
  public interface JetspeedRolePrincipal extends JetspeedPrincipal
  {
  /**
   * Getter for the user principals.
   * @return The user principals.
   */
  Collection getUserPrincipals();
  
  /**
   * Setter for the user principals.
   * @param userPrincipals The user principals.
   */
  void setUserPrincipals(Collection userPrincipals);
  
  /**
   * Getter for the group principals.
   * @return The group principals.
   */
  Collection getGroupPrincipals();
  
  /**
   * Setter for the group principals.
   * @param groupPrincipals The group principals.
   */
  void setGroupPrincipals(Collection groupPrincipals);
  }
  
  
  
  1.1  
jakarta-jetspeed-2/jetspeed-api/src/java/org/apache/jetspeed/security/om/JetspeedUserPrincipal.java
  
  Index: JetspeedUserPrincipal.java
  ===
  /* Copyright 2004 Apache Software Foundation
   *
   * Licensed under the Apache License, Version 2.0 (the "License");
   * you may not use this file except in compliance with the License.
   * You may obtain a copy of the License at
   *
   * http://www.apache.org/licenses/LICENSE-2.0
   *
   * Unless required by applicable law or agreed to in writing, software
   * distributed under the License is distributed on an "AS IS" BASIS,
   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
   * See the License for the specific language governing permissions and
   * limitations under the License.
   */
  package org.apache.jetspeed.security.om;
  
  import java.util.Collection;
  
  /**
   * Interface representing Jetspeed security user principal object model.
   * @author mailto:[EMAIL PROTECTED]">David Le Strat
   */
  public interface JetspeedUserPrincipal extends JetspeedPrincipal
  {
  /**
   * Getter for the security credentials.
   * @return The credentials.
   */
  Collection getCredentials();
  
  /**
   * Setter for the security credentials.
   * @param credentials The credentials.
   */
  void setCredentials(Collection credentials);
  
  /**
   * Getter for the role principals.
   * @return The role principals.
   */
  Collection getRolePrincipals();
  
  /**
   * Setter for the role principals.
   * @param rolePrincipals The role principals.
   */
  void setRolePrincipals(Collection rolePrincipals);
  
  /**
   * Getter for the group principals.
   * @return The group principals.
   */
  Collection getGroupPrincipals();
  
  /**
   * Setter for the group principals.
   * @param groupPrincipals The group principals.
   */
  void setGroupPrincipals(Collection groupPrincipals);
  }
  
  
  
  1.1  
jakarta-jetspeed-2/jetspeed-api/src/java/org/apache/jetspeed/security/om/JetspeedCredential.java
  
  Index: JetspeedCredential.java
  ===
  /* Copyright 2004 Apache Software Foundation
   *
   * Licensed under the A

cvs commit: jakarta-jetspeed-2/jetspeed-api/src/java/org/apache/jetspeed/security PermissionManager.java SecurityProvider.java UserManager.java RoleManager.java UserPrincipal.java User.java GroupManager.java GroupPrincipal.java BasePrincipal.java SecurityException.java package.html RolePrincipal.java Group.java Role.java

2004-07-16 Thread weaver
weaver  2004/07/16 12:31:05

  Added:   jetspeed-api/src/java/org/apache/jetspeed/security
PermissionManager.java SecurityProvider.java
UserManager.java RoleManager.java
UserPrincipal.java User.java GroupManager.java
GroupPrincipal.java BasePrincipal.java
SecurityException.java package.html
RolePrincipal.java Group.java Role.java
  Removed: components/security/src/java/org/apache/jetspeed/security
Role.java UserPrincipal.java GroupPrincipal.java
BasePrincipal.java SecurityException.java User.java
GroupManager.java package.html UserManager.java
SecurityProvider.java RolePrincipal.java
PermissionManager.java RoleManager.java Group.java
  Log:
  security interfaces moved to jetspeed-api
  
  Revision  ChangesPath
  1.1  
jakarta-jetspeed-2/jetspeed-api/src/java/org/apache/jetspeed/security/PermissionManager.java
  
  Index: PermissionManager.java
  ===
  /* Copyright 2004 Apache Software Foundation
   *
   * Licensed under the Apache License, Version 2.0 (the "License");
   * you may not use this file except in compliance with the License.
   * You may obtain a copy of the License at
   *
   * http://www.apache.org/licenses/LICENSE-2.0
   *
   * Unless required by applicable law or agreed to in writing, software
   * distributed under the License is distributed on an "AS IS" BASIS,
   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
   * See the License for the specific language governing permissions and
   * limitations under the License.
   */
  package org.apache.jetspeed.security;
  
  import java.security.Permission;
  import java.security.Permissions;
  import java.security.Principal;
  import java.util.Collection;
  
  /**
   * Describe the interface for managing [EMAIL PROTECTED] Permission} and 
permission
   * association to [EMAIL PROTECTED] Principal}.  Permissions are used to manage 
Principals
   * access entitlement on specified resources.
   * For instance:
   * 
   * grant principal o.a.j.security.UserPrincipal "theUserPrincipal"
   * {
   * permission o.a.j.security.PortletPermission "myportlet", 
"view,edit,minimize,maximize";
   * };
   * 
   * @author mailto:[EMAIL PROTECTED]">David Le Strat
   */
  public interface PermissionManager
  {
  
  /**
   * Gets the [EMAIL PROTECTED] Permissions} given a [EMAIL PROTECTED] 
Principal}.
   * @param principal The principal.
   * @return The permissions.
   */
  Permissions getPermissions(Principal principal);
  
  /**
   * Gets the [EMAIL PROTECTED] Permissions} given a collection
   * of [EMAIL PROTECTED] Principal}.
   * @param principals A collection of principal.
   * @return The permissions.
   */
  Permissions getPermissions(Collection principals);
  
  /**
   * Remove all instances of a given permission.
   * @param permission The permission to remove.
   * @throws Throws a security exception.
   */
  void removePermission(Permission permission) throws SecurityException;
  
  /**
   * Remove all permissions for a given principal.
   * @param principal The principal.
   * @throws Throws a security exception.
   */
  void removePermissions(Principal principal) throws SecurityException;
  
  /**
   * Grant a [EMAIL PROTECTED] Permission} to a given [EMAIL PROTECTED] 
Principal}. 
   * @param principal The principal.
   * @param permission The permission.
   * @throws Throws a security exception if the principal does not exist.
   */
  void grantPermission(Principal principal, Permission permission) throws 
SecurityException;
  
  /**
   * Revoke a [EMAIL PROTECTED] Permission} from a given [EMAIL PROTECTED] 
Principal}.
   * @param principal The principal.
   * @param permission The permission.
   * @throws Throws a security exception.
   */
  void revokePermission(Principal principal, Permission permission) throws 
SecurityException;
  
  }
  
  
  
  1.1  
jakarta-jetspeed-2/jetspeed-api/src/java/org/apache/jetspeed/security/SecurityProvider.java
  
  Index: SecurityProvider.java
  ===
  /* Copyright 2004 Apache Software Foundation
   *
   * Licensed under the Apache License, Version 2.0 (the "License");
   * you may not use this file except in compliance with the License.
   * You may obtain a copy of the License at
   *
   * http://www.apache.org/licenses/LICENSE-2.0
   *
   * Unless required by applicable law or agreed to in writing, software
   * distributed under the License is distributed on an "AS IS" BASIS,
   *

cvs commit: jakarta-jetspeed-2/jetspeed-api/src/java/org/apache/jetspeed/security/om - New directory

2004-07-16 Thread weaver
weaver  2004/07/16 12:31:03

  jakarta-jetspeed-2/jetspeed-api/src/java/org/apache/jetspeed/security/om - New 
directory

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



cvs commit: jakarta-jetspeed-2/jetspeed-api/src/java/org/apache/jetspeed/security - New directory

2004-07-16 Thread weaver
weaver  2004/07/16 12:31:03

  jakarta-jetspeed-2/jetspeed-api/src/java/org/apache/jetspeed/security - New directory

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



cvs commit: jakarta-jetspeed-2/jetspeed-api/src/java/org/apache/jetspeed/prefs/om package.html PropertyKey.java Node.java Property.java

2004-07-16 Thread weaver
weaver  2004/07/16 12:30:39

  Added:   jetspeed-api/src/java/org/apache/jetspeed/prefs/om
package.html PropertyKey.java Node.java
Property.java
  Removed: components/prefs/src/java/org/apache/jetspeed/prefs/om
PropertyKey.java package.html Node.java
Property.java
  Log:
  property and prefs interfaces moved to jetspeed-api
  
  Revision  ChangesPath
  1.1  
jakarta-jetspeed-2/jetspeed-api/src/java/org/apache/jetspeed/prefs/om/package.html
  
  Index: package.html
  ===
  
  
org.apache.jetspeed.om.usermgt
  
  
  
Interface used for the object model backing Jetspeed
java.util.prefs.Preferences. These objects
are used through OJB for persisting data.

  
  
  
  
  
  1.1  
jakarta-jetspeed-2/jetspeed-api/src/java/org/apache/jetspeed/prefs/om/PropertyKey.java
  
  Index: PropertyKey.java
  ===
  /* Copyright 2004 Apache Software Foundation
   *
   * Licensed under the Apache License, Version 2.0 (the "License");
   * you may not use this file except in compliance with the License.
   * You may obtain a copy of the License at
   *
   * http://www.apache.org/licenses/LICENSE-2.0
   *
   * Unless required by applicable law or agreed to in writing, software
   * distributed under the License is distributed on an "AS IS" BASIS,
   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
   * See the License for the specific language governing permissions and
   * limitations under the License.
   */
  package org.apache.jetspeed.prefs.om;
  
  import java.io.Serializable;
  import java.sql.Timestamp;
  
  /**
   * Interface representing a property key.
   *
   * @author mailto:[EMAIL PROTECTED]">David Le Strat
   */
  public interface PropertyKey extends Serializable, Cloneable
  {
  
  /**
   * Getter for the property key id.
   * @return The property key id.
   */
  long getPropertyKeyId();
  
  /**
   * Setter for the property key id.
   * @param propertyKeyId The property key id.
   */
  void setPropertyKeyId(long propertyKeyId);
  
  /**
   * Getter for the property key name.
   * @return The property key name.
   */
  String getPropertyKeyName();
  
  /**
   * Setter for the property key name.
   * @param propertyKeyName The property key name.
   */
  void setPropertyKeyName(String propertyKeyName);
  
  /**
   * Getter for the property key type.
   * 
   * 0=Boolean,
   * 1=Long,
   * 2=Double,
   * 3=String,
   * 4=Timestamp
   * 
   * @return The property key type.
   */
  int getPropertyKeyType();
  
  /**
   * Setter for the property key type.
   * 
   * 0=Boolean,
   * 1=Long,
   * 2=Double,
   * 3=String,
   * 4=Timestamp
   * 
   * @param propertyKeyType The property key type.
   */
  void setPropertyKeyType(int propertyKeyType);
  
  /**
   * Getter for creation date.
   * @return The creation date.
   */
  Timestamp getCreationDate();
  
  /**
   * Setter for the creation date.
   * @param creationDate The creation date.
   */
  void setCreationDate(Timestamp creationDate);
  
  /**
   * Getter for the modified date.
   * @return The modified date.
   */
  Timestamp getModifiedDate();
  
  /**
   * Setter for the modified date.
   * @param modifiedDate The modified date.
   */
  void setModifiedDate(Timestamp modifiedDate);
  
  }
  
  
  
  1.1  
jakarta-jetspeed-2/jetspeed-api/src/java/org/apache/jetspeed/prefs/om/Node.java
  
  Index: Node.java
  ===
  /* Copyright 2004 Apache Software Foundation
   *
   * Licensed under the Apache License, Version 2.0 (the "License");
   * you may not use this file except in compliance with the License.
   * You may obtain a copy of the License at
   *
   * http://www.apache.org/licenses/LICENSE-2.0
   *
   * Unless required by applicable law or agreed to in writing, software
   * distributed under the License is distributed on an "AS IS" BASIS,
   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
   * See the License for the specific language governing permissions and
   * limitations under the License.
   */
  package org.apache.jetspeed.prefs.om;
  
  import java.io.Serializable;
  import java.util.Collection;
  import java.sql.Timestamp;
  
  /**
   * Interface representing a [EMAIL PROTECTED] java.util.prefs.Preferences}
   * node.
   *
   * @author mailto:[EMAIL PROTECTED]">David Le Strat
   */
  public interface Node extends Serializable, Cloneab

cvs commit: jakarta-jetspeed-2/jetspeed-api/src/java/org/apache/jetspeed/prefs/om - New directory

2004-07-16 Thread weaver
weaver  2004/07/16 12:30:38

  jakarta-jetspeed-2/jetspeed-api/src/java/org/apache/jetspeed/prefs/om - New directory

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



cvs commit: jakarta-jetspeed-2/components/prefs/src/java/org/apache/jetspeed/prefs PreferencesProvider.java PropertyManager.java package.html

2004-07-16 Thread weaver
weaver  2004/07/16 12:30:14

  Added:   jetspeed-api/src/java/org/apache/jetspeed/prefs
PropertyManager.java package.html
PreferencesProvider.java
  Removed: components/prefs/src/java/org/apache/jetspeed/prefs
PreferencesProvider.java PropertyManager.java
package.html
  Log:
  property and prefs interfaces moved to jetspeed-api
  
  Revision  ChangesPath
  1.1  
jakarta-jetspeed-2/jetspeed-api/src/java/org/apache/jetspeed/prefs/PropertyManager.java
  
  Index: PropertyManager.java
  ===
  /* Copyright 2004 Apache Software Foundation
   *
   * Licensed under the Apache License, Version 2.0 (the "License");
   * you may not use this file except in compliance with the License.
   * You may obtain a copy of the License at
   *
   * http://www.apache.org/licenses/LICENSE-2.0
   *
   * Unless required by applicable law or agreed to in writing, software
   * distributed under the License is distributed on an "AS IS" BASIS,
   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
   * See the License for the specific language governing permissions and
   * limitations under the License.
   */
  package org.apache.jetspeed.prefs;
  
  import java.util.Collection;
  import java.util.Map;
  import java.util.prefs.Preferences;
  
  
  /**
   * Service used to manage property and property set definition.
   * A property set definition defines a property set and the possible
   * properties assigned to that set. All or a subset of the property
   * set definition properties can be assigned to a node.
   *
   * @author mailto:[EMAIL PROTECTED]">David Le Strat
   */
  public interface PropertyManager
  {
  
  /** The name of the service. */
  String SERVICE_NAME = "PropertyManager";
  
  /**
   * Add a set of property keys to a [EMAIL PROTECTED] Preferences} node.  Only
   * keys added to a node can be set on the [EMAIL PROTECTED] Preferences} 
node.
   * Property keys should be passed as a map of:
   * 
   *  PROPERTYKEY_NAME: The property key name of type
   *  java.lang.String.
   *  PROPERTYKEY_TYPE: The property key type of type
   *  java.lang.Short.
   * 
   * The Map of [PROPERTYKEY_NAME, PROPERTYKEY_TYPE] of properties to be 
   * added to the [EMAIL PROTECTED] Preferences} is passed to the method.
   * The property names associated to a node must be unique.
   * @param prefNode The [EMAIL PROTECTED] Preferences} node.
   * @param propertyKeys A map property key name / key type.
   * @throws PropertyException Thrown if any property in the
   *   set in already assigned to a property set
   *   definition.
   */
  void addPropertyKeys(Preferences prefNode, Map propertyKeysMap) throws 
PropertyException;
  
  /**
   * Returns the property keys available to a [EMAIL PROTECTED] Preferences} 
node whether
   * or node those keys have values assigned to them.
   * Property keys will be returned as a map of:
   * 
   *  PROPERTYKEY_NAME: The property key name of type
   *  java.lang.String.
   *  PROPERTYKEY_TYPE: The property key type of type
   *  java.lang.Short.
   * 
   * @param prefNode The [EMAIL PROTECTED] Preferences} node.
   * @return The map of property keys names / types.
   */
  Map getPropertyKeys(Preferences prefNode);
  
  /**
   * Remove the specified collection of property keys from the given 
preferences node.
   * @param prefNode The [EMAIL PROTECTED] Preferences} node.
   * @param propertyKeys A collection of property key names.
   * @throws PropertyException Throws if delete fails.
   */
  void removePropertyKeys(Preferences prefNode, Collection propertyKeys) throws 
PropertyException;
  
  /**
   * Update a property key.
   * @param oldPropertyKeyName The old property key name.
   * @param prefNode The [EMAIL PROTECTED] Preferences} node.
   * @param newPropertyKey The property key name / type map used to
   *   update the old property.
   * @throws PropertyException Throws if update fails.
   */
  void updatePropertyKey(String oldPropertyKeyName, Preferences prefNode, Map 
newPropertyKey)
  throws PropertyException;
  
  }
  
  
  
  1.1  
jakarta-jetspeed-2/jetspeed-api/src/java/org/apache/jetspeed/prefs/package.html
  
  Index: package.html
  ===
  
  
org.apache.jetspeed.om.usermgt
  
  
  
Interface for the services backing Jetspeed
java.util.prefs.Preferences.

  
  
  
  
  
  1.1  
jakarta-jetspeed-2/jetspeed-api/src/java/org/apache/jetspeed/prefs/Preferen

cvs commit: jakarta-jetspeed-2/components/prefs/src/java/org/apache/jetspeed/prefs/impl PreferencesImpl.java PropertyManagerImpl.java

2004-07-16 Thread weaver
weaver  2004/07/16 12:29:10

  Modified:components/prefs/src/test/org/apache/jetspeed/prefs
TestPropertyManager.java TestPreferences.java
   components/prefs/src/java/org/apache/jetspeed/prefs/impl
PreferencesImpl.java PropertyManagerImpl.java
  Log:
  changed due to PropertyException being moved to jetspeed-api
  
  Revision  ChangesPath
  1.17  +0 -1  
jakarta-jetspeed-2/components/prefs/src/test/org/apache/jetspeed/prefs/TestPropertyManager.java
  
  Index: TestPropertyManager.java
  ===
  RCS file: 
/home/cvs/jakarta-jetspeed-2/components/prefs/src/test/org/apache/jetspeed/prefs/TestPropertyManager.java,v
  retrieving revision 1.16
  retrieving revision 1.17
  diff -u -r1.16 -r1.17
  --- TestPropertyManager.java  18 Jun 2004 20:40:24 -  1.16
  +++ TestPropertyManager.java  16 Jul 2004 19:29:09 -  1.17
  @@ -24,7 +24,6 @@
   
   import 
org.apache.jetspeed.components.persistence.store.util.PersistenceSupportedTestCase;
   import org.apache.jetspeed.prefs.impl.PreferencesProviderImpl;
  -import org.apache.jetspeed.prefs.impl.PropertyException;
   import org.apache.jetspeed.prefs.impl.PropertyManagerImpl;
   import org.apache.jetspeed.prefs.om.Property;
   
  
  
  
  1.17  +0 -1  
jakarta-jetspeed-2/components/prefs/src/test/org/apache/jetspeed/prefs/TestPreferences.java
  
  Index: TestPreferences.java
  ===
  RCS file: 
/home/cvs/jakarta-jetspeed-2/components/prefs/src/test/org/apache/jetspeed/prefs/TestPreferences.java,v
  retrieving revision 1.16
  retrieving revision 1.17
  diff -u -r1.16 -r1.17
  --- TestPreferences.java  23 Jun 2004 18:34:13 -  1.16
  +++ TestPreferences.java  16 Jul 2004 19:29:09 -  1.17
  @@ -24,7 +24,6 @@
   
   import 
org.apache.jetspeed.components.persistence.store.util.PersistenceSupportedTestCase;
   import org.apache.jetspeed.prefs.impl.PreferencesProviderImpl;
  -import org.apache.jetspeed.prefs.impl.PropertyException;
   import org.apache.jetspeed.prefs.impl.PropertyManagerImpl;
   
   /**
  
  
  
  1.14  +1 -0  
jakarta-jetspeed-2/components/prefs/src/java/org/apache/jetspeed/prefs/impl/PreferencesImpl.java
  
  Index: PreferencesImpl.java
  ===
  RCS file: 
/home/cvs/jakarta-jetspeed-2/components/prefs/src/java/org/apache/jetspeed/prefs/impl/PreferencesImpl.java,v
  retrieving revision 1.13
  retrieving revision 1.14
  diff -u -r1.13 -r1.14
  --- PreferencesImpl.java  9 Jul 2004 18:16:01 -   1.13
  +++ PreferencesImpl.java  16 Jul 2004 19:29:09 -  1.14
  @@ -26,6 +26,7 @@
   import org.apache.commons.logging.LogFactory;
   import org.apache.jetspeed.components.persistence.store.PersistenceStore;
   import org.apache.jetspeed.prefs.PreferencesProvider;
  +import org.apache.jetspeed.prefs.PropertyException;
   import org.apache.jetspeed.prefs.om.Node;
   import org.apache.jetspeed.prefs.om.Property;
   import org.apache.jetspeed.prefs.om.PropertyKey;
  
  
  
  1.9   +1 -0  
jakarta-jetspeed-2/components/prefs/src/java/org/apache/jetspeed/prefs/impl/PropertyManagerImpl.java
  
  Index: PropertyManagerImpl.java
  ===
  RCS file: 
/home/cvs/jakarta-jetspeed-2/components/prefs/src/java/org/apache/jetspeed/prefs/impl/PropertyManagerImpl.java,v
  retrieving revision 1.8
  retrieving revision 1.9
  diff -u -r1.8 -r1.9
  --- PropertyManagerImpl.java  18 Jun 2004 20:40:24 -  1.8
  +++ PropertyManagerImpl.java  16 Jul 2004 19:29:09 -  1.9
  @@ -25,6 +25,7 @@
   import org.apache.commons.logging.Log;
   import org.apache.commons.logging.LogFactory;
   import org.apache.jetspeed.components.persistence.store.PersistenceStore;
  +import org.apache.jetspeed.prefs.PropertyException;
   import org.apache.jetspeed.prefs.PropertyManager;
   import org.apache.jetspeed.prefs.om.Node;
   import org.apache.jetspeed.prefs.om.Property;
  
  
  

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



cvs commit: jakarta-jetspeed-2/components/prefs/src/java/org/apache/jetspeed/prefs/impl PropertyException.java

2004-07-16 Thread weaver
weaver  2004/07/16 12:28:18

  Added:   jetspeed-api/src/java/org/apache/jetspeed/prefs
PropertyException.java
  Removed: components/prefs/src/java/org/apache/jetspeed/prefs/impl
PropertyException.java
  Log:
  PropertyException moved to jetspeed-api
  
  Revision  ChangesPath
  1.1  
jakarta-jetspeed-2/jetspeed-api/src/java/org/apache/jetspeed/prefs/PropertyException.java
  
  Index: PropertyException.java
  ===
  /* Copyright 2004 Apache Software Foundation
   *
   * Licensed under the Apache License, Version 2.0 (the "License");
   * you may not use this file except in compliance with the License.
   * You may obtain a copy of the License at
   *
   * http://www.apache.org/licenses/LICENSE-2.0
   *
   * Unless required by applicable law or agreed to in writing, software
   * distributed under the License is distributed on an "AS IS" BASIS,
   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
   * See the License for the specific language governing permissions and
   * limitations under the License.
   */
  package org.apache.jetspeed.prefs;
  
  import org.apache.jetspeed.exception.JetspeedException;
  
  /**
   * Exception throwns if a property or its set definition
   * cannot be found or already exists.
   *
   * @author mailto:[EMAIL PROTECTED]">David Le Strat
   */
  public class PropertyException extends JetspeedException
  {
  
  /** Preferences node not found exception message. */
  public static final String NODE_NOT_FOUND
  = "The specified preferences node does not exist.";
  /** Preferences node already exists exception message. */
  public static final String  NODE_ALREADY_EXISTS
  = "The specified preferences node already exists.";
  /** Property key not found exception message. */
  public static final String PROPERTYKEY_NOT_FOUND
  = "The specified property key does not exist.";
  /** Property key already exists exception message. */
  public static final String PROPERTYKEY_ALREADY_EXISTS
  = "The specified property key already exists.";
  
  /**
   * Default Constructor.
   */
  public PropertyException()
  {
  super();
  }
  
  /**
   * Constructor with exception message.
   * @param message The exception message.
   */
  public PropertyException(String message)
  {
  super(message);
  }
  
  /**
   * Constructor with nested exception.
   * @param nested Nested exception.
   */
  public PropertyException(Throwable nested)
  {
  super(nested);
  }
  
  /**
   * Constructor with exception message and nested exception.
   * @param msg The exception message.
   * @param nested Nested exception.
   */
  public PropertyException(String msg, Throwable nested)
  {
  super(msg, nested);
  }
  
  }
  
  
  

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



cvs commit: jakarta-jetspeed-2/jetspeed-api/src/java/org/apache/jetspeed/prefs - New directory

2004-07-16 Thread weaver
weaver  2004/07/16 12:28:17

  jakarta-jetspeed-2/jetspeed-api/src/java/org/apache/jetspeed/prefs - New directory

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



cvs commit: jakarta-jetspeed-2/components/security/src/java/org/apache/jetspeed/security PortletPermission.java PortletPermissionCollection.java

2004-07-16 Thread weaver
weaver  2004/07/16 12:27:19

  Added:   commons/src/java/org/apache/jetspeed/security
PortletPermission.java
PortletPermissionCollection.java
  Removed: components/security/src/java/org/apache/jetspeed/security
PortletPermission.java
PortletPermissionCollection.java
  Log:
  moved to commons
  
  Revision  ChangesPath
  1.1  
jakarta-jetspeed-2/commons/src/java/org/apache/jetspeed/security/PortletPermission.java
  
  Index: PortletPermission.java
  ===
  /* Copyright 2004 Apache Software Foundation
   *
   * Licensed under the Apache License, Version 2.0 (the "License");
   * you may not use this file except in compliance with the License.
   * You may obtain a copy of the License at
   *
   * http://www.apache.org/licenses/LICENSE-2.0
   *
   * Unless required by applicable law or agreed to in writing, software
   * distributed under the License is distributed on an "AS IS" BASIS,
   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
   * See the License for the specific language governing permissions and
   * limitations under the License.
   */
  package org.apache.jetspeed.security;
  
  import java.security.AccessController;
  import java.security.AccessControlContext;
  import java.security.Permission;
  import java.security.PermissionCollection;
  import java.util.StringTokenizer;
  
  import javax.security.auth.Subject;
  
  /**
   * Portlet permission.
   * This code was partially inspired from articles from:
   * 
   *http://www-106.ibm.com/developerworks/library/j-jaas/";>
   *Extend JAAS for class instance-level authorization.
   * 
   * @author mailto:[EMAIL PROTECTED]">David Le Strat
   */
  public class PortletPermission extends Permission
  {
  
  /** Portlet view permission. */
  static private int VIEW = 0x01;
  
  /** Portlet edit permission. */
  static private int EDIT = 0x02;
  
  /** Portlet edit permission. */
  static private int DELETE = 0x04;
  
  /** Portlet minimize permission. */
  static private int MINIMIZE = 0x08;
  
  /** Portlet maximize permission. */
  static private int MAXIMIZE = 0x10;
  
  /** Portlet help permission. */
  static private int HELP = 0x20;
  
  /** Portlet view action. */
  static final public String VIEW_ACTION = "view";
  
  /** Portlet edit action. */
  static final public String EDIT_ACTION = "edit";
  
  /** Portlet edit action. */
  static final public String DELETE_ACTION = "delete";
  
  /** Portlet delete action. */
  static final public String MINIMIZE_ACTION = "minimize";
  
  /** Portlet maximize action. */
  static final public String MAXIMIZE_ACTION = "maximize";
  
  /** Portlet help action. */
  static final public String HELP_ACTION = "help";
  
  /** Mask used for determining what action to perform. */
  int mask;
  
  /** The subject the permission is being performed against. */
  Subject subject;
  
  /**
   * Constructor for PortletPermission.
   * @param name The portlet name.
   * @param actions The actions on the portlet.
   */
  public PortletPermission(String name, String actions)
  {
  this(name, actions, null);
  }
  
  /**
   * Constructor for PortletPermission.
   * @param name The portlet name.
   * @param actions The actions on the portlet.
   */
  public PortletPermission(String name, String actions, Subject subject)
  {
  super(name);
  parseActions(actions);
  this.subject = subject;
  }
  
  /**
   * @see java.security.Permission#getActions()
   */
  public String getActions()
  {
  StringBuffer buf = new StringBuffer();
  
  if ((mask & VIEW) == VIEW)
  {
  buf.append(VIEW_ACTION);
  }
  if ((mask & EDIT) == EDIT)
  {
  if (buf.length() > 0)
  buf.append(", ");
  buf.append(EDIT_ACTION);
  }
  if ((mask & DELETE) == DELETE)
  {
  if (buf.length() > 0)
  buf.append(", ");
  buf.append(DELETE_ACTION);
  }
  if ((mask & MINIMIZE) == MINIMIZE)
  {
  if (buf.length() > 0)
  buf.append(", ");
  buf.append(MINIMIZE_ACTION);
  }
  if ((mask & MAXIMIZE) == MAXIMIZE)
  {
  if (buf.length() > 0)
  buf.append(", ");
  buf.append(MAXIMIZE_ACTION);
  }
  if ((mask & HELP) == HELP)
  {
  if (buf.length() > 0)
  buf.append(", ");
  buf.append(HELP_ACTION);
  }
  
  return buf.toString();
  }
  
  /**
   * @s

cvs commit: jakarta-jetspeed-2/commons/src/java/org/apache/jetspeed/security - New directory

2004-07-16 Thread weaver
weaver  2004/07/16 12:27:18

  jakarta-jetspeed-2/commons/src/java/org/apache/jetspeed/security - New directory

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



Re: [J2] moving Prefs and Security api interfaces to jetspeed-api

2004-07-16 Thread Scott T. Weaver
Since I haven't heard anything, I am going to take it that no one has 
any objections and I will commit my refactorings.

Scott T. Weaver wrote:
I have moved, tested and ran J2 fine after moving the Prefs and 
Security interfaces into jetspeed-api.  Before I commit these changes 
I wanted to see if anyone has issue with the move.

Thanks,
Reagrds
--
**
*   Scott T. Weaver  *
* <[EMAIL PROTECTED]>*
*    *
* -- *
*   Apache Jetspeed Enterprise Portal*
* Apache Pluto Portlet Container *
**
* OpenEditPro, Website Content Mangement *
*    *
**
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


[J2] moving Prefs and Security api interfaces to jetspeed-api

2004-07-16 Thread Scott T. Weaver
I have moved, tested and ran J2 fine after moving the Prefs and Security 
interfaces into jetspeed-api.  Before I commit these changes I wanted to 
see if anyone has issue with the move.

Thanks,
--
**
*   Scott T. Weaver  *
* <[EMAIL PROTECTED]>*
*    *
* -- *
*   Apache Jetspeed Enterprise Portal*
* Apache Pluto Portlet Container *
**
* OpenEditPro, Website Content Mangement *
*    *
**
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: [J2] Question about Profiler.getAnonymousUser()

2004-07-16 Thread David Le Strat
+1. I thought it was just temporary.

David.

--- "Scott T. Weaver"
<[EMAIL PROTECTED]> wrote:
> I was just curious if there was a reason why the
> getAnonymousUser() 
> method is in the Profiler class and not the
> UserManager?  Does anyone 
> have an issue with me moving it into the
> UserManager?
> 
> Regards,
> 
> -- 
> **
> *   Scott T. Weaver  *
> * <[EMAIL PROTECTED]>*
> *    *
> * -- *
> *   Apache Jetspeed Enterprise Portal*
> * Apache Pluto Portlet Container *
> **
> * OpenEditPro, Website Content Mangement *
> *    *
> **
> 
> 
>
-
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 
> 




__
Do you Yahoo!?
Yahoo! Mail - Helps protect you from nasty viruses.
http://promotions.yahoo.com/new_mail

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



RE: Jetspeed-2 source failing to compile from CVS: Can anyone help?

2004-07-16 Thread brad.simonin
Okay.  Let me ask you a very clueless question.  In which Maven directory is the 
Servlet 2.3 jar file supposed to go in.  If it sounds like we are feeling 
clueless then yes we are.  Just call us clueless portless confused Jetspeed portal 
wanna-be's. 

--Brad


-Original Message-
From:   Scott T. Weaver [mailto:[EMAIL PROTECTED]
Sent:   Thu 7/15/2004 8:07 AM
To: Jetspeed Developers List
Cc: 
Subject:Re: Jetspeed-2 source failing to compile from CVS:  Can anyone help?
Hi Brad,

I still think there is a problem with your version of the servlet jar.  
I say this because javax.servlet.ServletRequest interface in release 2.3 
does not have a getLocalPort() method which is the method that is 
causing the mock's compile to fail.

See: 
http://java.sun.com/products/servlet/2.3/javadoc/javax/servlet/ServletRequest.html


[EMAIL PROTECTED] wrote:

>Scott.  We are still getting the following error.  We are using servlet jar 2.3.
>
>We have the jar in the following directory structure:
>~/.maven/repository/servletapi/jars 
>with the jar being:
>servletapi-2.3.jar
>
>and we are still getting the following error:
>
>java:compile:
>[echo] Compiling to /home/apache/jakarta-jetspeed-2/jetspeed-api/target/classes
>[javac] Compiling 103 source files to 
> /home/apache/jakarta-jetspeed-2/jetspeed-api/target/classes
>[javac] 
> /home/apache/jakarta-jetspeed-2/jetspeed-api/src/java/org/apache/jetspeed/mockobjects/MockHttpServletRequest.java:26:
>  org.apache.jetspeed.mockobjects.MockHttpServletRequest is not abstract and does not 
> override abstract method getLocalPort() in javax.servlet.ServletRequest
>[javac] public class MockHttpServletRequest implements HttpServletRequest
>[javac]^
>[javac] 1 error
>
>BUILD FAILED
>File.. /home/apache/jakarta-jetspeed-2/maven.xml
>Element... maven:reactor
>Line.. 158
>Column 40
>Unable to obtain goal [java:compile] -- 
>/root/.maven/cache/maven-java-plugin-1.4/plugin.jelly:53:48:  Compile 
>failed; see the compiler error output for details.
>Total time: 13 minutes 17 seconds
>Finished at: Wed Jul 14 15:06:24 MDT 2004
>
>Can you help?
>
>
>--Brad
>
>-Original Message-
>From:  Scott T. Weaver [mailto:[EMAIL PROTECTED]
>Sent:  Tue 7/13/2004 2:45 PM
>To:Jetspeed Developers List
>Cc:
>Subject:   Re: Jetspeed-2 source failing to compile from CVS:  Can anyone help?
>Hi Brad,
>
>It appears that Jetspeed is being compiled against an incompatible 
>version of the servlet api.  Make sure the jar in your maven repo is 
>actually version 2.3 of the servlet api.  This requiremtn only applies 
>durning compile time as J2 will run fine under servlet api version 2.3 
>and up.
>
>[EMAIL PROTECTED] wrote:
>
>  
>
>>Hello.  We are trying to compile and install Jetspeed-2 for our future
>>portal system.  We are having problems compiling from the source from
>>CVS.  Can you look at our log and tell me if you see what we are doing
>>wrong?
>>
>>We are using the following in a Slackware Linux environment:
>>Ant  v1.6.1
>>Maven v1.0
>>Tomcat v5.0.25
>>Java 1.4.2_04
>>
>>The error part of the log is as follows:
>>
>>java:prepare-filesystem:
>>   [mkdir] Created dir:
>>/home/apache/jakarta-jetspeed-2/jetspeed-api/target/classes
>>
>>java:compile:
>>   [echo] Compiling to
>>/home/apache/jakarta-jetspeed-2/jetspeed-api/target/classes
>>   [javac] Compiling 103 source files to
>>/home/apache/jakarta-jetspeed-2/jetspeed-api/target/classes
>>   [javac]
>>/home/apache/jakarta-jetspeed-2/jetspeed-api/src/java/org/apache/jetspee
>>d/mockobjects/MockHttpServletRequest.java:26:
>>org.apache.jetspeed.mockobjects.MockHttpServletRequest is not abstract
>>and does not override abstract method getLocalPort() in
>>javax.servlet.ServletRequest
>>   [javac] public class MockHttpServletRequest implements
>>HttpServletRequest
>>   [javac]^
>>   [javac] 1 error
>>Total time: 2 minutes 26 seconds
>>Finished at: Tue Jul 13 12:02:12 MDT 2004
>>
>>BUILD FAILED
>>File.. /home/apache/jakarta-jetspeed-2/maven.xml
>>Element... maven:reactor
>>Line.. 158
>>Column 40
>>Unable to obtain goal [java:compile] --
>>/root/.maven/cache/maven-java-plugin-1.4/plugin.jelly:53:48: 
>> Compile failed; see the compiler error output for details.
>>
>>
>>Can anyone point us in the right direction?  Thank you in advance.
>>
>>--Brad Simonin
>>
>>
>>
>>THE FULL LOG IS AS FOLLOWS:
>>
>>__  __
>>|  \/  |__ _Apache__ ___
>>| |\/| / _` \ V / -_) ' \  ~ intelligent projects ~
>>|_|  |_\__,_|\_/\___|_||_|  v. 1.0
>>
>>Starting the reactor...
>>Our processing order:
>>Jetspeed-2 Component Manager
>>Jetspeed-2 RDBMS Components
>>Jetspeed-2 Common Portal Services
>>Jetspeed 2 Site
>>Java Portlet API
>>Jetspeed-2 Core API
>>Jetspeed-2 Portal Commons
>>Jetspeed 2 Maven Plugin
>>Jetspeed-2 Persistence Components
>>Jetspeed-2 Preferences SPI Components
>>Jetspeed-2 Registry Components
>>Jetspeed-2 Enterprise Portal Content Server
>>Jetspeed-2 Components
>>Jetspeed-2 S

[J2] Question about Profiler.getAnonymousUser()

2004-07-16 Thread Scott T. Weaver
I was just curious if there was a reason why the getAnonymousUser() 
method is in the Profiler class and not the UserManager?  Does anyone 
have an issue with me moving it into the UserManager?

Regards,
--
**
*   Scott T. Weaver  *
* <[EMAIL PROTECTED]>*
*    *
* -- *
*   Apache Jetspeed Enterprise Portal*
* Apache Pluto Portlet Container *
**
* OpenEditPro, Website Content Mangement *
*    *
**
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: [J2:VOTE] Using the java.security.acl implementation

2004-07-16 Thread Scott T. Weaver
Thanks for the link to article, David.  I will take a look at it right now.
David Le Strat wrote:
Scott,
I am -1 on that.  That's why I implemented a security
service using JAAS and RDBMS policies.  If we want to
enforce policies on object (portlets, pages, folders,
etc), we should have matching permissions (see
PortletPermission) where those permissions are mapped
to roles or groups. At least, that was the model, I
had in mind.
The security service enforces the mapping resource to 
permission and support the role hierarchy structure.

A good reference behind the design is at:
http://www-106.ibm.com/developerworks/java/library/j-jaas/?dwzone=java
The only difference is that we have an RDBMS
implementation + hierarchy support.
I am in favor of pursuing that model.  It is JAAS
compliant and user can eventually swap their own
implementation later on, on a different store.
I have been swamped at work and have had to step back
a bit.
Regards,
David.
--- "Scott T. Weaver"
<[EMAIL PROTECTED]> wrote:
 

Just want to get everyones input on implementing the
java.security.acl 
api for supporting ACLs in J2.  I think this may
have been discussed 
before, but I think we need to make a decision so we
can move forward 
with applying security to portal resources.

The interfaces for java.security.acl are straight
forward and should 
prove very easy to implement.and it should mesh very
well with the 
already existing security components.

Regards
--
**
*   Scott T. Weaver  *
* <[EMAIL PROTECTED]>*
*    *
* -- *
*   Apache Jetspeed Enterprise Portal*
* Apache Pluto Portlet Container *
**
* OpenEditPro, Website Content Mangement *
*    *
**

   

-
 

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


		
__
Do you Yahoo!?
New and Improved Yahoo! Mail - Send 10MB messages!
http://promotions.yahoo.com/new_mail 

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


--
**
*   Scott T. Weaver  *
* <[EMAIL PROTECTED]>*
*    *
* -- *
*   Apache Jetspeed Enterprise Portal*
* Apache Pluto Portlet Container *
**
* OpenEditPro, Website Content Mangement *
*    *
**
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: [J2:VOTE] Using the java.security.acl implementation

2004-07-16 Thread David Le Strat
Scott,

I am -1 on that.  That's why I implemented a security
service using JAAS and RDBMS policies.  If we want to
enforce policies on object (portlets, pages, folders,
etc), we should have matching permissions (see
PortletPermission) where those permissions are mapped
to roles or groups. At least, that was the model, I
had in mind.

The security service enforces the mapping resource to 
permission and support the role hierarchy structure.

A good reference behind the design is at:

http://www-106.ibm.com/developerworks/java/library/j-jaas/?dwzone=java

The only difference is that we have an RDBMS
implementation + hierarchy support.

I am in favor of pursuing that model.  It is JAAS
compliant and user can eventually swap their own
implementation later on, on a different store.

I have been swamped at work and have had to step back
a bit.

Regards,

David.

--- "Scott T. Weaver"
<[EMAIL PROTECTED]> wrote:
> Just want to get everyones input on implementing the
> java.security.acl 
> api for supporting ACLs in J2.  I think this may
> have been discussed 
> before, but I think we need to make a decision so we
> can move forward 
> with applying security to portal resources.
> 
> The interfaces for java.security.acl are straight
> forward and should 
> prove very easy to implement.and it should mesh very
> well with the 
> already existing security components.
> 
> Regards
> 
> -- 
> **
> *   Scott T. Weaver  *
> * <[EMAIL PROTECTED]>*
> *    *
> * -- *
> *   Apache Jetspeed Enterprise Portal*
> * Apache Pluto Portlet Container *
> **
> * OpenEditPro, Website Content Mangement *
> *    *
> **
> 
> 
>
-
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 
> 




__
Do you Yahoo!?
New and Improved Yahoo! Mail - Send 10MB messages!
http://promotions.yahoo.com/new_mail 

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