C# Класс Rock.Data.MigrationHelper

Helper Class for updating Rock entities during migrations
Показать файл Открыть проект

Открытые методы

Метод Описание
AddActionTypeAttributeValue ( string actionTypeGuid, string attributeGuid, string value ) : void

Adds the action type attribute value.

AddActionTypePersonAttributeValue ( string actionTypeGuid, string attributeGuid, string value ) : void

Adds an action type person attribute value. Because there's not a way to link to another person in the target database, person attribute values are just set to the first person alias record in the target database which will most likely be the Admin, Admin record.

AddAttributeQualifier ( string attributeGuid, string key, string value, string guid ) : void

Adds the attribute qualifier.

AddAttributeValue ( string attributeGuid, int entityId, string value, string guid ) : void

Adds a new attribute value for the given attributeGuid if it does not already exist.

AddBlock ( string pageGuid, string layoutGuid, string blockTypeGuid, string name, string zone, string preHtml, string postHtml, int order, string guid ) : void

Adds a new Block of the given block type to the given page (optional) and layout (optional), setting its values with the given parameter values. If only the layout is given, edit/configuration authorization will also be inserted into the Auth table for the admin role (GroupId 2).

AddBlockAttributeValue ( string blockGuid, string attributeGuid, string value, bool appendToExisting = false ) : void

Adds a new block attribute value for the given block guid and attribute guid, deleting any previously existing attribute value first.

AddBlockType ( string name, string description, string path, string category, string guid ) : void

Adds a new BlockType.

AddBlockTypeAttribute ( string blockTypeGuid, string fieldTypeGuid, string name, string key, string category, string description, int order, string defaultValue, string guid, bool isRequired = false ) : void

Adds a new BlockType Attribute for the given blocktype and key.

AddDefinedType ( string category, string name, string description, string guid, string helpText = null ) : void

Adds a new DefinedType.

AddDefinedTypeAttribute ( string definedTypeGuid, string fieldTypeGuid, string name, string key, string description, int order, string defaultValue, string guid ) : void

Adds the defined type attribute.

AddDefinedType_pre201409101843015 ( string category, string name, string description, string guid, string helpText = null ) : void

Adds the defined type_pre201409101843015.

AddDefinedValue ( string definedTypeGuid, string value, string description ) : void

Adds the defined value.

AddDefinedValue ( string definedTypeGuid, string value, string description, string guid, bool isSystem = true ) : void

Adds a new DefinedValue for the given DefinedType.

AddDefinedValueAttributeValue ( string definedValueGuid, string attributeGuid, string value ) : void

Adds the defined value attribute value.

AddDefinedValueAttributeValueByName_pre20140819 ( string definedTypeGuid, string definedValueName, string attributeKey, string value ) : void

Adds the name of the defined value attribute value by.

AddDefinedValueAttributeValueByValue ( string definedTypeGuid, string definedValueValue, string attributeKey, string value ) : void

Adds the name of the defined value attribute value by.

AddDefinedValue_pre20140819 ( string definedTypeGuid, string name, string description, string guid, bool isSystem = true ) : void

Adds a new DefinedValue for the given DefinedType.

AddEntityAttribute ( string entityTypeName, string fieldTypeGuid, string entityTypeQualifierColumn, string entityTypeQualifierValue, string name, string category, string description, int order, string defaultValue, string guid, string key = null ) : void

Adds a new EntityType Attribute for the given EntityType, FieldType, and name (key).

AddGlobalAttribute ( string fieldTypeGuid, string entityTypeQualifierColumn, string entityTypeQualifierValue, string name, string description, int order, string defaultValue, string guid, string key = null ) : void

Adds a global Attribute for the given FieldType, entityTypeQualifierColumn, entityTypeQualifierValue and name (key). Note: This method delets the Attribute first if it had already existed.

AddGroupMemberAttributeDefinedValue ( string groupGuid, string name, string description, int order, string defaultValue, bool isGridColumn, bool isMultiValue, bool isRequired, string definedTypeGuid, string guid, bool isSystem = true ) : void

Adds or updates a group member Attribute for the given group for storing a particular defined value. The defined values are constrained by the given defined type.

AddGroupType ( string name, string description, string groupTerm, string groupMemberTerm, bool allowMultipleLocations, bool showInGroupList, bool showInNavigation, string iconCssClass, int order, string inheritedGroupTypeGuid, int locationSelectionMode, string groupTypePurposeValueGuid, string guid, bool isSystem = true ) : void

Adds or Updates the GroupType for the given guid (if it exists); otherwise it inserts a new record.

AddGroupTypeGroupAttribute ( string groupTypeGuid, string fieldTypeGuid, string name, string description, int order, string defaultValue, string guid ) : void

Adds a new GroupType "Group Attribute" for the given GroupType using the given values.

AddGroupTypeRole ( string groupTypeGuid, string name, string description, int order, int maxCount, int minCount, string guid, bool isSystem = true, bool isLeader = false, bool isDefaultGroupTypeRole = false ) : void

Adds or Updates the GroupTypeRole for the given guid (if it exists); otherwise it inserts a new record. Can also set the role as the default for the given GroupType if isDefaultGroupTypeRole is set to true.

AddLayout ( string siteGuid, string fileName, string name, string description, string guid ) : void

Adds a new Layout to the given site if it doesn't already exist (by Guid), otherwise it updates it

AddPage ( string parentPageGuid, string layoutGuid, string name, string description, string guid, string iconCssClass = "", string insertAfterPageGuid = "" ) : void

Adds a new Page to the given parent page. The new page will be ordered as last child of the parent page.

AddPageRoute ( string pageGuid, string route ) : void

Adds a new PageRoute to the given page but only if the given route name does not exist.

AddPageRoute ( string pageGuid, string route, string guid ) : void

Adds a new PageRoute to the given page but only if the given route name does not exist.

AddPersonBadgeAttribute ( string personBadgeGuid, string fieldTypeGuid, string name, string key, string description, int order, string defaultValue, string guid ) : void

Adds (or Deletes and Adds) the person badge attribute.

AddPersonBadgeAttributeValue ( string personBadgeGuid, string attributeGuid, string value ) : void

Adds/Updates the person badge attribute value.

AddReport ( string categoryGuid, string dataViewGuid, string entityTypeGuid, string name, string description, string guid, int fetchTop = null ) : void

Adds a report.

AddReportField ( string reportGuid, Rock reportFieldType, bool showInGrid, string dataSelectComponentEntityTypeGuid, string selection, int order, string columnHeaderText, string guid ) : void

Adds a report field to a report

AddRestAction ( string controllerName, string controllerClass, string actionMethod, string actionPath ) : void

Adds the rest action.

AddRestController ( string controllerName, string controllerClass ) : void

Adds the rest controller.

AddSecurityAuth ( string entityTypeName, string action, string groupGuid, string authGuid ) : void

Adds the security auth record for the given entity type and group.

AddSecurityAuthForAttribute ( string attributeGuid, int order, string action, bool allow, string groupGuid, int specialRole, string authGuid ) : void

Adds the attribute security authentication. Set GroupGuid to null when setting to a special role

AddSecurityAuthForBinaryFileType ( string binaryFileTypeGuid, int order, string action, bool allow, string groupGuid, Rock specialRole, string authGuid ) : void

Adds the binaryfiletype security authentication. Set GroupGuid to null when setting to a special role

AddSecurityAuthForBlock ( string blockGuid, int order, string action, bool allow, string groupGuid, Rock specialRole, string authGuid ) : void

Adds the page security authentication. Set GroupGuid to null when setting to a special role

AddSecurityAuthForCalendar ( string calendarGuid, int order, string action, bool allow, string groupGuid, Rock specialRole, string authGuid ) : void

Adds the security authentication for calendar.

AddSecurityAuthForCategory ( string categoryGuid, int order, string action, bool allow, string groupGuid, int specialRole, string authGuid ) : void

Adds the category security authentication. Set GroupGuid to null when setting to a special role

AddSecurityAuthForContentChannel ( string contentChannelGuid, int order, string action, bool allow, string groupGuid, Rock specialRole, string authGuid ) : void

Adds the security authentication for content channel.

AddSecurityAuthForEntityType ( string entityTypeName, int order, string action, bool allow, string groupGuid, int specialRole, string authGuid ) : void

Adds the security auth record for the given entity type and group.

AddSecurityAuthForGroupType ( string groupTypeGuid, int order, string action, bool allow, string groupGuid, Rock specialRole, string authGuid ) : void

Adds the page security authentication. Set GroupGuid to null when setting to a special role

AddSecurityAuthForPage ( string pageGuid, int order, string action, bool allow, string groupGuid, int specialRole, string authGuid ) : void

