Namespace: Consultingwerk.SmartFramework.Authorization
Class 
SmartFieldAuthorizationProvider Copy to Clipboard
Parent classes:
Inherits: Progress.Lang.Object
Implements: Consultingwerk.Framework.Authorization.IFieldAuthorizationProvider

File:SmartFieldAuthorizationProvider
Purpose:SmartDB driven field authorization provider implementation
Author(s):Mike Fechner / Consultingwerk Ltd.
Created:Tue Mar 31 21:19:51 CEST 2015
Notes:Supported on the AppServer as well as the client
/* Mike Fechner, Consultingwerk Ltd. 13.09.2017
Preprocessor variables for SmartComponentLibrary, WinKit and SmartFramework
based on Consultingwerk/packages.i now



Top Method Summary
Options Name Purpose
+ CHARACTER GetHiddenFields (Object, character) Returns the list of hidden fields for a temp-table
+ CHARACTER GetReadOnlyFields (Object, character) Returns the list of read-only fields for a temp-table
+ Consultingwerk.Framework.Authorization.FieldRestrictionEnum IsFieldRestricted (Object, character, character) Provides authorization for fields
+ RefreshFieldSecurityItemCache () Refreshes the cache of field security items
# Consultingwerk.Framework.Authorization.FieldRestrictionEnum SecurityCheck (ISecurityService, character, character, character, character, FieldRestrictionEnum) Performs field security check for a single Realm (Visible/Enabled)

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


Method Detail
Top

PUBLIC CHARACTER GetHiddenFields (Object, character)

Purpose: Returns the list of hidden fields for a temp-table
Notes:

Parameters:
poRequestor Progress.Lang.Object
The reference to the requesting object
pcTableName CHARACTER
The field name to secure
Returns CHARACTER
The comma delimited list of hidden fields
Top

PUBLIC CHARACTER GetReadOnlyFields (Object, character)

Purpose: Returns the list of read-only fields for a temp-table
Notes: Hidden fields are also considered read-only

Parameters:
poRequestor Progress.Lang.Object
The reference to the requesting object
pcTableName CHARACTER
The field name to secure
Returns CHARACTER
The comma delimited list of read-only fields
Top

PUBLIC Consultingwerk.Framework.Authorization.FieldRestrictionEnum IsFieldRestricted (Object, character, character)

Purpose: Provides authorization for fields
Notes:

Parameters:
poRequestor Progress.Lang.Object
The reference to the requesting object
pcFieldName CHARACTER
The field name to secure
pcSecurityKey CHARACTER
The security key of the field's container (Viewer, Browser)
Returns Consultingwerk.Framework.Authorization.FieldRestrictionEnum
The FieldRestrictionEnum value
Top

PUBLIC RefreshFieldSecurityItemCache ()

Purpose: Refreshes the cache of field security items
Notes:

Top

PROTECTED Consultingwerk.Framework.Authorization.FieldRestrictionEnum SecurityCheck (ISecurityService, character, character, character, character, FieldRestrictionEnum)

Purpose: Performs field security check for a single Realm (Visible/Enabled)
Notes:

Parameters:
poSecurityService Consultingwerk.SmartFramework.Authorization.ISecurityService
The reference to the ISecurityService implementation
pcObjectName CHARACTER
The name of the requesting object (optional)
pcFieldName CHARACTER
The field name to secure
pcSecurityKey CHARACTER
The security key of the field's container (Viewer, Browser)
pcSecurityRealm CHARACTER
The field security realm value to check
poFieldRestrictionEnum Consultingwerk.Framework.Authorization.FieldRestrictionEnum
The FieldRestrictionEnum value to return when restricted
Returns Consultingwerk.Framework.Authorization.FieldRestrictionEnum
The FieldRestrictionEnum value


Constructor Detail
Top

PUBLIC SmartFieldAuthorizationProvider ()

Purpose: Constructor for the SmartFieldAuthorizationProvider class
Notes:



Temp-Table Detail


©2006-2020 Consultingwerk Ltd.         info@consultingwerk.de         http://www.consultingwerk.de       04.02.2020 23:19:19