SlideShare una empresa de Scribd logo
1 de 28
Getting Started with CMIS
January 2012

Jeff Potts
Chief Community Officer
Apache Chemistry cmislib lead
Agenda
• What is CMIS?
  – Brief description
  – Quick overview of the domain model
• First steps using Apache Chemistry
  – Demos using cmislib (Python) and OpenCMIS
    (Java)
  – Demo using OpenCMIS Workbench & the Groovy
    Console
• Tips & Tricks for New CMIS Developers
• Where to learn more
What is CMIS?
• Vendor independent API for working with
  content repositories
• Specification managed by OASIS
  – Domain model
  – Protocol bindings
    • Web Services Binding
    • ATOM Pub Binding
    • Browser (JSON) Binding (Coming in 1.1)
  – CMIS Query Language
The Beauty of CMIS
 Presentation
     Tier

                 REST   SOAP




                               ?
   Content
 Services Tier




  Enterprise
  Apps Tier                        ?
Meet CMIS
  Consumer
                Client


              read   write

              Services
             Domain Model
  Provider




                                      Content
              Vendor                  Management
              Mapping                 Interoperability
                                      Services
               Content
              Repository     CMIS lets you
                             read, search, write, update, delete, version, c
                             ontrol, … content and metadata!
Developed by 30+ ECM Vendors
Implementations Already Available…




                                     Providers
                                     Consumers
Use Cases
                            Content
        Client                                      Client
                           Repository



       Content              Content               Content
                                                   Content
      Repository           Repository            Repository
                                                     Content
                                                  Repository
                                                    Repository


 •   Collaborative Content Creation     •   Workflow & BPM
 •   Portals                            •   Archival
 •   Client Application Integration     •   Virtual Documents
 •   Mashup                             •   DAM / WCM
Types
Document                      Folder
• Content                     • Container
• Renditions                  • Hierarchy
• Version History             • Filing

                     Described by
                    Type Definitions

Relationship                  Policy
• Source Object               • Target Object
• Target Object
Type Definitions
            Object                       Property
            • Type Id                    • Property Id
            • Parent               *     • Display Name
            • Display Name               • Type
            •Queryable                   • Required
            • Controllable               • Default Value
                                         •…



 Document           Folder             Relationship        Policy
 •Versionable                          • Source Types
 • Allow Content                       • Target Types


                             Custom Type
• Open Source implementations of CMIS
• Apache Chemistry is the umbrella project
  for all CMIS related projects within the
  ASF
  – OpenCMIS (Java, client and server)
  – cmislib (Python, client)
  – phpclient (PHP, client)
  – DotCMIS (.NET, client)
• Apache Chemistry started as an incubator
  project in May 2009
  – Graduated to a top level project in February
    2011.
• Backed by
  Adobe, Alfresco, Nuxeo, OpenText, and
  SAP
• OpenCMIS is a de-facto reference for
  CMIS and is also used by the CMIS TC to
  test new CMIS 1.1 features
FIRST STEPS WITH CMIS

Real-world coding examples
Notes on my setup
•   Alfresco 4.0.c Community
•   SomeCo content model (See ecmarchitect.com)
•   Mac OS X, Tomcat, MySQL, Eclipse
•   Java
    – OpenCMIS 0.6*
    – Alfresco OpenCMIS extension 0.2*
    – JDK 1.6.0_29
• Python
    – cmislib 0.5
    – Python 2.6/2.7

                                * Distributed with Alfresco 4 SDK
DEMO
Installing and Using cmislib
Use easy_install to install cmislib. Docs available here.




                                                            :10
DEMO
Using OpenCMIS to create, query, relate, & delete
The code comes from the ecmarchitect.com custom content types
tutorial, available here. Apache Chemistry OpenCMIS lives here.




                                                           :10
DEMO

Using the Groovy Console in the OpenCMIS Workbench




                                                     :05
TIPS & TRICKS

A few tidbits for the developer new to CMIS
Prefix cannot be null or empty
• You may see this error when using the
  Alfresco OpenCMIS extension
• It is due to a dependency problem
• If you are using Maven, see this issue.
• If you are setting an explicit
  classpath, refer to the CMIS classpath set
  in the Ant build file in the content types
  tutorial
