Skip to content

Commit

Permalink
VERSION 0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
acalvoa committed Apr 26, 2017
1 parent 351f1e0 commit caf9e48
Show file tree
Hide file tree
Showing 216 changed files with 4,827 additions and 0 deletions.
3 changes: 3 additions & 0 deletions WebContent/META-INF/MANIFEST.MF
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Manifest-Version: 1.0
Class-Path:

Binary file added WebContent/WEB-INF/lib/commons-lang3-3.5.jar
Binary file not shown.
Binary file added WebContent/WEB-INF/lib/json.org.jar
Binary file not shown.
Binary file not shown.
Binary file added WebContent/WEB-INF/lib/ojdbc8.jar
Binary file not shown.
Binary file added WebContent/WEB-INF/lib/postgresql-42.0.0.jar
Binary file not shown.
Binary file not shown.
Binary file added WebContent/WEB-INF/lib/sdoapi.jar
Binary file not shown.
10 changes: 10 additions & 0 deletions WebContent/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
http://marketplace.eclipse.org/marketplace-client-intro?mpc_install=1139<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
</head>
<body>
WORKS!
</body>
</html>
Binary file added build/classes/geos/admin/Api.class
Binary file not shown.
Binary file added build/classes/geos/admin/Communication.class
Binary file not shown.
Binary file added build/classes/geos/admin/Persistence.class
Binary file not shown.
Binary file added build/classes/geos/annotations/AddPropertie.class
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added build/classes/geos/annotations/AddPropertieSet.class
Binary file not shown.
Binary file added build/classes/geos/annotations/AutoIncrement.class
Binary file not shown.
Binary file added build/classes/geos/annotations/Cache.class
Binary file not shown.
Binary file added build/classes/geos/annotations/Console.class
Binary file not shown.
Binary file added build/classes/geos/annotations/Controller.class
Binary file not shown.
Binary file not shown.
Binary file added build/classes/geos/annotations/Cronwork.class
Binary file not shown.
Binary file added build/classes/geos/annotations/DatabaseDriver.class
Binary file not shown.
Binary file added build/classes/geos/annotations/ErrorCode.class
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added build/classes/geos/annotations/GroupProperties.class
Binary file not shown.
Binary file not shown.
Binary file added build/classes/geos/annotations/Model.class
Binary file not shown.
Binary file not shown.
Binary file added build/classes/geos/annotations/ModelCollection.class
Binary file not shown.
Binary file added build/classes/geos/annotations/ModelField.class
Binary file not shown.
Binary file added build/classes/geos/annotations/ModelJoin.class
Binary file not shown.
Binary file added build/classes/geos/annotations/ModelJoins.class
Binary file not shown.
Binary file added build/classes/geos/annotations/ModelRelation.class
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added build/classes/geos/annotations/ParamOptional.class
Binary file not shown.
Binary file added build/classes/geos/annotations/ParamRequire.class
Binary file not shown.
Binary file added build/classes/geos/annotations/Policie.class
Binary file not shown.
Binary file added build/classes/geos/annotations/PrimaryKey.class
Binary file not shown.
Binary file added build/classes/geos/annotations/Required.class
Binary file not shown.
Binary file added build/classes/geos/annotations/Route.class
Binary file not shown.
Binary file added build/classes/geos/annotations/Unique.class
Binary file not shown.
Binary file added build/classes/geos/controller/Auditoria.class
Binary file not shown.
Binary file added build/classes/geos/controller/Cartografia.class
Binary file not shown.
Binary file added build/classes/geos/core/Cache.class
Binary file not shown.
Binary file added build/classes/geos/core/ControllerCore.class
Binary file not shown.
Binary file added build/classes/geos/core/Cronjob.class
Binary file not shown.
Binary file added build/classes/geos/core/DatabasePool.class
Binary file not shown.
Binary file added build/classes/geos/core/DeveloperTools.class
Binary file not shown.
Binary file added build/classes/geos/core/Engine.class
Binary file not shown.
Binary file added build/classes/geos/core/Gear.class
Binary file not shown.
Binary file added build/classes/geos/core/HttpRequest.class
Binary file not shown.
Binary file added build/classes/geos/core/HttpResponse.class
Binary file not shown.
Binary file added build/classes/geos/core/Kernel.class
Binary file not shown.
Binary file added build/classes/geos/core/Logging.class
Binary file not shown.
Binary file added build/classes/geos/core/ModelCore.class
Binary file not shown.
Binary file added build/classes/geos/core/ModelInterface.class
Binary file not shown.
Binary file added build/classes/geos/core/ModelTransaction.class
Binary file not shown.
Binary file added build/classes/geos/core/Packet.class
Binary file not shown.
Binary file added build/classes/geos/core/PolicieCore.class
Binary file not shown.
Binary file added build/classes/geos/core/Properties.class
Binary file not shown.
Binary file added build/classes/geos/core/Request.class
Binary file not shown.
Binary file added build/classes/geos/core/ResourceMaping$1.class
Binary file not shown.
Binary file added build/classes/geos/core/ResourceMaping$2.class
Binary file not shown.
Binary file added build/classes/geos/core/ResourceMaping$3.class
Binary file not shown.
Binary file added build/classes/geos/core/ResourceMaping.class
Binary file not shown.
Binary file added build/classes/geos/core/Response.class
Binary file not shown.
Binary file added build/classes/geos/core/Router.class
Binary file not shown.
Binary file added build/classes/geos/core/Session.class
Binary file not shown.
Binary file added build/classes/geos/database/Connector.class
Binary file not shown.
Binary file added build/classes/geos/database/Mysql.class
Binary file not shown.
Binary file added build/classes/geos/database/OracleConnector.class
Binary file not shown.
Binary file not shown.
Binary file added build/classes/geos/database/QueryBuilder.class
Binary file not shown.
Binary file added build/classes/geos/def/ActionDef.class
Binary file not shown.
Binary file added build/classes/geos/def/ErrorDef.class
Binary file not shown.
Binary file added build/classes/geos/def/HttpActionDef.class
Binary file not shown.
Binary file added build/classes/geos/def/JobDef.class
Binary file not shown.
Binary file added build/classes/geos/def/ModelRest.class
Binary file not shown.
Binary file added build/classes/geos/def/RouteDef.class
Binary file not shown.
Binary file added build/classes/geos/def/SessionDef.class
Binary file not shown.
Binary file added build/classes/geos/error/Error500.class
Binary file not shown.
Binary file added build/classes/geos/error/Error60.class
Binary file not shown.
Binary file added build/classes/geos/error/Error700.class
Binary file not shown.
Binary file added build/classes/geos/error/Error800.class
Binary file not shown.
Binary file added build/classes/geos/error/ErrorBase.class
Binary file not shown.
Binary file added build/classes/geos/gateway/Channel.class
Binary file not shown.
Binary file added build/classes/geos/gateway/Gateway.class
Binary file not shown.
Binary file added build/classes/geos/gateway/Rest.class
Binary file not shown.
Binary file added build/classes/geos/gateway/Websocket.class
Binary file not shown.
Binary file added build/classes/geos/http/Response200.class
Binary file not shown.
Binary file added build/classes/geos/http/Response300.class
Binary file not shown.
Binary file added build/classes/geos/http/Response500.class
Binary file not shown.
Binary file added build/classes/geos/interfaces/ModelInterface.class
Binary file not shown.
Binary file added build/classes/geos/interfaces/ModelTransaction.class
Binary file not shown.
Binary file added build/classes/geos/interfaces/PolicieCore.class
Binary file not shown.
Binary file added build/classes/geos/interfaces/Process.class
Binary file not shown.
Binary file added build/classes/geos/interfaces/Request.class
Binary file not shown.
Binary file added build/classes/geos/interfaces/Response.class
Binary file not shown.
Binary file added build/classes/geos/model/AuditoriaComunal.class
Binary file not shown.
Binary file added build/classes/geos/model/CartografiaComunal.class
Binary file not shown.
Binary file added build/classes/geos/model/CartografiaRegional.class
Binary file not shown.
Binary file added build/classes/geos/model/Sica.class
Binary file not shown.
Binary file added build/classes/geos/policies/Admin.class
Binary file not shown.
Binary file added build/classes/geos/policies/AllPass.class
Binary file not shown.
Binary file added build/classes/geos/policies/SignIn.class
Binary file not shown.
Binary file added build/classes/geos/security/Keys.class
Binary file not shown.
Binary file added build/classes/geos/types/CENTROID.class
Binary file not shown.
Binary file added build/classes/geos/types/GEOM.class
Binary file not shown.
Binary file added build/classes/geos/types/Type.class
Binary file not shown.
Binary file not shown.
Binary file added build/classes/geos/utils/GeoAlgorithm.class
Binary file not shown.
50 changes: 50 additions & 0 deletions src/geos/admin/Api.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
package geos.admin;

