Solution
Use the Access Control Component to provide an interface to view and manipulate access control on Ad Hoc controlled objects.
Prerequisite knowledge
To achieve this objective, you need to have an understanding of the following:
Windchill client architecture
Basic development involving HTML forms, JSP, and tag libraries.
The actions framework in the Windchill client architecture.
Solution Elements
Element
Type
Description
actionmodels.xml
XML
<Windchill>\codebase\actionmodels.xml
The actionmodels file defines the actions available in named action models.
Create<myObject>.jsp
JSP
The outer jsp file defining a create wizard
Procedure - Adding an Edit Access Control action to an action model
Include the following in the desired action model in your object's actionmodels.xml:
<action name="ManageSecurity"
type="accessPermission"/>
Procedure - Including an Access Control Step in a Create Wizard
Update the main Create<myObject>.jsp to define the JCA tag library:
<%@ taglib prefix="jca"
uri="http://www.ptc.com/windchill/taglib/components" %>
Include the access control wizard step:
<jca:wizardStep action="setAccessControlWizStep" type="object"/>
這是否有幫助?