cancel
Showing results for 
Search instead for 
Did you mean: 

Diference between aspect and properties

cneto
Champ in-the-making
Champ in-the-making
Hi,

I am now undersatanding http://wiki.alfresco.com/wiki/Data_Dictionary_Guide

I have some questions until now…

A) What the diference between a content type and an aspect?

B) What is the diference between defining properties in the new content type and defining properties in a aspect?

C)What is the use of "associations"? I really didn't understand your example…could you give em another one?

I really apreciate some examples to understand this Smiley Wink

Thanks,
2 REPLIES 2

rdanner
Champ in-the-making
Champ in-the-making
Hi,

I am now undersatanding http://wiki.alfresco.com/wiki/Data_Dictionary_Guide

I have some questions until now…

A) What the diference between a content type and an aspect?

B) What is the diference between defining properties in the new content type and defining properties in a aspect?

C)What is the use of "associations"? I really didn't understand your example…could you give em another one?

I really apreciate some examples to understand this Smiley Wink

Thanks,


A) What the diference between a content type and an aspect?

Aspects and types are exactly what they are in an object oriented language like java – aspect j.  

An entitiy can be of only one type.  That type might have an ancestory which ofcouse the type inherits.

A entity can have many aspects.  Aspects are "mixed into" type type to give additional behaviour and properties.

We use aspects to cover "cross cutting concerns"  like versionable.  Objects of many types should be able to take on versionable behavior and carry version properties and therefore we say that it "cross cuts" our model.  It applies to many types.  Its a clean way to keep inheritance trees small and reuse code.




B) What is the diference between defining properties in the new content type and defining properties in a aspect?

No difference.  A property is a property is a property. 

C)What is the use of "associations"? I really didn't understand your example…could you give em another one?

Associations allow you to link one object to another in a much richer sense than properties.  With an association you are defining a defining a relationship between objects ie parent-child.

cneto
Champ in-the-making
Champ in-the-making
Thanks Smiley Wink
Getting started

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.