Adds the page security authentication. Set GroupGuid to null when setting to a special role

AddSecurityAuthForRestAction ( string restActionMethod, string restActionPath, int order, string action, bool allow, string groupGuid, Rock specialRole, string authGuid ) : void

Adds the security authentication for rest action.

AddSecurityAuthForRestController ( string restControllerClass, int order, string action, bool allow, string groupGuid, Rock specialRole, string authGuid ) : void

Adds the security authentication for rest controller.

AddSecurityRoleGroup ( string name, string description, string guid ) : void

Adds the security role group.

AddSite ( string name, string description, string theme, string guid ) : void

Adds a new Layout to the given site.

CreateWorkflowTrigger ( string entityTypeName, WorkflowTriggerType triggerType, string qualifierColumn, string qualifierValue, string workflowTypeGuid, string description, string guid = null ) : void

Creates the workflow trigger.

DeleteAttribute ( string guid ) : void

Deletes the attribute.

DeleteAttributeValuesByWorkflowAction ( string workflowActionGuid ) : void

Deletes the attribute values by workflow action guid.

DeleteAttributesByEntityType ( string entityTypeGuid ) : void

Deletes the attributes by entity type.

DeleteBlock ( string guid ) : void

Deletes the block and any authorization records that belonged to it.

DeleteBlockAttribute ( string guid ) : void

Deletes the block Attribute.

DeleteBlockAttributeValue ( string blockGuid, string attributeGuid ) : void

Deletes the block attribute value.

DeleteBlockType ( string guid ) : void

Deletes the BlockType.

DeleteByGuid ( string guid, string tableName ) : void

Deletes from the table by the by unique identifier.

DeleteCategory ( string guid ) : void

Deletes the category.

DeleteDefinedType ( string guid ) : void

Deletes the DefinedType.

DeleteDefinedValue ( string guid ) : void

Deletes the DefinedValue.

DeleteEntityType ( string guid ) : void

Deletes the EntityType.

DeleteFieldType ( string guid ) : void

Deletes the FieldType.

DeleteGroup ( string guid, bool orphanAnyChildren = true ) : void

Deletes the group.

DeleteGroupType ( string guid ) : void

Deletes the GroupType.

DeleteGroupTypeRole ( string guid ) : void

Deletes the GroupTypeRole.

DeleteLayout ( string guid ) : void

Deletes the Layout.

DeletePage ( string guid ) : void

Deletes the Page and any PageViews that use the page.

DeletePageContext ( string guid ) : void

Deletes the page context.

DeleteReport ( string guid ) : void

Deletes the report

DeleteReportField ( string guid ) : void

Deletes the report field.

DeleteSecurityAuth ( string guid ) : void

Deletes the security auth record.

DeleteSecurityAuthForAttribute ( string attributeGuid ) : void

Deletes the security authentication for page.

DeleteSecurityAuthForBlock ( string blockGuid ) : void

Deletes the security authentication for block.

DeleteSecurityAuthForCategory ( string categoryGuid ) : void

Deletes the security authentication for category.

DeleteSecurityAuthForGroupType ( string groupTypeGuid ) : void

Deletes the security authentication for groupType.

DeleteSecurityAuthForPage ( string pageGuid ) : void

Deletes the security authentication for page.

DeleteSecurityRoleGroup ( string guid ) : void

Deletes the security role group.

DeleteSite ( string guid ) : void

Deletes the Layout.

DeleteSystemEmail ( string guid ) : void

Deletes the SystemEmail.

DeleteWorkflowActionType ( string guid ) : void

Deletes the type of the workflow action.

DeleteWorkflowActivityType ( string guid ) : void

Deletes the type of the workflow activity.

DeleteWorkflowTriggersByWorkflowCategory ( string workflowCategoryGuid ) : void

Deletes workflow triggers that reference a workflow type that has a category defined by the given guid.

DeleteWorkflowType ( string guid ) : void

Deletes the type of the workflow.

MigrationHelper ( IMigration migration ) : System

Initializes a new instance of the MigrationHelper class.

MovePage ( string pageGuid, string parentPageGuid ) : void

Moves the Page to the new given parent page.

RenameBlockType ( string oldPath, string newPath, string newCategory = null, string newName = null, string newDescription = null ) : void

Renames the type of the block.

UpdateAttributeQualifier ( string attributeGuid, string key, string value, string guid ) : void

Updates the attribute qualifier.

UpdateBinaryFileType ( string storageEntityTypeId, string name, string description, string iconCssClass, string guid, bool allowCaching = false, bool requiresViewSecurity = false ) : void

Updates the type of the binary file.

UpdateBlockType ( string name, string description, string path, string category, string guid ) : void

Updates the BlockType by path (if it exists); otherwise it inserts a new record. In either case it will be marked IsSystem.

UpdateBlockTypeAttribute ( string blockTypeGuid, string fieldTypeGuid, string name, string key, string category, string description, int order, string defaultValue, string guid ) : void

Updates the BlockType Attribute for the given blocktype and key (if it exists); otherwise it inserts a new record.

UpdateCategory ( string entityTypeGuid, string name, string iconCssClass, string description, string guid, int order, string parentCategoryGuid = "" ) : void

Updates the category or adds if it doesn't already exist (based on Guid)

UpdateCategoryByName ( string entityTypeGuid, string name, string iconCssClass, string description, string guid, int order ) : void

Updates the category or adds if it doesn't already exist (based on Name)

UpdateDefinedValue ( string definedTypeGuid, string value, string description, string guid, bool isSystem = true, int foreignId = null, string foreignKey = "" ) : void

Updates (or Adds) the defined value for the given DefinedType.

UpdateDefinedValueAttributeValue ( string definedValueGuid, string attributeGuid, string value ) : void

Adds the defined value attribute value.

UpdateDefinedValueByName_pre20140819 ( string definedTypeGuid, string name, string description, int order, bool isSystem = true ) : void

Updates the name of the defined value by.

UpdateDefinedValueByValue ( string definedTypeGuid, string value, string description, int order, bool isSystem = true ) : void

Updates the name of the defined value by.

UpdateDefinedValue_pre20140819 ( string definedTypeGuid, string name, string description, string guid, bool isSystem = true ) : void

Updates (or Adds) the defined value for the given DefinedType.

UpdateEntityAttribute ( string modelEntityTypeName, string componentEntityTypeName, string fieldTypeGuid, string name, string description, int order, string defaultValue, string guid, string key = null ) : void

Updates the entity attribute.

UpdateEntityAttribute ( string entityTypeName, string fieldTypeGuid, string entityTypeQualifierColumn, string entityTypeQualifierValue, string name, string description, int order, string defaultValue, string guid, string key = null ) : void

Updates the Entity Attribute for the given EntityType, FieldType, and name (key). otherwise it inserts a new record.

UpdateEntityType ( string name, string guid, bool isEntity, bool isSecured ) : void

Updates the EntityType by name (if it exists); otherwise it inserts a new record.

UpdateEntityType ( string name, string friendlyName, string assemblyName, bool isEntity, bool isSecured, string guid ) : void

Updates the EntityType by name (if it exists); otherwise it inserts a new record.

UpdateEntityTypeMultiValueFieldType ( string entityTypeName, string fieldTypeGuid ) : void

Updates the EntityType MultiValueFieldType

UpdateEntityTypeSingleValueFieldType ( string entityTypeName, string fieldTypeGuid ) : void

Updates the EntityType SingleValueFieldType

UpdateFieldType ( string name, string description, string assembly, string className, string guid, bool IsSystem = true ) : void

Updates the FieldType by assembly and className (if it exists); otherwise it inserts a new record.

UpdateGroup ( string parentGroupGuid, string groupTypeGuid, string name, string description, string campusGuid, int order, string guid, bool isSystem = true, bool isSecurityRole = false, bool isActive = true ) : void

Updates the Group for the given guid (if it exists); otherwise it inserts a new record.

UpdateGroupMemberAttributeDefinedValue ( string groupGuid, string name, string description, int order, string defaultValue, bool isGridColumn, bool isMultiValue, bool isRequired, string definedTypeGuid, string guid, bool isSystem = true ) : void

Adds or updates a group member Attribute for the given group for storing a particular defined value. The defined values are constrained by the given defined type.

UpdateGroupType ( string name, string description, string groupTerm, string groupMemberTerm, string defaultGroupRoleGuid, bool allowMultipleLocations, bool showInGroupList, bool showInNavigation, string iconCssClass, int order, string inheritedGroupTypeGuid, int locationSelectionMode, string groupTypePurposeValueGuid, string guid, bool isSystem = true ) : void

Adds or Updates the GroupType for the given guid (if it exists); otherwise it inserts a new record.

