Catatan
Akses ke halaman ini memerlukan otorisasi. Anda dapat mencoba masuk atau mengubah direktori.
Akses ke halaman ini memerlukan otorisasi. Anda dapat mencoba mengubah direktori.
Di Authorization Manager, operasi adalah fungsi atau metode aplikasi tingkat rendah. Operasi ini dikelompokkan bersama sebagai tugas. Pengguna aplikasi meminta izin untuk menyelesaikan tugas. Operasi diwakili oleh objek IAzOperation . Untuk informasi selengkapnya tentang operasi, lihat Operasi dan Tugas.
Contoh berikut menunjukkan cara menentukan operasi di penyimpanan kebijakan otorisasi. Contoh mengasumsikan bahwa ada penyimpanan kebijakan XML yang ada bernama MyStore.xml di direktori akar drive C, dan bahwa penyimpanan ini berisi aplikasi bernama Expense.
' Create the AzAuthorizationStore object.
Dim AzManStore
Set AzManStore = CreateObject("AzRoles.AzAuthorizationStore")
' Initialize the authorization store.
AzManStore.Initialize 2, "msxml://C:\MyStore.xml"
' Open the application object in the store.
Dim expenseApp
Set expenseApp= AzManStore.OpenApplication("Expense")
' Create operations.
' Create first operation.
Dim Op1
Set Op1 = expenseApp.CreateOperation("RetrieveForm")
' Set the OperationID property.
Op1.OperationID = 1
' Save the operation to the store.
Op1.Submit
' Create second operation.
Dim Op2
Set Op2 = expenseApp.CreateOperation("EnqueRequest")
' Set the OperationID property.
Op2.OperationID = 2
' Save the operation to the store.
Op2.Submit
' Create third operation.
Dim Op3
Set Op3 = expenseApp.CreateOperation("DequeRequest")
' Set the OperationID property.
Op3.OperationID = 3
' Save the operation to the store.
Op3.Submit
' Create fourth operation.
Dim Op4
Set Op4 = expenseApp.CreateOperation("UseFormControl")
' Set the OperationID property.
Op4.OperationID = 4
' Save the operation to the store.
Op4.Submit
' Create fifth operation.
Dim Op5
Set Op5 = expenseApp.CreateOperation("MarkFormApproved")
' Set the OperationID property.
Op5.OperationID = 5
' Save the operation to the store.
Op5.Submit
' Create sixth operation.
Dim Op6
Set Op6 = expenseApp.CreateOperation("SendApprovalNotify")
' Set the OperationID property.
Op6.OperationID = 6
' Save the operation to the store.
Op6.Submit