Using Alfresco CMIS extension with
OpenCMIS Workbench
• You must do this if you want to set
  properties defined in an aspect
• Copy alfresco-opencmis-extension-0.2.jar
  to workbench/lib
• Set the following on “Expert” tab:
org.apache.chemistry.opencmis.objectfactory.classname=o
rg.alfresco.cmis.client.impl.AlfrescoObjectFactoryImpl

• Click “Load Repositories” before leaving
  the expert tab
In Alfresco 4 the CMIS URLs have
changed
• In Alfresco 4, OpenCMIS is now the CMIS
  implementation
  – Use http://localhost:8080/alfresco/cmisatom
    instead of http://localhost:8080/alfresco/s/cmis
  – Consider the CMIS web scripts to be
    deprecated
  – You may see different results b/w the two
    URLs
CMIS in server-side JavaScript*
varcmisConnection = cmis.getConnection();
varcmisSession    = cmisConnection.getSession();
folder = cmisSession.getRootFolder();
print("Children of: " + folder.name + "(" +
folder.id + ")");

variter = folder.getChildren().iterator();
while (iter.hasNext()) {
  print(iter.next().name);
}




                               *Broken in 4.0.c Community
Experimental JSON binding in
 Alfresco 4
 • Alfresco 4 includes an experimental
   implementation of the new browser
   binding
 • http://localhost:8080/alfresco/cmisbrowser
http://localhost:8080/alfresco/cmisbrowser
http://localhost:8080/alfresco/cmisbrowser/{repo id}/root
http://localhost:8080/alfresco/cmisbrowser/{repo
id}/root?includeAllowableActions=true&skipCount=0&maxItems
http://localhost:8080/alfresco/cmisbrowser/{repo
id}/root/cmis-demo
http://localhost:8080/alfresco/cmisbrowser/{repo
id}/root/cmisdemo?selector=children
http://localhost:8080/alfresco/cmisbrowser/{repo
id}/root/cmisdemo?selector=object
Working with permissions
• ACLs are lists of ACEs
• In Alfresco, group identifiers start with
  ”GROUP_”
• You cannot break inheritance through
  CMIS, but you can determine whether an
  ACE is inherited or “direct”
WHERE TO LEARN MORE
CMIS Resources
• cmis.alfresco.com includes a public CMIS server
  and links to CMIS resources
• Read the CMIS specification
• Apache Chemistry site has clients, lightweight
  server, documentation
• Alfresco Extension for OpenCMIS allows you to
  work with aspect-defined properties
• “Getting Started with CMIS” tutorial shows how to
  use cURL to hit ATOM Pub binding directly
• Slideshare has some CMIS related presentations
  from DevConhere and here
QUESTIONS
jeff.potts@alfresco.com
@jeffpotts01 (Twitter & all chat services)
http://ecmarchitect.com

Más contenido relacionado

La actualidad más candente

La actualidad más candente (20)

[AWSマイスターシリーズ] AWS CLI / AWS Tools for Windows PowerShell
[AWSマイスターシリーズ] AWS CLI / AWS Tools for Windows PowerShell[AWSマイスターシリーズ] AWS CLI / AWS Tools for Windows PowerShell
[AWSマイスターシリーズ] AWS CLI / AWS Tools for Windows PowerShell
 
AWS Security By Design
AWS Security By DesignAWS Security By Design
AWS Security By Design
 
IBM DataPower Gateway - Common Use Cases
IBM DataPower Gateway - Common Use CasesIBM DataPower Gateway - Common Use Cases
IBM DataPower Gateway - Common Use Cases
 
Alfresco en quelques points - Recherche Tutorial
Alfresco en quelques points - Recherche TutorialAlfresco en quelques points - Recherche Tutorial
Alfresco en quelques points - Recherche Tutorial
 
From zero to hero Backing up alfresco
From zero to hero Backing up alfrescoFrom zero to hero Backing up alfresco
From zero to hero Backing up alfresco
 
