Commit 0b433868 authored by Elias Englmeier's avatar Elias Englmeier
Browse files

overhauled the ideaservice

parent 74c4ab67
......@@ -6,13 +6,4 @@ dependencies {
compileOnly group: "jstl", name: "jstl", version: "1.2"
compileOnly group: "org.osgi", name: "osgi.cmpn", version: "6.0.0"
compile project (":modules:ideaService:ideaService-api")
}
configJSModules {
configVariable = ""
ignorePath = false
moduleExtension = ""
moduleFormat = "/_/g,-"
include "**/*.js*"
}
\ No newline at end of file
......@@ -3,15 +3,11 @@ package MapModule.portlet;
import MapModule.constants.MapModulePortletKeys;
import ideaService.service.IdeasLocalServiceUtil;
import com.liferay.portal.kernel.exception.PortalException;
import com.liferay.portal.kernel.exception.SystemException;
import com.liferay.portal.kernel.json.JSONFactoryUtil;
import com.liferay.portal.kernel.portlet.bridges.mvc.MVCPortlet;
import java.io.IOException;
import javax.portlet.ActionRequest;
import javax.portlet.ActionResponse;
import javax.portlet.Portlet;
import javax.portlet.PortletException;
import javax.portlet.RenderRequest;
......
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="src" path="src/main/java"/>
<classpathentry kind="src" path="src/main/resources"/>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.8/"/>
<classpathentry kind="con" path="org.eclipse.buildship.core.gradleclasspathcontainer"/>
<classpathentry kind="output" path="bin"/>
</classpath>
.gradle/
build/
node_modules/
target/
/bin/
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>MapModuleSoy</name>
<comment>Project MapModuleSoy created by Buildship.</comment>
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>org.eclipse.jdt.core.javabuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.buildship.core.gradleprojectbuilder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>org.eclipse.jdt.core.javanature</nature>
<nature>com.liferay.ide.core.liferayNature</nature>
<nature>org.eclipse.buildship.core.gradleprojectnature</nature>
</natures>
</projectDescription>
#Tue Aug 29 13:35:26 CEST 2017
connection.arguments=
containers=org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.8/
connection.jvm.arguments=
build.commands=org.eclipse.jdt.core.javabuilder
connection.project.dir=../..
natures=org.eclipse.jdt.core.javanature
eclipse.preferences.version=1
connection.java.home=null
derived.resources=.gradle,build
project.path=\:modules\:MapModuleSoy
connection.gradle.distribution=GRADLE_DISTRIBUTION(WRAPPER)
import Component from 'metal-component/src/Component';
import Soy from 'metal-soy/src/Soy';
import templates from './Footer.soy';
/**
* Footer Component
*/
class Footer extends Component {}
// Register component
Soy.register(Footer, templates);
export default Footer;
\ No newline at end of file
{namespace Footer}
/**
* Prints the portlet footer.
*/
{template .render}
<blockquote class="blockquote-xs">
<small>{msg desc=""}this-portlet-was-written-using-soy-templates{/msg}</small>
</blockquote>
{/template}
\ No newline at end of file
// This file was automatically generated from Footer.soy.
// Please don't edit this file by hand.
/**
* @fileoverview Templates in namespace Footer.
* @public
*/
if (typeof Footer == 'undefined') { var Footer = {}; }
Footer.render = function(opt_data, opt_ignored) {
return soydata.VERY_UNSAFE.ordainSanitizedHtml('<blockquote class="blockquote-xs"><small>this-portlet-was-written-using-soy-templates</small></blockquote>');
};
if (goog.DEBUG) {
Footer.render.soyTemplateName = 'Footer.render';
}
import Component from 'metal-component/src/Component';
import Soy from 'metal-soy/src/Soy';
import templates from './Header.soy';
/**
* Header Component
*/
class Header extends Component {}
// Register component
Soy.register(Header, templates);
export default Header;
\ No newline at end of file
{namespace Header}
/**
* Prints the Hello Soy portlet header.
*
* @param releaseInfo
*/
{template .render}
<blockquote class="blockquote-primary">
<p>{msg desc=""}welcome-to-{$releaseInfo}{/msg}</p>
</blockquote>
{/template}
\ No newline at end of file
// This file was automatically generated from Header.soy.
// Please don't edit this file by hand.
/**
* @fileoverview Templates in namespace Header.
* @public
*/
if (typeof Header == 'undefined') { var Header = {}; }
Header.render = function(opt_data, opt_ignored) {
return soydata.VERY_UNSAFE.ordainSanitizedHtml('<blockquote class="blockquote-primary"><p>welcome-to-' + soy.$$escapeHtml(opt_data.releaseInfo) + '</p></blockquote>');
};
if (goog.DEBUG) {
Header.render.soyTemplateName = 'Header.render';
}
import Component from 'metal-component/src/Component';
import Footer from './Footer.es';
import Header from './Header.es';
import Soy from 'metal-soy/src/Soy';
import templates from './Navigation.soy';
class Navigation extends Component {
constructor(opt_config) {
super(opt_config);
}
}
// Register component
Soy.register(Navigation, templates);
export default Navigation;
\ No newline at end of file
{namespace Navigation}
/**
* Prints the portlet navigation example page.
*
* @param id
* @param navigationURL
*/
{template .render}
<div id="{$id}">
{call Header.render data="all"}{/call}
<p>{msg desc=""}this-is-another-view{/msg}</p>
<a href="{$navigationURL}">{msg desc=""}click-here-to-navigate-back{/msg}</a>
{call Footer.render data="all"}{/call}
</div>
{/template}
\ No newline at end of file
// This file was automatically generated from Navigation.soy.
// Please don't edit this file by hand.
/**
* @fileoverview Templates in namespace Navigation.
* @public
*/
if (typeof Navigation == 'undefined') { var Navigation = {}; }
Navigation.render = function(opt_data, opt_ignored) {
return soydata.VERY_UNSAFE.ordainSanitizedHtml('<div id="' + soy.$$escapeHtmlAttribute(opt_data.id) + '">' + Header.render(opt_data) + '<p>this-is-another-view</p><a href="' + soy.$$escapeHtmlAttribute(soy.$$filterNormalizeUri(opt_data.navigationURL)) + '">click-here-to-navigate-back</a>' + Footer.render(opt_data) + '</div>');
};
if (goog.DEBUG) {
Navigation.render.soyTemplateName = 'Navigation.render';
}
import Component from 'metal-component/src/Component';
import Footer from './Footer.es';
import Header from './Header.es';
import Soy from 'metal-soy/src/Soy';
import templates from './View.soy';
import L from '/o/soyMapPortlet/js/leaflet.js';
/**
* View Component
*/
class View extends Component {
constructor(opt_config){
console.log(L);
super(opt_config);
}
/**
* test
*
* @param {MouseEvent} event
*/
test(event) {
console.log("test successful");
}
}
// Register component
Soy.register(View, templates);
export default View;
\ No newline at end of file
{namespace View}
/**
* Prints the portlet main view.
*
* @param id
* @param navigationURL
* @param themeDisplay
*/
{template .render}
<div id="{$id}">
{call Header.render data="all"}{/call}
<p>{msg desc=""}Here a map{/msg}</p>
<h3>{msg desc=""}listing-pages{/msg}</h3>
<div class="list-group">
<div class="list-group-heading">{msg desc=""}navigate-to{/msg}</div>
{foreach $layout in $themeDisplay.layouts}
<a class="list-group-item" href="{$layout.friendlyURL}">{$layout.nameCurrentValue}</a>
{/foreach}
</div>
<h3>{msg desc=""}navigating-between-views{/msg}</h3>
<a href="{$navigationURL}">{msg desc=""}click-here-to-navigate-to-another-view{/msg}</a>
{call Footer.render data="all"}{/call}
<div class = "map div">
<div class="list-group-heading">{msg desc=""}Map{/msg}</div>
<button class="btn btn-default" data-onclick="test" type="button">Test</button>
<button class="btn btn-default" data-onclick="test" type="button">Test</button>
</div>
</div>
{/template}
\ No newline at end of file
// This file was automatically generated from View.soy.
// Please don't edit this file by hand.
/**
* @fileoverview Templates in namespace View.
* @public
*/
if (typeof View == 'undefined') { var View = {}; }
View.render = function(opt_data, opt_ignored) {
var output = '<div id="' + soy.$$escapeHtmlAttribute(opt_data.id) + '">' + Header.render(opt_data) + '<p>Here a map</p><h3>listing-pages</h3><div class="list-group"><div class="list-group-heading">navigate-to</div>';
var layoutList60 = opt_data.themeDisplay.layouts;
var layoutListLen60 = layoutList60.length;
for (var layoutIndex60 = 0; layoutIndex60 < layoutListLen60; layoutIndex60++) {
var layoutData60 = layoutList60[layoutIndex60];
output += '<a class="list-group-item" href="' + soy.$$escapeHtmlAttribute(soy.$$filterNormalizeUri(layoutData60.friendlyURL)) + '">' + soy.$$escapeHtml(layoutData60.nameCurrentValue) + '</a>';
}
output += '</div><h3>navigating-between-views</h3><a href="' + soy.$$escapeHtmlAttribute(soy.$$filterNormalizeUri(opt_data.navigationURL)) + '">click-here-to-navigate-to-another-view</a>' + Footer.render(opt_data) + '<div class = "map div"><div class="list-group-heading">Map</div><button class="btn btn-default" data-onclick="test" type="button">Test</button><button class="btn btn-default" data-onclick="test" type="button">Test</button></div></div>';
return soydata.VERY_UNSAFE.ordainSanitizedHtml(output);
};
if (goog.DEBUG) {
View.render.soyTemplateName = 'View.render';
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment