Designing and Implementing Composite Applications : webMethods CAF and OpenCAF Development Help : Security in CAF Applications : Security Roles in Web and Portlet Applications : Add a Security Role to a Portlet Application
Add a Security Role to a Portlet Application
You can create security roles for a portlet application projects in Composite Application Framework.
*For more information about security roles, see Security Roles in Web and Portlet Applications.
*For information about adding a security role to a web application, see Add a Security Role to a Web Application.
When the portlet is published to an instance of My webMethods Server, the security role defined in this procedure is listed in the My webMethods Server roles as a static role. The system administrator user, sysadmin, is the initial member of the role on My webMethods Server. You can assign users, groups, or other roles as members of the role. For more information, see Administering My webMethods Server.
Tip:  
You can view the security roles defined for the project in the Bindings view under Implicit Variables in the Application Security Role node, or in the Portlet Application Configuration Editor, as described below.
To add a security role for a portlet application
1. Open a portlet application project in the Navigator view or the Package Explorer view.
2. Expand the WebContent node, expand the WEB-INF folder, and then double-click the portlet.xml file
3. Click the Configuration tab.
4. Expand the Portlets node, expand the portlet, click Security Roles, and then click Add.
5. In the Create Security Role Reference dialog box, type a name in the Role Name field, and in Role Description, type a brief description of the role.
6. (Optional) If you have created functional privileges in the application in a privileges.xml file and want to add a privilege to the security role, click Privileges, click a functional privilege in the list, and then click OK.
7. (Optional) If you want to create a role link, click Add, type a name for the role link, and then click OK.
8. Click Finish.
Note:  
You can also add and modify security roles directly in the web.xml file, using either the XML editor or the text editor.
Copyright © 2016 Software AG, Darmstadt, Germany.

Product LogoContact Support   |   Community   |   Feedback