Top Method Summary
Options Name Purpose
ClearCache () Clears the Cache
CHARACTER GetCacheFolders (character) Returns the customization result code folders of the persistent cache that may hold the repository data of a request
HANDLE GetRepositoryData (FetchRepositoryObjectParameter) Retrieves repository data from the cache
CHARACTER GetSessionCustomizationResultCodes () Returns the customization result codes of the current session
RemoveRepositoryData (character) Removes the repository data of a container from the cache
HANDLE RetrieveCacheFromDisc (FetchRepositoryObjectParameter) Attempts to retrieve repository data from the persistent cache
SessionCustomizationChangedHandler () Event handler for the AfterLogin and LoginCompanyKeyChanged events of the SessionManager
StoreRepositoryData (FetchRepositoryObjectParameter, handle) Stores repository data in the cache

Top Constructor Summary
Options Name Purpose
SmartRepositoryCache () Constructor for the SmartRepositoryCache class

Top Property Summary
Options Name Purpose
CHARACTER RepositoryCacheFolder


Method Detail
Top

ClearCache ()

Purpose: Clears the Cache
Notes:

Top

CHARACTER GetCacheFolders (character)

Purpose: Returns the customization result code folders of the persistent
cache that may hold the repository data of a request
Notes: SCL-5901: An empty customization result code addresses the base
object master, so only the "Default" folder applies. A code
addresses the variant of that code, the base ("Default") applies
when the variant does not exist. The unknown value resolves the
variant from the customization result codes of the session, the
first code for which the persistent cache holds the container wins

Parameters:
pcCustomizationResultCode CHARACTER
The customization result code of the request (?, "" or a code)
Returns CHARACTER
The comma delimited list of folder names in the order to probe
Top

HANDLE GetRepositoryData (FetchRepositoryObjectParameter)

Purpose: Retrieves repository data from the cache
Notes: The caller is responsible for deleting the returned ProDataset

Parameters:
poFetchRepositoryObjectParameter Consultingwerk.SmartFramework.Repository.FetchRepositoryObjectParameter
The FetchRepositoryObjectParameter of the request
Returns HANDLE
The dataset with the repository data
Top

CHARACTER GetSessionCustomizationResultCodes ()

Purpose: Returns the customization result codes of the current session
Notes: SCL-5901: The codes resolved by the ICustomizationResultService at
login (SCL-5898), kept in SessionManager:CustomizationResultCodes.
When the codes have not been resolved yet and the service is
registered, the service resolves them now

Returns CHARACTER
The comma delimited list of customization result codes in prioritized order, an empty string when the session has none
Top

RemoveRepositoryData (character)

Purpose: Removes the repository data of a container from the cache
Notes: SCL-5901: Removes the entries of all customization result codes,
page selections and child detail modes of the container. Used
when the base object master or one of its customized variants
has been changed

Parameters:
pcContainerName CHARACTER
The name (or ObjectMasterGuid) of the container as passed in the FetchRepositoryObjectParameter
Top

HANDLE RetrieveCacheFromDisc (FetchRepositoryObjectParameter)

Purpose: Attempts to retrieve repository data from the persistent cache
Notes: The caller is responsible for deleting the returned ProDataset
SCL-5901: Reads the file of the container from the folder of the
customization result code that wins for the request (see
GetCacheFolders), the "Default" folder holds the base object masters

Parameters:
poFetchRepositoryObjectParameter Consultingwerk.SmartFramework.Repository.FetchRepositoryObjectParameter
The FetchRepositoryObjectParameter of the request
Returns HANDLE
The dataset with the repository data
Top

SessionCustomizationChangedHandler ()

Purpose: Event handler for the AfterLogin and LoginCompanyKeyChanged
events of the SessionManager
Notes: SCL-5901: The customization result codes of a client session
change with the login and the login company, the cached data of
a client session was resolved for the previous codes. In a
session with a SmartDB connection the entries are keyed by the
resolved customization result code and remain valid

Top

StoreRepositoryData (FetchRepositoryObjectParameter, handle)

Purpose: Stores repository data in the cache
Notes: Creates a copy of the passed in ProDataset

Parameters:
poFetchRepositoryObjectParameter Consultingwerk.SmartFramework.Repository.FetchRepositoryObjectParameter
The FetchRepositoryObjectParameter of the request
phDataset HANDLE
The dataset with the repository data


Constructor Detail
Top

SmartRepositoryCache ()

Purpose: Constructor for the SmartRepositoryCache class
Notes: SCL-5901: Subscribes to the login events of the session, the
customization result codes of a client session change with the
login and the login company



Property Detail
Top

CHARACTER RepositoryCacheFolder


Returns CHARACTER


©2006-2026 Consultingwerk Ltd.         info@consultingwerk.de         http://www.consultingwerk.de       10.10.2026 15:30:57