UpdateGroupTypeRole ( string groupTypeGuid, string name, string description, int order, int maxCount, int minCount, string guid, bool isSystem = true, bool isLeader = false, bool isDefaultGroupTypeRole = false ) : void

Adds or Updates the GroupTypeRole for the given guid (if it exists); otherwise it inserts a new record. Can also set the role as the default for the given GroupType if isDefaultGroupTypeRole is set to true.

UpdateHtmlContentBlock ( string blockGuid, string htmlContent, string guid ) : void

Add or Updates the HTML content for an HTML Content Block

UpdateLayout ( string siteGuid, string fileName, string name, string description, string guid, bool IsSystem = true ) : void

Updates the layout file for the Site to have a known Guid and update the Name, Description and IsSystem

UpdatePageContext ( string pageGuid, string entity, string idParameter, string guid ) : void

Adds or Updates PageContext to the given page, entity, idParameter

UpdatePersonAttribute ( string fieldTypeGuid, string categoryGuid, string name, string key, string iconCssClass, string description, int order, string defaultValue, string guid ) : void

Updates the Person Attribute for the given key (if it exists); otherwise it inserts a new record.

UpdatePersonAttributeCategory ( string name, string iconCssClass, string description, string guid, int order ) : void

Updates the person attribute category.

UpdatePersonBadge ( string name, string description, string entityTypeName, int order, string guid ) : void

Updates the PersonBadge by Guid (if it exists); otherwise it inserts a new record.

UpdateSystemEmail ( string category, string title, string from, string fromName, string to, string cc, string bcc, string subject, string body, string guid ) : void

Updates or Inserts the system email.

UpdateSystemEmail_pre201409101843015 ( string category, string title, string from, string fromName, string to, string cc, string bcc, string subject, string body, string guid ) : void

Updates the system email_pre201409101843015.

UpdateWorkflowActionEntityAttribute ( string actionEntityTypeGuid, string fieldTypeGuid, string name, string key, string description, int order, string defaultValue, string guid ) : void

Updates the workflow action entity attribute.

UpdateWorkflowActionForm ( string header, string footer, string actions, string systemEmailGuid, bool includeActionsInNotification, string actionAttributeGuid, string guid ) : void

Updates the workflow action form.

UpdateWorkflowActionFormAttribute ( string actionFormGuid, string attributeGuid, int order, bool isVisible, bool isReadOnly, bool isRequired, bool hideLabel, string preHtml, string postHtml, string guid ) : void

Updates the workflow action form attribute.

UpdateWorkflowActionFormAttribute ( string actionFormGuid, string attributeGuid, int order, bool isVisible, bool isReadOnly, bool isRequired, string guid ) : void

Updates the workflow action form attribute.

UpdateWorkflowActionType ( string activityTypeGuid, string name, int order, string entityTypeGuid, bool isActionCompletedOnSuccess, bool isActivityCompletedOnSuccess, string workflowFormGuid, string criteriaAttributeGuid, int criteriaComparisonType, string criteriaValue, string guid ) : void

Updates the type of the workflow action.

UpdateWorkflowActivityType ( string WorkflowTypeGuid, bool isActive, string name, string description, bool isActivatedWithWorkflow, int order, string guid ) : void

Updates the type of the workflow activity.

UpdateWorkflowActivityTypeAttribute ( string workflowActivityTypeGuid, string fieldTypeGuid, string name, string key, string description, int order, string defaultValue, string guid ) : void

Updates the workflow activity type attribute.

UpdateWorkflowType ( bool isSystem, bool isActive, string name, string description, string categoryGuid, string workTerm, string iconCssClass, int processingIntervalSeconds, bool isPersisted, int loggingLevel, string guid, int order ) : void

Updates the type of the workflow.

UpdateWorkflowTypeAttribute ( string workflowTypeGuid, string fieldTypeGuid, string name, string key, string description, int order, string defaultValue, string guid ) : void

Updates the workflow type attribute.

Приватные методы

Метод Описание
EnsureEntityTypeExists ( string entityTypeName, bool isEntity = true, bool isSecured = true ) : void

Ensures the entity type exists by adding it by name if it did not already exist.

Описание методов

AddActionTypeAttributeValue() публичный Метод

Adds the action type attribute value.
public AddActionTypeAttributeValue ( string actionTypeGuid, string attributeGuid, string value ) : void
actionTypeGuid string The action type unique identifier.
attributeGuid string The attribute unique identifier.
value string The value.
Результат void

AddActionTypePersonAttributeValue() публичный Метод

Adds an action type person attribute value. Because there's not a way to link to another person in the target database, person attribute values are just set to the first person alias record in the target database which will most likely be the Admin, Admin record.
public AddActionTypePersonAttributeValue ( string actionTypeGuid, string attributeGuid, string value ) : void
actionTypeGuid string The action type unique identifier.
attributeGuid string The attribute unique identifier.
value string The value.
Результат void

AddAttributeQualifier() публичный Метод

Adds the attribute qualifier.
public AddAttributeQualifier ( string attributeGuid, string key, string value, string guid ) : void
attributeGuid string The attribute unique identifier.
key string The key.
value string The value.
guid string The unique identifier.
Результат void

AddAttributeValue() публичный Метод

Adds a new attribute value for the given attributeGuid if it does not already exist.
public AddAttributeValue ( string attributeGuid, int entityId, string value, string guid ) : void
attributeGuid string The attribute GUID.
entityId int The entity id.
value string The value.
guid string The GUID.
Результат void

AddBlock() публичный Метод

Adds a new Block of the given block type to the given page (optional) and layout (optional), setting its values with the given parameter values. If only the layout is given, edit/configuration authorization will also be inserted into the Auth table for the admin role (GroupId 2).
public AddBlock ( string pageGuid, string layoutGuid, string blockTypeGuid, string name, string zone, string preHtml, string postHtml, int order, string guid ) : void
pageGuid string The page GUID.
layoutGuid string The layout GUID.
blockTypeGuid string The block type GUID.
name string The name.
zone string The zone.
preHtml string The pre HTML.
postHtml string The post HTML.
order int The order.
guid string The unique identifier.
Результат void

AddBlockAttributeValue() публичный Метод

Adds a new block attribute value for the given block guid and attribute guid, deleting any previously existing attribute value first.
public AddBlockAttributeValue ( string blockGuid, string attributeGuid, string value, bool appendToExisting = false ) : void
blockGuid string The block GUID.
attributeGuid string The attribute GUID.
value string The value.
appendToExisting bool if set to true appends the value to the existing value instead of replacing.
Результат void

AddBlockType() публичный Метод

Adds a new BlockType.
public AddBlockType ( string name, string description, string path, string category, string guid ) : void
name string
description string
path string
category string
guid string
Результат void

AddBlockTypeAttribute() публичный Метод

Adds a new BlockType Attribute for the given blocktype and key.
Attribute Category no longer supported by this helper function. You'll have to write special migration code yourself. Sorry!
public AddBlockTypeAttribute ( string blockTypeGuid, string fieldTypeGuid, string name, string key, string category, string description, int order, string defaultValue, string guid, bool isRequired = false ) : void
blockTypeGuid string The block GUID.
fieldTypeGuid string The field type GUID.
name string The name.
key string The key.
category string The category.
description string The description.
order int The order.
defaultValue string The default value.
guid string The GUID.
isRequired bool if set to true [is required].
Результат void

AddDefinedType() публичный Метод

Adds a new DefinedType.
public AddDefinedType ( string category, string name, string description, string guid, string helpText = null ) : void
category string The category.
name string The name.
description string The description.
guid string The GUID.
helpText string The help text.
Результат void

AddDefinedTypeAttribute() публичный Метод

Adds the defined type attribute.
public AddDefinedTypeAttribute ( string definedTypeGuid, string fieldTypeGuid, string name, string key, string description, int order, string defaultValue, string guid ) : void
definedTypeGuid string The defined type unique identifier.
fieldTypeGuid string The field type unique identifier.
name string The name.
key string The key.
description string The description.
order int The order.
defaultValue string The default value.
guid string The unique identifier.
Результат void

AddDefinedType_pre201409101843015() публичный Метод

Adds the defined type_pre201409101843015.
public AddDefinedType_pre201409101843015 ( string category, string name, string description, string guid, string helpText = null ) : void
category string The category.
name string The name.
description string The description.
guid string The unique identifier.
helpText string The help text.
Результат void

AddDefinedValue() публичный Метод

Adds the defined value.
public AddDefinedValue ( string definedTypeGuid, string value, string description ) : void
definedTypeGuid string The defined type unique identifier.
value string The value.
description string The description.
Результат void

AddDefinedValue() публичный Метод

