Working with classes

Get a class by it’s symbolic name (id)

var contentClass = repository.getContentClass(string id);

JSDOC. Example :

var documentClass= repository.getContentClass('document');

 Get a document’s class

var contentClass = doc.getContentClass();

JSDoc

Retrieve all propertiy definitions from a ContentClass

contentClass.retrieveAttributeDefinitions(lang.hitch(this, function (attributeDefinitions) {
    var j, attributeDefinition ;
    for (j = 0; j < attributeDefinitions.length; j++) {
        attributeDefinition = attributeDefinitions[j];
        // Here is you property definition
    }
}));

Attribute definition JSDoc.

Leave a Reply