Javascript for Episerver 7.5 cms

ContentForestStoreModel (Function)

Summary

Class to use as model for the tree.

Location

epi-cms/widget/ContentForestStoreModel

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

The fabricated root item for the model.

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 inherited method _childrenChanged ( parent )

Parameters

public inherited method _contextChanged ( _11 , _12 )

Parameters

public inherited method _convertPropertyName ( name )

Parameters

public inherited method _createChildrenQuery ( queryBase , excludeType )

Parameters

public inherited method _createQuery ( queryBase , excludeType )

Parameters

public inherited method _getAncestors ( _12 )

Parameters

public inherited method _getAttrNames ( _9 )

Parameters

public inherited method _getSortSettings ( typeIdentifiers )

Get sort settings by typeIdentifiers.

Parameters

public inherited method _hasRoot ( _15 )

Parameters

public inherited method _initialContextChanged ( _13 , _14 )

Parameters

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

Executed after a paste operation has completed

Parameters

public inherited method _pasteNewItem ( childItem , oldParentItem , newParentItem )

Parameters

public inherited 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 inherited method _setShowAllLanguagesAttr ( value )

Parameters

public inherited method _setupStore ( )


public inherited method _updateItemChanged ( parentContentLink )

Parameters

public inherited method add ( item , onComplete )

Add new item

Parameters

public method canCopy ( item )

Determine whether the copy action is supported for an item.

Parameters

public method canCut ( item )

Determine whether the cut action is supported for an item.

Parameters

public method canDelete ( item )

Determine whether the delete action is supported for an item.

Parameters

public method canEdit ( item )

Determine whether the edit action is supported for an item.

Parameters

public inherited method canExpandTo ( item )

Test if the tree can expand to an item

Parameters

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


public inherited method contextChanged ( _c , _d )

Parameters

public inherited method contextChangeFailed ( ctx , _10 )

Parameters

public inherited method contextUpdated ( _e , _f )

Parameters

public inherited method copy ( source , target )

Copy source to target

Parameters

public inherited method destroy ( )

Destroy the object.


public inherited method emit ( type , event )

Parameters

public inherited method get ( _3 )

Parameters

public method getAncestors ( item , onComplete )

Calls onComplete() with an array of ancestors of the given item.

Parameters

public method getChildren ( parentItem , onComplete , onError )

Calls onComplete() with an array of child items of given parent item.

Parameters

public inherited method getCurrentContext ( )


public method getIdentity ( item )

Returns identity for an item.

Parameters

public inherited method getLabel ( item )

Get the label for an item

Parameters

public inherited method getObjectIconClass ( item , fallbackIconClass )

Get icon class for content based on its content link

Parameters

public inherited method getParentIdentity ( _8 )

Parameters

public inherited method getParentItem ( dndData )

Parameters

public method getRoot ( onItem )

Calls onItem with the fake root item for the tree.

Parameters

public inherited method isAncestor ( _9 , _a )

Parameters

public method isRoot ( contentItem )

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

Parameters

public inherited 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.

Parameters

public inherited method move ( source , target )

Move source item to target

Parameters

public inherited 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 inherited 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 inherited method onChildrenChange ( parent , newChildrenList )

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

Parameters

public inherited method onDelete ( item )

Callback when an item has been deleted.

Parameters

public inherited method onDeleted ( deletedItems )

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

Parameters

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

Stub to do somethings when paste process complete


public inherited 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 inherited 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 inherited 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