Class CampaignSchemaManager
Inheritance
Implements
Inherited Members
Namespace: Terrasoft.Core.Campaign
Assembly: Terrasoft.Core.dll
Syntax
public class CampaignSchemaManager : BaseProcessSchemaManager<CampaignSchema>, IManager<ISchemaManagerItem<CampaignSchema>, CampaignSchema>, ISourceCodeSchemaManager, IBaseProcessSchemaManager, ISchemaManager, IManager
Constructors
CampaignSchemaManager()
Declaration
public CampaignSchemaManager()
Properties
ItemCaption
The caption for the schema manager item.
Declaration
public override string ItemCaption { get; }
Property Value
Type | Description |
---|---|
System.String |
Overrides
ItemTypeName
Gets the name of the item type.
Declaration
protected override string ItemTypeName { get; }
Property Value
Type | Description |
---|---|
System.String | The name of the item type. |
Overrides
ResourceManagerName
The name of the resource manager.
Declaration
public override string ResourceManagerName { get; }
Property Value
Type | Description |
---|---|
System.String |
Overrides
Methods
ActualizeCampaignSchemaInfo(CampaignSchema, UserConnection)
Actualizes the flow data for the given campaign schema.
Declaration
public virtual void ActualizeCampaignSchemaInfo(CampaignSchema schema, UserConnection connection)
Parameters
Type | Name | Description |
---|---|---|
CampaignSchema | schema | The campaign schema. |
UserConnection | connection | The user connection. |
CheckOperationUserRights(UserConnection)
Checks user rights for manage schema.
Declaration
protected override bool CheckOperationUserRights(UserConnection userConnection)
Parameters
Type | Name | Description |
---|---|---|
UserConnection | userConnection | The user connection. |
Returns
Type | Description |
---|---|
System.Boolean | Flag that indicates if user have rights |
Overrides
CopySchemaItem(UserConnection, Guid, Guid)
Returns copy of campaign shema manager item.
Declaration
public virtual ISchemaManagerItem<CampaignSchema> CopySchemaItem(UserConnection userConnection, Guid sourceSchemaUId, Guid campaignId)
Parameters
Type | Name | Description |
---|---|---|
UserConnection | userConnection | User connection. |
System.Guid | sourceSchemaUId | Unique identifier of source schema. |
System.Guid | campaignId | Unique identifier of campaign to link. |
Returns
Type | Description |
---|---|
ISchemaManagerItem<CampaignSchema> | Copied campaign schema. |
CreateInterpretationValidator(UserConnection)
Gets the interpretation validator for process schema.
Declaration
protected override IInterpretationValidator<CampaignSchema> CreateInterpretationValidator(UserConnection userConnection)
Parameters
Type | Name | Description |
---|---|---|
UserConnection | userConnection | The user connection. |
Returns
Type | Description |
---|---|
IInterpretationValidator<CampaignSchema> | Interpretation validator instance. |
Overrides
CreateItem()
Creates the item.
Declaration
protected override ISchemaManagerItem<CampaignSchema> CreateItem()
Returns
Type | Description |
---|---|
ISchemaManagerItem<CampaignSchema> | Item instance. |
Overrides
DesignItem(UserConnection, Guid)
Returns design item instance.
Declaration
public override ISchemaManagerItem DesignItem(UserConnection userConnection, Guid uid)
Parameters
Type | Name | Description |
---|---|---|
UserConnection | userConnection | User connection. |
System.Guid | uid | Schema id. |
Returns
Type | Description |
---|---|
ISchemaManagerItem | Implementation for ISchemaManagerItem. |
Overrides
GetGenerator(UserConnection)
Returns the source code generator for the manager schemas.
Declaration
public override SchemaCodeGenerator<CampaignSchema> GetGenerator(UserConnection userConnection)
Parameters
Type | Name | Description |
---|---|---|
UserConnection | userConnection | The user connection. |
Returns
Type | Description |
---|---|
SchemaCodeGenerator<CampaignSchema> | The source code generator. |
Overrides
GetSchemaInstance(Guid)
Gets the instance of the campaign schema with given identifier.
Declaration
public CampaignSchema GetSchemaInstance(Guid uId)
Parameters
Type | Name | Description |
---|---|---|
System.Guid | uId | Unique identifier of the campaign schema |
Returns
Type | Description |
---|---|
CampaignSchema | Instance of the campaign schema with given identifier |
GetSchemaSources(CampaignSchema, Guid, UserConnection)
Returns entity collection, which contains schema sources. Since the dcm schema has no sources it will return an empty collection.
Declaration
protected override EntityCollection GetSchemaSources(CampaignSchema schema, Guid schemaId, UserConnection userConnection)
Parameters
Type | Name | Description |
---|---|---|
CampaignSchema | schema | The schema. |
System.Guid | schemaId | The schema Id. |
UserConnection | userConnection | The user connection. |
Returns
Type | Description |
---|---|
EntityCollection | Schema sources. |
Overrides
InitializeDefSchema()
Initializes the default schema.
Declaration
protected override CampaignSchema InitializeDefSchema()
Returns
Type | Description |
---|---|
CampaignSchema | The default schema. |
Overrides
InternalSaveSchema(ISchemaManagerItem<CampaignSchema>, Guid, Boolean, UserConnection, Boolean, Boolean, Boolean)
Declaration
protected override bool InternalSaveSchema(ISchemaManagerItem<CampaignSchema> designItem, Guid packageUId, bool removeDesignItem, UserConnection userConnection, bool generateBundles, bool validateNamePrefixes = true, bool lockSchemaInSourceControlStorage = false)
Parameters
Type | Name | Description |
---|---|---|
ISchemaManagerItem<CampaignSchema> | designItem | |
System.Guid | packageUId | |
System.Boolean | removeDesignItem | |
UserConnection | userConnection | |
System.Boolean | generateBundles | |
System.Boolean | validateNamePrefixes | |
System.Boolean | lockSchemaInSourceControlStorage |
Returns
Type | Description |
---|---|
System.Boolean |
Overrides
InternalSaveSchemaCopy(UserConnection, ISchemaManagerItem<CampaignSchema>)
Declaration
protected virtual void InternalSaveSchemaCopy(UserConnection userConnection, ISchemaManagerItem<CampaignSchema> managerItem)
Parameters
Type | Name | Description |
---|---|---|
UserConnection | userConnection | |
ISchemaManagerItem<CampaignSchema> | managerItem |
SaveFlowSchema(CampaignSchema, UserConnection)
Declaration
protected override void SaveFlowSchema(CampaignSchema schema, UserConnection connection)
Parameters
Type | Name | Description |
---|---|---|
CampaignSchema | schema | |
UserConnection | connection |
Overrides
SaveSchemaCopy(UserConnection, ISchemaManagerItem<CampaignSchema>)
Saves schema copy to DB.
Declaration
public virtual CampaignSchema SaveSchemaCopy(UserConnection userConnection, ISchemaManagerItem<CampaignSchema> managerItem)
Parameters
Type | Name | Description |
---|---|---|
UserConnection | userConnection | The user connection. |
ISchemaManagerItem<CampaignSchema> | managerItem | The manager item. |
Returns
Type | Description |
---|---|
CampaignSchema | Cloned instance of the schema. |
UnregisterStartSignalEvents(CampaignSchema)
Removes signal events from DB for current campaign schema.
Declaration
public virtual void UnregisterStartSignalEvents(CampaignSchema schema)
Parameters
Type | Name | Description |
---|---|---|
CampaignSchema | schema | Current campaign schema. |