Adds a new DefinedValue for the given DefinedType.
public AddDefinedValue ( string definedTypeGuid, string value, string description, string guid, bool isSystem = true ) : void
definedTypeGuid string The defined type GUID.
value string The value.
description string The description.
guid string The GUID.
isSystem bool if set to true [is system].
Результат void

AddDefinedValueAttributeValue() публичный Метод

Adds the defined value attribute value.
public AddDefinedValueAttributeValue ( string definedValueGuid, string attributeGuid, string value ) : void
definedValueGuid string The defined value unique identifier.
attributeGuid string The attribute unique identifier.
value string The value.
Результат void

AddDefinedValueAttributeValueByName_pre20140819() публичный Метод

Adds the name of the defined value attribute value by.
public AddDefinedValueAttributeValueByName_pre20140819 ( string definedTypeGuid, string definedValueName, string attributeKey, string value ) : void
definedTypeGuid string The defined type unique identifier.
definedValueName string Name of the defined value.
attributeKey string The attribute key.
value string The value.
Результат void

AddDefinedValueAttributeValueByValue() публичный Метод

Adds the name of the defined value attribute value by.
public AddDefinedValueAttributeValueByValue ( string definedTypeGuid, string definedValueValue, string attributeKey, string value ) : void
definedTypeGuid string The defined type unique identifier.
definedValueValue string The defined value value.
attributeKey string The attribute key.
value string The value.
Результат void

AddDefinedValue_pre20140819() публичный Метод

Adds a new DefinedValue for the given DefinedType.
public AddDefinedValue_pre20140819 ( string definedTypeGuid, string name, string description, string guid, bool isSystem = true ) : void
definedTypeGuid string The defined type GUID.
name string The name.
description string The description.
guid string The GUID.
isSystem bool if set to true [is system].
Результат void

AddEntityAttribute() публичный Метод

Adds a new EntityType Attribute for the given EntityType, FieldType, and name (key).
public AddEntityAttribute ( string entityTypeName, string fieldTypeGuid, string entityTypeQualifierColumn, string entityTypeQualifierValue, string name, string category, string description, int order, string defaultValue, string guid, string key = null ) : void
entityTypeName string Name of the entity type.
fieldTypeGuid string The field type GUID.
entityTypeQualifierColumn string The entity type qualifier column.
entityTypeQualifierValue string The entity type qualifier value.
name string The name.
category string The category.
description string The description.
order int The order.
defaultValue string The default value.
guid string The GUID.
key string The key. Defaults to Name without Spaces. If this is a core global attribute, specify the key with a 'core.' prefix
Результат void

AddGlobalAttribute() публичный Метод

Adds a global Attribute for the given FieldType, entityTypeQualifierColumn, entityTypeQualifierValue and name (key). Note: This method delets the Attribute first if it had already existed.
public AddGlobalAttribute ( string fieldTypeGuid, string entityTypeQualifierColumn, string entityTypeQualifierValue, string name, string description, int order, string defaultValue, string guid, string key = null ) : void
fieldTypeGuid string The field type GUID.
entityTypeQualifierColumn string The entity type qualifier column.
entityTypeQualifierValue string The entity type qualifier value.
name string The name.
description string The description.
order int The order.
defaultValue string The default value.
guid string The GUID.
key string The key. Defaults to Name without Spaces. If this is a core global attribute, specify the key with a 'core.' prefix
Результат void

AddGroupMemberAttributeDefinedValue() публичный Метод

Adds or updates a group member Attribute for the given group for storing a particular defined value. The defined values are constrained by the given defined type.
public AddGroupMemberAttributeDefinedValue ( string groupGuid, string name, string description, int order, string defaultValue, bool isGridColumn, bool isMultiValue, bool isRequired, string definedTypeGuid, string guid, bool isSystem = true ) : void
groupGuid string The group unique identifier.
name string The name the group member attribute. The attribute key will become the name with the whitespace removed.
description string The description.
order int The order.
defaultValue string The default value.
isGridColumn bool if set to true the group member attribute will appear in the group member list grid.
isMultiValue bool if set to true the attribute will allow multiple defined values to be set.
isRequired bool if set to true the attribute will be required to be set.
definedTypeGuid string The defined type unique identifier.
guid string The unique identifier of the attribute.
isSystem bool if set to true the attribute is considered a system attribute..
Результат void

AddGroupType() публичный Метод

Adds or Updates the GroupType for the given guid (if it exists); otherwise it inserts a new record.
public AddGroupType ( string name, string description, string groupTerm, string groupMemberTerm, bool allowMultipleLocations, bool showInGroupList, bool showInNavigation, string iconCssClass, int order, string inheritedGroupTypeGuid, int locationSelectionMode, string groupTypePurposeValueGuid, string guid, bool isSystem = true ) : void
name string The name.
description string The description.
groupTerm string The group term.
groupMemberTerm string The group member term.
allowMultipleLocations bool if set to true [allow multiple locations].
showInGroupList bool if set to true [show in group list].
showInNavigation bool if set to true [show in navigation].
iconCssClass string The icon CSS class.
order int The order.
inheritedGroupTypeGuid string The inherited group type unique identifier.
locationSelectionMode int The location selection mode.
groupTypePurposeValueGuid string The group type purpose value unique identifier.
guid string The unique identifier.
isSystem bool if set to true [is system].
Результат void

AddGroupTypeGroupAttribute() публичный Метод

Adds a new GroupType "Group Attribute" for the given GroupType using the given values.
public AddGroupTypeGroupAttribute ( string groupTypeGuid, string fieldTypeGuid, string name, string description, int order, string defaultValue, string guid ) : void
groupTypeGuid string
fieldTypeGuid string
name string
description string
order int
defaultValue string a string, empty string, or NULL
guid string
Результат void

AddGroupTypeRole() публичный Метод

Adds or Updates the GroupTypeRole for the given guid (if it exists); otherwise it inserts a new record. Can also set the role as the default for the given GroupType if isDefaultGroupTypeRole is set to true.
public AddGroupTypeRole ( string groupTypeGuid, string name, string description, int order, int maxCount, int minCount, string guid, bool isSystem = true, bool isLeader = false, bool isDefaultGroupTypeRole = false ) : void
groupTypeGuid string The group type unique identifier.
name string The name of the role.
description string The description.
order int The order.
maxCount int The maximum count.
minCount int The minimum count.
guid string The unique identifier of the group type role.
isSystem bool if set to true [is system].
isLeader bool if set to true [is leader].
isDefaultGroupTypeRole bool if set to true the role will be set as the default role for the given group type.
Результат void

AddLayout() публичный Метод

Adds a new Layout to the given site if it doesn't already exist (by Guid), otherwise it updates it
public AddLayout ( string siteGuid, string fileName, string name, string description, string guid ) : void
siteGuid string The site GUID.
fileName string Name of the file.
name string The name.
description string The description.
guid string The GUID.
Результат void

AddPage() публичный Метод

Adds a new Page to the given parent page. The new page will be ordered as last child of the parent page.
public AddPage ( string parentPageGuid, string layoutGuid, string name, string description, string guid, string iconCssClass = "", string insertAfterPageGuid = "" ) : void
parentPageGuid string The parent page GUID.
layoutGuid string The layout GUID.
name string The name.
description string The description.
guid string The GUID.
iconCssClass string The icon CSS class.
insertAfterPageGuid string The insert after page unique identifier.
Результат void

AddPageRoute() публичный Метод

Adds a new PageRoute to the given page but only if the given route name does not exist.
public AddPageRoute ( string pageGuid, string route ) : void
pageGuid string The page GUID.
route string The route.
Результат void

AddPageRoute() публичный Метод

Adds a new PageRoute to the given page but only if the given route name does not exist.
public AddPageRoute ( string pageGuid, string route, string guid ) : void
pageGuid string The page GUID.
route string The route.
guid string The unique identifier.
Результат void

AddPersonBadgeAttribute() публичный Метод

Adds (or Deletes and Adds) the person badge attribute.
public AddPersonBadgeAttribute ( string personBadgeGuid, string fieldTypeGuid, string name, string key, string description, int order, string defaultValue, string guid ) : void
personBadgeGuid string The person badge unique identifier.
fieldTypeGuid string The field type unique identifier.
name string The name.
key string The key.
description string The description.
order int The order.
defaultValue string The default value.
guid string The unique identifier.
Результат void

AddPersonBadgeAttributeValue() публичный Метод

Adds/Updates the person badge attribute value.
public AddPersonBadgeAttributeValue ( string personBadgeGuid, string attributeGuid, string value ) : void
personBadgeGuid string The person badge unique identifier.
attributeGuid string The attribute unique identifier.
value string The value.
Результат void

AddReport() публичный Метод

