SystemMacroPageRefreshSecurityParams Method |
Refreshes the security parameters in macros for all the objects of the specified object types.
Signs all the macros with the current user if the old salt is not specified.
Namespace: CMS.UIControlsAssembly: CMS.UIControls (in CMS.UIControls.dll) Version: 13.0.131
Syntax protected void RefreshSecurityParams(
IEnumerable<string> objectTypes,
string oldSalt,
string newSalt,
bool refreshAll,
bool useCurrentSalt,
Action<string> logProcess
)
Parameters
- objectTypes
- Type: System.Collections.GenericIEnumerableString
Collection of object types that can contain macros - oldSalt
- Type: SystemString
Old salt - newSalt
- Type: SystemString
New salt - refreshAll
- Type: SystemBoolean
If enabled the process skips signature integrity check and re-signs all macros - useCurrentSalt
- Type: SystemBoolean
Indicates that current salt is used for resigning - logProcess
- Type: SystemActionString
Action that provides logging of given message
See Also