[Gridsphere-users] Account Creation
Natarajan, Senthil
senthil at pitt.edu
Thu Dec 21 09:46:10 PST 2006
Hi Jason,
Thanks for the info.
Yes I updated the corresponding files.
./src/org/gridlab/gridsphere/portlet/User.java
./src/org/gridlab/gridsphere/portlet/impl/SportletUserImpl.java
./webapps/gridsphere/WEB-INF/persistence/SportletUserImpl.hbm.xml
./webapps/gridsphere/WEB-INF/classes/Portlet_en.properties
./webapps/gridsphere/jsp/admin/users/doViewUserList.jsp
./webapps/gridsphere/jsp/admin/users/doViewUserEdit.jsp
./portlets/core/admin/users/UserManagerPortlet.java
I added this in SportletUserImpl.hbm.xml
<property name="Status" type="string" column="status"/>
And added corresponding getter and setter method in
SportletUserImpl.java
Since it is an addition of new column in the database, I am getting this
error
Database Error!
Please verify that the
/usr/local/GridComputing/software/tomcat-5.5.4/webapps/gridsphere/WEB-IN
F/CustomPortal/hibernate.properties file is properly configured and that
the tables have been created in your database using the ant
create-database command (which normally gets called when using ant
install)!
So do I need to create database by calling 'ant create-database', then
all the current data will be wiped out. How to take a backup of current
data, and once the new field is added then insert the old data's.
Is it possible to add a new column in the user table, with out creating
the database from scratch? Could you please let me know?
Thanks,
Senthil
-----Original Message-----
From: gridsphere-users-bounces at gridsphere.org
[mailto:gridsphere-users-bounces at gridsphere.org] On Behalf Of Jason
Novotny
Sent: Tuesday, December 19, 2006 2:22 PM
To: GridSphere Users
Subject: Re: [Gridsphere-users] Account Creation
Hi Senthil,
Have a look at the UserManagerPortlet and the associated jsp files in
admin/users/
As far as persisting the info, the easiest is to use the
user.setAttribute(String key, String value) method. Basically the user
table in SportletUserImpl.hbm.xml has associated with it a collection to
map string key value pairs.
Jason
Natarajan, Senthil wrote:
>
> Hi,
>
> I am using Gridsphere 2.1.1, I need to add one more column called
> "Status" in the below "User Account Manager" page. The value for the
> Status field has to be saved in the database. Is it possible to do? If
> so how to add this new column and where to start with (what files
...).
> Could you please let me know?
>
> Thanks,
>
> Senthil
>
>
------------------------------------------------------------------------
>
> _______________________________________________
> Gridsphere-users mailing list
> Gridsphere-users at gridsphere.org
> http://lists.gridsphere.org/mailman/listinfo/gridsphere-users
>
--
Jason Novotny
Chief Portal Architect
BIRN-CC / UCSD
9500 Gilman Dr., La Jolla, CA
novotny at gridsphere.org
http://www.gridsphere.org
_______________________________________________
Gridsphere-users mailing list
Gridsphere-users at gridsphere.org
http://lists.gridsphere.org/mailman/listinfo/gridsphere-users
More information about the Gridsphere-users
mailing list