User management
|
Copyright 2008-2009 ManyDesigns srl. All rights reserved.
A UserGrp class with, at least one text attribute:PurposeUser management is important in public and enterprise information systems. It allows:
Creating the user data modelBefore you can let user log onto your systems, you need to create the classes where the system can store those users. Portofino requires you to create three classes with exactly the following convention:A User class with, at least, the following text attributes:
Enabling user managementOnce you've create the user data model, you still have to tell the system to use it.Locate the portofino-custom.propeties file you used during the installation. Then add or edit the following line:
model.users.enabled=true
As an optional configuration you may want to disable anonymous access o the system:
model.users.anonymous.enabled=false
This will force users to log onto the system before they can start using it. Save the file, then restart the application server to make the changes effective. Creating a userGo downstairs. If you have already enabled user management, log on to the system as a member of the User Administrators group. If you have followed the standard procedure described above, log in as admin (password: admin).Click on the Users tab, then on the create link. Enter the new user's details as required: login, password and email. Click on the Create button to save. Creating a user groupGo upstairs. Click on the Meta user groups tab, then on the create link. In the form, enter the group's name and click on the Create button to save. When you do this, two things happen:
Associating a user to a user groupGo downstairs. Click on the Users tab, then select the user you want to associate. In its details page, locate the Belongs to user groups section and click on the Connect to user groups. In the form, select the a group from the picklist. Finally click on the Create button.Changing the user model for languages other than EnglishYou may have noticed that the user model requires a number of classes and attributes that use English names. This may be a problem if English is not the target language of your system. You can change the user model to fit your language, but keep these two rules in mind:
Enabling user management for the upstairs levelThe upstairs level has user management and permissions exactly like the downstairs level. Their purpose is to prevent regular users from accessing and modifying the application model.By default, upstairs user management is disabled. To enable it add the following lines in the portofino-custom.properties file:
meta.users.enabled=true
meta.users.anonymous.enabled=false Save the file, then restart the application server. From now on, you must authenticate to use the upstairs level. Portofino comes with a default user admin (password: admin). Change its password as soon as possible. Notice that the upstairs and downstairs level have separate user management. That means you can't use an upstairs user to log in downstairs and vice versa. This may create confusion at times, but keeps a better separation between the two levels.
Previous: Relationships
Next: Permissions
|