import java.io.IOException;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import geos.annotations.ModelJoin;
import geos.core.Gear;

/**
* Servlet implementation class Servicie
*/
@WebServlet("/console/*")
public class Api extends HttpServlet {
private static final long serialVersionUID = 1L;

/**
* @see HttpServlet#HttpServlet()
*/
public Api() {
super();
// TODO Auto-generated constructor stub
}

/**
* @see HttpServlet#doGet(HttpServletRequest request, HttpServletResponse response)
*/
protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
// TODO Auto-generated method stub
Gear engine = new Gear(request,response);
engine.get(true);
}

/**
* @see HttpServlet#doPost(HttpServletRequest request, HttpServletResponse response)
*/
protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
// TODO Auto-generated method stub
Gear engine = new Gear(request,response);
engine.post(true);
}
protected void doPut(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
// TODO Auto-generated method stub
Gear engine = new Gear(request,response);
engine.put(true);
}
}
12 changes: 12 additions & 0 deletions src/geos/admin/Communication.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
package geos.admin;

import geos.core.Properties;

public class Communication {
private static Communication instance = null;
//CONSTRUCTOR
public static Communication getInstance(){
if(instance == null) instance = new Communication();
return instance;
}
}
11 changes: 11 additions & 0 deletions src/geos/admin/Persistence.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
package geos.admin;

