Coder Social home page Coder Social logo

cns's Introduction

Community Notification System

Objective

The goal of this project is provide the ability to push notifications to BA-server.

Getting started

The first thing you should do is to confirm you have ant installed ( http://ant.apache.org/ ).

To prep the project, you first need to resolve/include the necessary dependencies. Ivy.xml file contains a list of the dependencies needed to successfully compile this project.

To fetch dependencies and populate /lib folder

From the project root and using command-line simply type ant resolve

How to use

Following this steps should get you going:

Compile the project

Just run ant and you should be all set

Deploying the plugin in your pentaho environment

Copy the zip folder in ./dist folder and unzip it at

pentaho-solutions/system/

How to send out a notification

An extensive list of endpoints is offered:

[ GET | POST ] /pentaho/api/plugin/cns/api/do/notify
[ GET | POST ] /pentaho/api/plugin/cns/api/do/notify/all
[ GET | POST ] /pentaho/api/plugin/cns/api/do/notify/role
[ GET | POST ] /pentaho/api/plugin/cns/api/do/notify/user

Sending the notification info in the path

pentaho/plugin/cns/api/do/notify/all/{notificationType}/{title}/{message}
pentaho/plugin/cns/api/do/notify/role/{recipient}/{notificationType}/{title}/{message}
pentaho/plugin/cns/api/do/notify/user/{recipient}/{notificationType}/{title}/{message}

Sending the notification info as url parameters

pentaho/plugin/cns/api/do/notify/all?notificationType={notificationType}&title={title}&message={message}
pentaho/plugin/cns/api/do/notify/role?recipient={recipient}¬ificationType={notificationType}&title={title}&message={message}
pentaho/plugin/cns/api/do/notify/user?recipient={recipient}¬ificationType={notificationType}&title={title}&message={message}

Sending the notification info as form parameters

pentaho/plugin/cns/api/do/notify/all
	{
		notificationType:{notificationType}
		title:{title}
		message:{message}
	}
pentaho/plugin/cns/api/do/notify/role
	{
		recipient:{recipient}
		notificationType:{notificationType}
		title:{title}
		message:{message}
	}
pentaho/plugin/cns/api/do/notify/user
	{
		recipient:{recipient}
		notificationType:{notificationType}
		title:{title}
		message:{message}
	}

Working examples###

A) sending the parameters in the path:

pentaho/plugin/cns/api/do/notify/user/admin/default/Marketplace/There are updates for your plugin 'CDE' in the markeplace

B) sending the notification info as url parameters:

pentaho/plugin/cns/api/do/notify/user?recipient=admin?notificationType=default?title=Marketplace&message=There are updates for your plugin 'CDE' in the markeplace&link=www.pentaho.com/marketplace

C) sending the notification info as form parameters:

pentaho/plugin/cns/api/do/notify/user
	{
		recipient=admin
		notificationType=default
		title=Marketplace
		message=There are updates for your plugin 'CDE' in the markeplace
		link=www.pentaho.com/marketplace
	}

cns's People

Contributors

pedrofvteixeira avatar miguelleite avatar

Watchers

James Cloos avatar  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.