Creating Web Interface for Maintaining Users and Authorities

Visual LANSA Framework

Creating Web Interface for Maintaining Users and Authorities

Note that by default the Administration application and the Users and Authorities business object are restricted access objects. You should specifically grant the Administrator authority to these objects.

It is possible to use the Administrator interface in a deployed Framework web application to create users and groups, set authorities and custom property values

To use the web interface to create and maintain users and authorities you must merge the Administration application and the Users and Authorities business object to your Framework:

1. Start the Framework in Design mode.

2. Start the Merge Tool using the Merge Tool option in the Framework menu. See Using the Merge Tool.

3. Locate the merge list VF_Administration_Merge_List.txt in your partition execute folder using Windows Explorer and copy it. Paste it in the Merge Files area in the Merge Tool window.

4. To merge the Administration application and the Users and Authorities business object:

  • Select the two objects in the Merge List area in this order:

VF_FP002 – Administration

VF_FP003 – Business Object (Users and Authorities).

  • Select all the objects in the Reference List:

 

  

Note that the Merge Selected button’s caption should now show Merge Selected (16).

  • Click on the Merge Selected button.
  • Click on the Perform All Selected Merges button.
  • When you receive a message, uncheck the check box and click the Close button. Do not Save and Restart yet.
  • Click on the Perform All Selected Merges button again.
  • When you finish, Save and Restart the Framework but do not upload your changes to the web server yet.
  • When the Framework restarts, make a dummy change to the Framework, save and upload your changes.

You can now administer users and authorities in a Framework web application provided you have signed on as an Administrator.

 

New Framework objects required for this functionality

 

Object type Caption Web Handler Comments

Application

Administration

N/A

 

Business Object

Users and Authorities

N/A

 

Business Object web filter

by User Profile

 

Process: UF_USRM

Function: UFUMF1

Is a *WEBEVENT function

Business Object commands

New User

AJAX page: UFUMUDX.htm

For all commands, use the option Is an AJAX style routine.

 

New Group

AJAX page: UFUMUDX.htm

 

Business Object instance commands

Details

AJAX page: UFUMUDX.htm

 

 

Delete Profile

AJAX page: UFUMUDX.htm

 

 

Custom Properties

AJAX page: UFUMUPX.htm

 

 

Authorities

AJAX page: UFUMUAX.htm

 

 

 

Other required objects
Object type Name Comments Include in deployment package

 

 

 

 

Process skeleton

UF_USRM

Standard VLF skeleton for web functions.

NO

RDML Process/Function

UF_USRM/UFUMF1

 

Users and Authorities WEBEVENT filter

YES (follows naming standard so it should be automatically included in export list)

Web Pages

UFUMUDX.htm

 

AJAX handler for commands:

New User

New Group

Details

Delete Profile

YES for all AJAX pages (follows naming standard so it should be automatically included in export list) – target private folder

 

UFUMUPX.htm

AJAX handler for Custom Properties command

 

 

UFUMUAX.htm

AJAX handler for User Authorities command.

 

 

Delete Profile

AJAX page: UFUMUDX.htm

 

 

Custom Properties

AJAX page: UFUMUPX.htm

 

 

Authorities

AJAX page: UFUMUAX.htm

 

Merge list (text file)

VF_Administration_Merge_List.txt

 

NO