Namespace: Consultingwerk.SmartFramework.Authorization
Class 
SmartRequestAuthorizationProvider Copy to Clipboard
Parent classes:
Inherits: Progress.Lang.Object
Implements: Consultingwerk.Framework.Authorization.IRequestAuthorizationProvider, Ccs.Common.IService

File:SmartRequestAuthorizationProvider
Purpose:Smart Framework based Request Authorization Provider
Description:Provides Authorization support for Service Interface requests
Author(s):Mike Fechner / Consultingwerk Ltd.
Created:Sat Nov 24 20:23:06 CET 2012
Notes:Based on Security Object Token Security, using the following
Tokens:
- ServiceInterface.FetchData
- ServiceInterface.SaveChanges
- ServiceInterface.Invoke.<Business Entity or Business Task Method Name>
Then the ConfigurationProvider setting UseDetailedRequestAuthorizationOnUpdate
is set to TRUE, the following tokens will also be queried on SaveChanges
- ServiceInterface.Create
- ServiceInterface.Modify
- ServiceInterface.Delete



Top Method Summary
Options Name Purpose
+ dispose () Destroy/Shutdown/Anti-Initializer
# CHARACTER EntityName (character) Returns the actual Business Entity Name
+ initialize () Initializer/Startup
+ LOGICAL IsFetchDataRestricted (character, IFetchDataRequest) Provides Authorization for FetchData Requests
+ LOGICAL IsInvokeMethodRestricted (character, character, handle, Object) Provides Authorization for InvokeMethod Requests
+ LOGICAL IsInvokeTaskRestricted (character, character, integer, handle, handle, handle, handle, handle, Object) Provides Authorization for InvokeTask Requests
+ LOGICAL IsSaveChangesRestricted (character, handle) Provides Authorization for SaveChanges Requests

Top Constructor Summary
Options Name Purpose
+ SmartRequestAuthorizationProvider () Constructor for the SmartRequestAuthorizationProvider class


Method Detail
Top

PUBLIC dispose ()

Purpose: Destroy/Shutdown/Anti-Initializer
Notes:

Top

PROTECTED CHARACTER EntityName (character)

Purpose: Returns the actual Business Entity Name
Notes:

Parameters:
pcServiceName CHARACTER
The name of the Business Entity as provided by the caller
Returns CHARACTER
The actual Business Entity Name
Top

PUBLIC initialize ()

Purpose: Initializer/Startup
Notes:

Top

PUBLIC LOGICAL IsFetchDataRestricted (character, IFetchDataRequest)

Purpose: Provides Authorization for FetchData Requests
Notes:

Parameters:
pcEntityName CHARACTER
The name of the Business Entity
poRequest Consultingwerk.OERA.IFetchDataRequest
The IFetchDataRequest instance with the parameter for the FetchData request
Returns LOGICAL
Logical value indicating if the FetchData request is restricted
Top

PUBLIC LOGICAL IsInvokeMethodRestricted (character, character, handle, Object)

Purpose: Provides Authorization for InvokeMethod Requests
Notes:

Parameters:
pcEntityName CHARACTER
The name of the Business Entity
pcMethodName CHARACTER
The name of the method to be executed
phDataset HANDLE
The Handle of the Dataset received
poParameter Progress.Lang.Object
The reference to the parameter object
Returns LOGICAL
Logical value indicating if the InvokeMethod request is restricted
Top

PUBLIC LOGICAL IsInvokeTaskRestricted (character, character, integer, handle, handle, handle, handle, handle, Object)

Purpose: Provides Authorization for InvokeTask Requests
Notes:

Parameters:
pcTaskName CHARACTER
The name of the Business Task
pcMethodName CHARACTER
The name of the method to be executed
piNumDatasets INTEGER
The count of the datasets passed to the InvokeTask Method
phDataset1 HANDLE
The Handle of the Dataset received
phDataset2 HANDLE
The Handle of the Dataset received
phDataset3 HANDLE
The Handle of the Dataset received
phDataset4 HANDLE
The Handle of the Dataset received
phDataset5 HANDLE
The Handle of the Dataset received
poParameter Progress.Lang.Object
The reference to the parameter object
Returns LOGICAL
Logical value indicating if the InvokeTask request is restricted
Top

PUBLIC LOGICAL IsSaveChangesRestricted (character, handle)

Purpose: Provides Authorization for SaveChanges Requests
Notes:

Parameters:
pcEntityName CHARACTER
The name of the Business Entity
phDataset HANDLE
The Handle of the Dataset received
Returns LOGICAL
Logical value indicating if the Save Changes request is restricted


Constructor Detail
Top

PUBLIC SmartRequestAuthorizationProvider ()

Purpose: Constructor for the SmartRequestAuthorizationProvider class
Notes:



©2006-2023 Consultingwerk Ltd.         info@consultingwerk.de         http://www.consultingwerk.de       08.12.2024 13:05:16