Veeam 整合地端與 AWS 雲端的資料保護 (2021 版本)
Veeam 整合地端與 AWS 雲端的資料保護 (2021 版本)Veeam 整合地端與 AWS 雲端的資料保護 (2021 版本)
Veeam 整合地端與 AWS 雲端的資料保護 (2021 版本)
 
ELK Stack
ELK StackELK Stack
ELK Stack
 
What is AWS | AWS Certified Solutions Architect | AWS Tutorial | AWS Training...
What is AWS | AWS Certified Solutions Architect | AWS Tutorial | AWS Training...What is AWS | AWS Certified Solutions Architect | AWS Tutorial | AWS Training...
What is AWS | AWS Certified Solutions Architect | AWS Tutorial | AWS Training...
 
20190731 Black Belt Online Seminar Amazon ECS Deep Dive
20190731 Black Belt Online Seminar Amazon ECS Deep Dive20190731 Black Belt Online Seminar Amazon ECS Deep Dive
20190731 Black Belt Online Seminar Amazon ECS Deep Dive
 
Alphorm.com Formation Elastic : Maitriser les fondamentaux
Alphorm.com Formation Elastic : Maitriser les fondamentauxAlphorm.com Formation Elastic : Maitriser les fondamentaux
Alphorm.com Formation Elastic : Maitriser les fondamentaux
 
AWS 101: Cloud Computing Seminar (2012)
AWS 101: Cloud Computing Seminar (2012)AWS 101: Cloud Computing Seminar (2012)
AWS 101: Cloud Computing Seminar (2012)
 
20220409 AWS BLEA 開発にあたって検討したこと
20220409 AWS BLEA 開発にあたって検討したこと20220409 AWS BLEA 開発にあたって検討したこと
20220409 AWS BLEA 開発にあたって検討したこと
 
20210526 AWS Expert Online マルチアカウント管理の基本
20210526 AWS Expert Online マルチアカウント管理の基本20210526 AWS Expert Online マルチアカウント管理の基本
20210526 AWS Expert Online マルチアカウント管理の基本
 
[最新バージョンの情報がDescription欄にございます]AWS Black Belt Online Seminar 2018 Amazon Connect
[最新バージョンの情報がDescription欄にございます]AWS Black Belt Online Seminar 2018 Amazon Connect[最新バージョンの情報がDescription欄にございます]AWS Black Belt Online Seminar 2018 Amazon Connect
[最新バージョンの情報がDescription欄にございます]AWS Black Belt Online Seminar 2018 Amazon Connect
 
Building Text Analytics Applications on AWS using Amazon Comprehend - AWS Onl...
Building Text Analytics Applications on AWS using Amazon Comprehend - AWS Onl...Building Text Analytics Applications on AWS using Amazon Comprehend - AWS Onl...
Building Text Analytics Applications on AWS using Amazon Comprehend - AWS Onl...
 
20180220 AWS Black Belt Online Seminar - Amazon Container Services
20180220 AWS Black Belt Online Seminar - Amazon Container Services20180220 AWS Black Belt Online Seminar - Amazon Container Services
20180220 AWS Black Belt Online Seminar - Amazon Container Services
 
20200811 AWS Black Belt Online Seminar CloudEndure
20200811 AWS Black Belt Online Seminar CloudEndure20200811 AWS Black Belt Online Seminar CloudEndure
20200811 AWS Black Belt Online Seminar CloudEndure
 
20190619 AWS Black Belt Online Seminar Dive Deep into AWS Chalice
20190619 AWS Black Belt Online Seminar Dive Deep into AWS Chalice20190619 AWS Black Belt Online Seminar Dive Deep into AWS Chalice
20190619 AWS Black Belt Online Seminar Dive Deep into AWS Chalice
 
20190312 AWS Black Belt Online Seminar AWS Well-Architected Frameworkによるコスト最適化
20190312 AWS Black Belt Online Seminar AWS Well-Architected Frameworkによるコスト最適化20190312 AWS Black Belt Online Seminar AWS Well-Architected Frameworkによるコスト最適化
20190312 AWS Black Belt Online Seminar AWS Well-Architected Frameworkによるコスト最適化
 
