Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.
Confidential, Copyright © Quanticate
Alfresco Content Model
Muralidharan Deenathayalan
Technical Lead
Muralidharan.deenath...
Confidential, Copyright © Quanticate
Agenda
• Quanticate overview
• Who Am I ?
• What is Alfresco content model?
• What is...
Confidential, Copyright © Quanticate
Quanticate Overview
• 12+ years of success journey in CRO industry
• What we do
 Bio...
Confidential, Copyright © Quanticate
Quanticate Overview
Quanticate Branches
 Hitchin, Hertfordshire, UK (HQ)
 Mancheste...
Confidential, Copyright © Quanticate
Who Am I ?
• 7+ years of experience in Microsoft technologies like Asp.net, C#, SQL s...
Confidential, Copyright © Quanticate
What is Content Model?
• In RDBMS world it is similar to Database & tables.
• A conte...
Confidential, Copyright © Quanticate
What is the use of Content Model?
• It defines how a node in the content repository i...
Confidential, Copyright © Quanticate
Simple Custom Content Model
• Things to be consider before creating content model
 C...
Confidential, Copyright © Quanticate
Simple Custom Content Model
– Code Snippet
<aspects>
<aspect name="quanticate:project...
Confidential, Copyright © Quanticate
Simple Custom Content Model - Demo
Confidential, Copyright © Quanticate
Deploying Custom Content Model
• There are two approaches to deploying a content mode...
Confidential, Copyright © Quanticate
Deploying Custom Content Model
- Code Snippet
<!-- Bootstrap Custom Models -->
<bean ...
Confidential, Copyright © Quanticate
Configure share for custom model
• Use Alfresco Share custom configuration xml file
<...
Confidential, Copyright © Quanticate
Deploying Custom Content Model - Demo
Confidential, Copyright © Quanticate
Complex Custom Content Model
• Things to be consider before creating content model
 ...
Confidential, Copyright © Quanticate
Complex Custom Content Model
– Code Snippet
<type name="quanticate:site">
<title>Quan...
Confidential, Copyright © Quanticate
Complex Custom Content Model
– Code Snippet
<associations>
<association name="quantic...
Confidential, Copyright © Quanticate
Configure share for custom model
• Use Alfresco Share custom configuration xml file
<...
Confidential, Copyright © Quanticate
Configure share for custom model-Demo
Confidential, Copyright © Quanticate
Q & A
Confidential, Copyright © Quanticate
Alfresco Forum
https://forums.alfresco.com/users/muralidharand
Coding-Freaks.Net
www....
Confidential, Copyright © Quanticate
Upcoming SlideShare
Loading in …5
×

Alfresco content model

Introduction about Alfresco Content Model

  • Login to see the comments