import geos.annotations.Policie;
import geos.core.Kernel;
import geos.core.Properties;
public class Persistence {
Properties prop;
public Persistence(){
this.prop = Properties.getInstance();
}
}
15 changes: 15 additions & 0 deletions src/geos/annotations/AddPropertie.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
package geos.annotations;

import java.lang.annotation.ElementType;
import java.lang.annotation.Repeatable;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.TYPE)
@Repeatable(GroupProperties.class)
public @interface AddPropertie {
String name();
String defaultTo();
}
15 changes: 15 additions & 0 deletions src/geos/annotations/AddPropertieArray.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
package geos.annotations;

import java.lang.annotation.ElementType;
import java.lang.annotation.Repeatable;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.TYPE)
@Repeatable(GroupPropertiesArray.class)
public @interface AddPropertieArray {
String name();
String[] defaultTo();
}
16 changes: 16 additions & 0 deletions src/geos/annotations/AddPropertieOption.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
package geos.annotations;

import java.lang.annotation.ElementType;
import java.lang.annotation.Repeatable;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.TYPE)
@Repeatable(GroupPropertieOption.class)
public @interface AddPropertieOption {
String name();
String[] option();
int defaultTo();
}
16 changes: 16 additions & 0 deletions src/geos/annotations/AddPropertieSet.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
package geos.annotations;

import java.lang.annotation.ElementType;
import java.lang.annotation.Repeatable;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.TYPE)
@Repeatable(GroupPropertieSet.class)
public @interface AddPropertieSet {
String name();
String[] set();
String[] defaultTo();
}
5 changes: 5 additions & 0 deletions src/geos/annotations/AutoIncrement.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
package geos.annotations;

public @interface AutoIncrement {

}
12 changes: 12 additions & 0 deletions src/geos/annotations/Cache.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
package geos.annotations;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

