java: isac.util.tactics .. end renamed, formatted, inst_var_, import cleaned
2 * @author Walther Neuper, member of the ISAC-team,
3 * Copyright (c) 2005 by Walther Neuper
4 * created Mar 12, 2005 8:55:37 AM
5 * Institute for Softwaretechnology, Graz University of Technology, Austria.
7 * Use is subject to PGPL license terms.
9 package isac.util.users;
11 import java.io.FileOutputStream;
12 import java.io.IOException;
13 import java.util.Properties;
16 * @author Walther Neuper
18 * contains administrative data (and nothing about the dialog !!!) looking
19 * forward to be handled elsewhere outside isac
21 public class UserAdmin extends Properties {
23 private String userpath_;
25 private String username_;
27 public UserAdmin(String userpath, String username) {
33 //WN050311 just for creation of the first file
34 //beware of the fix path !
35 public static void main(String[] args) {
36 UserAdmin a = new UserAdmin("isac/xmldata/users", "x");
37 a.setProperty("firstName", "x-firstName");
38 a.setProperty("lastName", "x-lastName");
40 String filename = "isac/xmldata/users/x_admin.txt";
42 FileOutputStream propOutFile = new FileOutputStream(filename);
43 a.store(propOutFile, "administrative data of user 'x'");
45 } catch (IOException e) {
46 System.err.println("I/O failed.");