bugfixes mainly...
[mir.git] / source / mircoders / entity / EntityUsers.java
1 package mircoders.entity;
2
3 import  java.util.*;
4
5 import  mir.entity.*;
6 import  mir.storage.*;
7
8 /**
9  * This class is objectmapping of database webdb_users
10  *
11  * @author RK
12  * @version 11.11.2000
13  */
14
15
16 public class EntityUsers extends Entity
17 {
18
19                 public EntityUsers()
20                 {
21                         super();
22                 }
23
24                 public EntityUsers(StorageObject theStorage) {
25                         this();
26                         setStorage(theStorage);
27                 }
28
29         // Methods
30
31         public boolean isAdmin()
32         {
33                 String admin=getValue("is_admin");
34                 //theLog.printDebugInfo("admin::::"+admin);
35                 return (admin!=null&&admin.equals("1"))?true:false;
36         }
37
38 }