Class PolicyManager
Policy manager acts as proxy between methods that call data layer functions and the facade layer. The methods here check if the appropriate security is set and that the data is cached.
Inheritance
System.Object
PolicyManager
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Mediachase.Commerce.Marketing.Managers
Assembly: Mediachase.Commerce.dll
Version: 10.8.0Syntax
public static class PolicyManager
Methods
GetPolicyDto()
Gets the policy dto.
Declaration
public static PolicyDto GetPolicyDto()
Returns
Type | Description |
---|---|
PolicyDto |
GetPolicyDto(Int32)
Gets the Policy dto, checks permissions and caches results.
Declaration
public static PolicyDto GetPolicyDto(int policyId)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | policyId | The policy id. |
Returns
Type | Description |
---|---|
PolicyDto |
SavePolicy(PolicyDto)
Saves the policy.
Declaration
public static void SavePolicy(PolicyDto dto)
Parameters
Type | Name | Description |
---|---|---|
PolicyDto | dto | The dto. |