4 import java.text.SimpleDateFormat;
6 public class ListInfo {
21 static final SimpleDateFormat df = new SimpleDateFormat("dd-MMM-yyyy HH:mm:ss");
23 public ListInfo(String name, String active, String spublic, String hidden, String maillist, String grouplist, String gid, String ace_type, String ace_name, String description, String modtime, String moduser, String modwith) throws MoiraException {
25 this.active = (active.equals("1")) ? true : false;
26 this.bpublic = (spublic.equals("1")) ? true : false;
27 this.hidden = (hidden.equals("1")) ? true : false;
28 this.maillist = (maillist.equals("1")) ? true : false;
29 this.grouplist = (grouplist.equals("1")) ? true : false;
30 this.gid_original = gid;
32 this.gid = Integer.parseInt(gid);
33 } catch (NumberFormatException e) {
36 this.ace_type = ace_type;
37 this.ace_name = ace_name;
38 this.description = description;
40 this.modtime = df.parse(modtime);
41 } catch (java.text.ParseException p) {
42 throw new MoiraException(p.getMessage());
44 this.moduser = moduser;
45 this.modwith = modwith;