AWS Black Belt Techシリーズ Amazon Route53
AWS Black Belt Techシリーズ Amazon Route53AWS Black Belt Techシリーズ Amazon Route53
AWS Black Belt Techシリーズ Amazon Route53
 

Similar a Getting Started with CMIS

Alfresco 4: Scalability and Performance
Alfresco 4: Scalability and PerformanceAlfresco 4: Scalability and Performance
Alfresco 4: Scalability and Performance
Alfresco Software
 
Alfresco scalability and performnce
Alfresco   scalability and performnceAlfresco   scalability and performnce
Alfresco scalability and performnce
Paul Hampton
 

Similar a Getting Started with CMIS (20)

PLAT-1 CMIS in the Real World
PLAT-1 CMIS in the Real WorldPLAT-1 CMIS in the Real World
PLAT-1 CMIS in the Real World
 
FISL: Content Management Primer
FISL: Content Management PrimerFISL: Content Management Primer
FISL: Content Management Primer
 
CM Pros CMIS Overview - Jan 2011
CM Pros CMIS Overview  - Jan 2011CM Pros CMIS Overview  - Jan 2011
CM Pros CMIS Overview - Jan 2011
 
PLAT-3 CMIS — What’s coming next?
PLAT-3 CMIS — What’s coming next?PLAT-3 CMIS — What’s coming next?
PLAT-3 CMIS — What’s coming next?
 
Apache Chemistry: The Alfresco Open Source Implementation of CMIS
Apache Chemistry: The Alfresco Open Source Implementation of CMISApache Chemistry: The Alfresco Open Source Implementation of CMIS
Apache Chemistry: The Alfresco Open Source Implementation of CMIS
 
PLAT-2 CMIS - What’s coming next?
PLAT-2 CMIS - What’s coming next?PLAT-2 CMIS - What’s coming next?
PLAT-2 CMIS - What’s coming next?
 
CMIS Introduction
CMIS IntroductionCMIS Introduction
CMIS Introduction
 
ITB2016 - ContentBox Modular CMS
ITB2016 - ContentBox Modular CMSITB2016 - ContentBox Modular CMS
ITB2016 - ContentBox Modular CMS
 
PLAT-16 Using Enterprise Content in Grails
PLAT-16 Using Enterprise Content in GrailsPLAT-16 Using Enterprise Content in Grails
PLAT-16 Using Enterprise Content in Grails
 
Alfresco Coding mit dem Alfresco SDK (auf Englisch) - Julien Bruinaud, Techni...
Alfresco Coding mit dem Alfresco SDK (auf Englisch) - Julien Bruinaud, Techni...Alfresco Coding mit dem Alfresco SDK (auf Englisch) - Julien Bruinaud, Techni...
Alfresco Coding mit dem Alfresco SDK (auf Englisch) - Julien Bruinaud, Techni...
 
WCM-9 WCM Solutions with Drupal and Alfresco
WCM-9 WCM Solutions with Drupal and AlfrescoWCM-9 WCM Solutions with Drupal and Alfresco
WCM-9 WCM Solutions with Drupal and Alfresco
 
Tech talk-live-alfresco-drupal
Tech talk-live-alfresco-drupalTech talk-live-alfresco-drupal
Tech talk-live-alfresco-drupal
 
Cmis Virtual Training Webinar 24 Nov09
Cmis Virtual Training  Webinar 24 Nov09Cmis Virtual Training  Webinar 24 Nov09
Cmis Virtual Training Webinar 24 Nov09
 
Eclipse Enterprise Content Repository (ECR)
Eclipse Enterprise Content Repository (ECR)Eclipse Enterprise Content Repository (ECR)
Eclipse Enterprise Content Repository (ECR)
 
CDMI For Swift
CDMI For SwiftCDMI For Swift
CDMI For Swift
 
CMIS: An Open API for Managing Content
CMIS: An Open API for Managing ContentCMIS: An Open API for Managing Content
CMIS: An Open API for Managing Content
 
Alfresco 4: Scalability and Performance
Alfresco 4: Scalability and PerformanceAlfresco 4: Scalability and Performance
Alfresco 4: Scalability and Performance
 
Alfresco scalability and performnce
Alfresco   scalability and performnceAlfresco   scalability and performnce
Alfresco scalability and performnce
 
