Namespace: Consultingwerk.SmartFramework.Authorization
Class 
AuthorizationClient Copy to Clipboard
Parent classes:
Inherits: Progress.Lang.Object
Implements: Consultingwerk.SmartFramework.Authorization.ITokenSecurityService, Consultingwerk.SmartFramework.Authorization.IToolbarItemSecurityService

File:AuthorizationClient
Purpose:Provides authorization information about tokens etc.
Service for Client and AppServer and Client/Server
Author(s):Mike Fechner / Consultingwerk Ltd.
Created:Fri Apr 18 21:36:27 CEST 2014
Notes:Caches information when used on the client



Top Method Summary
Options Name Purpose
+ ClearCache () Clears the cache of the SecurityServiceClient
+ LOGICAL IsTokenRestricted (character) Returns if the given security token is restricted
+ LOGICAL IsToolbarItemRestricted (character, character) Returns if the given toolbar item is restricted
# LoginCompanyKeyChangedHandler () Event handler for the LoginCompanyKeyChanged event of the SessionManager class
# UserNameChangedHandler () Event handler for the UserNameChanged event of the SessionManager class

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


Method Detail
Top

PUBLIC ClearCache ()

Purpose: Clears the cache of the SecurityServiceClient
Notes:

Top

PUBLIC LOGICAL IsTokenRestricted (character)

Purpose: Returns if the given security token is restricted
Notes: When the token is unknown on the current system, the ? is returned

Parameters:
pcSecurityTokenCode CHARACTER
The code of the security token
Returns LOGICAL
Logical value indicating if the given token is restricted for the current user, TRUE means the user does not have access to the token
Top

PUBLIC LOGICAL IsToolbarItemRestricted (character, character)

Purpose: Returns if the given toolbar item is restricted
Notes: When the toolbar item is unknown on the current system, the security realm default will be returned

Parameters:
pcObjectName CHARACTER
The name of the container or SmartTableIOTarget
pcToolbarItemKey CHARACTER
The name of the toolbar item
Returns LOGICAL
Logical value indicating if the given toolbar item is restricted for the current user, TRUE means the user does not have access to the toolbar item
Top

PROTECTED LoginCompanyKeyChangedHandler ()

Purpose: Event handler for the LoginCompanyKeyChanged event of the SessionManager class
Notes:

Top

PROTECTED UserNameChangedHandler ()

Purpose: Event handler for the UserNameChanged event of the SessionManager class
Notes:



Constructor Detail
Top

PUBLIC AuthorizationClient ()

Purpose: Constructor for the AuthorizationClient class
Notes:



©2006-2016 Consultingwerk Ltd.         info@consultingwerk.de         http://www.consultingwerk.de       26.08.2016 08:34:30