Javascript for Episerver 7.5 cms

ContentTreeStoreModel (constructor)

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

public method _childrenChanged ( parent )

Parameters

public inherited method _contextChanged ( _11 , _12 )

Parameters

public inherited method _convertPropertyName ( name )

Parameters

public method _createChildrenQuery ( queryBase , excludeType )

Parameters

public method _createQuery ( queryBase , excludeType )

Parameters

public inherited method _getAncestors ( _12 )

Parameters

public inherited method _getAttrNames ( _9 )

Parameters

public method _getSortSettings ( typeIdentifiers )

Get sort settings by typeIdentifiers.

Parameters

public inherited method _hasRoot ( _15 )

Parameters

public inherited method _initialContextChanged ( _13 , _14 )

Parameters

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

Executed after a paste operation has completed

Parameters

public method _pasteNewItem ( childItem , oldParentItem , newParentItem )

Parameters

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

Select an item after a paste operation has completed

Parameters

public inherited method _set ( _b , _c )

Parameters

public method _setShowAllLanguagesAttr ( value )

Parameters

public inherited method _setupStore ( )


public method _updateItemChanged ( parentContentLink )

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 canExpandTo ( item )

Test if the tree can expand to an item

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 constructor ( args )

Construct the ContentTreeStoreModel object.

Parameters

public inherited method contextChanged ( _c , _d )

Parameters

public inherited method contextChangeFailed ( ctx , _10 )

Parameters

public inherited method contextUpdated ( _e , _f )

Parameters

public method copy ( source , target )

Copy source to target

Parameters

public method destroy ( )

Destroy the object.


public inherited method emit ( type , event )

Parameters

public inherited method get ( _3 )

Parameters

public inherited method getAncestors ( _f , _10 )

Parameters

public method getChildren ( parentItem , onComplete )

Calls onComplete() with array of child items of given parent item, all loaded.

Parameters

public inherited method getCurrentContext ( )


public method getIdentity ( item )

Returns identity for an item

Parameters

public method getLabel ( item )

Get the label for an item

Parameters

public method getObjectIconClass ( item , fallbackIconClass )

Get icon class for content based on its content link

Parameters

public inherited method getParentIdentity ( _8 )

Parameters

public method getParentItem ( dndData )

Parameters

public method getRoot ( onItem , onError )

Calls onItem with the root item for the tree, possibly a fabricated item.

Parameters

public inherited method isAncestor ( _9 , _a )

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 mayHaveChildren ( item )

Tells if an item has or may have children. Implementing logic here avoids showing +/- expando icon for nodes that we know don't have children. (For efficiency reasons we may not want to check if an element actually has children until user clicks the expando node)

Parameters

public method move ( source , target )

Move source item to target

Parameters

public method newItem ( args , newParentItem )

Called when an item that's accepted in the tree is added by an external source, for instance by dragging an item from a listing to the tree.

Parameters

public inherited method on ( type , listener )

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 onItemChildrenReload ( parent )

Raised when the children of an item must be reloaded. The subscriber needs to call getChildren to get the updated children collection

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

public inherited 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 postscript ( )


public inherited method refreshAncestors ( _19 , _1a )

Parameters

public inherited method refreshTranslated ( contentId )

Refresh translated ancestor contents

Parameters

public method remove ( items )

Parameters

public inherited method rename ( id , name )

Renames an item

Parameters

public inherited method set ( _5 , _6 )

Parameters

public inherited method translate ( item )

Creates a version translated into the current language

Parameters