Building Content-Rich Java Apps in the Cloud with the Alfresco API
Building Content-Rich Java Apps in the Cloud with the Alfresco APIBuilding Content-Rich Java Apps in the Cloud with the Alfresco API
Building Content-Rich Java Apps in the Cloud with the Alfresco API
 
Nuxeo World Session: CMIS - What's Next?
Nuxeo World Session: CMIS - What's Next?Nuxeo World Session: CMIS - What's Next?
Nuxeo World Session: CMIS - What's Next?
 

Más de Jeff Potts

Alfresco Community Survey 2012 Results
Alfresco Community Survey 2012 ResultsAlfresco Community Survey 2012 Results
Alfresco Community Survey 2012 Results
Jeff Potts
 
Alfresco SAUG: CMIS & Integrations
Alfresco SAUG: CMIS & IntegrationsAlfresco SAUG: CMIS & Integrations
Alfresco SAUG: CMIS & Integrations
Jeff Potts
 

Más de Jeff Potts (20)

No Docker? No Problem: Automating installation and config with Ansible
No Docker? No Problem: Automating installation and config with AnsibleNo Docker? No Problem: Automating installation and config with Ansible
No Docker? No Problem: Automating installation and config with Ansible
 
Moving From Actions & Behaviors to Microservices
Moving From Actions & Behaviors to MicroservicesMoving From Actions & Behaviors to Microservices
Moving From Actions & Behaviors to Microservices
 
Flexible Permissions Management with ACL Templates
Flexible Permissions Management with ACL TemplatesFlexible Permissions Management with ACL Templates
Flexible Permissions Management with ACL Templates
 
Moving Gigantic Files Into and Out of the Alfresco Repository
Moving Gigantic Files Into and Out of the Alfresco RepositoryMoving Gigantic Files Into and Out of the Alfresco Repository
Moving Gigantic Files Into and Out of the Alfresco Repository
 
Could Alfresco Survive a Zombie Attack?
Could Alfresco Survive a Zombie Attack?Could Alfresco Survive a Zombie Attack?
Could Alfresco Survive a Zombie Attack?
 
Connecting Content Management Apps with CMIS
Connecting Content Management Apps with CMISConnecting Content Management Apps with CMIS
Connecting Content Management Apps with CMIS
 
The Challenges of Keeping Bees
The Challenges of Keeping BeesThe Challenges of Keeping Bees
The Challenges of Keeping Bees
 
Getting Started With CMIS
Getting Started With CMISGetting Started With CMIS
Getting Started With CMIS
 
Alfresco: What every developer should know
Alfresco: What every developer should knowAlfresco: What every developer should know
Alfresco: What every developer should know
 
Apache Chemistry in Action: Using CMIS and your favorite language to unlock c...
Apache Chemistry in Action: Using CMIS and your favorite language to unlock c...Apache Chemistry in Action: Using CMIS and your favorite language to unlock c...
Apache Chemistry in Action: Using CMIS and your favorite language to unlock c...
 
Alfresco: The Story of How Open Source Disrupted the ECM Market
Alfresco: The Story of How Open Source Disrupted the ECM MarketAlfresco: The Story of How Open Source Disrupted the ECM Market
Alfresco: The Story of How Open Source Disrupted the ECM Market
 
Join the Alfresco community
Join the Alfresco communityJoin the Alfresco community
Join the Alfresco community
 
Intro to the Alfresco Public API
Intro to the Alfresco Public APIIntro to the Alfresco Public API
Intro to the Alfresco Public API
 
Apache Chemistry in Action
Apache Chemistry in ActionApache Chemistry in Action
Apache Chemistry in Action
 
Alfresco Community Survey 2012 Results
Alfresco Community Survey 2012 ResultsAlfresco Community Survey 2012 Results
Alfresco Community Survey 2012 Results
 
Relational Won't Cut It: Architecting Content Centric Apps
Relational Won't Cut It: Architecting Content Centric AppsRelational Won't Cut It: Architecting Content Centric Apps
Relational Won't Cut It: Architecting Content Centric Apps
 
