Class ecm.model.configuration.LayoutModel


Extends ecm.model.ContentClass.
Provides extended methods that are used to handle content class attributes. ContentClass.
Defined in: <ecm\model\configuration\LayoutModel.js>.

Constructor Summary

Constructor Attributes Constructor Name and Description
 

Field Summary

Field Attributes Field Name and Description
 
An instance of ecm.pvr.controller.PropertyCollectionController
 
An instance of ecm.model.EntryTemplate for the entry template being used in this layout model object.
 
An text string used for the internal id of the property category bound into the layout editor
 
view 
An instance of ecm.pvr.widget.View
Fields borrowed from class ecm.model.ContentClass:
allAttributeDefinitions, allowsInstances, attributeDefinitions, attributeDefinitionsById, classification, defaultSecurityFromClass, edsIsEnabled, forFoldersOnly, hierarchical, includedInSuperClassQuery, inheritSecurityFromParentFolder, itemTypeSecurity, nameAttribute, notForFolders, objectStore, parentClassId, privileges, pseudoClass, repository, storesContent, subClasses, supportsBoxShareTracking, supportsEntryTemplateFolderAssociations, supportsEntryTemplateTracking, teamspaceDefault, textSearchable, versionControl
Fields borrowed from class ecm.model._ModelObject:
categorization, id, isRecurring, name, nameFilter, pane, status, type, userId

Method Summary

Method Attributes Method Name and Description
 
createLayoutAttribute(attributeDefinition)
Returns a LayoutAttribute for the attribute definition.
 
Helper function to return the attribute id updated with the model binding id.
 
Returns true if any attribute definition objects in this model (ContentClass) collection has a true value for its dependentsRetrievalPending property.
 
retrieveDependentProperties(callback, alwaysRetrieve)
Retrieves the dependent attributes when one or more attributes have a dependentsRetrievalPending value of true.
Methods borrowed from class ecm.model.ContentClass:
clone, hasPrivilege, retrieveDefaultInstancePermissions, retrieveSubClasses
Methods borrowed from class ecm.model._ModelObject:
destroy, onChange, own, refresh, toString

Constructor Detail

ecm.model.configuration.LayoutModel()

Since:
2.0.3

Field Detail

controller

An instance of ecm.pvr.controller.PropertyCollectionController

entryTemplate

An instance of ecm.model.EntryTemplate for the entry template being used in this layout model object.

modelBindingId

An text string used for the internal id of the property category bound into the layout editor

view

An instance of ecm.pvr.widget.View
Since:
2.0.3.6

Method Detail

{@link ecm.model.configuration.LayoutAttribute} createLayoutAttribute(attributeDefinition)

Returns a LayoutAttribute for the attribute definition. All contents are cloned except for the content class, repository, and choice list. The content class, repository, and choice list references are copied.
Parameters:
attributeDefinition
A ecm.model.AttributeDefinition object to clone
Returns:
{@link ecm.model.configuration.LayoutAttribute} object

getBindingAttributeId(id)

Helper function to return the attribute id updated with the model binding id.
Parameters:
id
Returns:
string updated id.

isDependentAttributesRetrievalPending()

Returns true if any attribute definition objects in this model (ContentClass) collection has a true value for its dependentsRetrievalPending property.
Returns:
(boolean) true if any dependents retrieval is pending

retrieveDependentProperties(callback, alwaysRetrieve)

Retrieves the dependent attributes when one or more attributes have a dependentsRetrievalPending value of true.
Parameters:
callback
function called when the request completes.
alwaysRetrieve
If true, forces the retrieve even when there are no properties with dependent properties. This is needed to support retrieving property changes when the parent folder is changed in the add dialog.