Adds a report.
public AddReport ( string categoryGuid, string dataViewGuid, string entityTypeGuid, string name, string description, string guid, int fetchTop = null ) : void
categoryGuid string The category unique identifier.
dataViewGuid string The data view unique identifier.
entityTypeGuid string The entity type unique identifier.
name string The name.
description string The description.
guid string The report.Guid
fetchTop int The fetch top.
Результат void

AddReportField() публичный Метод

Adds a report field to a report
public AddReportField ( string reportGuid, Rock reportFieldType, bool showInGrid, string dataSelectComponentEntityTypeGuid, string selection, int order, string columnHeaderText, string guid ) : void
reportGuid string The report unique identifier.
reportFieldType Rock Type of the report field.
showInGrid bool if set to true [show in grid].
dataSelectComponentEntityTypeGuid string The data select component entity type unique identifier.
selection string The selection.
order int The order.
columnHeaderText string The column header text.
guid string The unique identifier.
Результат void

AddRestAction() публичный Метод

Adds the rest action.
public AddRestAction ( string controllerName, string controllerClass, string actionMethod, string actionPath ) : void
controllerName string Name of the controller.
controllerClass string The controller class.
actionMethod string The action method.
actionPath string The action path.
Результат void

AddRestController() публичный Метод

Adds the rest controller.
public AddRestController ( string controllerName, string controllerClass ) : void
controllerName string Name of the controller.
controllerClass string The controller class.
Результат void

AddSecurityAuth() публичный Метод

Adds the security auth record for the given entity type and group.
public AddSecurityAuth ( string entityTypeName, string action, string groupGuid, string authGuid ) : void
entityTypeName string Name of the entity type.
action string The action.
groupGuid string The group GUID.
authGuid string The auth GUID.
Результат void

AddSecurityAuthForAttribute() публичный Метод

Adds the attribute security authentication. Set GroupGuid to null when setting to a special role
public AddSecurityAuthForAttribute ( string attributeGuid, int order, string action, bool allow, string groupGuid, int specialRole, string authGuid ) : void
attributeGuid string The attribute unique identifier.
order int The order.
action string The action.
allow bool if set to true [allow].
groupGuid string The group unique identifier.
specialRole int The special role.
authGuid string The authentication unique identifier.
Результат void

AddSecurityAuthForBinaryFileType() публичный Метод

Adds the binaryfiletype security authentication. Set GroupGuid to null when setting to a special role
public AddSecurityAuthForBinaryFileType ( string binaryFileTypeGuid, int order, string action, bool allow, string groupGuid, Rock specialRole, string authGuid ) : void
binaryFileTypeGuid string The binary file type unique identifier.
order int The order.
action string The action.
allow bool if set to true [allow].
groupGuid string The group unique identifier.
specialRole Rock The special role.
authGuid string The authentication unique identifier.
Результат void

AddSecurityAuthForBlock() публичный Метод

Adds the page security authentication. Set GroupGuid to null when setting to a special role
public AddSecurityAuthForBlock ( string blockGuid, int order, string action, bool allow, string groupGuid, Rock specialRole, string authGuid ) : void
blockGuid string The block unique identifier.
order int The order.
action string The action.
allow bool if set to true [allow].
groupGuid string The group unique identifier.
specialRole Rock The special role.
authGuid string The authentication unique identifier.
Результат void

AddSecurityAuthForCalendar() публичный Метод

Adds the security authentication for calendar.
public AddSecurityAuthForCalendar ( string calendarGuid, int order, string action, bool allow, string groupGuid, Rock specialRole, string authGuid ) : void
calendarGuid string The calendar unique identifier.
order int The order.
action string The action.
allow bool if set to true [allow].
groupGuid string The group unique identifier.
specialRole Rock The special role.
authGuid string The authentication unique identifier.
Результат void

AddSecurityAuthForCategory() публичный Метод

Adds the category security authentication. Set GroupGuid to null when setting to a special role
public AddSecurityAuthForCategory ( string categoryGuid, int order, string action, bool allow, string groupGuid, int specialRole, string authGuid ) : void
categoryGuid string The category unique identifier.
order int The order.
action string The action.
allow bool if set to true [allow].
groupGuid string The group unique identifier.
specialRole int The special role.
authGuid string The authentication unique identifier.
Результат void

AddSecurityAuthForContentChannel() публичный Метод

Adds the security authentication for content channel.
public AddSecurityAuthForContentChannel ( string contentChannelGuid, int order, string action, bool allow, string groupGuid, Rock specialRole, string authGuid ) : void
contentChannelGuid string The content channel unique identifier.
order int The order.
action string The action.
allow bool if set to true [allow].
groupGuid string The group unique identifier.
specialRole Rock The special role.
authGuid string The authentication unique identifier.
Результат void

AddSecurityAuthForEntityType() публичный Метод

Adds the security auth record for the given entity type and group.
public AddSecurityAuthForEntityType ( string entityTypeName, int order, string action, bool allow, string groupGuid, int specialRole, string authGuid ) : void
entityTypeName string Name of the entity type.
order int The order.
action string The action.
allow bool if set to true [allow].
groupGuid string The group unique identifier.
specialRole int The special role.
authGuid string The authentication unique identifier.
Результат void

AddSecurityAuthForGroupType() публичный Метод

Adds the page security authentication. Set GroupGuid to null when setting to a special role
public AddSecurityAuthForGroupType ( string groupTypeGuid, int order, string action, bool allow, string groupGuid, Rock specialRole, string authGuid ) : void
groupTypeGuid string The group type unique identifier.
order int The order.
action string The action.
allow bool if set to true [allow].
groupGuid string The group unique identifier.
specialRole Rock The special role.
authGuid string The authentication unique identifier.
Результат void

AddSecurityAuthForPage() публичный Метод

Adds the page security authentication. Set GroupGuid to null when setting to a special role
public AddSecurityAuthForPage ( string pageGuid, int order, string action, bool allow, string groupGuid, int specialRole, string authGuid ) : void
pageGuid string The page unique identifier.
order int The order.
action string The action.
allow bool if set to true [allow].
groupGuid string The group unique identifier.
specialRole int The special role.
authGuid string The authentication unique identifier.
Результат void

AddSecurityAuthForRestAction() публичный Метод

Adds the security authentication for rest action.
public AddSecurityAuthForRestAction ( string restActionMethod, string restActionPath, int order, string action, bool allow, string groupGuid, Rock specialRole, string authGuid ) : void
restActionMethod string The rest action method.
restActionPath string The rest action path.
order int The order.
action string The action.
allow bool if set to true [allow].
groupGuid string The group unique identifier.
specialRole Rock The special role.
authGuid string The authentication unique identifier.
Результат void

AddSecurityAuthForRestController() публичный Метод

Adds the security authentication for rest controller.
public AddSecurityAuthForRestController ( string restControllerClass, int order, string action, bool allow, string groupGuid, Rock specialRole, string authGuid ) : void
restControllerClass string The rest controller class.
order int The order.
action string The action.
allow bool if set to true [allow].
groupGuid string The group unique identifier.
specialRole Rock The special role.
authGuid string The authentication unique identifier.
Результат void

AddSecurityRoleGroup() публичный Метод

Adds the security role group.
public AddSecurityRoleGroup ( string name, string description, string guid ) : void
name string The name.
description string The description.
guid string The GUID.
Результат void

AddSite() публичный Метод

Adds a new Layout to the given site.
public AddSite ( string name, string description, string theme, string guid ) : void
name string The name.
description string The description.
theme string The theme.
guid string The GUID.
Результат void

CreateWorkflowTrigger() публичный Метод

Creates the workflow trigger.
public CreateWorkflowTrigger ( string entityTypeName, WorkflowTriggerType triggerType, string qualifierColumn, string qualifierValue, string workflowTypeGuid, string description, string guid = null ) : void
entityTypeName string Name of the entity type.
triggerType WorkflowTriggerType Type of the trigger.
qualifierColumn string The qualifier column.
qualifierValue string The qualifier value.
workflowTypeGuid string The workflow type unique identifier.
description string The description.
guid string The unique identifier.
Результат void

DeleteAttribute() публичный Метод

Deletes the attribute.
public DeleteAttribute ( string guid ) : void
guid string The GUID.
Результат void

DeleteAttributeValuesByWorkflowAction() публичный Метод

Deletes the attribute values by workflow action guid.
public DeleteAttributeValuesByWorkflowAction ( string workflowActionGuid ) : void
workflowActionGuid string The workflow action unique identifier.
Результат void

DeleteAttributesByEntityType() публичный Метод

Deletes the attributes by entity type.
public DeleteAttributesByEntityType ( string entityTypeGuid ) : void
entityTypeGuid string The entity type unique identifier.
Результат void

