Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

OSGi bundle to generate Liferay Portal data (permissions, roles, sites, pages etc.). Takes schemed XML declaration as an input and creates database entries accordingly.

License

NotificationsYou must be signed in to change notification settings

ableneo/liferay-db-setup-core

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

84 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Library that allows to setup a number of Liferay artifacts in the DB. It uses xml configuration and Liferay APIs to add all configured artifacts.

Usage

Setup

We didn't publish binary yet so you'll need to build the jar yourself. Here are the steps to do it:

  1. Download sources.
  2. Install Maven 3.x.
  3. cddb-setup-core
  4. runmvn clean install
  5. grab jar fromdb-setup-core/target or use as a dependency in your maven project
<dependency>    <groupId>com.ableneo.liferay</groupId>    <artifactId>db-setup-core</artifactId>    <version>1.1.2</version></dependency>

Integration

Runcom.ableneo.liferay.portal.setup.LiferaySetup#setup(java.io.File) with following xml configuration:

<?xml version="1.0" encoding="UTF-8" ?><setupxmlns="https://raw.githubusercontent.com/ableneo/liferay-db-setup-core/1.x/db-setup-core/src/main/resources/setup_definition-1.2.xsd">    <configuration>        <runasuser>test@liferay.com</runasuser>    </configuration><!--    This will add new custom field that can be used in theme to control if ads should display on    particular page.-->    <customFields>        <fieldname="showAds"type="boolean"className="com.liferay.portal.model.Layout">            <role-permissionrole-name="Guest"permission="view"/>        </field>    </customFields></setup>

Compatibility

  • Version 2.x.x: Liferay Portal DXP/7.0.x
  • Version 1.x.x: Liferay Portal EE/CE 6.2.x

About

OSGi bundle to generate Liferay Portal data (permissions, roles, sites, pages etc.). Takes schemed XML declaration as an input and creates database entries accordingly.

Topics

Resources

License

Contributing

Stars

Watchers

Forks

Packages

No packages published

Contributors8

Languages


[8]ページ先頭

©2009-2025 Movatter.jp