Home - maksudsharif/Armedia-Training-Module GitHub Wiki

Welcome to the Armedia-Training-Module wiki!

Process

NOTE: There are some helpful "TODO" hints in the included code, but it is by no means comprehensive with regards to what you will need complete.

Common Alfresco Services
  • NodeService
    • Handles all things related to interacting with nodes in the Alfresco Repository
  • ServiceRegistry
    • Provides beans for any Alfresco Service
  • FileFolderService
    • Handles interactions with Files and Folders (though you could also do this with NodeService, but it is more involved)
  • WorkflowService
    • Handles all workflow related tasks
  • SiteService
    • Allows interaction with Sites (also accessible through NodeService)
  • NodeLocatorService
    • Locates NodeRefs for other common nodes (CompanyHome, UserHome, etc)
  • SearchService
    • Provides search functionality for Lucene and Solr
Development strategies

It is highly recommended that you develop and deploy your customizations (for learning and your demo) in a single repo and share project and the embedded Tomcat installation.

While imperative you understand how to deploy applications to a stand-alone installation of Tomcat, it will save you an immense amount of time when developing for Alfresco. You can always deploy your finished AMP projects to a stand-alone installation of Tomcat/Alfresco after you have completed your project if you prefer.

Setting up Maven

To use the version of Alfresco in the exercises you must setup proper access to the private Enterprise repository for Alfresco. This is accomplished by:

  • Locating and/or creating a settings.xml in your ~/.m2/ directory
  • Adding the correct server credentials
  • Ask your buddy for the Armedia credentials
  • When creating a new project for the repo or share (either through the commandline or through an IDE), make sure to use the correct version of each archetype.
    • In the included exercises (unless otherwise listed) the version used was:
      • alfresco-amp-archetype : 2.1.1
      • share-amp-archetype : 2.1.1
  • Adding archetypes into an IDE
    • The information of the archetype for alfresco and share:
      • alfresco-amp-archetype
        • groupId : org.alfresco.maven.archetype
        • artifactId : alfresco-amp-archetype
        • version : 2.1.1
      • share-amp-archetype
        • groupId : org.alfresco.maven.archetype
        • artifactId : share-amp-archetype
        • version : 2.1.1