Alfresco content model

  1. 1. Confidential, Copyright © Quanticate Alfresco Content Model Muralidharan Deenathayalan Technical Lead Muralidharan.deenathayalan@quanticate.com © Alfresco and the Alfresco logo are trademarks of Alfresco Software, Inc .
  2. 2. Confidential, Copyright © Quanticate Agenda • Quanticate overview • Who Am I ? • What is Alfresco content model? • What is the use of content model? • How to create simple custom content model? • How to deploy custom content model? • How to create complex custom content model? • How to configure Alfresco Share for custom model?
  3. 3. Confidential, Copyright © Quanticate Quanticate Overview • 12+ years of success journey in CRO industry • What we do  Biostatistics Services  Clinical Programming Services  Clinical Data Management  Medical Writing Services  Pharmacovigilance Services  Clinical Trial Technology  Centralized Clinical Data Sciences  QuantiCliQ - Clinical Intelligence from Quanticate • 200+ employees • Awards  5 Category Winner in 2014 CRO Leadership Awards  Innovation in the 2013 CRO Leadership Awards
  4. 4. Confidential, Copyright © Quanticate Quanticate Overview Quanticate Branches  Hitchin, Hertfordshire, UK (HQ)  Manchester, UK  Canterbury, UK  Edinburgh, UK  Durham, North Carolina, US (US HQ)  Warsaw, Poland  Bloemfontein, South Africa  Bangalore, India (2 Offices)
  5. 5. Confidential, Copyright © Quanticate Who Am I ? • 7+ years of experience in Microsoft technologies like Asp.net, C#, SQL server and SharePoint • 2+ years of experience in open source technologies like Java, Alfresco and Apache Cassandra • Csharpcorner MVP • Frequent blogger • Knowledge sharing in Alfresco Forums
  6. 6. Confidential, Copyright © Quanticate What is Content Model? • In RDBMS world it is similar to Database & tables. • A content model describes the data being stored in the repository. • A content model is a collection of related content types and aspects for a node. • Each content model defines the following  One or more types  One or more aspects  One or more properties  Relationships / Associations
  7. 7. Confidential, Copyright © Quanticate What is the use of Content Model? • It defines how a node in the content repository is constrained. • Structured way of storing data into Repository
  8. 8. Confidential, Copyright © Quanticate Simple Custom Content Model • Things to be consider before creating content model  Custom namespace  Property name  Aspect name  Associations  Constraints  Type name  Indexing
  9. 9. Confidential, Copyright © Quanticate Simple Custom Content Model – Code Snippet <aspects> <aspect name="quanticate:projectSite"> <title>Quanticate Project Site</title> <properties> <property name="quanticate:projectName"> <title>Project Name</title> <type>d:text</type> <mandatory>true</mandatory> <multiple>false</multiple> </property> <property name="quanticate:projectStartDate"> <title>Start Date</title> <type>d:date</type> <mandatory>true</mandatory> <multiple>false</multiple> </property> </properties> </aspect> </aspects>
  10. 10. Confidential, Copyright © Quanticate Simple Custom Content Model - Demo
  11. 11. Confidential, Copyright © Quanticate Deploying Custom Content Model • There are two approaches to deploying a content model into the content repository:  Bootstrap  The bootstrap approach to deploying a content model involves modifying Alfresco content repository XML configuration files to register the content model.  Dynamic  Placing the content model xml files under Company Home/Data Dictionary/Models.
  12. 12. Confidential, Copyright © Quanticate Deploying Custom Content Model - Code Snippet <!-- Bootstrap Custom Models --> <bean id=“<bean-id>" parent="dictionaryModelBootstrap" > <property name="models"> <list> <value>alfresco/module/<modulename>/model/quanticate-model.xml</value> </list> </property> </bean>
  13. 13. Confidential, Copyright © Quanticate Configure share for custom model • Use Alfresco Share custom configuration xml file <!-- Document Library config section --> <config evaluator="string-compare" condition="DocumentLibrary"> …….. ……… <aspects> <visible> <aspect name="quanticate:projectSite" /> </visible> ……… </aspects>
  14. 14. Confidential, Copyright © Quanticate Deploying Custom Content Model - Demo
  15. 15. Confidential, Copyright © Quanticate Complex Custom Content Model • Things to be consider before creating content model  Custom namespace  Property name  Aspect name  Associations  Constraints  Type name  Indexing
  16. 16. Confidential, Copyright © Quanticate Complex Custom Content Model – Code Snippet <type name="quanticate:site"> <title>Quanticate Site</title> <parent>st:site</parent> <properties> <property name="quanticate:siteType"> <title>Site Type</title> <type>d:text</type> <default>Research Site</default> <constraints> <constraint name="quanticate:siteTypeConstraint" type="LIST"> <parameter name="allowedValues"> <list> <value>Research Site</value> <value>Demo Site</value> <value>Production Site</value> </list> </parameter> </constraint> </constraints> ……
  17. 17. Confidential, Copyright © Quanticate Complex Custom Content Model – Code Snippet <associations> <association name="quanticate:projectOwner"> <title>Project Owner</title> <source> <mandatory>false</mandatory> <many>false</many> </source> <target> <class>cm:person</class> <mandatory>false</mandatory> <many>false</many> </target> </association> </associations> </types>
  18. 18. Confidential, Copyright © Quanticate Configure share for custom model • Use Alfresco Share custom configuration xml file <config evaluator="node-type" condition="quanticate:site"> <forms> <form> <field-visibility> <show id="cm:name" /> ……. <show id="quanticate:siteType"/> </field-visibility> <appearance> …… </appearance> …… </field> </form> </forms> </config>
  19. 19. Confidential, Copyright © Quanticate Configure share for custom model-Demo
  20. 20. Confidential, Copyright © Quanticate Q & A
  21. 21. Confidential, Copyright © Quanticate Alfresco Forum https://forums.alfresco.com/users/muralidharand Coding-Freaks.Net www.codingfreaks.net Quanticate OPDev Twitter https://twitter.com/quanticateopdev Twitter www.Twitter.com/muralidharand
  22. 22. Confidential, Copyright © Quanticate

×