Class BaseSchemaService
Inheritance
System.Object
BaseSchemaService
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: Terrasoft.Core.ServiceModel
Assembly: Terrasoft.Core.ServiceModel.dll
Syntax
public abstract class BaseSchemaService : BaseService
Methods
CheckHasNoForeignLock(String, String)
Indicates whether the specified schema has any foreign lock.
Declaration
[WebMethod(true)]
public string CheckHasNoForeignLock(string managerName, string schemaUId)
Parameters
Type | Name | Description |
---|---|---|
System.String | managerName | Schema manager name. |
System.String | schemaUId | Schema identifier. |
Returns
Type | Description |
---|---|
System.String |
Export(String, String)
Exports schema MetaData by specified identifier and schema manager name.
Declaration
[WebMethod(true)]
public virtual void Export(string managerName, string schemaUId)
Parameters
Type | Name | Description |
---|---|---|
System.String | managerName | Schema identifier. |
System.String | schemaUId | Schema identifier. |
ExportInternal(Guid)
Performs export operation.
Declaration
protected virtual string ExportInternal(Guid schemaId)
Parameters
Type | Name | Description |
---|---|---|
System.Guid | schemaId | Schema to export. |
Returns
Type | Description |
---|---|
System.String | The String with metadata. |
GetExceptionResponse(String)
Gets success response
Declaration
protected static string GetExceptionResponse(string message)
Parameters
Type | Name | Description |
---|---|---|
System.String | message | The message. |
Returns
Type | Description |
---|---|
System.String | Response string. |
GetExportFileEncoding()
Declaration
protected virtual Encoding GetExportFileEncoding()
Returns
Type | Description |
---|---|
System.Text.Encoding |
GetSuccessResponse(String)
Gets success response
Declaration
protected static string GetSuccessResponse(string message)
Parameters
Type | Name | Description |
---|---|---|
System.String | message | The message. |
Returns
Type | Description |
---|---|
System.String | Response string. |
GetUniqueNameAndCaption(String, String, String)
Returns unique manager item name and caption by specified manager name.
Declaration
[WebMethod(true)]
public string GetUniqueNameAndCaption(string managerName, string namePrefix = "", string captionPrefix = "")
Parameters
Type | Name | Description |
---|---|---|
System.String | managerName | Manager name. |
System.String | namePrefix | Name prefix |
System.String | captionPrefix | Caption prefix |
Returns
Type | Description |
---|---|
System.String | Json object with name and caption values. |
WriteErrorLog(Exception)
Writes formatter log to application log.
Declaration
protected static void WriteErrorLog(Exception exception)
Parameters
Type | Name | Description |
---|---|---|
System.Exception | exception | Exception to write. |