1 63 64 package com.jcorporate.expresso.core.security; 65 66 import com.jcorporate.expresso.core.dataobjects.Securable; 67 import com.jcorporate.expresso.core.db.DBException; 68 69 78 public class SuperUser extends User { 79 protected SuperUser() { 80 super(); 81 } 82 83 public static final User SUPER_USER; 84 85 static { 86 try { 87 SUPER_USER = new User(new MapBasedUserInfo()); 88 SUPER_USER.setDBName("default"); 89 SUPER_USER.setUid(Securable.SYSTEM_ACCOUNT); 90 SUPER_USER.setLoginName("$NONE$"); 91 SUPER_USER.setAccountStatus(User.INACTIVE_ACCOUNT_STATUS); 94 SUPER_USER.setDisplayName("System Account"); 95 SUPER_USER.setEmail("noname@example.org"); 96 } catch (DBException ex) { 97 throw new RuntimeException ("Error setting up super user"); 98 } 99 } 100 101 } 102 | Popular Tags |