1 package org.enhydra.shark.corbaclient.workflowadmin.user; 2 3 import java.awt.*; 4 5 import javax.swing.*; 6 7 import org.enhydra.shark.corbaclient.*; 8 import org.enhydra.shark.corbaclient.workflowadmin.*; 9 10 17 public class UserManagement extends ActionPanel { 18 19 private JTabbedPane tabbedPane; 20 private SharkAdmin workflowAdmin; 21 22 private UserAccountManagement userAccountManagement; 23 private LoggedUsersManagement loggedUsersManagement; 24 private UserMappingManagement userMappingManagement; 25 26 public UserManagement (SharkAdmin wa) { 27 super(); 28 29 this.workflowAdmin=wa; 31 userAccountManagement=new UserAccountManagement(wa); 32 loggedUsersManagement=new LoggedUsersManagement(wa,userAccountManagement); 33 userMappingManagement=new UserMappingManagement(wa,userAccountManagement); 34 35 super.init(); 36 37 38 } 39 40 protected void createActions () {} 41 42 protected Component createCenterComponent () { 44 tabbedPane=new JTabbedPane(); 45 tabbedPane.addTab( 46 ResourceManager.getLanguageDependentString("AccountsKey"), 47 userAccountManagement); 48 tabbedPane.addTab( 49 ResourceManager.getLanguageDependentString("LoggedKey"), 50 loggedUsersManagement); 51 tabbedPane.addTab(ResourceManager.getLanguageDependentString("MappingKey"), 52 userMappingManagement); 53 return tabbedPane; 54 } 55 56 public void clear () { 57 tabbedPane.setSelectedIndex(0); 58 userAccountManagement.clear(); 59 loggedUsersManagement.clear(); 60 userMappingManagement.clear(); 61 } 62 63 public synchronized void refresh (boolean mandatoryRefreshing) { 64 userAccountManagement.refresh(mandatoryRefreshing); 65 loggedUsersManagement.refresh(mandatoryRefreshing); 66 userMappingManagement.refresh(mandatoryRefreshing); 67 } 68 69 public UserAccountManagement getUserAccountManagement () { 70 return userAccountManagement; 71 } 72 73 public LoggedUsersManagement getLoggedUsersManagement () { 74 return loggedUsersManagement; 75 } 76 77 public UserMappingManagement getUserMappingManagement () { 78 return userMappingManagement; 79 } 80 81 } 82 | Popular Tags |