Javascript for Episerver 7.5 cms

ContentTreeStoreModel

Location

epi-cms/widget/ContentTreeStoreModel

Extends

Properties

_attrPairNames

_currentContext

_defaultDataStoreName

Default data store name to get from registry, if store is null.

_observers

Collection to store all the listeners from observed queries.

_waitingForContext

additionalQueryOptions

Additional query options added when getting children. Set by inherited model.

createAsLocalAsset

Indicate if the content should be created as local asset of its parent.

currentContentService

Instance of _ContentContextMixin because we can not mixin _ContentContextMixin directly.

getChildrenQuery

getRootChildrenQuery

notAllowToCopy

Id of the root content

notAllowToDelete

Id of the root content

onAddDelegate

Will be executed after add

parentProperty

propertyNames

Maps between client side property names and their server side counterparts

refreshTranslatedAncestors

If true ancestors of the changed node will be refreshed

root

Id of the root content

showAllLanguages

store

Underlying store that will be queried for page tree items.

typeIdentifiers

The set of type identifiers to be taken into account. Can either be an array or a comma separated string.

updateableStoreKey

Dependency key to resolve the updateableStore

Methods

protected method _getSortSettings ( typeIdentifiers )

Get sort settings by typeIdentifiers.

Parameters

protected method _onPasteComplete ( item , copy , isDeleted , oldParentItem , newParentItem )

Executed after a paste operation has completed

Parameters

protected method _selectItemOnPasteComplete ( item , copy , isDeleted , oldParentItem , newParentItem )

Select an item after a paste operation has completed

Parameters

public inherited method add ( item , onComplete )

Add new item

Parameters

public method canCopy ( item )

Determine whether the given item is able to be copied by the current user.

Parameters

public method canCut ( item )

Determine whether the given item is able to be cut by the current user.

Parameters

public method canDelete ( item )

Determine whether the given item is able to be deleted by the current user.

Parameters

public method canEdit ( item )

Determine whether the given item is able to be edit by the current user.

Parameters

public method canPaste ( item , target , isCopy )

Determines whether the given item can be moved or copied from its current parent to a new location Primarily used when validating drag & drop operations.

Parameters

public method getObjectIconClass ( item , fallbackIconClass )

Get icon class for content based on its content link

Parameters

public inherited method isRoot ( contentItem )

Checks to see if the item is a root node in the content tree

Parameters

public method isSupportedType ( dataType )

Check the supported type of data type selected.

Parameters

public inherited method isTypeOfRoot ( contentItem )

Checks to see if the item is type of root node such as: root, sub root

Parameters

public method onChange ( item )

Callback whenever an item has changed, so that Tree can update the label, icon, etc. Note that changes to an item's children or parent(s) will trigger an onChildrenChange() so you can ignore those changes here.

Parameters

public method onChildrenChange ( parent , newChildrenList )

Callback to do notifications about new, updated, or deleted items.

Parameters

public method onDelete ( item )

Callback when an item has been deleted.

Parameters

public method onDeleted ( deletedItems )

Callback when an item has been deleted to set the parent folder as selected

Parameters

public method onPasteComplete ( )

Stub to do somethings when paste process complete


public method onSelect ( item , setFocus , onComplete )

Raise event to set an item as selected

Parameters

protected method own ( )

Track specified handles and remove/destroy them when this instance is destroyed, unless they were already removed/destroyed manually.


public method pasteItem ( childItem , oldParentItem , newParentItem , copy , sortIndex )

Move or copy an item from one parent item to another.

Parameters

public inherited method patch ( id , properties )

Patches the item with the submitted id and updates cache on success

Parameters

public inherited method refreshTranslated ( contentId )

Refresh translated ancestor contents

Parameters

public inherited method rename ( id , name )

Renames an item

Parameters

public inherited method translate ( item )

Creates a version translated into the current language

Parameters