Fwd: RE: Putting .psml/markup info into database

2001-07-06 Thread Atul Dambalkar
Forwarded from jetspeed-user list... More below... >Atul Dambalkar wrote: > > > Now, I have CVS HEAD and I am working with it. Reporting bugs > > as and when I > > am finding any... > > > >Yes, Thanks! > > > Got a doubt, related to Profiler and Psm

RE: RE: Putting .psml/markup info into database

2001-07-06 Thread Atul Dambalkar
At 02:22 PM 7/6/01 -0700, you wrote: >Atul Dambalkar wrote: > > BTW, what is your opinion on, moving the "fallback" algorithm > > specific code > > to some super class and reusing it in the respective sub classes > > (FileSystemProfilerService/DatabaseProfile

Build broken...

2001-07-06 Thread Atul Dambalkar
I just now updated CVS HEAD. Build is broken... [javac] /home/adambalk/jakarta-jetspeed/src/java/org/apache/jetspeed/modules/actions/portlets/security/UserRoleUpdateAction.java:244: cannot resolve symbol [javac] symbol : variable JETSPEED_GRO

Re: Putting .psml/markup info into database

2001-07-09 Thread Atul Dambalkar
At 06:36 PM 7/7/01 +0200, you wrote: >Atul Dambalkar wrote: > > > > At 02:22 PM 7/6/01 -0700, you wrote: > > >Ive started working on this today. > > >Hopefully I can refactor this pretty quickly, by the weekend. > > > > That would be fabulous..and

RE: Putting .psml/markup info into database

2001-07-09 Thread Atul Dambalkar
At 04:21 PM 7/9/01 -0700, you wrote: >Hi Atul, > >Im travelling today, and Im having trouble getting my usual email, so Im on >a different account today... No problem..David. Great that, you could reply back. Thanks. > > > > Please, educate me here. What are Castor mapping files? Where are th

RE: Putting .psml/markup info into database

2001-07-09 Thread Atul Dambalkar
riginal Message- From: Atul Dambalkar To: [EMAIL PROTECTED] Sent: 7/9/01 5:00 PM Subject: RE: Putting .psml/markup info into database At 04:21 PM 7/9/01 -0700, you wrote: >Hi Atul, > >Im travelling today, and Im having trouble getting my usual email, so Im on >a different account tod

Re: Putting .psml/markup info into database

2001-07-10 Thread Atul Dambalkar
At 10:50 AM 7/10/01 +0200, you wrote: >Atul Dambalkar wrote: > >>At 06:36 PM 7/7/01 +0200, you wrote: >> >>>Atul Dambalkar wrote: >>> > >>> > At 02:22 PM 7/6/01 -0700, you wrote: >>> > >Ive started working on this today. &

Re: Putting .psml/markup info into database

2001-07-10 Thread Atul Dambalkar
At 10:00 AM 7/10/01 +0200, you wrote: >Atul Dambalkar wrote: > >>Hi David, >>While driving back home, I was thinking about the newly added interfaces in >>Profile(Service) and PsmlManager(Service). I came up to this. I thought I >>should write an email, right awa

RE: Putting .psml/markup info into database

2001-07-10 Thread Atul Dambalkar
e delayed responses, on top of travelling my > network card failed yesterday. Today it seems to be working, > at least for a No problems, David. > little while. Anyway, I will be back in the office tonight > and back online. > > See comments below > > David > > > ---

Initializing a Turbine Service

2001-07-10 Thread Atul Dambalkar
Hi, Can anyone point me to a code snippet or show me how to programmatically initialize a service within an init method of some other service. The documentation for org.apache.turbine.service.TurbineBaseService talks about that, but I couldn't figure out proper way to do this. Here is what th

RE: Initializing a Turbine Service

2001-07-11 Thread Atul Dambalkar
TurbineServices.getInstance().getService( SERVICE_NAME ); > > >From there, just call your Service interface: > >if (!service.getInit()) // get the init status > service.init(); Thanks, David. I will try this. -Atul >Try asking on the Turbine list for more detail

Re: Putting .psml/markup info into database

2001-07-11 Thread Atul Dambalkar
Hi Raphael, At 09:44 AM 7/11/01 +0200, you wrote: >Atul Dambalkar wrote: > >>At 10:50 AM 7/10/01 +0200, you wrote: >> >>> >>>Check these: >>> >>>http://castor.exolab.org/xml-mapping.html >>> >>>http://castor.exolab.org

Re: Putting .psml/markup info into database

2001-07-11 Thread Atul Dambalkar
At 09:54 AM 7/11/01 +0200, you wrote: >Atul Dambalkar wrote: > >>At 10:00 AM 7/10/01 +0200, you wrote: >> >>> >>>+1 for list(locator) being in Profiler. It's definitely Profiler's job to do >>>that, although I would amend the interface to &g

Consolidated changes to Profile/ProfileLocator/PsmlManager interfaces

2001-07-11 Thread Atul Dambalkar
Hi David/Raphael, I am just trying to consolidate the interface changes we discussed...(and also suggesting..) Already discussed: 1. Remove method public Iterator list( ProfileLocator locator ); in PsmlManagerService and put a new method get/setUser() in ProfileLocator Likewise the default impl

RE: Consolidated changes to Profile/ProfileLocator/PsmlManager interfaces

2001-07-11 Thread Atul Dambalkar
At 03:29 PM 7/11/01 -0700, you wrote: > > -Original Message- > > From: Atul Dambalkar [mailto:[EMAIL PROTECTED]] > > Sent: Wednesday, July 11, 2001 11:44 AM > > To: [EMAIL PROTECTED] > > Subject: Consolidated changes to Profile/ProfileLocator/PsmlManager

org.apache.turbine.om.security TurbineUser/Group/Role classes need to override "equals"

2001-07-11 Thread Atul Dambalkar
Hi David/Raphael, This can be a low priority..as I do have a work around. TurbineUser/Group/Role classes need to override "boolean equals(Object obj) method from java.lang.Object, so as it to be comparable in a java.util.Map and may also implement java.lang.Comparable interface. -Atul -

Re: org.apache.turbine.om.security TurbineUser/Group/Role classes need to override "equals"

2001-07-11 Thread Atul Dambalkar
At 04:36 PM 7/11/01 -0700, you wrote: >Hi David/Raphael, > >This can be a low priority..as I do have a work around. > >TurbineUser/Group/Role classes need to override "boolean equals(Object >obj) method from java.lang.Object, so as it to be comparable in a >java.util.Map and may also implement j

RE: org.apache.turbine.om.security TurbineUser/Group/Role classes need to override "equals"

2001-07-11 Thread Atul Dambalkar
for equality? Role gets compared on role.getName() Group gets compared on group.getName(), and same goes withe the user..or do I have to use "user.getUserName()" Language/Country is simple String equality. -Atul > > > > > > -Original Message- > >

RE: org.apache.turbine.om.security TurbineUser/Group/Role classes need to override "equals"

2001-07-11 Thread Atul Dambalkar
At 05:37 PM 7/11/01 -0700, you wrote: > > > I thought you were using a WeakHashMap. > > > Then you just do: > > > > > > map.put( role.getName(), role ) > > > > > > However its not ordered. Does it need to be? > > > > No, it need not be ordered, so it really doesn't need > > Comparable interface. >

Re: Jetspeed URLS

2001-07-16 Thread Atul Dambalkar
At 09:06 AM 7/17/01 +1000, you wrote: >On Tue, 17 Jul 2001 6:32, you wrote: > > Those who have portal sites up and running, please post URL's if they are > > accessible to the internet. > >http://qld.ieaust.org.au/ That's really wonderful. -Atul >-- >Tom Adams| Plugged In Software

DatabasePsmlManagerService Implementation

2001-08-24 Thread Atul Dambalkar
Hi, I am working on this service implementation. We are in the development stage. (Work was stalled since I was on a month vacation). Code needs few improvements, in terms of handling different databases(right now it uses Oracle), as at first we were concentrating on the Interface definitions.

Using peer classes for DatabasePsmlManagerService Implementation

2001-08-28 Thread Atul Dambalkar
Hi, As you may know, I am working on DatabasePsmlManager implementation. At first I was concentrating on the interface definitions and since now, that is getting along quite well, I am now trying to concentrate on supporting different types of databases on the same lines as turbine does. I wa

RE: Using peer classes for DatabasePsmlManagerService Implementation

2001-08-30 Thread Atul Dambalkar
tion from people who have better database knowledge than me. >Hope you had a good vacation :) Yep. It was fun. But, as always it was a bit exhausting in India. Thanks, -Atul >David > > > > > > -Original Message- > > From: Atul Dambalkar [mailto:[EMAIL P

Re: Using peer classes for DatabasePsmlManagerService Implementation

2001-08-30 Thread Atul Dambalkar
At 01:56 PM 8/30/01 -0700, you wrote: >on 8/30/01 10:32 AM, "Atul Dambalkar" <[EMAIL PROTECTED]> wrote: > > > I am thinking about concentrating on defining such a schema that will get > > easily mapped on to all databases, no SEQUENCE or any proprietary datab

Re: Using peer classes for DatabasePsmlManagerService Implementation

2001-08-31 Thread Atul Dambalkar
At 07:56 PM 8/30/01 -0700, you wrote: >on 8/30/01 2:56 PM, "Atul Dambalkar" <[EMAIL PROTECTED]> wrote: > > > Well, I thought, it may be just an over-kill as the schema is pretty simple > > and there are no complex database operations like inner/outer joins... >

Re: Using peer classes for DatabasePsmlManagerService Implementation

2001-09-04 Thread Atul Dambalkar
fusing. Or do I have to download a different version? -Atul At 10:43 AM 8/31/01 -0700, you wrote: >At 07:56 PM 8/30/01 -0700, you wrote: >>on 8/30/01 2:56 PM, "Atul Dambalkar" <[EMAIL PROTECTED]> wrote: >> >> > Well, I thought, it may be just an over-kill as

XML Database schema for DatabasePsmlManager Implementation

2001-09-04 Thread Atul Dambalkar
Hi Jon, David, Here is the XML Database schema for putting PSML information along with user/role/group profile. Please review it. ===

Re: Using peer classes for DatabasePsmlManagerService Implementation

2001-09-04 Thread Atul Dambalkar
At 03:35 PM 9/4/01 -0700, you wrote: >on 9/4/01 12:01 PM, "Atul Dambalkar" <[EMAIL PROTECTED]> wrote: > > > I am now using stand-alone Torque for the database table SQL and OM > > generation. > > > > I could generate the Peer classes, with idMetho

Re: XML Database schema for DatabasePsmlManager Implementation

2001-09-05 Thread Atul Dambalkar
to make Language and Country code of 2 characters. I will do that change. -Atul >Paul Spencer > > >Atul Dambalkar wrote: > > > > Hi Jon, David, > > > > Here is the XML Dat

RE: XML Database schema for DatabasePsmlManager Implementation

2001-09-05 Thread Atul Dambalkar
elds like media_type and page, which would normally >contain strings. If you are restricting the COUNTRY and LANGUAGE to numeric, No, they are VARCHARs. -Atul >then thats a problem too. Guess I need to re-readup on Torque, > >David > > > > > -Original Mes

RE: XML Database schema for DatabasePsmlManager Implementation

2001-09-05 Thread Atul Dambalkar
At 12:19 PM 9/5/01 -0700, you wrote: >At 09:25 PM 9/4/01 -0700, you wrote: >>Hi Atul, >> >>At first, I thought there was a problem with "USER_ID" being the primary >>key. >>But it appears to be a ID field, which is misleading, since it had me >>thinking that it was the foreign key between the TURB

Re: XML Database schema for DatabasePsmlManager Implementation

2001-09-05 Thread Atul Dambalkar
At 02:48 PM 9/5/01 -0700, you wrote: > > > > I went thro' org.apache.turbine.om.peer.BasePeer.java class which is > > supposed to be the super class for all the peer classes generated by > > Torque. Method "doDelete" in BasePeer class does support Cascading >deletes, > > if Criteria for delete is

Re: XML Database schema for DatabasePsmlManager Implementation

2001-09-05 Thread Atul Dambalkar
At 03:18 PM 9/5/01 -0700, you wrote: > > > > Yes, but this syntax will be valid only if you have the entire schema > > defined in one single file. So we need to modify, turbine-schema.xml file, > > with all the Jetspeed tables added, right?. > > > > > > >That I don't know. Is there a syntax for re

Re: XML Database schema for DatabasePsmlManager Implementation

2001-09-05 Thread Atul Dambalkar
At 03:11 PM 9/5/01 -0700, you wrote: >- Original Message - >From: "Atul Dambalkar" <[EMAIL PROTECTED]> >To: <[EMAIL PROTECTED]> >Sent: Wednesday, September 05, 2001 2:51 PM >Subject: RE: XML Database schema for DatabasePsmlManager Implementation

Re: Framework of PSML Database documentation

2001-09-06 Thread Atul Dambalkar
At 12:19 PM 9/6/01 -0400, you wrote: >Atul, >I have created the initial user documentation for the PSML Database, >xdocs/psml_db.xml. At this point it is just a framework with >questions. A copy of the current document is on the web site at >http://jakarta.apache.org/jetspeed/site/psml_db.html >

Re: XML Database schema for DatabasePsmlManager Implementation

2001-09-06 Thread Atul Dambalkar
At 12:29 AM 9/6/01 -0700, you wrote: >on 9/5/01 3:09 PM, "Atul Dambalkar" <[EMAIL PROTECTED]> wrote: > > > Yes, but this syntax will be valid only if you have the entire schema > > defined in one single file. So we need to modify, turbine-schema.xml file, >

Re: XML Database schema for DatabasePsmlManager Implementation

2001-09-07 Thread Atul Dambalkar
table. But it created TurbineUser/Role/Group classes and peer classes in the generated Java code, which made me think, as to why are those needed? -Atul At 12:29 AM 9/6/01 -0700, you wrote: >on 9/5/01 3:09 PM, "Atul Dambalkar" <[EMAIL PROTECTED]> wrote: > > > Yes, b

Re: Framework of PSML Database documentation

2001-09-07 Thread Atul Dambalkar
At 10:45 AM 9/6/01 -0700, you wrote: >At 12:19 PM 9/6/01 -0400, you wrote: >>Atul, >>I have created the initial user documentation for the PSML Database, >>xdocs/psml_db.xml. At this point it is just a framework with >>questions. A copy of the current document is on the web site at >>http://jaka

Re: XML Database schema for DatabasePsmlManager Implementation

2001-09-07 Thread Atul Dambalkar
> >Why not? Don't you want to simply extend Turbine's User/ACL system instead >of inventing your own? I guess, I was trying to extend Turbine's schema..by using a foreign-key reference.. And as I said in one of previous emails, extending Turbine schema doesn't make sense in case of File Syste

Re: XML Database schema for DatabasePsmlManager Implementation

2001-09-07 Thread Atul Dambalkar
>A User is in a Project under a given role. It isn't a group of users it is >users in a project. What Jon is saying does make a LOT of sense. I will modify the schema. More later, -Atul - To unsubscribe, e-mail: [EMAIL PR

RE: XML Database schema for DatabasePsmlManager Implementation

2001-09-08 Thread Atul Dambalkar
> > > > I don't think that is a good idea. Roles are associated with > > Users and Users > > are associated with Profiles. If you want to know all of the > > profiles for a > > given role, you should look at your Users to get that information. > > > > Don't know if I follow that one. > So if I cr

RE: XML Database schema for DatabasePsmlManager Implementation

2001-09-08 Thread Atul Dambalkar
hould gather more requirements from Jetspeed users and get > some > opinions on the Jetspeed user list. > See Dave Carlson's email for a good example. > I know Paul Spencer has some good ideas on this subject. > Lets see what other requirements we can gather,

RE: XML Database schema for DatabasePsmlManager Implementation

2001-09-08 Thread Atul Dambalkar
ne per project profile > > Yes, this is still possible with option (b), since you still have multiple > profiles per user. > > With option (b), Jon's recommendation for basing profiles on > user/role/project(group) does make sense. > So when a user logs on -- they logon w

RE: XML Database schema for DatabasePsmlManager Implementation

2001-09-13 Thread Atul Dambalkar
Here is the modified schema. This schema is based on the current Profiler service proposal and current PsmlManager Service interface. I will work on gathering more user requirements for Profiler changes and then we can decide on how and when we want to implement that. As far as, foreign key re

Re: Can we upgrade to the latest turbine 2.2b1 please?

2001-09-13 Thread Atul Dambalkar
At 01:54 AM 9/13/01 -0700, you wrote: >Hi, > > > > > Rather than updating from cvs, I'm getting > > >http://jakarta.apache.org/builds/jakarta-turbine/nightly/2001-09-12/ > > as > > the base for the update, until they release the turbine2.2 version. > > I > > will say it in the update log. Also, I

Re: Can we upgrade to the latest turbine 2.2b1 please?

2001-09-13 Thread Atul Dambalkar
At 04:17 PM 9/13/01 -0700, you wrote: >on 9/13/01 4:02 PM, "Atul Dambalkar" <[EMAIL PROTECTED]> wrote: > > > I did a cvs update and got above turbine-jar file. I am getting compilation > > error for Torque generated classes. I am using Torque2.1 standalone ve

Re: Can we upgrade to the latest turbine 2.2b1 please?

2001-09-13 Thread Atul Dambalkar
>> >>Probably the version of Torque within the jakarta-turbine-2 repo. >> >>Try this: >> >>cvs co jakarta-turbine-2 >>cd build >>ant torque > >Thanks. I guess, this may work.. >I did above, and used torque to regenerate the classes. Looked at the >generated source code, it looks that it will fix

Re: Initializing database entries for DatabasePsmlManager Service

2001-09-19 Thread Atul Dambalkar
First cut: Jetspeed is up and running with DatabasePsmlManagerService. Of-course needs some more testing... -Atul At 06:44 PM 9/17/01 -0700, you wrote: > > How, currently, the default PSML files get created under /WEB-INF/psml..? > > Are those manually created? > > > >Yes, we typed them in. Th

Jetspeed with DatabasePsmlManagerService

2001-10-04 Thread Atul Dambalkar
y if available). Also, I would like to have some opinion on how the testing can be done for other databases that Jetspeed/Torque supports. I am testing it on Oracle right now.. -Atul >Reply-To: <[EMAIL PROTECTED]> >From: "David Sean Taylor" <[EMAI

RE: Jetspeed with DatabasePsmlManagerService

2001-10-05 Thread Atul Dambalkar
u didn't use Torque, we will also need scripts to create the tables for >each supported database like in src/sql/external. > >I can test hypersonicSQL and mySQL easily here. Great..I have bunch of source files..let me mail you all the source files..and Torque schema file. -Atul

Re: 1.3a2 release

2001-10-09 Thread Atul Dambalkar
At 10:00 PM 10/8/01 -0700, you wrote: >Here is my list of stuff Im still working on for 1.3a2: > >1. Finish Stock Portlet >2. Bug fixes >3. Test and commit db-psml impl. from Atul, fix bug in profiler for db-psml Also, depending upon the database, how can we generate Peer classes for Db-Psml

RE: 1.3a2 release

2001-10-12 Thread Atul Dambalkar
At 06:26 PM 10/11/01 -0700, you wrote: >Atul, > >Im looking at the Peer classes that I generated for Hypersonic and Oracle. >Except for the timestamp, the java source seems to be exactly the same. > >I think what needs to be added is a webapp/torque directory: > >webapp/torque > |-database

Re: 1.3a2 release

2001-10-12 Thread Atul Dambalkar
hy we need to merge Turbine-schema and db-psml-schema, as David said. -Atul >Paul Spencer > >Atul Dambalkar wrote: > > > > At 06:26 PM 10/11/01 -0700, you wrote: > > >Atul, > > > > > >Im looking at the Peer classes that I generated for Hypersonic and

RE: 1.3a2 release

2001-10-12 Thread Atul Dambalkar
At 03:02 PM 10/12/01 -0700, you wrote: >Atul, > >Im looking at dbpsml-schema.xml... > > > > autoIncrement="true" type="INTEGER"/> > > > > > > > > > > > > > > > > > > > >