Sample Code
Examples of usage in OOTB code
Edit Access Control Action in document action model
Edit Access Control is an action available in the action list on a document info page. The action is included in the “docs details page actions” action model defined in <Windchill>\codebase\actionmodels.xml
<!-- list used on document details page -->
<model name="docs details page actions">
<action name="oldedit" type="document"/>
<action name="download" type="document"/>
<action name="route" type="workflow"/>
<action name="setState" type="lifecycle"/>
<action name="createSubscription" type="subscription"/>
<action name="checkout" type="object"/>
<action name="checkin" type="document"/>
<action name="undocheckout" type="object"/>
<action name="rollupIterations" type="object"/>
<action name="update" type="document"/>
<action name="rename" type="document"/>
<action name="ManageSecurity" type="accessPermission"/>
<action name="delete" type="object"/>
<action name="bookmarkIt" type="bookmark"/>
<action name="create_deli" type="deliverable"/>
<action name="cut" type="object"/>
<action name="copy" type="object"/>
<action name="export" type="object"/>
<action name="viewInProductView" type="document"/>
<action name="pdmCheckInApply" type="object"/>
<action name="SBSendToPdm" type="sandbox"/>
<action name="sandboxUndoCheckoutDetails" type="object"/>
<action name="removeShare" type="object"/>
<action name="EDA_COMPARE" type="EDAcompare"/>
<action name="VALIDATION_MANAGER" type="EDAcompare"/>
<action name="SETUP_FILE" type="EDAcompare"/>
<action name="wtObjCompare" type="ocmp"/>
</model>
Access Control Step in Create Document Wizard
The Create Document wizard is an example of Access Control as a step in a create wizard.
Source file: wcEnterprise\DocumentManagement\src_web\netmarkets\jsp\document\create.jsp
<%@ taglib prefix="jca"
uri="http://www.ptc.com/windchill/taglib/components" %>
<%@ taglib prefix="docmgnt"
uri="http://www.ptc.com/windchill/taglib/docmgnt" %>

<%@ include file="/netmarkets/jsp/components/beginWizard.jspf"%>
<%@ include
file="/netmarkets/jsp/components/includeWizBean.jspf"%>

<jca:initializeItem operation="${createBean.create}"/>

<docmgnt:validateNameJSTag/>

<jca:wizard title="${param.titleString}">
<jca:wizardStep action="setContextWizStep" type="object"/>
<jca:wizardStep action="defineItemWizStep" type="object"/>
<jca:wizardStep action="setAttributesWizStep" type="object"
/>
<jca:wizardStep action="attachments_step" type="attachments"
/>
<jca:wizardStep action="setAccessControlWizStep"
type="object"
/>
</jca:wizard>

<jca:action actionName="fileSelectionAndUploadApplet"
actionType="attachments" />

<script type="text/javascript">

setUserSubmitFunction(submitFileContent);
</script>

<%@ include file="/netmarkets/jsp/util/end.jspf"%>
The definition of “setAccessControlWizStep” is in Source file, <Windchill>\codebase\config\actions\Security-actions.xml, which defines :
<action name="setAccessControlWizStep"
id="setAccessControlWizStep" preloadWizardPage="false">

<command
class="com.ptc.core.security.forms.UpdatePermissionsFormDelegate" method=""
windowType="wizard_step"/>
</action>
這是否有幫助?