Giter Site home page Giter Site logo

liferay-lam's Introduction

Introduction

LAM is Liferay Automated Migrations, allowing for statement-based configuration across environments. Initially it's targeted towards development teams, but it's also definitely useful for functional/application administrators.

Features

  • Human readable syntax (Groovy DSL)
  • Synthesized/combined API on top of Liferay's APIs (hiding clunky Expando, DDM*, addUser(44 args), etc...)
  • Exception handling
  • Sensible defaults (no need to fiddle with companyIds and groupIds if you've only got one site)
  • Statements groupable / orderable in separate files
  • State management (keeps track of scripts already executed on environment)

Usage

  1. Create a module within your project, give it a name you like, for example com.acme.myproject-config
  2. Create a class like this:
    @Component(immediate = true)
    public class SampleProjectConfig extends ProjectConfig {
    
        @Activate
        public void activate(BundleContext context) {
            super.doActivate(context);
        }
    
        @Reference
        protected void setExecutor(Executor executor) {
            this.executor = executor;
        }
    }	
    
  3. Create configuration scripts in src/main/resources, named *.groovy, using the syntax
  4. Deploy to Liferay runtime

See also the module nl.finalist.liferay.lam.sampleproject-config, our flagship example config

Roadmap

  • Expose more APIs
  • Control panel portlets for:
    • one-off script execution
    • status display

Getting started with development

  1. Clone this repo
  2. download eclipse neon with liferay plugin. Eg: https://sourceforge.net/projects/lportal/files/Liferay%20IDE/3.1.0%20B1/
  3. Import existing Gradle project, point to base directory of cloned Git repo
  4. Run 'gradle build'
  5. Run unit tests
  6. Deploy modules to Liferay to see it in action: dslglue, api, statemgnt, and sampleproject-config

Image of LAM

liferay-lam's People

Contributors

gvanderploeg avatar dardon1 avatar ashwini-sidhanti avatar gijsbersvanwijk avatar azizer-rafay avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.