first cut of merge of STABLE-pre1_0 into HEAD. I won't even guarantee that it
[mir.git] / source / mircoders / entity / EntityUsers.java
1 package mircoders.entity;
2
3 import java.lang.*;
4 import java.io.*;
5 import java.util.*;
6 import java.sql.*;
7
8 import mir.entity.*;
9 import mir.misc.*;
10 import mir.storage.*;
11
12 /**
13  * This class is objectmapping of database webdb_users
14  *
15  * @author RK
16  * @version 11.11.2000
17  */
18
19
20 public class EntityUsers extends Entity
21 {
22
23                 public EntityUsers()
24                 {
25                         super();
26                 }
27
28                 public EntityUsers(StorageObject theStorage) {
29                         this();
30                         setStorage(theStorage);
31                 }
32
33         // Methods
34
35         public boolean isAdmin()
36         {
37                 String admin=getValue("is_admin");
38                 //theLog.printDebugInfo("admin::::"+admin);
39                 return (admin!=null&&admin.equals("1"))?true:false;
40         }
41
42 }