• Share
  • Email
  • Embed
  • Like
  • Save
  • Private Content
Les2012 lightning talk_exporting_and_importing_company-level_data
 

Les2012 lightning talk_exporting_and_importing_company-level_data

on

  • 303 views

 

Statistics

Views

Total Views
303
Views on SlideShare
303
Embed Views
0

Actions

Likes
0
Downloads
1
Comments
0

0 Embeds 0

No embeds

Accessibility

Categories

Upload Details

Uploaded via as Adobe PDF

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

    Les2012 lightning talk_exporting_and_importing_company-level_data Les2012 lightning talk_exporting_and_importing_company-level_data Presentation Transcript

    • Lightning Talk 7 minutes to talk about Exporting and importing company-level data Sébastien Le MarchandLiferay Europe Symposium – Wiesbaden, Germany | 16-17 october 2012
    • PROBLEMATICLiferay Europe Symposium – Wiesbaden, Germany | 16-17 october 2012 2
    • Problematic A classic data import/export use case + Transfer data between multiple environnements •Need for « Selective » export or import, not all data… Integration Incremental import • don’t push DB dump ! Q/A + Available tools •« Site scope » data LAR export / import Remote stagging Acceptance Resource Importer Plugin •Data outside « site scope » (company-level data) ?... that’s the problem ! ProductionLiferay Europe Symposium – Wiesbaden, Germany | 16-17 october 2012 3
    • Problematic What are company-level data ? « Site-scope » data  Covered by Liferay ARchive native export / import « Company-scope » data  No native feature to help us…Liferay Europe Symposium – Wiesbaden, Germany | 16-17 october 2012 4
    • FRONTLINE FEEDBACKLiferay Europe Symposium – Wiesbaden, Germany | 16-17 october 2012 5
    • Frontline feedback Example : roles permissions definitions + Default permissions for roles •A critical security configuration 2 1 3 + How-to ? •Without any tool (very painful) : you need to write specific configuration procedure documentation (potentially huge) You need to « replay » procedure manually (UI) for each environement (re-)initi Unsafe (human error) Build a tool to do the work (go back at home earlier !) Fast to replay Repeatable (error-prone)Liferay Europe Symposium – Wiesbaden, Germany | 16-17 october 2012 6
    • Frontline feedback Best practices to write import/export tools + Don’t work directly with database (SQL extract & load) •Possible application-level data integrity violations + Only use portal services to read and write data •Choose your weapon Plain-old plugin, written in Java Admin script, written in Groovy, Ruby, etc. + Be carreful about IDs •An entity ID is not the same in source environment and target environment Do not rely on entity ID Relations between entities must not be stored with IDsLiferay Europe Symposium – Wiesbaden, Germany | 16-17 october 2012 7
    • OUT-OF-THE-BOX TOOLLiferay Europe Symposium – Wiesbaden, Germany | 16-17 october 2012 8
    • Out-of-the-box tool Discover a comprehensive ready-to-use tool + Hook Plugin •No user interface, actions only by file manipulation Easy to use for Ops •Input and output files in the same directory (configurable) ${liferay.home}/deploy/imex + Export Input xxxx.export.properties (options) Output xxxx.imex.zip (data archive) + Import Input xxxx.import.properties (options) xxxx.imex.zip (data archive)Liferay Europe Symposium – Wiesbaden, Germany | 16-17 october 2012 9
    • Out-of-the-box tool Options overview xxxx.export.propertiesLiferay Europe Symposium – Wiesbaden, Germany | 16-17 october 2012 10
    • Out-of-the-box tool Data format overviewLiferay Europe Symposium – Wiesbaden, Germany | 16-17 october 2012 11
    • Out-of-the-box tool Get it ! + Historically, internal developpement targeting Liferay 5.2.x + Now open-source project targeting Liferay 6.1 •Beta release + Coverage : •Now Roles & roles default permissions definitions Sites (using LAR mechanisms) •Next releases Extended coverage… http://sqli-imex.github.comLiferay Europe Symposium – Wiesbaden, Germany | 16-17 october 2012 12
    • Thats all folks! Thanks! +Im/Ex tool +Sébastien Le Marchand •http://sqli-imex.github.com •slemarchand@sqli.com •@slemarchand +SQLI Group •http://www.sqli.com •http://www.entreprise-digitale.com •@SQLIEENTREPRISE > 1800 employees €170 M turnover Capability to deploy projects internationallyLiferay Europe Symposium – Wiesbaden, Germany | 16-17 october 2012 13