-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MVC App to get data from VIVO Telefonica IoT
- Loading branch information
Giovanni Degani
committed
Jan 31, 2014
0 parents
commit cccd6d5
Showing
7,688 changed files
with
1,976,715 additions
and
0 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<classpath> | ||
<classpathentry kind="src" path="src"/> | ||
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.7"> | ||
<attributes> | ||
<attribute name="owner.project.facets" value="java"/> | ||
</attributes> | ||
</classpathentry> | ||
<classpathentry kind="con" path="org.eclipse.jst.j2ee.internal.web.container"/> | ||
<classpathentry kind="con" path="org.eclipse.jst.j2ee.internal.module.container"/> | ||
<classpathentry kind="con" path="com.sap.ide.ui5.libsclasspathcontainer/SAPUI5 Core Libraries"> | ||
<attributes> | ||
<attribute name="org.eclipse.jst.component.dependency" value="/WEB-INF/lib"/> | ||
</attributes> | ||
</classpathentry> | ||
<classpathentry kind="con" path="com.sap.ide.ui5.serversidelibsclasspathcontainer/SAPUI5 Server Side Libraries"> | ||
<attributes> | ||
<attribute name="org.eclipse.jst.component.dependency" value="/WEB-INF/lib"/> | ||
</attributes> | ||
</classpathentry> | ||
<classpathentry kind="output" path="build/classes"/> | ||
</classpath> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<projectDescription> | ||
<name>MVC_Telefonica</name> | ||
<comment></comment> | ||
<projects> | ||
</projects> | ||
<buildSpec> | ||
<buildCommand> | ||
<name>org.eclipse.wst.jsdt.core.javascriptValidator</name> | ||
<arguments> | ||
</arguments> | ||
</buildCommand> | ||
<buildCommand> | ||
<name>org.eclipse.jdt.core.javabuilder</name> | ||
<arguments> | ||
</arguments> | ||
</buildCommand> | ||
<buildCommand> | ||
<name>org.eclipse.wst.common.project.facet.core.builder</name> | ||
<arguments> | ||
</arguments> | ||
</buildCommand> | ||
<buildCommand> | ||
<name>org.eclipse.wst.validation.validationbuilder</name> | ||
<arguments> | ||
</arguments> | ||
</buildCommand> | ||
</buildSpec> | ||
<natures> | ||
<nature>org.eclipse.jem.workbench.JavaEMFNature</nature> | ||
<nature>org.eclipse.wst.common.modulecore.ModuleCoreNature</nature> | ||
<nature>org.eclipse.wst.common.project.facet.core.nature</nature> | ||
<nature>org.eclipse.jdt.core.javanature</nature> | ||
<nature>org.eclipse.wst.jsdt.core.jsNature</nature> | ||
<nature>com.sap.ide.ui5.app.plugin.webappnature</nature> | ||
</natures> | ||
</projectDescription> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<classpath> | ||
<classpathentry kind="src" path="WebContent"/> | ||
<classpathentry kind="con" path="org.eclipse.wst.jsdt.launching.JRE_CONTAINER"/> | ||
<classpathentry kind="con" path="org.eclipse.wst.jsdt.launching.WebProject"> | ||
<attributes> | ||
<attribute name="hide" value="true"/> | ||
</attributes> | ||
</classpathentry> | ||
<classpathentry kind="con" path="org.eclipse.wst.jsdt.launching.baseBrowserLibrary"/> | ||
<classpathentry kind="con" path="com.sap.ide.ui5.jsdt.SAPUI5Libraries"/> | ||
<classpathentry kind="output" path=""/> | ||
</classpath> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
eclipse.preferences.version=1 | ||
org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled | ||
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.7 | ||
org.eclipse.jdt.core.compiler.compliance=1.7 | ||
org.eclipse.jdt.core.compiler.problem.assertIdentifier=error | ||
org.eclipse.jdt.core.compiler.problem.enumIdentifier=error | ||
org.eclipse.jdt.core.compiler.source=1.7 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
<?xml version="1.0" encoding="UTF-8"?><project-modules id="moduleCoreId" project-version="1.5.0"> | ||
<wb-module deploy-name="MVC_Telefonica"> | ||
<wb-resource deploy-path="/" source-path="/WebContent" tag="defaultRootSource"/> | ||
<wb-resource deploy-path="/WEB-INF/classes" source-path="/src"/> | ||
<property name="context-root" value="MVC_Telefonica"/> | ||
<property name="java-output-path" value="/MVC_Telefonica/build/classes"/> | ||
</wb-module> | ||
</project-modules> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<faceted-project> | ||
<fixed facet="wst.jsdt.web"/> | ||
<installed facet="java" version="1.7"/> | ||
<installed facet="jst.web" version="2.5"/> | ||
<installed facet="wst.jsdt.web" version="1.0"/> | ||
<installed facet="com.sap.ide.ui5.app.facet" version="latest"/> | ||
</faceted-project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
org.eclipse.wst.jsdt.launching.baseBrowserLibrary |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Window |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
Manifest-Version: 1.0 | ||
Class-Path: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,91 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee | ||
http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" | ||
version="2.5" | ||
xmlns="http://java.sun.com/xml/ns/javaee"> | ||
|
||
<display-name>MVC_Telefonica</display-name> | ||
|
||
<!-- ============================================================== --> | ||
<!-- UI5 resource servlet used to handle application resources --> | ||
<!-- ============================================================== --> | ||
|
||
<servlet> | ||
<display-name>ResourceServlet</display-name> | ||
<servlet-name>ResourceServlet</servlet-name> | ||
<servlet-class>com.sap.ui5.resource.ResourceServlet</servlet-class> | ||
</servlet> | ||
<servlet-mapping> | ||
<servlet-name>ResourceServlet</servlet-name> | ||
<url-pattern>/resources/*</url-pattern> | ||
</servlet-mapping> | ||
<servlet-mapping> | ||
<servlet-name>ResourceServlet</servlet-name> | ||
<url-pattern>/test-resources/*</url-pattern> | ||
</servlet-mapping> | ||
<!-- BEGIN: DEV MODE --> | ||
<!-- DEV MODE switched off by default and can be switched on during development --> | ||
<!-- but has to be switched off for productive use on a Java server! --> | ||
<context-param> | ||
<param-name>com.sap.ui5.resource.DEV_MODE</param-name> | ||
<param-value>false</param-value> | ||
</context-param> | ||
<!-- END: DEV MODE --> | ||
|
||
|
||
<!-- ============================================================== --> | ||
<!-- Cache Control Filter to prevent caching of any resource --> | ||
<!-- ============================================================== --> | ||
|
||
<filter> | ||
<display-name>CacheControlFilter</display-name> | ||
<filter-name>CacheControlFilter</filter-name> | ||
<filter-class>com.sap.ui5.resource.CacheControlFilter</filter-class> | ||
</filter> | ||
<filter-mapping> | ||
<filter-name>CacheControlFilter</filter-name> | ||
<url-pattern>*.html</url-pattern> | ||
</filter-mapping> | ||
<filter-mapping> | ||
<filter-name>CacheControlFilter</filter-name> | ||
<url-pattern>*.js</url-pattern> | ||
</filter-mapping> | ||
<filter-mapping> | ||
<filter-name>CacheControlFilter</filter-name> | ||
<url-pattern>*.xml</url-pattern> | ||
</filter-mapping> | ||
<filter-mapping> | ||
<filter-name>CacheControlFilter</filter-name> | ||
<url-pattern>*.json</url-pattern> | ||
</filter-mapping> | ||
<filter-mapping> | ||
<filter-name>CacheControlFilter</filter-name> | ||
<url-pattern>*.css</url-pattern> | ||
</filter-mapping> | ||
|
||
|
||
<!-- ============================================================== --> | ||
<!-- UI5 proxy servlet --> | ||
<!-- ============================================================== --> | ||
|
||
<servlet> | ||
<servlet-name>SimpleProxyServlet</servlet-name> | ||
<servlet-class>com.sap.ui5.proxy.SimpleProxyServlet</servlet-class> | ||
</servlet> | ||
<servlet-mapping> | ||
<servlet-name>SimpleProxyServlet</servlet-name> | ||
<url-pattern>/proxy/*</url-pattern> | ||
</servlet-mapping> | ||
|
||
|
||
<!-- ============================================================== --> | ||
<!-- Welcome file list --> | ||
<!-- ============================================================== --> | ||
|
||
<welcome-file-list> | ||
<welcome-file>index.html</welcome-file> | ||
</welcome-file-list> | ||
|
||
|
||
</web-app> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
<!DOCTYPE HTML> | ||
<html> | ||
<head> | ||
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | ||
|
||
<script src="ui5/resources/sap-ui-core.js" | ||
id="sap-ui-bootstrap" | ||
data-sap-ui-libs="sap.m" | ||
data-sap-ui-theme="sap_bluecrystal"> | ||
</script> | ||
<!-- only load the mobile lib "sap.m" and the "sap_mvi" theme --> | ||
|
||
<script> | ||
sap.ui.localResources("mvc_telefonica"); | ||
var app = new sap.m.App({initialPage:"idMain1"}); | ||
var page = sap.ui.view({id:"idMain1", viewName:"mvc_telefonica.Main", type:sap.ui.core.mvc.ViewType.JS}); | ||
app.addPage(page); | ||
app.placeAt("content"); | ||
</script> | ||
|
||
</head> | ||
<body class="sapUiBody" role="application"> | ||
<div id="content"></div> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
sap.ui.controller("mvc_telefonica.Main", { | ||
|
||
/** | ||
* Called when a controller is instantiated and its View controls (if available) are already created. | ||
* Can be used to modify the View before it is displayed, to bind event handlers and do other one-time initialization. | ||
* @memberOf mvc_telefonica.Main | ||
*/ | ||
onInit: function() { | ||
|
||
var oModel = new sap.ui.model.json.JSONModel(); | ||
oModel.loadData("{URL HERE}",{},false); | ||
|
||
this.getView().setModel(oModel); | ||
}, | ||
|
||
/** | ||
* Similar to onAfterRendering, but this hook is invoked before the controller's View is re-rendered | ||
* (NOT before the first rendering! onInit() is used for that one!). | ||
* @memberOf mvc_telefonica.Main | ||
*/ | ||
onBeforeRendering: function() { | ||
var itemTemplate = new sap.m.StandardListItem({ | ||
title : "{st}", | ||
iconInset: false | ||
}); | ||
sap.ui.getCore().byId("teste").bindAggregation("items", { path: "/data/sensorData" , template: itemTemplate}); | ||
}, | ||
|
||
/** | ||
* Called when the View has been rendered (so its HTML is part of the document). Post-rendering manipulations of the HTML could be done here. | ||
* This hook is the same one that SAPUI5 controls get after being rendered. | ||
* @memberOf mvc_telefonica.Main | ||
*/ | ||
// onAfterRendering: function() { | ||
// | ||
// }, | ||
|
||
/** | ||
* Called when the Controller is destroyed. Use this one to free resources and finalize activities. | ||
* @memberOf mvc_telefonica.Main | ||
*/ | ||
// onExit: function() { | ||
// | ||
// } | ||
|
||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
sap.ui.jsview("mvc_telefonica.Main", { | ||
|
||
/** Specifies the Controller belonging to this View. | ||
* In the case that it is not implemented, or that "null" is returned, this View does not have a Controller. | ||
* @memberOf mvc_telefonica.Main | ||
*/ | ||
getControllerName : function() { | ||
return "mvc_telefonica.Main"; | ||
}, | ||
|
||
/** Is initially called once after the Controller has been instantiated. It is the place where the UI is constructed. | ||
* Since the Controller is given to this method, its event handlers can be attached right away. | ||
* @memberOf mvc_telefonica.Main | ||
*/ | ||
createContent : function(oController) { | ||
return new sap.m.Page({ | ||
title: "Title", | ||
content: [ | ||
new sap.m.List("teste",{headerText: "Teste de List"}) | ||
] | ||
}); | ||
} | ||
|
||
}); |
Oops, something went wrong.