Namespace: Consultingwerk.SmartFramework.Menu
Class 
MenuDatasetController Copy to Clipboard
Parent classes:
Inherits: Progress.Lang.Object
Implements: Consultingwerk.SmartComponents.Interfaces.IDatasetController

File:MenuDatasetController
Author(s):Mike Fechner / Consultingwerk Ltd.
Created:11.10.2012 01:41:25
Notes:Conditionally implements the IDatasetController Interface
when the SmartComponentLibrary preprocessor option is set.

Consultingwerk.SmartFramework.Menu.MenuBusinessEntity
Consultingwerk.SmartFramework.Menu.MenuBusinessEntity



Top Method Summary
Options Name Purpose
+ LOGICAL ContainsClassFileNames (character[]) Verifies that the Character Array of file names contains a valid class name
+ LOGICAL ContainsHtmlFileNames (character[]) Verifies that the Character Array of file names contains a valid html file name
# ROWID CreateFunctionForHtmlFile (character, character) Creates a menu function for an hmtl file
+ CreateFunctionsForClasses (character[]) Creates MenuFunction records for the passed in File Names
+ DeregisterConsumer (Object) Invoked by SmartBusinessEntityAdapter and SmartDatasetChildAdapter instances when detaching from the Dataset of the DatasetController. Allows event unsubscription etc.
+ CHARACTER GetFunctionGuidOfMenuItem (character) Get the FunctionGuid of a Menu Item identified by the MenuGuid
+ CHARACTER GetMenuFunctionSecurityTokenGuid (character) Get the MenuName of a Menu Item identified by the MenuGuid
+ CHARACTER GetMenuNameFromMenuGuid (character) Get the MenuName of a Menu Item identified by the MenuGuid
+ LOGICAL IsMenu (character) Returns if the given MenuGuid represents a Menu or a function
+ RegisterConsumer (Object) Invoked by SmartBusinessEntityAdapter and SmartDatasetChildAdapter instances when attaching to the Dataset of the DatasetController. Allows event subscription etc.
+ ReorderItemsWithinLevel (Object) Brings up a Dialog to reorder the Nodes within the same level, populates the dialog and writes back changed data into the DB

Top Constructor Summary
Options Name Purpose
+ MenuDatasetController () Constructor of the MenuDatasetController class

Top Property Summary
Options Name Purpose
+ HANDLE DatasetHandle


Method Detail
Top

PUBLIC LOGICAL ContainsClassFileNames (character[])

Purpose: Verifies that the Character Array of file names contains a valid
class name
Notes:

Parameters:
pcFileNames CHARACTER
An ABL Character Array of file names
Returns LOGICAL
Logical value indicating if the file names contain class names
Top

PUBLIC LOGICAL ContainsHtmlFileNames (character[])

Purpose: Verifies that the Character Array of file names contains a valid
html file name
Notes:

Parameters:
pcFileNames CHARACTER
An ABL Character Array of file names
Returns LOGICAL
Logical value indicating if the file names contain class names
Top

PROTECTED ROWID CreateFunctionForHtmlFile (character, character)

Purpose: Creates a menu function for an hmtl file
Notes:

Parameters:
pcFileName CHARACTER
The name of the dragged html file
pcModuleGuid CHARACTER
The GUID of the product module to create the function within
Returns ROWID
The ROWID of the created record
Top

PUBLIC CreateFunctionsForClasses (character[])

Purpose: Creates MenuFunction records for the passed in File Names
Notes:

Parameters:
pcFileNames CHARACTER
An ABL Character Array of file names
Top

PUBLIC DeregisterConsumer (Object)

Purpose: Invoked by SmartBusinessEntityAdapter and SmartDatasetChildAdapter
instances when detaching from the Dataset of the DatasetController.
Allows event unsubscription etc.
Notes: Interface IDatasetController member

Parameters:
poConsumer Progress.Lang.Object
The reference of the Object detaching from the Dataset Controller
Top

PUBLIC CHARACTER GetFunctionGuidOfMenuItem (character)

Purpose: Get the FunctionGuid of a Menu Item identified by the MenuGuid
Notes:

Parameters:
pcMenuGuid CHARACTER
Id of a Menu entry
Returns CHARACTER
The FunctionGuid of the requested Menu Item. ? if not found.
Top

PUBLIC CHARACTER GetMenuFunctionSecurityTokenGuid (character)

Purpose: Get the MenuName of a Menu Item identified by the MenuGuid
Notes:

Parameters:
pcMenuGuid CHARACTER
Id of a Menu entry
Returns CHARACTER
The MenuName of the requested Menu Item. Blank if not found.
Top

PUBLIC CHARACTER GetMenuNameFromMenuGuid (character)

Purpose: Get the MenuName of a Menu Item identified by the MenuGuid
Notes:

Parameters:
pcMenuGuid CHARACTER
Id of a Menu entry
Returns CHARACTER
The MenuName of the requested Menu Item. Blank if not found.
Top

PUBLIC LOGICAL IsMenu (character)

Purpose: Returns if the given MenuGuid represents a Menu or
a function
Notes:

Parameters:
pcMenuGuid CHARACTER
The GUID of the Menu Item to verify
Returns LOGICAL
Logical value indicating if the given MenuGuid represents a Menu (or a Function)
Top

PUBLIC RegisterConsumer (Object)

Purpose: Invoked by SmartBusinessEntityAdapter and SmartDatasetChildAdapter
instances when attaching to the Dataset of the DatasetController.
Allows event subscription etc.
Notes: Interface IDatasetController member

Parameters:
poConsumer Progress.Lang.Object
The reference of the Object attaching to the Dataset Controller
Top

PUBLIC ReorderItemsWithinLevel (Object)

Purpose: Brings up a Dialog to reorder the Nodes within the same level,
populates the dialog and writes back changed data into the DB
Notes:

Parameters:
poForm Progress.Lang.Object
The reference to the Form to parent the dialog to


Constructor Detail
Top

PUBLIC MenuDatasetController ()

Purpose: Constructor of the MenuDatasetController class
Notes: Assigns the DatasetHandle property



Property Detail
Top

PUBLIC HANDLE DatasetHandle


Returns HANDLE


Temp-Table Detail


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