DeleteBlock() публичный Метод

Deletes the block and any authorization records that belonged to it.
public DeleteBlock ( string guid ) : void
guid string The GUID.
Результат void

DeleteBlockAttribute() публичный Метод

Deletes the block Attribute.
public DeleteBlockAttribute ( string guid ) : void
guid string The GUID.
Результат void

DeleteBlockAttributeValue() публичный Метод

Deletes the block attribute value.
public DeleteBlockAttributeValue ( string blockGuid, string attributeGuid ) : void
blockGuid string The block GUID.
attributeGuid string The attribute GUID.
Результат void

DeleteBlockType() публичный Метод

Deletes the BlockType.
public DeleteBlockType ( string guid ) : void
guid string The GUID.
Результат void

DeleteByGuid() публичный Метод

Deletes from the table by the by unique identifier.
public DeleteByGuid ( string guid, string tableName ) : void
guid string The unique identifier.
tableName string The table.
Результат void

DeleteCategory() публичный Метод

Deletes the category.
public DeleteCategory ( string guid ) : void
guid string The unique identifier.
Результат void

DeleteDefinedType() публичный Метод

Deletes the DefinedType.
public DeleteDefinedType ( string guid ) : void
guid string The GUID.
Результат void

DeleteDefinedValue() публичный Метод

Deletes the DefinedValue.
public DeleteDefinedValue ( string guid ) : void
guid string The GUID.
Результат void

DeleteEntityType() публичный Метод

Deletes the EntityType.
public DeleteEntityType ( string guid ) : void
guid string The GUID.
Результат void

DeleteFieldType() публичный Метод

Deletes the FieldType.
public DeleteFieldType ( string guid ) : void
guid string The GUID.
Результат void

DeleteGroup() публичный Метод

Deletes the group.
public DeleteGroup ( string guid, bool orphanAnyChildren = true ) : void
guid string The unique identifier.
orphanAnyChildren bool if set to true any child groups will be orphaned.
Результат void

DeleteGroupType() публичный Метод

Deletes the GroupType.
public DeleteGroupType ( string guid ) : void
guid string The GUID.
Результат void

DeleteGroupTypeRole() публичный Метод

Deletes the GroupTypeRole.
public DeleteGroupTypeRole ( string guid ) : void
guid string The GUID.
Результат void

DeleteLayout() публичный Метод

Deletes the Layout.
public DeleteLayout ( string guid ) : void
guid string The GUID.
Результат void

DeletePage() публичный Метод

Deletes the Page and any PageViews that use the page.
public DeletePage ( string guid ) : void
guid string The GUID.
Результат void

DeletePageContext() публичный Метод

Deletes the page context.
public DeletePageContext ( string guid ) : void
guid string The unique identifier.
Результат void

DeleteReport() публичный Метод

Deletes the report
public DeleteReport ( string guid ) : void
guid string The unique identifier.
Результат void

DeleteReportField() публичный Метод

Deletes the report field.
public DeleteReportField ( string guid ) : void
guid string The unique identifier.
Результат void

DeleteSecurityAuth() публичный Метод

Deletes the security auth record.
public DeleteSecurityAuth ( string guid ) : void
guid string The GUID.
Результат void

DeleteSecurityAuthForAttribute() публичный Метод

Deletes the security authentication for page.
public DeleteSecurityAuthForAttribute ( string attributeGuid ) : void
attributeGuid string The attribute unique identifier.
Результат void

DeleteSecurityAuthForBlock() публичный Метод

Deletes the security authentication for block.
public DeleteSecurityAuthForBlock ( string blockGuid ) : void
blockGuid string The block unique identifier.
Результат void

DeleteSecurityAuthForCategory() публичный Метод

Deletes the security authentication for category.
public DeleteSecurityAuthForCategory ( string categoryGuid ) : void
categoryGuid string The category unique identifier.
Результат void

DeleteSecurityAuthForGroupType() публичный Метод

Deletes the security authentication for groupType.
public DeleteSecurityAuthForGroupType ( string groupTypeGuid ) : void
groupTypeGuid string The groupType unique identifier.
Результат void

DeleteSecurityAuthForPage() публичный Метод

Deletes the security authentication for page.
public DeleteSecurityAuthForPage ( string pageGuid ) : void
pageGuid string The page unique identifier.
Результат void

DeleteSecurityRoleGroup() публичный Метод

Deletes the security role group.
public DeleteSecurityRoleGroup ( string guid ) : void
guid string The GUID.
Результат void

DeleteSite() публичный Метод

Deletes the Layout.
public DeleteSite ( string guid ) : void
guid string The GUID.
Результат void

DeleteSystemEmail() публичный Метод

Deletes the SystemEmail.
public DeleteSystemEmail ( string guid ) : void
guid string The GUID.
Результат void

DeleteWorkflowActionType() публичный Метод

Deletes the type of the workflow action.
public DeleteWorkflowActionType ( string guid ) : void
guid string The unique identifier.
Результат void

DeleteWorkflowActivityType() публичный Метод

Deletes the type of the workflow activity.
public DeleteWorkflowActivityType ( string guid ) : void
guid string The unique identifier.
Результат void

DeleteWorkflowTriggersByWorkflowCategory() публичный Метод

Deletes workflow triggers that reference a workflow type that has a category defined by the given guid.
public DeleteWorkflowTriggersByWorkflowCategory ( string workflowCategoryGuid ) : void
workflowCategoryGuid string The workflow category unique identifier.
Результат void

DeleteWorkflowType() публичный Метод

Deletes the type of the workflow.
public DeleteWorkflowType ( string guid ) : void
guid string The unique identifier.
Результат void

MigrationHelper() публичный Метод

Initializes a new instance of the MigrationHelper class.
public MigrationHelper ( IMigration migration ) : System
migration IMigration The migration.
Результат System

MovePage() публичный Метод

Moves the Page to the new given parent page.
public MovePage ( string pageGuid, string parentPageGuid ) : void
pageGuid string The page GUID.
parentPageGuid string The parent page GUID.
Результат void

RenameBlockType() публичный Метод

Renames the type of the block.
public RenameBlockType ( string oldPath, string newPath, string newCategory = null, string newName = null, string newDescription = null ) : void
oldPath string The old path.
newPath string The new path.
newCategory string The new category.
newName string The new name.
newDescription string The new description.
Результат void

UpdateAttributeQualifier() публичный Метод

Updates the attribute qualifier.
public UpdateAttributeQualifier ( string attributeGuid, string key, string value, string guid ) : void
attributeGuid string The attribute unique identifier.
key string The key.
value string The value.
guid string The unique identifier.
Результат void

UpdateBinaryFileType() публичный Метод

Updates the type of the binary file.
public UpdateBinaryFileType ( string storageEntityTypeId, string name, string description, string iconCssClass, string guid, bool allowCaching = false, bool requiresViewSecurity = false ) : void
storageEntityTypeId string The storage entity type identifier.
name string The name.
description string The description.
iconCssClass string The icon CSS class.
guid string The unique identifier.
allowCaching bool if set to true [allow caching].
requiresViewSecurity bool if set to true [requires view security].
Результат void

UpdateBlockType() публичный Метод

Updates the BlockType by path (if it exists); otherwise it inserts a new record. In either case it will be marked IsSystem.
public UpdateBlockType ( string name, string description, string path, string category, string guid ) : void
name string The name.
description string The description.
path string The path.
category string The category.
guid string The GUID.
Результат void

UpdateBlockTypeAttribute() публичный Метод

Updates the BlockType Attribute for the given blocktype and key (if it exists); otherwise it inserts a new record.
public UpdateBlockTypeAttribute ( string blockTypeGuid, string fieldTypeGuid, string name, string key, string category, string description, int order, string defaultValue, string guid ) : void
blockTypeGuid string
fieldTypeGuid string
name string
key string
category string
description string
order int
defaultValue string
guid string
Результат void

UpdateCategory() публичный Метод

Updates the category or adds if it doesn't already exist (based on Guid)
public UpdateCategory ( string entityTypeGuid, string name, string iconCssClass, string description, string guid, int order, string parentCategoryGuid = "" ) : void
entityTypeGuid string The entity type unique identifier.
name string The name.
iconCssClass string The icon CSS class.
description string The description.
guid string The unique identifier.
order int The order.
parentCategoryGuid string The parent category unique identifier.
Результат void

UpdateCategoryByName() публичный Метод

Updates the category or adds if it doesn't already exist (based on Name)
public UpdateCategoryByName ( string entityTypeGuid, string name, string iconCssClass, string description, string guid, int order ) : void
entityTypeGuid string The entity type unique identifier.
name string The name.
iconCssClass string The icon CSS class.
description string The description.
guid string The unique identifier.
order int The order.
Результат void