Alfresco SAUG: State of ECM
Alfresco SAUG: State of ECMAlfresco SAUG: State of ECM
Alfresco SAUG: State of ECM
 
Alfresco SAUG: CMIS & Integrations
Alfresco SAUG: CMIS & IntegrationsAlfresco SAUG: CMIS & Integrations
Alfresco SAUG: CMIS & Integrations
 
Should You Attend Alfresco Devcon 2011
Should You Attend Alfresco Devcon 2011Should You Attend Alfresco Devcon 2011
Should You Attend Alfresco Devcon 2011
 
2011 Alfresco Community Survey Results
2011 Alfresco Community Survey Results2011 Alfresco Community Survey Results
2011 Alfresco Community Survey Results
 

Último

Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
panagenda
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Safe Software
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
?#DUbAI#??##{{(☎️+971_581248768%)**%*]'#abortion pills for sale in dubai@
 

Último (20)

ICT role in 21st century education and its challenges
ICT role in 21st century education and its challengesICT role in 21st century education and its challenges
ICT role in 21st century education and its challenges
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
AXA XL - Insurer Innovation Award Americas 2024
AXA XL - Insurer Innovation Award Americas 2024AXA XL - Insurer Innovation Award Americas 2024
AXA XL - Insurer Innovation Award Americas 2024
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
 
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingRepurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)
 
A Beginners Guide to Building a RAG App Using Open Source Milvus
A Beginners Guide to Building a RAG App Using Open Source MilvusA Beginners Guide to Building a RAG App Using Open Source Milvus
A Beginners Guide to Building a RAG App Using Open Source Milvus
 
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : Uncertainty
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 
Apidays Singapore 2024 - Scalable LLM APIs for AI and Generative AI Applicati...
Apidays Singapore 2024 - Scalable LLM APIs for AI and Generative AI Applicati...Apidays Singapore 2024 - Scalable LLM APIs for AI and Generative AI Applicati...
Apidays Singapore 2024 - Scalable LLM APIs for AI and Generative AI Applicati...
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CV
 

