Class UdefPublishHelper
This class contains helper functions for publishing user-defined fields.
Namespace: SuperOffice.Data
Assembly: SoDataBase.dll
Syntax
public class UdefPublishHelper : Object
Methods
ClearCachesAfterPublish()
Flushes all relevant Netserver caches after a publish
Declaration
public static void ClearCachesAfterPublish()
DetectChangesInPageOneFields(List<UDefFieldCacheBase.PageOneFieldInfo>, List<UDefFieldCacheBase.PageOneFieldInfo>, Int32)
Detect changes for one line number in a group of page one fields.
Declaration
public static bool DetectChangesInPageOneFields(List<UDefFieldCacheBase.PageOneFieldInfo> adminPageOneFields, List<UDefFieldCacheBase.PageOneFieldInfo> currentPageOneFields, int lineNumber)
Parameters
Type | Name | Description |
---|---|---|
List<UDefFieldCacheBase.PageOneFieldInfo> | adminPageOneFields | |
List<UDefFieldCacheBase.PageOneFieldInfo> | currentPageOneFields | |
Int32 | lineNumber |
Returns
Type | Description |
---|---|
Boolean |
DetectColumnIdChanges(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 static bool DetectColumnIdChanges(UDefType type)
Parameters
Type | Name | Description |
---|---|---|
UDefType | type |
Returns
Type | Description |
---|---|
Boolean |
DetectUnpublishedChanges(UDefType)
Detect changes to admin version. Used to enable/disable "publish" button
Declaration
public static bool DetectUnpublishedChanges(UDefType type)
Parameters
Type | Name | Description |
---|---|---|
UDefType | type |
Returns
Type | Description |
---|---|
Boolean |
Publish(UDefType, UdefPublishHelper.IProgressHandler)
This class contains helper functions for publishing user-defined fields.
Declaration
public static void Publish(UDefType type, UdefPublishHelper.IProgressHandler progressHandler)
Parameters
Type | Name | Description |
---|---|---|
UDefType | type | |
UdefPublishHelper.IProgressHandler | progressHandler |
PublishSmallChanges(UDefType)
Publish Udef, without changes/reassignments of fields.
Declaration
public static void PublishSmallChanges(UDefType type)
Parameters
Type | Name | Description |
---|---|---|
UDefType | type |
Remarks
This code must be kept in sync with Publish(UDefType, UdefPublishHelper.IProgressHandler) - there is a significant amount of overlap.
Revert(UDefType)
This class contains helper functions for publishing user-defined fields.
Declaration
public static void Revert(UDefType type)
Parameters
Type | Name | Description |
---|---|---|
UDefType | type |