UpdateDefinedValue() публичный Метод

Updates (or Adds) the defined value for the given DefinedType.
public UpdateDefinedValue ( string definedTypeGuid, string value, string description, string guid, bool isSystem = true, int foreignId = null, string foreignKey = "" ) : void
definedTypeGuid string The defined type GUID.
value string The value.
description string The description.
guid string The GUID.
isSystem bool if set to true [is system].
foreignId int The foreign identifier.
foreignKey string The foreign key.
Результат void

UpdateDefinedValueAttributeValue() публичный Метод

Adds the defined value attribute value.
public UpdateDefinedValueAttributeValue ( string definedValueGuid, string attributeGuid, string value ) : void
definedValueGuid string The defined value unique identifier.
attributeGuid string The attribute unique identifier.
value string The value.
Результат void

UpdateDefinedValueByName_pre20140819() публичный Метод

Updates the name of the defined value by.
public UpdateDefinedValueByName_pre20140819 ( string definedTypeGuid, string name, string description, int order, bool isSystem = true ) : void
definedTypeGuid string The defined type unique identifier.
name string The name.
description string The description.
order int The order.
isSystem bool if set to true [is system].
Результат void

UpdateDefinedValueByValue() публичный Метод

Updates the name of the defined value by.
public UpdateDefinedValueByValue ( string definedTypeGuid, string value, string description, int order, bool isSystem = true ) : void
definedTypeGuid string The defined type unique identifier.
value string The value.
description string The description.
order int The order.
isSystem bool if set to true [is system].
Результат void

UpdateDefinedValue_pre20140819() публичный Метод

Updates (or Adds) the defined value for the given DefinedType.
public UpdateDefinedValue_pre20140819 ( string definedTypeGuid, string name, string description, string guid, bool isSystem = true ) : void
definedTypeGuid string The defined type GUID.
name string The name.
description string The description.
guid string The GUID.
isSystem bool if set to true [is system].
Результат void

UpdateEntityAttribute() публичный Метод

Updates the entity attribute.
public UpdateEntityAttribute ( string modelEntityTypeName, string componentEntityTypeName, string fieldTypeGuid, string name, string description, int order, string defaultValue, string guid, string key = null ) : void
modelEntityTypeName string Name of the model entity type.
componentEntityTypeName string Name of the component entity type.
fieldTypeGuid string The field type unique identifier.
name string The name.
description string The description.
order int The order.
defaultValue string The default value.
guid string The unique identifier.
key string The key.
Результат void

UpdateEntityAttribute() публичный Метод

Updates the Entity Attribute for the given EntityType, FieldType, and name (key). otherwise it inserts a new record.
public UpdateEntityAttribute ( string entityTypeName, string fieldTypeGuid, string entityTypeQualifierColumn, string entityTypeQualifierValue, string name, string description, int order, string defaultValue, string guid, string key = null ) : void
entityTypeName string Name of the entity type.
fieldTypeGuid string The field type unique identifier.
entityTypeQualifierColumn string The entity type qualifier column.
entityTypeQualifierValue string The entity type qualifier value.
name string The name.
description string The description.
order int The order.
defaultValue string The default value.
guid string The unique identifier.
key string The key. Defaults to Name without Spaces. If this is a core attribute for the entity, specify the key with a 'core.' prefix
Результат void

UpdateEntityType() публичный Метод

Updates the EntityType by name (if it exists); otherwise it inserts a new record.
public UpdateEntityType ( string name, string guid, bool isEntity, bool isSecured ) : void
name string The name.
guid string The GUID.
isEntity bool if set to true [is entity].
isSecured bool if set to true [is secured].
Результат void

UpdateEntityType() публичный Метод

Updates the EntityType by name (if it exists); otherwise it inserts a new record.
public UpdateEntityType ( string name, string friendlyName, string assemblyName, bool isEntity, bool isSecured, string guid ) : void
name string The name.
friendlyName string Name of the friendly.
assemblyName string Name of the assembly.
isEntity bool if set to true [is entity].
isSecured bool if set to true [is secured].
guid string The GUID.
Результат void

UpdateEntityTypeMultiValueFieldType() публичный Метод

Updates the EntityType MultiValueFieldType
public UpdateEntityTypeMultiValueFieldType ( string entityTypeName, string fieldTypeGuid ) : void
entityTypeName string Name of the entity type.
fieldTypeGuid string The field type unique identifier.
Результат void

UpdateEntityTypeSingleValueFieldType() публичный Метод

Updates the EntityType SingleValueFieldType
public UpdateEntityTypeSingleValueFieldType ( string entityTypeName, string fieldTypeGuid ) : void
entityTypeName string Name of the entity type.
fieldTypeGuid string The field type unique identifier.
Результат void

UpdateFieldType() публичный Метод

Updates the FieldType by assembly and className (if it exists); otherwise it inserts a new record.
public UpdateFieldType ( string name, string description, string assembly, string className, string guid, bool IsSystem = true ) : void
name string The name.
description string The description.
assembly string The assembly.
className string Name of the class.
guid string The GUID.
IsSystem bool if set to true [is system].
Результат void

UpdateGroup() публичный Метод

Updates the Group for the given guid (if it exists); otherwise it inserts a new record.
public UpdateGroup ( string parentGroupGuid, string groupTypeGuid, string name, string description, string campusGuid, int order, string guid, bool isSystem = true, bool isSecurityRole = false, bool isActive = true ) : void
parentGroupGuid string The parent group unique identifier.
groupTypeGuid string The group type unique identifier.
name string The name of the group.
description string The description.
campusGuid string The campus unique identifier.
order int The order.
guid string The unique identifier of the group.
isSystem bool if set to true [is system].
isSecurityRole bool if set to true [is security role].
isActive bool if set to true [is active].
Результат void

UpdateGroupMemberAttributeDefinedValue() публичный Метод

Adds or updates a group member Attribute for the given group for storing a particular defined value. The defined values are constrained by the given defined type.
public UpdateGroupMemberAttributeDefinedValue ( string groupGuid, string name, string description, int order, string defaultValue, bool isGridColumn, bool isMultiValue, bool isRequired, string definedTypeGuid, string guid, bool isSystem = true ) : void
groupGuid string The group unique identifier.
name string The name the group member attribute. The attribute key will become the name with the whitespace removed.
description string The description.
order int The order.
defaultValue string The default value.
isGridColumn bool if set to true the group member attribute will appear in the group member list grid.
isMultiValue bool if set to true the attribute will allow multiple defined values to be set.
isRequired bool if set to true the attribute will be required to be set.
definedTypeGuid string The defined type unique identifier.
guid string The unique identifier of the attribute.
isSystem bool if set to true the attribute is considered a system attribute..
Результат void

UpdateGroupType() публичный Метод

Adds or Updates the GroupType for the given guid (if it exists); otherwise it inserts a new record.
public UpdateGroupType ( string name, string description, string groupTerm, string groupMemberTerm, string defaultGroupRoleGuid, bool allowMultipleLocations, bool showInGroupList, bool showInNavigation, string iconCssClass, int order, string inheritedGroupTypeGuid, int locationSelectionMode, string groupTypePurposeValueGuid, string guid, bool isSystem = true ) : void
name string The name.
description string The description.
groupTerm string The group term.
groupMemberTerm string The group member term.
defaultGroupRoleGuid string The guid for default group role. If you don't have a role yet, use 'null' and then use the method later when creating the new role.
allowMultipleLocations bool if set to true [allow multiple locations].
showInGroupList bool if set to true [show in group list].
showInNavigation bool if set to true [show in navigation].
iconCssClass string The icon CSS class.
order int The order.
inheritedGroupTypeGuid string The inherited group type unique identifier.
locationSelectionMode int The location selection mode.
groupTypePurposeValueGuid string The group type purpose value unique identifier.
guid string The unique identifier.
isSystem bool if set to true [is system].
Результат void

UpdateGroupTypeRole() публичный Метод

Adds or Updates the GroupTypeRole for the given guid (if it exists); otherwise it inserts a new record. Can also set the role as the default for the given GroupType if isDefaultGroupTypeRole is set to true.
public UpdateGroupTypeRole ( string groupTypeGuid, string name, string description, int order, int maxCount, int minCount, string guid, bool isSystem = true, bool isLeader = false, bool isDefaultGroupTypeRole = false ) : void
groupTypeGuid string The group type unique identifier.
name string The name of the role.
description string The description.
order int The order.
maxCount int The maximum count.
minCount int The minimum count.
guid string The unique identifier of the group type role.
isSystem bool if set to true [is system].
isLeader bool if set to true [is leader].
isDefaultGroupTypeRole bool if set to true the role will be set as the default role for the given group type.
Результат void

