ceddl4j

Ceddl4j is a Java API for generating a website data layer compliant with the CEDDL specification.

License

License

Categories

Categories

Deeplearning4j Business Logic Libraries Machine Learning
GroupId

GroupId

nl.mirabeau
ArtifactId

ArtifactId

ceddl4j
Last Version

Last Version

1.0.0
Release Date

Release Date

Type

Type

jar
Description

Description

ceddl4j
Ceddl4j is a Java API for generating a website data layer compliant with the CEDDL specification.
Project URL

Project URL

https://mirabeau-nl.github.io/ceddl4j/
Project Organization

Project Organization

Mirabeau B.V.
Source Code Management

Source Code Management

https://github.com/mirabeau-nl/ceddl4j

Download ceddl4j

How to add to project

<!-- https://jarcasting.com/artifacts/nl.mirabeau/ceddl4j/ -->
<dependency>
    <groupId>nl.mirabeau</groupId>
    <artifactId>ceddl4j</artifactId>
    <version>1.0.0</version>
</dependency>
// https://jarcasting.com/artifacts/nl.mirabeau/ceddl4j/
implementation 'nl.mirabeau:ceddl4j:1.0.0'
// https://jarcasting.com/artifacts/nl.mirabeau/ceddl4j/
implementation ("nl.mirabeau:ceddl4j:1.0.0")
'nl.mirabeau:ceddl4j:jar:1.0.0'
<dependency org="nl.mirabeau" name="ceddl4j" rev="1.0.0">
  <artifact name="ceddl4j" type="jar" />
</dependency>
@Grapes(
@Grab(group='nl.mirabeau', module='ceddl4j', version='1.0.0')
)
libraryDependencies += "nl.mirabeau" % "ceddl4j" % "1.0.0"
[nl.mirabeau/ceddl4j "1.0.0"]

Dependencies

compile (1)

Group / Artifact Type Version
com.fasterxml.jackson.core : jackson-databind jar 2.5.3

test (2)

Group / Artifact Type Version
junit : junit jar 4.12
org.skyscreamer : jsonassert jar 1.2.3

Project Modules

There are no modules declared in this project.

Ceddl4j - A CEDDL data layer from Java

Build Status Coverage Status javadoc.io Maven Central

About Ceddl4j

Ceddl4j is a Java component for a website data layer compliant with the CEDDL specification.

The Customer Experience Digital Data Layer (CEDDL) specification

"describes a method for surfacing customer experience digital data on a web or other digital resource as a JavaScript Object which can be used for communicating this data to digital analytics and reporting servers."

For more background information, see our article Ceddl4j: What & why?

Example

To build the following Data Layer:

        digitalData = {
            pageInstanceID: "MyHomePage-Production",
            page:{
                pageInfo:{
                    pageID: "Home Page",
                    destinationURL: "http://mysite.com/index.html"
                },
                category:{
                    primaryCategory: "FAQ Pages",
                    subCategory1: "ProductInfo",
                    pageType: "FAQ"
                },
                attributes:{
                    country: "US",
                    language: "en-US"
                }
            }
        };

You can use this code:

        DigitalData dd = DigitalData.create("MyHomePage-Production")
            .page()
            .pageInfo()
            .pageID("Home Page")
            .destinationURL("http://mysite.com/index.html")
            .endPageInfo()
            .addPrimaryCategory("FAQ Pages")
            .addCategory("subCategory1", "ProductInfo")
            .addCategory("pageType", "FAQ")
            .addAttribute("country", "US")
            .addAttribute("language", "en-US")
            .endPage();

Usage

Add the following dependency to your project's Maven POM.

    <dependency>
        <groupId>nl.mirabeau</groupId>
        <artifactId>ceddl4j</artifactId>
        <version>1.0.0</version>
    </dependency>

See Maven Central for other build tools

To get started read our Getting started guide and see the JavaDoc.

Contribution guidelines

  • Comments, methods and variables in English.
  • Create unit tests where possible.
  • Try to stick to the existing coding style.
  • Give a short description in the pull request what you're doing and why.

License information

Copyright (c) 2015-2020, Mirabeau B.V.
All rights reserved.

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
	* Redistributions of source code must retain the above copyright
	notice, this list of conditions and the following disclaimer.
	* Redistributions in binary form must reproduce the above copyright
	notice, this list of conditions and the following disclaimer in the
	documentation and/or other materials provided with the distribution.
	* Neither the name of Mirabeau B.V. nor the
	names of its contributors may be used to endorse or promote products
	derived from this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY
DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
nl.mirabeau

Mirabeau

A Cognizant Digital Business

Versions

Version
1.0.0
0.2.1
0.2.0
0.1.0