Click or drag to resize
MacroSecurityProcessor Class
Class providing general macro security parameters processing.
Inheritance Hierarchy
SystemObject
  CMS.MacroEngineMacroSecurityProcessor

Namespace: CMS.MacroEngine
Assembly: CMS.MacroEngine (in CMS.MacroEngine.dll) Version: 10.0.0
Syntax
C#
public static class MacroSecurityProcessor

The MacroSecurityProcessor type exposes the following members.

Fields
  NameDescription
Public fieldStatic memberRegExpComplexMacro
Defines a regular expression that detects a complex macro (in case it is matched)
Top
Methods
  NameDescription
Public methodStatic memberAddMacroSecurityParams
Adds |(hash) and |(user) security parameters to given expression.
Public methodStatic memberAddSecurityParameters
Adds security parameters to every macro.
Public methodStatic memberCheckMacroIntegrity
Checks the integrity against given user.
Public methodStatic memberCheckSecurity
Checks the security of the accessed object.
Public methodStatic memberIsSimpleMacro
Returns true if the macro is simple and does not need signing.
Public methodStatic memberRefreshSecurityParameters(DataSet, String)
Recreates all the macros signatures according to new specified salt in all string columns of each row of the given DataSet (modifies the DataSet). Keeps the owners of the macros untouched (verifies the integrity against old salt).
Public methodStatic memberRefreshSecurityParameters(DataSet, String, String) Obsolete.
Recreates all the macros signatures according to new specified salt in all string columns of each row of the given DataSet (modifies the DataSet). Keeps the owners of the macros untouched (verifies the integrity against old salt).
Public methodStatic memberRefreshSecurityParameters(BaseInfo, String, Boolean, String)
Loops through all text columns of given info and signs ALL macros (even already signed) with specififed user.
Public methodStatic memberRefreshSecurityParameters(BaseInfo, String, String, Boolean)
Loops through all text columns of given info and recreates all the macros signatures according to new specified salt. Keeps the owners of the macros untouched (verifies the integrity against old salt).
Public methodStatic memberRemoveMacroSecurityParams(String, String)
Removes |(hash) and |(user) security parameters from given expression.
Public methodStatic memberRemoveMacroSecurityParams(String, String, String)
Removes |(hash) and |(user) security parameters from given expression.
Public methodStatic memberRemoveSecurityParameters(String, Boolean, Hashtable)
Removes security parameters from all macros.
Public methodStatic memberRemoveSecurityParameters(String, Boolean, Hashtable, Boolean)
Removes security parameters from all macros.
Top
Events
  NameDescription
Public eventStatic memberOnCheckObjectPermissions
Event which is called whenever the security check on object is requested. It's called after the standard check is processed and the result can be overriden with this handler.
Top
See Also