Getting Started with CMIS

  • 1. Getting Started with CMIS January 2012 Jeff Potts Chief Community Officer Apache Chemistry cmislib lead
  • 2. Agenda • What is CMIS? – Brief description – Quick overview of the domain model • First steps using Apache Chemistry – Demos using cmislib (Python) and OpenCMIS (Java) – Demo using OpenCMIS Workbench & the Groovy Console • Tips & Tricks for New CMIS Developers • Where to learn more
  • 3.
  • 4. What is CMIS? • Vendor independent API for working with content repositories • Specification managed by OASIS – Domain model – Protocol bindings • Web Services Binding • ATOM Pub Binding • Browser (JSON) Binding (Coming in 1.1) – CMIS Query Language
  • 5. The Beauty of CMIS Presentation Tier REST SOAP ? Content Services Tier Enterprise Apps Tier ?
  • 6. Meet CMIS Consumer Client read write Services Domain Model Provider Content Vendor Management Mapping Interoperability Services Content Repository CMIS lets you read, search, write, update, delete, version, c ontrol, … content and metadata!
  • 7. Developed by 30+ ECM Vendors Implementations Already Available… Providers Consumers
  • 8. Use Cases Content Client Client Repository Content Content Content Content Repository Repository Repository Content Repository Repository • Collaborative Content Creation • Workflow & BPM • Portals • Archival • Client Application Integration • Virtual Documents • Mashup • DAM / WCM
  • 9. Types Document Folder • Content • Container • Renditions • Hierarchy • Version History • Filing Described by Type Definitions Relationship Policy • Source Object • Target Object • Target Object
  • 10. Type Definitions Object Property • Type Id • Property Id • Parent * • Display Name • Display Name • Type •Queryable • Required • Controllable • Default Value •… Document Folder Relationship Policy •Versionable • Source Types • Allow Content • Target Types Custom Type
  • 11.
  • 12. • Open Source implementations of CMIS • Apache Chemistry is the umbrella project for all CMIS related projects within the ASF – OpenCMIS (Java, client and server) – cmislib (Python, client) – phpclient (PHP, client) – DotCMIS (.NET, client)
  • 13. • Apache Chemistry started as an incubator project in May 2009 – Graduated to a top level project in February 2011. • Backed by Adobe, Alfresco, Nuxeo, OpenText, and SAP • OpenCMIS is a de-facto reference for CMIS and is also used by the CMIS TC to test new CMIS 1.1 features
  • 14. FIRST STEPS WITH CMIS Real-world coding examples
  • 15. Notes on my setup • Alfresco 4.0.c Community • SomeCo content model (See ecmarchitect.com) • Mac OS X, Tomcat, MySQL, Eclipse • Java – OpenCMIS 0.6* – Alfresco OpenCMIS extension 0.2* – JDK 1.6.0_29 • Python – cmislib 0.5 – Python 2.6/2.7 * Distributed with Alfresco 4 SDK
  • 16. DEMO Installing and Using cmislib Use easy_install to install cmislib. Docs available here. :10
  • 17. DEMO Using OpenCMIS to create, query, relate, & delete The code comes from the ecmarchitect.com custom content types tutorial, available here. Apache Chemistry OpenCMIS lives here. :10
  • 18. DEMO Using the Groovy Console in the OpenCMIS Workbench :05
  • 19. TIPS & TRICKS A few tidbits for the developer new to CMIS
  • 20. Prefix cannot be null or empty • You may see this error when using the Alfresco OpenCMIS extension • It is due to a dependency problem • If you are using Maven, see this issue. • If you are setting an explicit classpath, refer to the CMIS classpath set in the Ant build file in the content types tutorial
  • 21. Using Alfresco CMIS extension with OpenCMIS Workbench • You must do this if you want to set properties defined in an aspect • Copy alfresco-opencmis-extension-0.2.jar to workbench/lib • Set the following on “Expert” tab: org.apache.chemistry.opencmis.objectfactory.classname=o rg.alfresco.cmis.client.impl.AlfrescoObjectFactoryImpl • Click “Load Repositories” before leaving the expert tab
  • 22. In Alfresco 4 the CMIS URLs have changed • In Alfresco 4, OpenCMIS is now the CMIS implementation – Use http://localhost:8080/alfresco/cmisatom instead of http://localhost:8080/alfresco/s/cmis – Consider the CMIS web scripts to be deprecated – You may see different results b/w the two URLs
  • 23. CMIS in server-side JavaScript* varcmisConnection = cmis.getConnection(); varcmisSession = cmisConnection.getSession(); folder = cmisSession.getRootFolder(); print("Children of: " + folder.name + "(" + folder.id + ")"); variter = folder.getChildren().iterator(); while (iter.hasNext()) { print(iter.next().name); } *Broken in 4.0.c Community
  • 24. Experimental JSON binding in Alfresco 4 • Alfresco 4 includes an experimental implementation of the new browser binding • http://localhost:8080/alfresco/cmisbrowser http://localhost:8080/alfresco/cmisbrowser http://localhost:8080/alfresco/cmisbrowser/{repo id}/root http://localhost:8080/alfresco/cmisbrowser/{repo id}/root?includeAllowableActions=true&skipCount=0&maxItems http://localhost:8080/alfresco/cmisbrowser/{repo id}/root/cmis-demo http://localhost:8080/alfresco/cmisbrowser/{repo id}/root/cmisdemo?selector=children http://localhost:8080/alfresco/cmisbrowser/{repo id}/root/cmisdemo?selector=object
  • 25. Working with permissions • ACLs are lists of ACEs • In Alfresco, group identifiers start with ”GROUP_” • You cannot break inheritance through CMIS, but you can determine whether an ACE is inherited or “direct”
  • 27. CMIS Resources • cmis.alfresco.com includes a public CMIS server and links to CMIS resources • Read the CMIS specification • Apache Chemistry site has clients, lightweight server, documentation • Alfresco Extension for OpenCMIS allows you to work with aspect-defined properties • “Getting Started with CMIS” tutorial shows how to use cURL to hit ATOM Pub binding directly • Slideshare has some CMIS related presentations from DevConhere and here
  • 28. QUESTIONS jeff.potts@alfresco.com @jeffpotts01 (Twitter & all chat services) http://ecmarchitect.com