UpdateHtmlContentBlock() публичный Метод

Add or Updates the HTML content for an HTML Content Block
public UpdateHtmlContentBlock ( string blockGuid, string htmlContent, string guid ) : void
blockGuid string The block unique identifier.
htmlContent string Content of the HTML.
guid string The unique identifier.
Результат void

UpdateLayout() публичный Метод

Updates the layout file for the Site to have a known Guid and update the Name, Description and IsSystem
public UpdateLayout ( string siteGuid, string fileName, string name, string description, string guid, bool IsSystem = true ) : void
siteGuid string The site unique identifier.
fileName string Name of the file.
name string The name.
description string The description.
guid string The unique identifier.
IsSystem bool if set to true [is system].
Результат void

UpdatePageContext() публичный Метод

Adds or Updates PageContext to the given page, entity, idParameter
public UpdatePageContext ( string pageGuid, string entity, string idParameter, string guid ) : void
pageGuid string The page GUID.
entity string The entity value.
idParameter string The idparameter value.
guid string The unique identifier for the PageContext record.
Результат void

UpdatePersonAttribute() публичный Метод

Updates the Person Attribute for the given key (if it exists); otherwise it inserts a new record.
public UpdatePersonAttribute ( string fieldTypeGuid, string categoryGuid, string name, string key, string iconCssClass, string description, int order, string defaultValue, string guid ) : void
fieldTypeGuid string The field type unique identifier.
categoryGuid string The category unique identifier.
name string The name.
key string The key. Defaults to Name without Spaces. If this is a core person attribute, specify the key with a 'core.' prefix
iconCssClass string The icon CSS class.
description string The description.
order int The order.
defaultValue string The default value.
guid string The unique identifier.
Результат void

UpdatePersonAttributeCategory() публичный Метод

Updates the person attribute category.
public UpdatePersonAttributeCategory ( string name, string iconCssClass, string description, string guid, int order ) : void
name string The name.
iconCssClass string The icon CSS class.
description string The description.
guid string The unique identifier.
order int The order.
Результат void

UpdatePersonBadge() публичный Метод

Updates the PersonBadge by Guid (if it exists); otherwise it inserts a new record.
public UpdatePersonBadge ( string name, string description, string entityTypeName, int order, string guid ) : void
name string The name.
description string The description.
entityTypeName string Name of the entity type.
order int The order.
guid string The unique identifier.
Результат void

UpdateSystemEmail() публичный Метод

Updates or Inserts the system email.
public UpdateSystemEmail ( string category, string title, string from, string fromName, string to, string cc, string bcc, string subject, string body, string guid ) : void
category string The category.
title string The title.
from string From.
fromName string From name.
to string To.
cc string The cc.
bcc string The BCC.
subject string The subject.
body string The body.
guid string The unique identifier.
Результат void

UpdateSystemEmail_pre201409101843015() публичный Метод

Updates the system email_pre201409101843015.
public UpdateSystemEmail_pre201409101843015 ( string category, string title, string from, string fromName, string to, string cc, string bcc, string subject, string body, string guid ) : void
category string The category.
title string The title.
from string From.
fromName string From name.
to string To.
cc string The cc.
bcc string The BCC.
subject string The subject.
body string The body.
guid string The unique identifier.
Результат void

UpdateWorkflowActionEntityAttribute() публичный Метод

Updates the workflow action entity attribute.
public UpdateWorkflowActionEntityAttribute ( string actionEntityTypeGuid, string fieldTypeGuid, string name, string key, string description, int order, string defaultValue, string guid ) : void
actionEntityTypeGuid string The action entity type unique identifier.
fieldTypeGuid string The field type unique identifier.
name string The name.
key string The key.
description string The description.
order int The order.
defaultValue string The default value.
guid string The unique identifier.
Результат void

UpdateWorkflowActionForm() публичный Метод

Updates the workflow action form.
public UpdateWorkflowActionForm ( string header, string footer, string actions, string systemEmailGuid, bool includeActionsInNotification, string actionAttributeGuid, string guid ) : void
header string The header.
footer string The footer.
actions string The actions.
systemEmailGuid string The system email unique identifier.
includeActionsInNotification bool if set to true [include actions in notification].
actionAttributeGuid string The action attribute unique identifier.
guid string The unique identifier.
Результат void

UpdateWorkflowActionFormAttribute() публичный Метод

Updates the workflow action form attribute.
public UpdateWorkflowActionFormAttribute ( string actionFormGuid, string attributeGuid, int order, bool isVisible, bool isReadOnly, bool isRequired, bool hideLabel, string preHtml, string postHtml, string guid ) : void
actionFormGuid string The action form unique identifier.
attributeGuid string The attribute unique identifier.
order int The order.
isVisible bool if set to true [is visible].
isReadOnly bool if set to true [is read only].
isRequired bool if set to true [is required].
hideLabel bool if set to true [hide label].
preHtml string The pre html text/html.
postHtml string The post html text/html.
guid string The unique identifier.
Результат void

UpdateWorkflowActionFormAttribute() публичный Метод

Updates the workflow action form attribute.
public UpdateWorkflowActionFormAttribute ( string actionFormGuid, string attributeGuid, int order, bool isVisible, bool isReadOnly, bool isRequired, string guid ) : void
actionFormGuid string The action form unique identifier.
attributeGuid string The attribute unique identifier.
order int The order.
isVisible bool if set to true [is visible].
isReadOnly bool if set to true [is read only].
isRequired bool if set to true [is required].
guid string The unique identifier.
Результат void

UpdateWorkflowActionType() публичный Метод

Updates the type of the workflow action.
public UpdateWorkflowActionType ( string activityTypeGuid, string name, int order, string entityTypeGuid, bool isActionCompletedOnSuccess, bool isActivityCompletedOnSuccess, string workflowFormGuid, string criteriaAttributeGuid, int criteriaComparisonType, string criteriaValue, string guid ) : void
activityTypeGuid string The activity type unique identifier.
name string The name.
order int The order.
entityTypeGuid string The entity type unique identifier.
isActionCompletedOnSuccess bool if set to true [is action completed on success].
isActivityCompletedOnSuccess bool if set to true [is activity completed on success].
workflowFormGuid string The workflow form unique identifier.
criteriaAttributeGuid string The criteria attribute unique identifier.
criteriaComparisonType int Type of the criteria comparison.
criteriaValue string The criteria value.
guid string The unique identifier.
Результат void

UpdateWorkflowActivityType() публичный Метод

Updates the type of the workflow activity.
public UpdateWorkflowActivityType ( string WorkflowTypeGuid, bool isActive, string name, string description, bool isActivatedWithWorkflow, int order, string guid ) : void
WorkflowTypeGuid string The workflow type unique identifier.
isActive bool if set to true [is active].
name string The name.
description string The description.
isActivatedWithWorkflow bool if set to true [is activated with workflow].
order int The order.
guid string The unique identifier.
Результат void

UpdateWorkflowActivityTypeAttribute() публичный Метод

Updates the workflow activity type attribute.
public UpdateWorkflowActivityTypeAttribute ( string workflowActivityTypeGuid, string fieldTypeGuid, string name, string key, string description, int order, string defaultValue, string guid ) : void
workflowActivityTypeGuid string The workflow activity type unique identifier.
fieldTypeGuid string The field type unique identifier.
name string The name.
key string The key.
description string The description.
order int The order.
defaultValue string The default value.
guid string The unique identifier.
Результат void

UpdateWorkflowType() публичный Метод

Updates the type of the workflow.
public UpdateWorkflowType ( bool isSystem, bool isActive, string name, string description, string categoryGuid, string workTerm, string iconCssClass, int processingIntervalSeconds, bool isPersisted, int loggingLevel, string guid, int order ) : void
isSystem bool if set to true [is system].
isActive bool if set to true [is active].
name string The name.
description string The description.
categoryGuid string The category unique identifier.
workTerm string The work term.
iconCssClass string The icon CSS class.
processingIntervalSeconds int The processing interval seconds.
isPersisted bool if set to true [is persisted].
loggingLevel int The logging level.
guid string The unique identifier.
order int The order.
Результат void

UpdateWorkflowTypeAttribute() публичный Метод

Updates the workflow type attribute.
public UpdateWorkflowTypeAttribute ( string workflowTypeGuid, string fieldTypeGuid, string name, string key, string description, int order, string defaultValue, string guid ) : void
workflowTypeGuid string The workflow type unique identifier.
fieldTypeGuid string The field type unique identifier.
name string The name.
key string The key.
description string The description.
order int The order.
defaultValue string The default value.
guid string The unique identifier.
Результат void