ulrich
2016-12-27 51c9e3ce4e9bbe65957119212c9a6b2efd1e4b6e
Initialiser in web Package verschoben, Lizenzkommentare vereinheitlicht
11 files modified
1 files renamed
182 ■■■■ changed files
src/java/de/uhilger/um/Digester.java 31 ●●●● patch | view | raw | blame | history
src/java/de/uhilger/um/TomcatDigester.java 31 ●●●● patch | view | raw | blame | history
src/java/de/uhilger/um/api/UserMgr.java 31 ●●●● patch | view | raw | blame | history
src/java/de/uhilger/um/daten/Methode.java 2 ●●● patch | view | raw | blame | history
src/java/de/uhilger/um/daten/MethodenRecht.java 2 ●●● patch | view | raw | blame | history
src/java/de/uhilger/um/daten/RoleNameMapper.java 2 ●●● patch | view | raw | blame | history
src/java/de/uhilger/um/daten/User.java 2 ●●● patch | view | raw | blame | history
src/java/de/uhilger/um/daten/UserData.java 2 ●●● patch | view | raw | blame | history
src/java/de/uhilger/um/daten/UserRole.java 2 ●●● patch | view | raw | blame | history
src/java/de/uhilger/um/web/Initialiser.java 54 ●●●●● patch | view | raw | blame | history
src/java/de/uhilger/um/web/NiceFilter.java 21 ●●●● patch | view | raw | blame | history
web/WEB-INF/web.xml 2 ●●● patch | view | raw | blame | history
src/java/de/uhilger/um/Digester.java
@@ -1,20 +1,21 @@
/*
 Nutzerverwaltung - A Generic User Manager
 Copyright (c) 2016  Ulrich Hilger
 This program is free software: you can redistribute it and/or modify
 it under the terms of the GNU Affero General Public License as published by
 the Free Software Foundation, either version 3 of the License, or
 (at your option) any later version.
 This program is distributed in the hope that it will be useful,
 but WITHOUT ANY WARRANTY; without even the implied warranty of
 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 GNU Affero General Public License for more details.
 You should have received a copy of the GNU Affero General Public License
 along with this program.  If not, see <http://www.gnu.org/licenses/>.
 *  Nutzerverwaltung - User and role management in your browser
 *  Copyright (C) 2011-2016 Ulrich Hilger, http://uhilger.de
 *
 *  This program is free software: you can redistribute it and/or modify
 *  it under the terms of the GNU General Public License as published by
 *  the Free Software Foundation, either version 3 of the License, or
 *  (at your option) any later version.
 *
 *  This program is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  GNU General Public License for more details.
 *
 *  You should have received a copy of the GNU General Public License
 *  along with this program.  If not, see http://www.gnu.org/licenses/
 */
package de.uhilger.um;
/**
src/java/de/uhilger/um/TomcatDigester.java
@@ -1,20 +1,21 @@
/*
 Nutzerverwaltung - A Generic User Manager
 Copyright (c) 2016  Ulrich Hilger
 This program is free software: you can redistribute it and/or modify
 it under the terms of the GNU Affero General Public License as published by
 the Free Software Foundation, either version 3 of the License, or
 (at your option) any later version.
 This program is distributed in the hope that it will be useful,
 but WITHOUT ANY WARRANTY; without even the implied warranty of
 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 GNU Affero General Public License for more details.
 You should have received a copy of the GNU Affero General Public License
 along with this program.  If not, see <http://www.gnu.org/licenses/>.
 *  Nutzerverwaltung - User and role management in your browser
 *  Copyright (C) 2011-2016 Ulrich Hilger, http://uhilger.de
 *
 *  This program is free software: you can redistribute it and/or modify
 *  it under the terms of the GNU General Public License as published by
 *  the Free Software Foundation, either version 3 of the License, or
 *  (at your option) any later version.
 *
 *  This program is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  GNU General Public License for more details.
 *
 *  You should have received a copy of the GNU General Public License
 *  along with this program.  If not, see http://www.gnu.org/licenses/
 */
