components/visual-panels/usermgr/src/java/vpanels/app/usermgr/com/oracle/solaris/vp/panels/usermgr/client/swing/UserManagedObject.java
equal
deleted
inserted
replaced
42 extends AbstractManagedObject<UserManagedObject> implements HasIcon { |
42 extends AbstractManagedObject<UserManagedObject> implements HasIcon { |
43 |
43 |
44 // |
44 // |
45 // Static data |
45 // Static data |
46 // |
46 // |
47 public static final String PASSWORD = "PASSWORD"; |
|
48 public static final String NOTACTIVE = "NOTACTIVATED"; |
|
49 |
|
50 |
47 |
51 // Icons - for user, roles |
48 // Icons - for user, roles |
52 protected static final List<ImageIcon> userIcons = Finder.getIcons( |
49 protected static final List<ImageIcon> userIcons = Finder.getIcons( |
53 "images/user-24.png"); |
50 "images/user-24.png"); |
54 |
51 |
314 |
311 |
315 public boolean isNewUser() { |
312 public boolean isNewUser() { |
316 return isNewUser; |
313 return isNewUser; |
317 } |
314 } |
318 |
315 |
319 public boolean hasPassword() { |
|
320 if (getAccountStatus().equals(PASSWORD)) { |
|
321 return (true); |
|
322 } |
|
323 |
|
324 return (false); |
|
325 } |
|
326 |
|
327 // Update the "auto-generated" properties for the newly created user |
316 // Update the "auto-generated" properties for the newly created user |
328 public void updateUser(User user) { |
317 public void updateUser(User user) { |
329 userIdProperty.update(user.getUserID(), true); |
318 userIdProperty.update(user.getUserID(), true); |
330 homeDirProperty.update(user.getHomeDirectory(), true); |
319 homeDirProperty.update(user.getHomeDirectory(), true); |
331 this.isNewUser = false; |
320 this.isNewUser = false; |