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

显示文件 Open project: Velir/Sitecore-MoveValidator

Public Methods

Method 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 method

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

GetSettingsItem() public static method

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

IsValidCopy() public static method

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
return bool

PromptUser() public static method

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

PromptUser() public static method

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
return void