package de.uhilger.um;
import org.apache.catalina.realm.RealmBase;
src/java/de/uhilger/um/api/UserMgr.java
@@ -1,20 +1,21 @@
/*
 Nutzerverwaltung - A Generic User Manager
 Copyright (c) 2016  Ulrich Hilger
 This program is free software: you can redistribute it and/or modify
 it under the terms of the GNU Affero General Public License as published by
 the Free Software Foundation, either version 3 of the License, or
 (at your option) any later version.
 This program is distributed in the hope that it will be useful,
 but WITHOUT ANY WARRANTY; without even the implied warranty of
 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 GNU Affero General Public License for more details.
 You should have received a copy of the GNU Affero General Public License
 along with this program.  If not, see <http://www.gnu.org/licenses/>.
 *  Nutzerverwaltung - User and role management in your browser
 *  Copyright (C) 2011-2016 Ulrich Hilger, http://uhilger.de
 *
 *  This program is free software: you can redistribute it and/or modify
 *  it under the terms of the GNU General Public License as published by
 *  the Free Software Foundation, either version 3 of the License, or
 *  (at your option) any later version.
 *
 *  This program is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  GNU General Public License for more details.
 *
 *  You should have received a copy of the GNU General Public License
 *  along with this program.  If not, see http://www.gnu.org/licenses/
 */
package de.uhilger.um.api;
import de.uhilger.baselink.GenericRecord;
src/java/de/uhilger/um/daten/Methode.java
@@ -1,6 +1,6 @@
/*
 *  Nutzerverwaltung - User and role management in your browser
 *  Copyright (C) 2011, 2012  Ulrich Hilger, http://uhilger.de
 *  Copyright (C) 2011-2016 Ulrich Hilger, http://uhilger.de
 *
 *  This program is free software: you can redistribute it and/or modify
 *  it under the terms of the GNU General Public License as published by
src/java/de/uhilger/um/daten/MethodenRecht.java
@@ -1,6 +1,6 @@
/*
 *  Nutzerverwaltung - User and role management in your browser
 *  Copyright (C) 2011, 2012  Ulrich Hilger, http://uhilger.de
 *  Copyright (C) 2011-2016 Ulrich Hilger, http://uhilger.de
 *
 *  This program is free software: you can redistribute it and/or modify
 *  it under the terms of the GNU General Public License as published by
src/java/de/uhilger/um/daten/RoleNameMapper.java
@@ -1,6 +1,6 @@
/*
 *  Nutzerverwaltung - User and role management in your browser
 *  Copyright (C) 2011, 2012  Ulrich Hilger, http://uhilger.de
 *  Copyright (C) 2011-2016 Ulrich Hilger, http://uhilger.de
 *
 *  This program is free software: you can redistribute it and/or modify
 *  it under the terms of the GNU General Public License as published by
src/java/de/uhilger/um/daten/User.java
@@ -1,6 +1,6 @@
/*
 *  Nutzerverwaltung - User and role management in your browser
 *  Copyright (C) 2011, 2012  Ulrich Hilger, http://uhilger.de
 *  Copyright (C) 2011-2016 Ulrich Hilger, http://uhilger.de
 *
 *  This program is free software: you can redistribute it and/or modify
 *  it under the terms of the GNU General Public License as published by
src/java/de/uhilger/um/daten/UserData.java
@@ -1,6 +1,6 @@
/*
 *  Nutzerverwaltung - User and role management in your browser
 *  Copyright (C) 2011, 2012  Ulrich Hilger, http://uhilger.de
 *  Copyright (C) 2011-2016 Ulrich Hilger, http://uhilger.de
 *
 *  This program is free software: you can redistribute it and/or modify
 *  it under the terms of the GNU General Public License as published by
src/java/de/uhilger/um/daten/UserRole.java
@@ -1,6 +1,6 @@
/*
 *  Nutzerverwaltung - User and role management in your browser
 *  Copyright (C) 2011, 2012  Ulrich Hilger, http://uhilger.de
 *  Copyright (C) 2011-2016 Ulrich Hilger, http://uhilger.de
 *
 *  This program is free software: you can redistribute it and/or modify
 *  it under the terms of the GNU General Public License as published by
src/java/de/uhilger/um/web/Initialiser.java
File was renamed from src/java/de/uhilger/um/Initialiser.java
@@ -1,4 +1,22 @@
package de.uhilger.um;
/*
 *  Nutzerverwaltung - User and role management in your browser
 *  Copyright (C) 2011-2016 Ulrich Hilger, http://uhilger.de
 *
 *  This program is free software: you can redistribute it and/or modify
 *  it under the terms of the GNU General Public License as published by
 *  the Free Software Foundation, either version 3 of the License, or
 *  (at your option) any later version.
 *
 *  This program is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  GNU General Public License for more details.
 *
 *  You should have received a copy of the GNU General Public License
 *  along with this program.  If not, see http://www.gnu.org/licenses/
 */
