基本的なカスタマイズ > ユーザーインタフェースのカスタマイズ > Windchill JSP フレームワークを使用した HTML クライアントのカスタマイズ > コンポーネントのアクセス制御 > サンプルコード
  
サンプルコード
既成コードの使用例
ドキュメント操作モデル内の「アクセス制御を編集」操作
「アクセス制御を編集」は、ドキュメントの情報ページの操作リストで使用できる操作です。操作は、<Windchill>\codebase\actionmodels.xml で定義されている "docs details page actions" 操作モデルに含まれています。
<!-- 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>
「ドキュメントを作成」ウィザードの「アクセス制御」ステップ
「ドキュメントを作成」ウィザードは、作成ウィザードのステップとしてのアクセス制御の例です。
ソースファイル: 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"%>
"setAccessControlWizStep" の定義はソースファイル <Windchill>\codebase\config\actions\Security-actions.xml にあり、以下が定義されています。
<action name="setAccessControlWizStep"
id="setAccessControlWizStep" preloadWizardPage="false">
<command
class="com.ptc.core.security.forms.UpdatePermissionsFormDelegate" method=""
windowType="wizard_step"/>
</action>