At this moment we have an application that allow us to manage a database with information about risks, attacks, and companies. To compile it from Eclipse do right click in the file build.xml and select Run as.../Ant build. If everything goes ok a “BUILD SUCCESSFUL” message will appear.
To execute it we must specify some parameters so we create a run dialog from Eclipse clicking in run/open run dialog. Now, right click on java application (on the left menu) and select new. Fill the following data:
Name: Sw-risks
In the main tab
Project: software-risks
Main class: org.mortbay.jetty.Server
In the arguments tab
Program arguments: src/jetty.xml
VM arguments: -Djetty.webapp=WebContent
Click on run and the execution will start showing the Log info in the console window. After a few seconds a message with “...INFO Started org.mortbay.jetty.Server@...” must appear. Open a browser and type http://localhost:8080/roma/app. At this moment, the application show us the MainPage class in which we have defined only a Login option. By default Roma creates an Admin account with user and password “admin” respectively so if we login with this data we will access to the AuthenticatedHomePage with administrator privileges.
Now we have access to all the options but we want to manage users with different accounts and different privileges to access the application. Roma provides classes to perform this operations: the BaseProfile class which allow to define privileges and the BaseAccount which provides general information of each users.
Last Update: 2008-08-18
| << Prev | Roma Users module | Next>> |
0 Ficheros adjuntos