C# Class Sitecore.SharedSource.MoveValidator.Utils.MoveUtil

Afficher le fichier Open project: Velir/Sitecore-MoveValidator

Méthodes publiques

Méthode Description
GetInsertOptions ( Item item ) : List

Returns the Insert Options of the passed Item.

GetSettingsItem ( ) : MoveValidatorSettingsItem

Returns the Custom Item for the Move Validator Settings Item

IsValidCopy ( Item item, Item destinationItem ) : bool

Validates the selected item against the destination items insert options and location (as it related to the setting item).

PromptUser ( ClientPipelineArgs args ) : void

Prompts the user after the validation has failed

PromptUser ( ClientPipelineArgs args, Item selectedItem, Item destinationItem ) : void

Prompts the user after the validation has failed. Additional functionality to pass parameters into the args so they can be picked up on the postback.

Method Details

GetInsertOptions() public static méthode

Returns the Insert Options of the passed Item.
public static GetInsertOptions ( Item item ) : List
item Item
Résultat List

GetSettingsItem() public static méthode

Returns the Custom Item for the Move Validator Settings Item
public static GetSettingsItem ( ) : MoveValidatorSettingsItem
Résultat Sitecore.SharedSource.MoveValidator.CustomItems.Common.MoveValidator.MoveValidatorSettingsItem

IsValidCopy() public static méthode

Validates the selected item against the destination items insert options and location (as it related to the setting item).
public static IsValidCopy ( Item item, Item destinationItem ) : bool
item Item
destinationItem Item
Résultat bool

PromptUser() public static méthode

Prompts the user after the validation has failed
public static PromptUser ( ClientPipelineArgs args ) : void
args ClientPipelineArgs Client Pipeline Arguments
Résultat void

PromptUser() public static méthode

Prompts the user after the validation has failed. Additional functionality to pass parameters into the args so they can be picked up on the postback.
public static PromptUser ( ClientPipelineArgs args, Item selectedItem, Item destinationItem ) : void
args ClientPipelineArgs Client Pipeline Arguments
selectedItem Item Selected Item that is being copied or moved
destinationItem Item Destination Item
Résultat void