Вы находитесь на странице: 1из 17

Menus and Function Security

Copyright © Oracle Corporation, 2002. All rights reserved.


Agenda

• Register Functions
• Create Menus
• Create Responsibilities
• Create Users
• Call menus and functions from JSP pages

1-2 Copyright © Oracle Corporation, 2002. All rights reserved.


Menus and Security Overview

Once a user signs on, there are two main structures:


• Navigation menus
– Controls how a user moves from one page to
another
– Use with responsibilities
– Use Functions form and Menus form
• Grants and permissions
– Controls whether a user is authorized to use a page
or component
– Use with roles (user groups)
– Use Functions form for Permissions and Menus
form for Permission Sets

1-3 Copyright © Oracle Corporation, 2002. All rights reserved.


Navigation Menu Structures
• Navigation menus control
Users
locations of tabs, side
navigation menus, and other
navigation objects.
Responsibilities
• Create functions, menus,
responsibilities and users
using Oracle Applications 11i
Menus forms (Application Developer
and System Administrator
responsibilities).
Functions • Menus and responsibilities
were previously used to
control authorization by
Pages excluding functions or menus
from responsibilities.

1-4 Copyright © Oracle Corporation, 2002. All rights reserved.


Grants and Permissions Structures

Permission Grants
(with optional Security Context)

Permission Sets (Menus) Grantees

Users User Groups = Roles

Permissions (Functions)

• Grants and permissions


control authorization to use
Pages
particular parts of the
software.

1-5 Copyright © Oracle Corporation, 2002. All rights reserved.


Oracle Applications Forms

Use JInitiator to access Oracle Applications forms


(Oracle Forms-based products).
• Oracle Applications Division use URLs published
on the Development Services website.
• Others should use the appropriate JInitiator URL
for their Oracle Applications 11i installation.

1-6 Copyright © Oracle Corporation, 2002. All rights reserved.


Register Functions or Permissions

Use the Functions form to associate a page URL with a


function name (or to create just the function name).
• System Administrator or Application Developer
responsibility

1-7 Copyright © Oracle Corporation, 2002. All rights reserved.


Creating Menus

1-8 Copyright © Oracle Corporation, 2002. All rights reserved.


Menu UI: Global Menu

The global menu provides application-wide


functionality.
• The appearance of the icons, as well as whether
certain choices appear at all, is controlled by
profile options.
• Developers can add application-specific global
buttons.

1-9 Copyright © Oracle Corporation, 2002. All rights reserved.


Menu UI: Tabs

The highest level of menus (Level 1 menus) usually


correspond to main business flows within an
application.

1-10 Copyright © Oracle Corporation, 2002. All rights reserved.


Menu UI: Subtabs

Subtabs (Level 2 menus) provide further content


divisions underneath particular tabs. Subtabs are
optional.

1-11 Copyright © Oracle Corporation, 2002. All rights reserved.


Menu UI: Side Navigation Bar

A side navigation bar (Level 3 menu) divides content


and actions.
• It can be used with or without submenus.
• It can have further levels of menus inside it.

1-12 Copyright © Oracle Corporation, 2002. All rights reserved.


Creating Responsibilities

1-13 Copyright © Oracle Corporation, 2002. All rights reserved.


Creating Users and Roles

1-14 Copyright © Oracle Corporation, 2002. All rights reserved.


Using JSP Pages for Testing

Use the test_<name>.jsp file for testing your pages in


JDeveloper within a security context.
• Using a test.jsp allows you to use menus and
security in your testing.
– When you run an OA Extension page XML file
directly, you cannot see tabs or other menus.
• Never use your test.jsp file in production systems.
• You do not need to create any new JSP files for
your production application.

1-15 Copyright © Oracle Corporation, 2002. All rights reserved.


Creating JSP Pages to Call Menus

• Copy the test_fwktutorial.jsp or


test_fwklabsolutions.jsp file supplied with the
Toolbox Tutorial.
• Place your renamed copy in your
<JDEV_USER_HOME>/myhtml/OA_HTML directory
and add it to your project.
• Using the links at the bottom of the file as an
example, create links to your own pages and
menus.
• Rebuild your JSP file and terminate your OC4J
session, then run your JSP file from within
JDeveloper using the context menu.

1-16 Copyright © Oracle Corporation, 2002. All rights reserved.


Summary

You should now be able to:


• Register Functions and Permissions
• Create Menus and Permission Sets
• Create Responsibilities
• Create Users and Roles
• Call menus and functions from JSP pages

1-17 Copyright © Oracle Corporation, 2002. All rights reserved.