Right now am started working with alfresco. But am not clear about what is type and whats aspect?. please give in detail with example.
相关问题
- October CMS: How to extend the backend user with r
- Error in calling CMIS Query if String contains sin
- Wordpress: WP_Query search criteria on 'post_n
- Update Batch in Codeigniter with multiple WHERE cl
- What is a good barebones CMS or framework? [closed
相关文章
- “Controller does not exist. Reflection failed.” TY
- Is there any cushycms alternative? [closed]
- How to agnostically link any object/Model from ano
- Search products in a specific category
- Sitefinity and custom development
- How to setup alfresco jlan file server as a standa
- Oxite: What are you going to do with it? [closed]
- Switching themes in Drupal without the web interfa
I'll try to create a shorter answer, although the long one is also useful.
As you know, model defines the "types" of data you'll store in the repository. So, a type is a form of object you'll be storing - together with it's properties like name, title, description in default model or "mytype:amount", "mytype:date" or similar in custom models. So each document in alfresco is of a certain type (an "user" type, a "folder" type, a "content" type for default model).
And aspect - it's something best described as an additional set of properties.
So, you may have a type: "invoice". It has properties like amount, due date and payee.
But you can also have an aspect, "vendor" - with additional data, like vendor name and vendor account number.
So, you can add aspects to your invoices - add additional properties like vendor name to the invoices. But you can also add this aspect to a "folder" or space in alfresco - for example, you can have a space for a vendor, or a contract or some other document - and to each of those types you can add the aspect "vendor".
Each node on creation has a given type, and just one type, like 'document' or 'folder'. On other hand one node can have many aspects, like 'taggable' or/and 'versionable'.
The node type of a node can change over time, but there is only one type for one node, the aspects are like property attachments, you can add them on creation or in runtime.
Aspects can be also added to many types of nodes, so if you want your model a have special property that will exist in many types, the best way is to create an aspect. Then to maintain your code you only have to maintain the aspect.
Of course you can create your own types and aspects in Alfresco, that is Customizing the content model.
Here is an example of a custom content model:
i:status is a custom aspect.