IDefaultActionSetter

Methods

String GetSetterName()

Returns the name of the default action setter. This is shown in the Settings section of Converge for the switch for this setter.

String GetSetterDescription()

Returns the description of the default action setter. This is shown in the Settings section of Converge for the switch for this setter.

Version GetMinumumUmbracoVersion()

If you are unsure about how to implement this method, then simply return version 7.0.0 and the setter will always be applied.

Returns the first Umbraco version that this setter should be applied to. The setter switch will not be shown in the Settings section and the setter will not be applied to versions of Umbraco prior to the value returned by this method. The setter will be applied to all versions on or after this value.

Applies to the "local" site Umbraco version, that is the site that will be updated.

MergeAction GetDefaultAction(String itemName, String path, ConvergeContentType contentType, CompareStatus status)

Return the default action given the item name, content type and comparison status. This function is called after a comparison is made and will update the default value of the action menu as required.

The path parameter is a "\"-separated list of this item's ancestors. Each name in the list is URL-encoded and can be decoded using HttpUtility.UrlDecode().

MergeAction is defined as:

public enum MergeAction
{
    Merge,
    Ignore,
    None
}

ConvergeContentType is defined as:

public enum ConvergeContentType
{
    Content,
    ContentTemplate,
    ContentType,
    Media,
    MediaType,
    DataType,
    Template,
    DictionaryItem,
    Macro
}

CompareStatus is defined as:

public enum CompareStatus
{
    RemoteNotLocal,
    LocalNotRemote,
    DocumentTypeDifference,
    DocumentTypeDefinitionDifference,
    Difference,
    Equal
}