@Retention(RetentionPolicy.RUNTIME)
@Target({ ElementType.TYPE, ElementType.METHOD })
public @interface Cache {

}
18 changes: 18 additions & 0 deletions src/geos/annotations/Console.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
package geos.annotations;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.TYPE)
public @interface Console {
String name();
float version();
String description();
boolean POST() default true;
boolean GET() default true;
boolean PUT() default true;
boolean DELETE() default false;
}
18 changes: 18 additions & 0 deletions src/geos/annotations/Controller.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
package geos.annotations;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.TYPE)
public @interface Controller {
String name();
float version();
String description();
boolean POST() default true;
boolean GET() default true;
boolean PUT() default true;
boolean DELETE() default true;
}
18 changes: 18 additions & 0 deletions src/geos/annotations/ControllerAction.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
package geos.annotations;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.METHOD)
public @interface ControllerAction {
String name();
float version();
String description();
boolean POST() default true;
boolean GET() default true;
boolean PUT() default false;
boolean DELETE() default false;
}
5 changes: 5 additions & 0 deletions src/geos/annotations/Cronwork.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
package geos.annotations;

public @interface Cronwork {

}
13 changes: 13 additions & 0 deletions src/geos/annotations/DatabaseDriver.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
package geos.annotations;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.TYPE)
public @interface DatabaseDriver {
String type();
String name();
}
13 changes: 13 additions & 0 deletions src/geos/annotations/ErrorCode.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
package geos.annotations;

import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
import java.lang.annotation.ElementType;

@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.FIELD)
public @interface ErrorCode {
String description();
int code();
}
12 changes: 12 additions & 0 deletions src/geos/annotations/GroupPropertieOption.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
package geos.annotations;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.TYPE)
public @interface GroupPropertieOption {
AddPropertieOption[] value();
}
12 changes: 12 additions & 0 deletions src/geos/annotations/GroupPropertieSet.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
package geos.annotations;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.TYPE)
public @interface GroupPropertieSet {
AddPropertieSet[] value();
}
12 changes: 12 additions & 0 deletions src/geos/annotations/GroupProperties.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
package geos.annotations;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.TYPE)
public @interface GroupProperties {
AddPropertie[] value();
}
12 changes: 12 additions & 0 deletions src/geos/annotations/GroupPropertiesArray.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
package geos.annotations;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.TYPE)
public @interface GroupPropertiesArray {
AddPropertieArray[] value();
}
16 changes: 16 additions & 0 deletions src/geos/annotations/Model.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
package geos.annotations;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.TYPE )
public @interface Model {
String name();
String tableName();
boolean REST() default false;
boolean migrate() default true;
float version();
}
5 changes: 5 additions & 0 deletions src/geos/annotations/ModelAutoIncrement.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
package geos.annotations;

public @interface ModelAutoIncrement {

}
6 changes: 6 additions & 0 deletions src/geos/annotations/ModelCollection.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
package geos.annotations;

public @interface ModelCollection {
public String table();
public String Column();
}
5 changes: 5 additions & 0 deletions src/geos/annotations/ModelField.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
package geos.annotations;

public @interface ModelField {
String column() default "";
}
9 changes: 9 additions & 0 deletions src/geos/annotations/ModelJoin.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
package geos.annotations;
import java.lang.annotation.Repeatable;

@Repeatable(ModelJoins.class)
public @interface ModelJoin {
String table();
String field();
String relation();
}
5 changes: 5 additions & 0 deletions src/geos/annotations/ModelJoins.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
package geos.annotations;

public @interface ModelJoins {
ModelJoin[] value();
}
5 changes: 5 additions & 0 deletions src/geos/annotations/ModelRelation.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
package geos.annotations;

public @interface ModelRelation {
public String table();
}
5 changes: 5 additions & 0 deletions src/geos/annotations/ModelSpecialQuery.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
package geos.annotations;

public @interface ModelSpecialQuery {
String query();
}
6 changes: 6 additions & 0 deletions src/geos/annotations/ModelTransaction.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
package geos.annotations;

public @interface ModelTransaction {
Class<?> model();
String[] fields();
}
Loading

0 comments on commit caf9e48

Please sign in to comment.