/**
*
- * @author mordicus
+ * @author Kavoos
*/
public class CommandResultTO {
public static final int OK = 1;
private int code;
private String msg;
-
+ private String data;
+
public CommandResultTO() {
code = OK;
}
public void setMsg(String msg) {
this.msg = msg;
}
-
+
+ public String getData() {
+ return data;
+ }
+
+ public void setData(String data) {
+ this.data = data;
+ }
}
<servlet-name>MetadataService</servlet-name>
<servlet-class>com.edf.gde.services.ProfileService</servlet-class>
</servlet>
+ <servlet>
+ <servlet-name>UserServce</servlet-name>
+ <servlet-class>com.edf.gde.services.UserService</servlet-class>
+ </servlet>
<servlet-mapping>
<servlet-name>MetadataService</servlet-name>
<url-pattern>/MetadataService</url-pattern>
</servlet-mapping>
+ <servlet-mapping>
+ <servlet-name>UserServce</servlet-name>
+ <url-pattern>/UserService</url-pattern>
+ </servlet-mapping>
<session-config>
<session-timeout>
30
<!DOCTYPE html>
-<!--
-To change this license header, choose License Headers in Project Properties.
-To change this template file, choose Tools | Templates
-and open the template in the editor.
--->
<html>
<head>
<title>TODO supply a title</title>
/* Unique Ids sequence generator */
drop sequence SEQ_GEN_SEQUENCE;
-create sequence SEQ_GEN_SEQUENCE INCREMENT BY 50;
+create sequence SEQ_GEN_SEQUENCE START WITH 50 INCREMENT BY 50;
-DROP TABLE IF EXISTS GROUP_;
+DROP TABLE IF EXISTS GROUP_ CASCADE;
CREATE TABLE GROUP_ (
id bigint NOT NULL PRIMARY KEY,
groupName varchar(255) NOT NULL
);
-DROP TABLE IF EXISTS USERS;
+DROP TABLE IF EXISTS USERS CASCADE;
CREATE TABLE USERS (
id bigint NOT NULL PRIMARY KEY,
userName varchar(255) not null,
);
CREATE INDEX users_username_index ON USERS(userName);
-DROP TABLE IF EXISTS USERGROUP;
+DROP TABLE IF EXISTS USERGROUP CASCADE;
CREATE TABLE USERGROUP (
id bigint NOT NULL PRIMARY KEY,
groupId bigint references GROUP_(id),
userId bigint references USERS(id)
);
-DROP TABLE IF EXISTS USERPERMISSIONS;
+DROP TABLE IF EXISTS USERPERMISSIONS CASCADE;
CREATE TABLE USERPERMISSIONS (
id bigint NOT NULL PRIMARY KEY,
groupId bigint references GROUP_(id),