package de.uhilger.um.web;
import de.uhilger.baselink.PersistenceManager;
import de.uhilger.baselink.Record;
@@ -40,15 +58,6 @@
  /** Name des SQL-Befehls zum Pruefen, ob die Datenbank vorhanden ist */
  public static final String SQL_DB_VORHANDEN = "dbVorhanden";  
  
  /** Anwendungsweite Referenz zur Datenbank */
  //private static PersistenceManager db;
  /** Anwendungsweite Referenz zu den SQL-Befehlen */
  //private static Properties sql;
  /** die Klasse, die von der Nutzerverwaltung zum Verschl&uuml;sseln verwendet wird */
  //private static Digester digester;
  /**
   * Diese Webanwendung initialisieren, also z.B. Elemente instantiieren, die
   * &uuml;ber den Deployment Descritpor ver&auml;nderlich gehalten sind.
@@ -59,8 +68,6 @@
    try {
      initSql(servletContext);
      initDb(servletContext);
      //String digesterClassName = servletContext.getInitParameter(P_DIGESTER);
      //digester = (Digester) Class.forName(digesterClassName).newInstance();
    } catch (Exception ex) {
      logger.log(Level.SEVERE, null, ex);
    }
@@ -88,29 +95,6 @@
      logger.log(Level.SEVERE, ex.getMessage(), ex);
    }
  }
  /* ----------------- statische Getter --------------------- */
  /**
   * Das Zugriffsobjekt fuer die Datenbank dieser Webanwendung
   * ermitteln
   *
   * @return das Zugriffsobjekt zur Datenbank dieser Webanwendung
   */
  /*
  public static PersistenceManager getDatabase() {
    if(db == null) {
      db = new PersistenceManager();
    }
    return db;
  }
  */
  /*
  public static Digester getDigester() {
    return digester;
  }
  */
  
  /* ----------------- Logik zur Datenbank-Erzeugung ------------ */
  
src/java/de/uhilger/um/web/NiceFilter.java
@@ -1,8 +1,21 @@
/*
 * 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.
 *  Nutzerverwaltung - User and role management in your browser
 *  Copyright (C) 2011-2016 Ulrich Hilger, http://uhilger.de
 *
 *  This program is free software: you can redistribute it and/or modify
 *  it under the terms of the GNU General Public License as published by
 *  the Free Software Foundation, either version 3 of the License, or
 *  (at your option) any later version.
 *
 *  This program is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  GNU General Public License for more details.
 *
 *  You should have received a copy of the GNU General Public License
 *  along with this program.  If not, see http://www.gnu.org/licenses/
 */
package de.uhilger.um.web;
import java.io.IOException;
@@ -31,7 +44,7 @@
    hier wird ein URL wie z.B. 
    http]://example.com/um/svc/testmethode
    umgesetzt auf
    http]://example,com/um/api?c=de.uhilger.um.api.UserMgr&m=testmethode
    http]://example.com/um/api?c=de.uhilger.um.api.UserMgr&m=testmethode
  
    der Teil 'svc' ist im Filter Mapping des Deployment Descriptor 
    deklariert. Der Teil 'api' zeigt mit Hilfe eines Servlet 
web/WEB-INF/web.xml
@@ -18,7 +18,7 @@
        <url-pattern>/svc/*</url-pattern>
    </filter-mapping>
    <listener>
        <listener-class>de.uhilger.um.Initialiser</listener-class>
        <listener-class>de.uhilger.um.web.Initialiser</listener-class>
    </listener>
    <servlet>
        <servlet-name>TransitServlet</servlet-name>