Javascript for Episerver 7.5 cms

ContextualContentForestStoreModel (Function)

Summary

Class to use as model for the tree.

Location

epi-cms/widget/ContextualContentForestStoreModel

Extends

Properties

_attrPairNames

_currentContentContext

_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.

contentDataStore

contextRootLabel

Overrides label of the contextual root node.

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

handleSelection

Flag indicates that we should handle selection on the given tree when it had refresh

ignoreVersionWhenComparingLinks

notAllowToCopy

Id of the root content

notAllowToDelete

Id of the root content

onAddDelegate

Will be executed after add

parentProperty

previousSelection

Holds information about previous selection in the tree Object's properties: selectedContent: [public] Object An instance of the "dijit._TreeNode" Holds the previous selected content of the given tree selectedAncestors: [public] Array Holds the ancestors of the previous selected content of the given tree

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

protected method _compareUris ( obj1 , obj2 )

Checks if the URI:s are equal

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

protected method _getPseudoContextualContent ( )

Get pseudo contextual content


protected method _getSortSettings ( typeIdentifiers )

Get sort settings by typeIdentifiers.

Parameters

public inherited method _hasRoot ( _15 )

Parameters

public inherited method _initialContextChanged ( _13 , _14 )

Parameters

protected method _isContentContext ( ctx )

Verifies that the context has content data

Parameters

protected method _isSameAsCurrentContentContext ( ctx )

Checks if the content context has Id and PreferredLanguage the same as the already loaded current content context.

Parameters

protected method _isSameAsCurrentContext ( uri )

Checks if the URI is the same as the already loaded context.

Parameters

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

Executed after a paste operation has completed

Parameters

public inherited method _pasteNewItem ( childItem , oldParentItem , newParentItem )

Parameters

protected 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 given item is able to be cut by the current user.

Parameters

public inherited method canDelete ( item )

Determine whether the delete action is supported for an item.

Parameters

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

Verifies the given object allowed to show contextual content or not

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


protected method contentContextChanged ( context , callerData )

Called when the currently loaded content changes. I.e. a new content data object is loaded into the preview area.

Parameters

protected method contentContextUpdated ( ctx , callerData )

Called when the currently loaded content updated.

Parameters

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 decoratePseudoContextualCommands ( commands )

Converts the given commands to work in case pseudo contextual content

Parameters

public inherited method destroy ( )

Destroy the object.


public inherited method emit ( type , event )

Parameters

public method filterAncestors ( ancestors )

Filter out the pseudo contextual content from the given ancestor list incase pseudo content is not the deepest ancestor.

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 array of child items of given parent item.

Parameters

public inherited method getContentDataStore ( )

Gets the content data store from store registry if it's not already cached


public inherited method getContextualRoot ( contentItem )

Get contextual content from the given content item data

Parameters

public inherited method getContextualRootName ( contentItem )

Get contextual root name based on the current content context data type.

Parameters

protected method getCurrentContent ( )

Returns either the current content or a deferred which will resolve a content data as soon as it becomes available.


public inherited method getCurrentContext ( )


public inherited method getIdentity ( item )

Returns identity for an item.

Parameters

public inherited method getLabel ( item )

Get the label for an item

Parameters

public method getObjectIconClass ( contentItem , 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 inherited method getRoot ( onItem )

Calls onItem with the fake root item for the tree.

Parameters

public inherited method hasContextual ( contentAncestors )

Verifies the given tree node has a ancestor is contextual or not

Parameters

public inherited method isAncestor ( _9 , _a )

Parameters

public inherited method isContextualContent ( contentItem )

Verifies the given content item data is contextual or not

Parameters

public inherited method isContextualRoot ( contentItem )

Checks to see the given data item object is contextual root or not

Parameters

public inherited method isPseudoContextualRoot ( contentItem )

Checks to see if the item is a pseudo contextual content

Parameters

public inherited 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 inherited method itemChanged ( id , item )

Notification event when an item has been patched or reloaded.

Parameters

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

Callback whenever context changed

Parameters

public inherited method onSelect ( item , setFocus , onComplete )

Raise event to set an item as selected

Parameters

public method onToggleContentDisplay ( target , display )

Callback whenever widget switcher changed

Parameters

protected 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 method postscript ( )


public inherited method refreshAncestors ( _19 , _1a )

Parameters

public method refreshRoots ( sender )

Refresh root contents

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