Class CustomObjectHelper
Inheritance
CustomObjectHelper
Assembly: SoDataBase.BusinessLogic.dll
Syntax
public static class CustomObjectHelper
Methods
ConvertFromLegacyColumnName(string)
Converts legacy column name to new format supporting multi-level relations.
Declaration
public static string ConvertFromLegacyColumnName(string columnName)
Parameters
| Type |
Name |
Description |
| string |
columnName |
Column name to convert
|
Returns
| Type |
Description |
| string |
Converted column name. If the given column name is not legacy or something goes wrong, returns the original input.
|
Returns true if the current logged-on user has at least Read data right on the
custom object (extra) table with the given table number. When no data right row is
configured for the table, the user has full access (returns true); only an
explicitly configured "None" right for the CustomObjects relation returns false.
If the current principal's role cannot be resolved (SoSentryException),
access cannot be confirmed so the table is hidden (fail closed).
Declaration
public static bool CurrentUserHasAtLeastReadOnExtraTable(int tableNumber)
Parameters
| Type |
Name |
Description |
| int |
tableNumber |
|
Returns
Declaration
public static bool CurrentUserHasAtLeastReadOnExtraTable(string extraTableName)
Parameters
| Type |
Name |
Description |
| string |
extraTableName |
|
Returns
ForwardOrReverseJoin(ArchiveSelect, TableInfo, TableInfo, SoField)
Declaration
public static void ForwardOrReverseJoin(ArchiveSelect select, TableInfo tableToExtend, TableInfo targetTable, SoField relationField)
Parameters
MapSoTableToEntityType(SoTable)
Declaration
public static string MapSoTableToEntityType(SoTable relationTable)
Parameters
| Type |
Name |
Description |
| SoTable |
relationTable |
|
Returns
ResolveDisplayFieldNameAsync(SoField, CancellationToken)
Declaration
public static Task<string> ResolveDisplayFieldNameAsync(SoField field, CancellationToken cancellationToken = default)
Parameters
Returns
ResolveIcon(string)
Declaration
public static string ResolveIcon(string tableName)
Parameters
| Type |
Name |
Description |
| string |
tableName |
|
Returns
ResolveProviderName(SoField)
Declaration
public static string ResolveProviderName(SoField field)
Parameters
| Type |
Name |
Description |
| SoField |
field |
|
Returns
ResolveRelationField(SoField)
Declaration
public static string ResolveRelationField(SoField f)
Parameters
Returns
ShouldHideIdField(string)
Declaration
public static (bool hideRestriction, bool hideDisplay) ShouldHideIdField(string customObject)
Parameters
| Type |
Name |
Description |
| string |
customObject |
|
Returns