07-30-2008 02:45 PM
07-30-2008 03:03 PM
Adding several aspects to a document:
var props = new Array(1);
props["cm:template"] = document.nodeRef;
document.addAspect("cm:templatable", props);
props = new Array(1);
props["cm:lockIsDeep"] = true;
document.addAspect("cm:lockable", props);
props = new Array(1);
props["cm:hits"] = 1;
document.addAspect("cm:countable", props);
07-30-2008 07:32 PM
07-31-2008 04:50 AM
var testingFolder = companyhome.childByNamePath("Test");
props = new Array(1);
props["cm:lockIsDeep"] = true;
testingFolder.addAspect("cm:lockable", props);
props = new Array(1);
props["cm:hits"] = 1;
testingFolder.addAspect("cm:countable", props);
Node Identifier
Primary Path: /{http://www.alfresco.org/model/application/1.0}company_home/{http://www.alfresco.org/model/content/1....
Reference: workspace://SpacesStore/b7ecc8b1-5edb-11dd-afdd-79a008cbb404
Type: {http://www.alfresco.org/model/content/1.0}folder
Parent: workspace://SpacesStore/4cdcf19f-6fee-11dc-8621-f597096320a0
Properties
Name Value Property Type Value Type Residual
{http://www.alfresco.org/model/content/1.0}description
{http://www.alfresco.org/model/dictionary/1.0}mltext
false
{http://www.alfresco.org/model/application/1.0}icon
space-icon-default
{http://www.alfresco.org/model/dictionary/1.0}text
false
{http://www.alfresco.org/model/system/1.0}node-uuid
b7ecc8b1-5edb-11dd-afdd-79a008cbb404
{http://www.alfresco.org/model/dictionary/1.0}text
false
{http://www.alfresco.org/model/system/1.0}node-dbid
577
{http://www.alfresco.org/model/dictionary/1.0}long
false
{http://www.alfresco.org/model/content/1.0}title
{http://www.alfresco.org/model/dictionary/1.0}mltext
false
{http://www.alfresco.org/model/content/1.0}lockIsDeep
true
{http://www.alfresco.org/model/dictionary/1.0}boolean
false
{http://www.alfresco.org/model/content/1.0}created
Thu Jul 31 10:36:06 CEST 2008
{http://www.alfresco.org/model/dictionary/1.0}datetime
false
{http://www.alfresco.org/model/content/1.0}modifier
admin
{http://www.alfresco.org/model/dictionary/1.0}text
false
{http://www.alfresco.org/model/content/1.0}modified
Thu Jul 31 10:41:26 CEST 2008
{http://www.alfresco.org/model/dictionary/1.0}datetime
false
{http://www.alfresco.org/model/content/1.0}creator
admin
{http://www.alfresco.org/model/dictionary/1.0}text
false
{http://www.alfresco.org/model/content/1.0}hits
1
{http://www.alfresco.org/model/dictionary/1.0}int
false
{http://www.alfresco.org/model/system/1.0}store-protocol
workspace
{http://www.alfresco.org/model/dictionary/1.0}text
false
{http://www.alfresco.org/model/content/1.0}name
Test
{http://www.alfresco.org/model/dictionary/1.0}text
false
{http://www.alfresco.org/model/system/1.0}store-identifier
SpacesStore
{http://www.alfresco.org/model/dictionary/1.0}text
false
Aspects
{http://www.alfresco.org/model/content/1.0}lockable
{http://www.alfresco.org/model/content/1.0}auditable
{http://www.alfresco.org/model/application/1.0}uifacets
{http://www.alfresco.org/model/system/1.0}referenceable
{http://www.alfresco.org/model/content/1.0}countable
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.