Javascript for Episerver 7.5 cms

TrashViewModel

Summary

The view model for trash component widget

Location

epi-cms/widget/viewmodel/TrashViewModel

Extends

dojo/Stateful

Properties

_attrPairNames

Used across all instances a hash to cache attribute names and their getter and setter names.

_contentRepositoryDescriptors

Contains settings for different content repositories, like root and contained types.

contentStore

Represents the REST store to get data.

currentTrash

Current active trash to get content from.

isEmptyTrash

State of Empty Trash action.

queryOptions

Query options object, which contains query object and options object, to get content for a specific trash.

resources

showAllLanguages

Flag to indicate whether should we get all language for content in trash.

storeRegistry

The store registry.

trashes

List of trash, including system and content provider's trash.

trashStore

Methods

public inherited method _changeAttrValue ( name , value )

Internal helper for directly changing an attribute value.

Parameters

public method _createTrashes ( )


public inherited method _get ( name , names )

Private function that does a get based off a hash of names

Parameters

public method _getStore ( )


public inherited method _set ( _b , _c )

Parameters

public method destroy ( )


public method emptyTrash ( trashId )

Delete all items from a specific trash.

Parameters

public inherited method get ( name )

Get a property on a Stateful instance.

Parameters

public method getEmptyTrashConfirmMessage ( trashName )

Get the empty trash confirm message

Parameters

public method getOldParent ( contentLink )

Get old parent of specific contentLink.

Parameters

public method postscript ( )


public method restore ( sourceContent , targetLink )

Restore content from a specific trash to specific content. source: Content The content source to restore

Parameters

public inherited method set ( name , value )

Set a property on a Stateful instance

Parameters

public method updateTrash ( trash )

Process active trash only, otherwise return empty list.

Parameters

public inherited method watch ( name , callback )

Watches a property for changes

Parameters