Show / Hide Table of Contents

Class UdefPublishHelper

This class contains helper functions for publishing user-defined fields.

Inheritance
object
UdefPublishHelper
Implements
IUdefPublishHelper
Inherited Members
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
Namespace: SuperOffice.Data
Assembly: SoDataBase.BusinessLogic.dll
Syntax
public class UdefPublishHelper : IUdefPublishHelper

Constructors

UdefPublishHelper(IUdefHelper, ISystemEventHelper)

This class contains helper functions for publishing user-defined fields.

Declaration
public UdefPublishHelper(IUdefHelper udefHelper, ISystemEventHelper systemEventHelper)
Parameters
Type Name Description
IUdefHelper udefHelper
ISystemEventHelper systemEventHelper

Methods

ClearCachesAfterPublish()

Flushes all relevant Netserver caches after a publish

Declaration
public void ClearCachesAfterPublish()

DetectChangesInPageOneFields(List<PageOneFieldInfo>, List<PageOneFieldInfo>, int)

Detect changes for one line number in a group of page one fields.

Declaration
public bool DetectChangesInPageOneFields(List<PageOneFieldInfo> adminPageOneFields, List<PageOneFieldInfo> currentPageOneFields, int lineNumber)
Parameters
Type Name Description
List<PageOneFieldInfo> adminPageOneFields
List<PageOneFieldInfo> currentPageOneFields
int lineNumber
Returns
Type Description
bool

DetectColumnIdChangesAsync(UDefType)

Detect if the admin version contain changes to column ids in any of the fields Used for determining if async publish should be run and if the publish backup warning should be shown

Declaration
public Task<bool> DetectColumnIdChangesAsync(UDefType type)
Parameters
Type Name Description
UDefType type
Returns
Type Description
Task<bool>

DetectUnpublishedChangesAsync(UDefType)

Detect changes to admin version. Used to enable/disable "publish" button

Declaration
public Task<bool> DetectUnpublishedChangesAsync(UDefType type)
Parameters
Type Name Description
UDefType type
Returns
Type Description
Task<bool>

PublishAsync(UDefType, IProgressHandler)

This class contains helper functions for publishing user-defined fields.

Declaration
public Task PublishAsync(UDefType type, IProgressHandler progressHandler)
Parameters
Type Name Description
UDefType type
IProgressHandler progressHandler
Returns
Type Description
Task

PublishSmallChangesAsync(UDefType)

Publish Udef, without changes/reassignments of fields.

Declaration
public Task PublishSmallChangesAsync(UDefType type)
Parameters
Type Name Description
UDefType type
Returns
Type Description
Task
Remarks

This code must be kept in sync with PublishAsync(UDefType, IProgressHandler) - there is a significant amount of overlap.

RemoveDuplicateFieldsAsync(UDefType)

This class contains helper functions for publishing user-defined fields.

Declaration
public Task RemoveDuplicateFieldsAsync(UDefType type)
Parameters
Type Name Description
UDefType type
Returns
Type Description
Task

RevertAsync(UDefType)

Revert unpublished udef changes by deleting the Admin version. This method cannot be cancelled halfway

Declaration
public Task RevertAsync(UDefType type)
Parameters
Type Name Description
UDefType type
Returns
Type Description
Task

Implements

IUdefPublishHelper

Extension Methods

EnumUtil.MapEnums<From, To>(From)
Converters.MapEnums<From, To>(From)
© SuperOffice. All rights reserved.
SuperOffice |  Community |  Release Notes |  Privacy |  Site feedback |  Search Docs |  About Docs |  Contribute |  Back to top