comsuite-svn Mailing List for Communications Suite (Page 3)
                
                Brought to you by:
                
                    zduniak
                    
                
            
            
        
        
        
    You can subscribe to this list here.
| 2006 | 
          Jan
           | 
        
        
        
        
          Feb
           | 
        
        
        
        
          Mar
           | 
        
        
        
        
          Apr
           | 
        
        
        
        
          May
           | 
        
        
        
        
          Jun
           | 
        
        
        
        
          Jul
           (10)  | 
        
        
        
        
          Aug
           (16)  | 
        
        
        
        
          Sep
           (48)  | 
        
        
        
        
          Oct
           (47)  | 
        
        
        
        
          Nov
           (4)  | 
        
        
        
        
          Dec
           (1)  | 
        
      
|---|
| 
     
      
      
      From: <sku...@us...> - 2006-10-01 18:45:39
      
     
   | 
Revision: 177
          http://svn.sourceforge.net/comsuite/?rev=177&view=rev
Author:   skuzniak
Date:     2006-10-01 11:45:04 -0700 (Sun, 01 Oct 2006)
Log Message:
-----------
full internationalization added to messages and users,some other changes
Modified Paths:
--------------
    trunk/code/CSAdminPanel/JavaSource/org/commsuite/web/beans/LanguageSelectionBean.java
    trunk/code/CSAdminPanel/JavaSource/org/commsuite/web/beans/messages/SearchMessageBean.java
    trunk/code/CSAdminPanel/JavaSource/org/commsuite/web/beans/servers/SearchServerBean.java
    trunk/code/CSAdminPanel/JavaSource/org/commsuite/web/beans/users/SearchUserBean.java
    trunk/code/CSAdminPanel/JavaSource/org/commsuite/web/locale/Locale_en.properties
    trunk/code/CSCommon/src/org/commsuite/ws/ICommunicateWS.java
    trunk/code/CSMiddleware/src/org/commsuite/sap/ISAPComm.java
    trunk/code/CSMiddleware/src/org/commsuite/sap/SAPComm.java
    trunk/code/CSMiddleware/src/org/commsuite/ws/CommunicateWS.java
    trunk/code/CSMiddleware/src/org/commsuite/ws/services/ServersService.java
Modified: trunk/code/CSAdminPanel/JavaSource/org/commsuite/web/beans/LanguageSelectionBean.java
===================================================================
--- trunk/code/CSAdminPanel/JavaSource/org/commsuite/web/beans/LanguageSelectionBean.java	2006-10-01 17:21:08 UTC (rev 176)
+++ trunk/code/CSAdminPanel/JavaSource/org/commsuite/web/beans/LanguageSelectionBean.java	2006-10-01 18:45:04 UTC (rev 177)
@@ -20,15 +20,11 @@
  */
 package org.commsuite.web.beans;
 
-import java.io.File;
-import java.io.FileInputStream;
-import java.io.IOException;
 import java.text.MessageFormat;
 import java.util.Arrays;
 import java.util.List;
 import java.util.Locale;
 import java.util.MissingResourceException;
-import java.util.Properties;
 import java.util.ResourceBundle;
 
 import javax.faces.application.FacesMessage;
@@ -50,12 +46,8 @@
 
     private static final Locale DEFAULT_LOCALE = Locale.ENGLISH;
     
-    private static final String LOCALE_FILENAME = "webapps/CommunicationsSuiteAdmin/WEB-INF/classes/org/commsuite/web/locale/Locale_";
-    
     private static final String LOCALE_CLASSNAME = "org.commsuite.web.locale.Locale";
 
-	private static final String LOCALE_EXTENSION = ".properties";
-
     private List<SelectItem> supportedLanguages;
 
     /**
@@ -200,22 +192,6 @@
     }
     
     public static String getLabel(String labelName) {
-    	/*String locale = FacesContext.getCurrentInstance().getViewRoot()
-    			.getLocale().toString();
-    	Properties p = new Properties();
-    	String tomcatCatalog = new File(".").getAbsolutePath();
-    	tomcatCatalog = tomcatCatalog.replace('\\', '/');
-    	String file = tomcatCatalog.substring(0, tomcatCatalog.length()- 6)+ "/"+ LOCALE_FILENAME+ locale+ LOCALE_EXTENSION;
-    	
-    	try {
-    		p.load(new FileInputStream(file));
-    	} catch(IOException ioe) {
-    		logger.fatal("Cannot open locale filename: "+ file);
-    	}
-    	logger.debug("Label name: "+ labelName);
-    	logger.debug("Property value: "+ p.getProperty(labelName));
-    	logger.debug(p.keySet());
-    	return (null == p.getProperty(labelName)) ? "" : p.getProperty(labelName);*/
     	return LanguageSelectionBean.getDisplayString(
                 LOCALE_CLASSNAME, labelName, null, 
                 		FacesContext.getCurrentInstance().getViewRoot().getLocale());
Modified: trunk/code/CSAdminPanel/JavaSource/org/commsuite/web/beans/messages/SearchMessageBean.java
===================================================================
--- trunk/code/CSAdminPanel/JavaSource/org/commsuite/web/beans/messages/SearchMessageBean.java	2006-10-01 17:21:08 UTC (rev 176)
+++ trunk/code/CSAdminPanel/JavaSource/org/commsuite/web/beans/messages/SearchMessageBean.java	2006-10-01 18:45:04 UTC (rev 177)
@@ -51,10 +51,9 @@
 	private static final Logger logger = Logger
 			.getLogger(SearchMessageBean.class);
 
-	// TODO: [SK] i18n
-	private static final String MESSAGE_ALL = "-- Wsysztkie --";
-
 	private static final int ROWS_ON_PAGE = 5;
+	
+	private static final String CHOICE_ALL_LABEL = "CHOICE_ALL";
 
 	/**
 	 * This method is used to get all messages from database via webservice.
@@ -143,7 +142,7 @@
 	public List<SelectItem> getDirectionList() {
 		final List<SelectItem> choices = new FastTable<SelectItem>();
 		SelectItem item = new SelectItem();
-		item.setLabel(MESSAGE_ALL);
+		item.setLabel(LanguageSelectionBean.getLabel(CHOICE_ALL_LABEL));
 		// item.setValue(null);
 		choices.add(item);
 		for (Direction direction : Direction.values()) {
@@ -161,7 +160,7 @@
 	public List<SelectItem> getPriorityList() {
 		List<SelectItem> choices = new FastTable<SelectItem>();
 		SelectItem item = new SelectItem();
-		item.setLabel(MESSAGE_ALL);
+		item.setLabel(LanguageSelectionBean.getLabel(CHOICE_ALL_LABEL));
 		// item.setValue(null);
 		choices.add(item);
 		for (Priority priority : Priority.values()) {
@@ -179,7 +178,7 @@
 	public List<SelectItem> getStatusList() {
 		List<SelectItem> choices = new FastTable<SelectItem>();
 		SelectItem item = new SelectItem();
-		item.setLabel(MESSAGE_ALL);
+		item.setLabel(LanguageSelectionBean.getLabel(CHOICE_ALL_LABEL));
 		// item.setValue(null);
 		choices.add(item);
 		for (Status status : Status.values()) {
@@ -197,7 +196,7 @@
 	public List<SelectItem> getFormatList() {
 		List<SelectItem> choices = new FastTable<SelectItem>();
 		SelectItem item = new SelectItem();
-		item.setLabel(MESSAGE_ALL);
+		item.setLabel(LanguageSelectionBean.getLabel(CHOICE_ALL_LABEL));
 		// item.setValue(null);
 		choices.add(item);
 		for (FormatType format : FormatType.values()) {
Modified: trunk/code/CSAdminPanel/JavaSource/org/commsuite/web/beans/servers/SearchServerBean.java
===================================================================
--- trunk/code/CSAdminPanel/JavaSource/org/commsuite/web/beans/servers/SearchServerBean.java	2006-10-01 17:21:08 UTC (rev 176)
+++ trunk/code/CSAdminPanel/JavaSource/org/commsuite/web/beans/servers/SearchServerBean.java	2006-10-01 18:45:04 UTC (rev 177)
@@ -206,12 +206,12 @@
                     this.servers.add(i, new ServerExtended(def, this.serverStates.get(i), 
                     		workingIcon, label, active));
                 } else if (null != this.serverId && def.getId().toString().equals(this.serverId)) {
-                    final boolean testResult = ws.serverTest(def.getName());
+                    final String testResult = ws.serverTest(def.getName());
                     logger.debug("Result of SAP server testing: " + testResult);
-                    if (testResult) {
+                    if (null == testResult) {
                     	this.serverStates.set(i, TEST_OK_ICON_PATH);
                     } else {
-                    	LanguageSelectionBean.showMessageWithException(BeansUtils.SERVER_TEST_FAIL, "",
+                    	LanguageSelectionBean.showMessageWithException(BeansUtils.SERVER_TEST_FAIL, testResult,
                     			BeansUtils.SHOW_SERVERS_NAVIGATION);
                     	this.serverStates.set(i, TEST_FAIL_ICON_PATH);
                     }
@@ -270,43 +270,43 @@
         }
     }
 
-    public String testSapServer() {
-        final ICommunicateWS ws = SpringAdminPanelContext.getCommunicateWS();
-        boolean testResult = false;
-    //    int index = -1;
-
-        try {
-            for (ServerExtended server : this.servers) {
-                if (this.serverId.equals(String.valueOf(server.getInstance().getId()))) {
-                //    index = this.servers.indexOf(server);
-                    testResult = ws.serverTest(server.getInstance().getName());
-                    logger.debug("Result of SAP server testing: " + testResult);
-                }
-            }
-        /*    if (testResult) {
-            //    this.serverStatePages.get(this.actualPage-1).set(index, TEST_OK_ICON_PATH);
-            	this.serverStates.set(index, TEST_OK_ICON_PATH);
-            } else {
-                //	this.serverStatePages.get(this.actualPage-1).set(index, TEST_FAIL_ICON_PATH);
-                this.serverStates.set(index, TEST_FAIL_ICON_PATH);
-            }
-         //   this.servers.get(index).setState(this.serverStatePages.get(this.actualPage-1).get(index));
-            this.servers.get(index).setState(this.serverStates.get(index));*/
-        } catch (WebServiceException wse) {
-            logger.fatal("Exception while testing server instance", wse);
-            LanguageSelectionBean.showMessage(BeansUtils.MESSAGE_ERROR_DATABASE, 
-            		BeansUtils.MESSAGE_SERVER_ERROR_TEST, 
-            		BeansUtils.SEARCH_SERVER_NAVIGATION);
-            // wyjatek IOOBE nie mogl byc rzucony,dlatego zrezygnowalem z jego przechwytywania
-        } catch (Exception e) {
-            logger.fatal("Exception", e);
-
-            LanguageSelectionBean.showMessage(BeansUtils.MESSAGE_ERROR_DATABASE, 
-            		BeansUtils.MESSAGE_SERVER_ERROR_TEST, 
-            		BeansUtils.SEARCH_SERVER_NAVIGATION);
-        }
-        return BeansUtils.SEARCH_SERVER_NAVIGATION;
-    }
+//    public String testSapServer() {
+//        final ICommunicateWS ws = SpringAdminPanelContext.getCommunicateWS();
+//        String testResult = "";
+//    //    int index = -1;
+//
+//        try {
+//            for (ServerExtended server : this.servers) {
+//                if (this.serverId.equals(String.valueOf(server.getInstance().getId()))) {
+//                //    index = this.servers.indexOf(server);
+//                    testResult = ws.serverTest(server.getInstance().getName());
+//                    logger.debug("Result of SAP server testing: " + testResult);
+//                }
+//            }
+//        /*    if (testResult) {
+//            //    this.serverStatePages.get(this.actualPage-1).set(index, TEST_OK_ICON_PATH);
+//            	this.serverStates.set(index, TEST_OK_ICON_PATH);
+//            } else {
+//                //	this.serverStatePages.get(this.actualPage-1).set(index, TEST_FAIL_ICON_PATH);
+//                this.serverStates.set(index, TEST_FAIL_ICON_PATH);
+//            }
+//         //   this.servers.get(index).setState(this.serverStatePages.get(this.actualPage-1).get(index));
+//            this.servers.get(index).setState(this.serverStates.get(index));*/
+//        } catch (WebServiceException wse) {
+//            logger.fatal("Exception while testing server instance", wse);
+//            LanguageSelectionBean.showMessage(BeansUtils.MESSAGE_ERROR_DATABASE, 
+//            		BeansUtils.MESSAGE_SERVER_ERROR_TEST, 
+//            		BeansUtils.SEARCH_SERVER_NAVIGATION);
+//            // wyjatek IOOBE nie mogl byc rzucony,dlatego zrezygnowalem z jego przechwytywania
+//        } catch (Exception e) {
+//            logger.fatal("Exception", e);
+//
+//            LanguageSelectionBean.showMessage(BeansUtils.MESSAGE_ERROR_DATABASE, 
+//            		BeansUtils.MESSAGE_SERVER_ERROR_TEST, 
+//            		BeansUtils.SEARCH_SERVER_NAVIGATION);
+//        }
+//        return BeansUtils.SEARCH_SERVER_NAVIGATION;
+//    }
     
     public String startStopServer() {
     	final ICommunicateWS ws = SpringAdminPanelContext.getCommunicateWS();
Modified: trunk/code/CSAdminPanel/JavaSource/org/commsuite/web/beans/users/SearchUserBean.java
===================================================================
--- trunk/code/CSAdminPanel/JavaSource/org/commsuite/web/beans/users/SearchUserBean.java	2006-10-01 17:21:08 UTC (rev 176)
+++ trunk/code/CSAdminPanel/JavaSource/org/commsuite/web/beans/users/SearchUserBean.java	2006-10-01 18:45:04 UTC (rev 177)
@@ -49,6 +49,8 @@
 	private static final Logger logger = Logger.getLogger(SearchUserBean.class);
 
 	private static final int ROWS_ON_PAGE = 5;
+	
+	private static final String CHOICE_ALL_LABEL = "CHOICE_ALL";
 
 	private boolean searching;
 
@@ -172,8 +174,7 @@
 	public List<SelectItem> getCountriesList() {
 		List<SelectItem> choices = new FastTable<SelectItem>();
 		SelectItem item = new SelectItem();
-		item.setLabel(LanguageSelectionBean
-				.getLabel("CHOICE_ALL_LABEL"));
+		item.setLabel(LanguageSelectionBean.getLabel(CHOICE_ALL_LABEL));
 		// item.setValue(null);
 		choices.add(item);
 		for (Country country : Country.values()) {
@@ -191,8 +192,7 @@
 	public List<SelectItem> getEnabledList() {
 		List<SelectItem> choices = new FastTable<SelectItem>();
 		SelectItem item = new SelectItem();
-		item.setLabel(LanguageSelectionBean
-				.getLabel("CHOICE_ALL_LABEL"));
+		item.setLabel(LanguageSelectionBean.getLabel(CHOICE_ALL_LABEL));
 		item.setValue(10);
 		choices.add(item);
 		item = new SelectItem();
@@ -212,8 +212,7 @@
 	public List<SelectItem> getTimezonesList() {
 		List<SelectItem> choices = new FastTable<SelectItem>();
 		SelectItem item = new SelectItem();
-		item.setLabel(LanguageSelectionBean
-				.getLabel("CHOICE_ALL_LABEL"));
+		item.setLabel(LanguageSelectionBean.getLabel(CHOICE_ALL_LABEL));
 		// item.setValue(null);
 		choices.add(item);
 		for (TimeZone timezone : TimeZone.values()) {
@@ -231,8 +230,7 @@
 	public List<SelectItem> getLanguagesList() {
 		List<SelectItem> choices = new FastTable<SelectItem>();
 		SelectItem item = new SelectItem();
-		item.setLabel(LanguageSelectionBean
-				.getLabel("CHOICE_ALL_LABEL"));
+		item.setLabel(LanguageSelectionBean.getLabel(CHOICE_ALL_LABEL));
 		// item.setValue(null);
 		choices.add(item);
 		for (Language language : Language.values()) {
Modified: trunk/code/CSAdminPanel/JavaSource/org/commsuite/web/locale/Locale_en.properties
===================================================================
--- trunk/code/CSAdminPanel/JavaSource/org/commsuite/web/locale/Locale_en.properties	2006-10-01 17:21:08 UTC (rev 176)
+++ trunk/code/CSAdminPanel/JavaSource/org/commsuite/web/locale/Locale_en.properties	2006-10-01 18:45:04 UTC (rev 177)
@@ -103,7 +103,8 @@
 ROLE_CURRENT_ACTIONS=Actions assigned to selected role
 ROLE_CURRENT_USERS=Users assigned to selected role
 ROLE_FOUND=Found roles:
-# server 
+# server
+SERVER_TEST_FAIL=Testing server failed
 SERVER_TITLE_ADD=Add server
 SERVER_TITLE_EDIT=Edit server
 SERVER_TITLE_SEARCH=Searching for servers
Modified: trunk/code/CSCommon/src/org/commsuite/ws/ICommunicateWS.java
===================================================================
--- trunk/code/CSCommon/src/org/commsuite/ws/ICommunicateWS.java	2006-10-01 17:21:08 UTC (rev 176)
+++ trunk/code/CSCommon/src/org/commsuite/ws/ICommunicateWS.java	2006-10-01 18:45:04 UTC (rev 177)
@@ -596,14 +596,12 @@
 
     /**
      * This method allows test server with known ID
-     * 
-     * TODO: [SK] change name of this method to not starting with "test*"
-     * 
-     * @param serverName
-     * @return
+     *  
+     * @param serverName name of server to test
+     * @return null if test is succesfull, part of exception message otherwise
      * @throws WebServiceException
      */
-    public boolean serverTest(String serverName) throws WebServiceException;
+    public String serverTest(String serverName) throws WebServiceException;
 
     /**
      * resubmits message, to be sent once again.
Modified: trunk/code/CSMiddleware/src/org/commsuite/sap/ISAPComm.java
===================================================================
--- trunk/code/CSMiddleware/src/org/commsuite/sap/ISAPComm.java	2006-10-01 17:21:08 UTC (rev 176)
+++ trunk/code/CSMiddleware/src/org/commsuite/sap/ISAPComm.java	2006-10-01 18:45:04 UTC (rev 177)
@@ -39,7 +39,7 @@
 
     public abstract void init(SAPInstanceDef instanceDef);
     
-    public abstract boolean isRemoteSystemWorking();
+    public abstract String isRemoteSystemWorking();
 
     public abstract void destroy();
 
Modified: trunk/code/CSMiddleware/src/org/commsuite/sap/SAPComm.java
===================================================================
--- trunk/code/CSMiddleware/src/org/commsuite/sap/SAPComm.java	2006-10-01 17:21:08 UTC (rev 176)
+++ trunk/code/CSMiddleware/src/org/commsuite/sap/SAPComm.java	2006-10-01 18:45:04 UTC (rev 177)
@@ -20,8 +20,6 @@
  */
 package org.commsuite.sap;
 
-import java.io.FileOutputStream;
-import java.io.ObjectOutputStream;
 import java.lang.Thread.UncaughtExceptionHandler;
 import java.util.Date;
 import java.util.Properties;
@@ -511,7 +509,7 @@
 	}
 
 	public void startServer() {
-		if (!isRemoteSystemWorking()) {
+		if (null != isRemoteSystemWorking()) {
 			logger.error("Remote system is not working: " + getName());
 			return;
 		}
@@ -614,16 +612,15 @@
 		}
 	}
 
-	public boolean isRemoteSystemWorking() {
+	public String isRemoteSystemWorking() {
 		// TODO: [MZ] i'm not sure whether this implementation is correct
 		JCO.Client client = null;
 		try {
 			client = getJCOClient();
 
 			if (null == client) {
-				logger
-						.warn("Cannot obtain JCO.Client object from pool during testing SAP server's state.");
-				return false;
+				logger.warn("Cannot obtain JCO.Client object from pool during testing SAP server's state.");
+				return "Cannot obtain JCO.Client object from pool during testing SAP server's state.";
 			}
 
 			// Send a ping to the server
@@ -640,10 +637,10 @@
 			// logger.debug("Partner release: " + partnerRelease);
 			// return (null != partnerRelease) && (partnerRelease.length() > 0);
 
-			return true;
+			return null;
 		} catch (Throwable t) {
 			logger.error("Exception during testing SAP server's state", t);
-			return false;
+			return (t.getMessage().length() > 32 ? t.getMessage().substring(0, 32) : t.getMessage());
 		} finally {
 			if (null != client) {
 				releaseJCOClient(client);
Modified: trunk/code/CSMiddleware/src/org/commsuite/ws/CommunicateWS.java
===================================================================
--- trunk/code/CSMiddleware/src/org/commsuite/ws/CommunicateWS.java	2006-10-01 17:21:08 UTC (rev 176)
+++ trunk/code/CSMiddleware/src/org/commsuite/ws/CommunicateWS.java	2006-10-01 18:45:04 UTC (rev 177)
@@ -458,7 +458,7 @@
         }
     }
 
-    public boolean serverTest(String serverName) throws WebServiceException {
+    public String serverTest(String serverName) throws WebServiceException {
         try {
             ServersService service = ServersService.getInstance();
             return service.testServer(serverName);
Modified: trunk/code/CSMiddleware/src/org/commsuite/ws/services/ServersService.java
===================================================================
--- trunk/code/CSMiddleware/src/org/commsuite/ws/services/ServersService.java	2006-10-01 17:21:08 UTC (rev 176)
+++ trunk/code/CSMiddleware/src/org/commsuite/ws/services/ServersService.java	2006-10-01 18:45:04 UTC (rev 177)
@@ -235,15 +235,15 @@
      * @return true if test is OK, false otherwise
      * @throws WebServiceException when something goes wrong(ie. no instance found)
      */
-    public boolean testServer(String serverName) throws WebServiceException {
+    public String testServer(String serverName) throws WebServiceException {
         try {
             final ISAPCommManager sapMgr = SpringMiddlewareContext.getSAPCommManager();
             final ISAPComm sapComm = sapMgr.getSAPCommByName(serverName);
             if (null == sapComm) {
                 logger.warn("During testing - cannot find SAP server with name: " + serverName);
-                return false;
+                return "During testing - cannot find SAP server with name: " + serverName;
             }
-            final boolean isRemoteSystemWorking = sapComm.isRemoteSystemWorking();
+            final String isRemoteSystemWorking = sapComm.isRemoteSystemWorking();
             logger.debug("Result of SAP server testing: " + isRemoteSystemWorking);
             return isRemoteSystemWorking;
         } catch (Throwable t) {
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
 | 
| 
     
      
      
      From: <sku...@us...> - 2006-10-01 10:02:35
      
     
   | 
Revision: 174
          http://svn.sourceforge.net/comsuite/?rev=174&view=rev
Author:   skuzniak
Date:     2006-10-01 03:02:14 -0700 (Sun, 01 Oct 2006)
Log Message:
-----------
"--All--" message improved(not dependent from deploy path)
Modified Paths:
--------------
    trunk/code/CSAdminPanel/JavaSource/org/commsuite/web/beans/BeansUtils.java
    trunk/code/CSAdminPanel/JavaSource/org/commsuite/web/beans/LanguageSelectionBean.java
    trunk/code/CSAdminPanel/JavaSource/org/commsuite/web/beans/servers/SearchServerBean.java
    trunk/code/CSMiddleware/.springBeans
    trunk/code/CSMiddleware/src/org/commsuite/ws/CommunicateWS.java
Modified: trunk/code/CSAdminPanel/JavaSource/org/commsuite/web/beans/BeansUtils.java
===================================================================
--- trunk/code/CSAdminPanel/JavaSource/org/commsuite/web/beans/BeansUtils.java	2006-10-01 08:18:03 UTC (rev 173)
+++ trunk/code/CSAdminPanel/JavaSource/org/commsuite/web/beans/BeansUtils.java	2006-10-01 10:02:14 UTC (rev 174)
@@ -188,4 +188,6 @@
 
 	public static final String LABEL_INACTIVE = "/pages/files/gif/image-missing.png";
 
+	public static final String SERVER_TEST_FAIL = "SERVER_TEST_FAIL";
+
 }
Modified: trunk/code/CSAdminPanel/JavaSource/org/commsuite/web/beans/LanguageSelectionBean.java
===================================================================
--- trunk/code/CSAdminPanel/JavaSource/org/commsuite/web/beans/LanguageSelectionBean.java	2006-10-01 08:18:03 UTC (rev 173)
+++ trunk/code/CSAdminPanel/JavaSource/org/commsuite/web/beans/LanguageSelectionBean.java	2006-10-01 10:02:14 UTC (rev 174)
@@ -183,8 +183,24 @@
                 new FacesMessage(message1 + " " + message2));
     }
     
+    /**
+     * This method is responsible for display message, on web page.
+     * Message is retrieved from default locale.
+     * 
+     * @param messageCode message code to be displayed
+     * @param parentComponent component id on which messae will be displayed
+     */
+    public static void showMessageWithException(String messageCode, String exception, 
+    		String parentComponent) {
+    	final String message = LanguageSelectionBean.getDisplayString(
+                LOCALE_CLASSNAME, messageCode, null,
+                FacesContext.getCurrentInstance().getViewRoot().getLocale());
+        FacesContext.getCurrentInstance().addMessage(parentComponent, 
+        		new FacesMessage(message, exception));
+    }
+    
     public static String getLabel(String labelName) {
-    	String locale = FacesContext.getCurrentInstance().getViewRoot()
+    	/*String locale = FacesContext.getCurrentInstance().getViewRoot()
     			.getLocale().toString();
     	Properties p = new Properties();
     	String tomcatCatalog = new File(".").getAbsolutePath();
@@ -199,6 +215,9 @@
     	logger.debug("Label name: "+ labelName);
     	logger.debug("Property value: "+ p.getProperty(labelName));
     	logger.debug(p.keySet());
-    	return (null == p.getProperty(labelName)) ? "" : p.getProperty(labelName);
+    	return (null == p.getProperty(labelName)) ? "" : p.getProperty(labelName);*/
+    	return LanguageSelectionBean.getDisplayString(
+                LOCALE_CLASSNAME, labelName, null, 
+                		FacesContext.getCurrentInstance().getViewRoot().getLocale());
     }
 }
Modified: trunk/code/CSAdminPanel/JavaSource/org/commsuite/web/beans/servers/SearchServerBean.java
===================================================================
--- trunk/code/CSAdminPanel/JavaSource/org/commsuite/web/beans/servers/SearchServerBean.java	2006-10-01 08:18:03 UTC (rev 173)
+++ trunk/code/CSAdminPanel/JavaSource/org/commsuite/web/beans/servers/SearchServerBean.java	2006-10-01 10:02:14 UTC (rev 174)
@@ -211,6 +211,8 @@
                     if (testResult) {
                     	this.serverStates.set(i, TEST_OK_ICON_PATH);
                     } else {
+                    	LanguageSelectionBean.showMessageWithException(BeansUtils.SERVER_TEST_FAIL, "",
+                    			BeansUtils.SHOW_SERVERS_NAVIGATION);
                     	this.serverStates.set(i, TEST_FAIL_ICON_PATH);
                     }
                 	String workingIcon ;
Modified: trunk/code/CSMiddleware/.springBeans
===================================================================
--- trunk/code/CSMiddleware/.springBeans	2006-10-01 08:18:03 UTC (rev 173)
+++ trunk/code/CSMiddleware/.springBeans	2006-10-01 10:02:14 UTC (rev 174)
@@ -12,7 +12,6 @@
 		<config>src/filtersContext.xml</config>
 		<config>src/datasourceContext.xml</config>
 		<config>src/activeMQContext.xml</config>
-		<config>src/aopContext.xml</config>
 		<config>war/WEB-INF/ws-public-servlet.xml</config>
 	</configs>
 	<configSets>
@@ -22,7 +21,6 @@
 			<incomplete>true</incomplete>
 			<configs>
 				<config>src/activeMQContext.xml</config>
-				<config>src/aopContext.xml</config>
 				<config>src/applicationContext.xml</config>
 				<config>src/converterBuilderContext.xml</config>
 				<config>src/datasourceContext.xml</config>
Modified: trunk/code/CSMiddleware/src/org/commsuite/ws/CommunicateWS.java
===================================================================
--- trunk/code/CSMiddleware/src/org/commsuite/ws/CommunicateWS.java	2006-10-01 08:18:03 UTC (rev 173)
+++ trunk/code/CSMiddleware/src/org/commsuite/ws/CommunicateWS.java	2006-10-01 10:02:14 UTC (rev 174)
@@ -461,7 +461,6 @@
     public boolean serverTest(String serverName) throws WebServiceException {
         try {
             ServersService service = ServersService.getInstance();
-            ;
             return service.testServer(serverName);
         } catch (Throwable t) {
             logger.fatal("error in testServer method", t);
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
 | 
| 
     
      
      
      From: <ma...@us...> - 2006-09-30 20:05:03
      
     
   | 
Revision: 169
          http://svn.sourceforge.net/comsuite/?rev=169&view=rev
Author:   marasm
Date:     2006-09-30 13:04:50 -0700 (Sat, 30 Sep 2006)
Log Message:
-----------
aspectj logging improved
Modified Paths:
--------------
    trunk/code/CSCommon/src/org/commsuite/aop/AopUtils.java
    trunk/code/CSCommon/src/org/commsuite/aop/SystemArchitecture.java
Modified: trunk/code/CSCommon/src/org/commsuite/aop/AopUtils.java
===================================================================
--- trunk/code/CSCommon/src/org/commsuite/aop/AopUtils.java	2006-09-30 19:03:58 UTC (rev 168)
+++ trunk/code/CSCommon/src/org/commsuite/aop/AopUtils.java	2006-09-30 20:04:50 UTC (rev 169)
@@ -2,5 +2,8 @@
 
 public class AopUtils {
 	public static String[] NOT_LOGGED_PATTERNS = new String[] { "toString",
-			"hashCode", ".set", "equals", "IntEnumUserType", "getId", ".model." };
+			"hashCode", ".set", "equals", "IntEnumUserType", "getId",
+			".model.", ".enums.", "AbstractActionsToRolesMapper",
+			".LanguageSelectionBean.", ".SessionBean.", "EnumConverter",
+			".MessageExtended.getMessage" };
 }
Modified: trunk/code/CSCommon/src/org/commsuite/aop/SystemArchitecture.java
===================================================================
--- trunk/code/CSCommon/src/org/commsuite/aop/SystemArchitecture.java	2006-09-30 19:03:58 UTC (rev 168)
+++ trunk/code/CSCommon/src/org/commsuite/aop/SystemArchitecture.java	2006-09-30 20:04:50 UTC (rev 169)
@@ -26,6 +26,14 @@
 			}
 		}
 
+		String lineNumber = "";
+
+		try {
+			lineNumber = pjp.getSourceLocation().toString().split(":")[1];
+		} catch (Exception e) {
+			// pass - do not bother if we can not get line number
+		}
+
 		String parameters = "";
 
 		if (null != pjp.getArgs()) {
@@ -44,7 +52,8 @@
 
 		Object result = null;
 
-		logger.debug(pjp.getSignature() + "(" + parameters + ") START");
+		logger.debug(pjp.getSignature() + " " + lineNumber + " (" + parameters
+				+ ") START");
 		Throwable exceptionToThrow = null;
 		try {
 			result = pjp.proceed();
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
 | 
| 
     
      
      
      From: <ma...@us...> - 2006-09-30 19:04:23
      
     
   | 
Revision: 168
          http://svn.sourceforge.net/comsuite/?rev=168&view=rev
Author:   marasm
Date:     2006-09-30 12:03:58 -0700 (Sat, 30 Sep 2006)
Log Message:
-----------
Web application speeded up 18 times (for messages)
Modified Paths:
--------------
    trunk/code/CSAdminPanel/WebContent/pages/messages/CSMessagesDetails.jsp
    trunk/code/CSCommon/src/org/commsuite/aop/AopUtils.java
    trunk/code/CSCommon/src/org/commsuite/aop/SystemArchitecture.java
Modified: trunk/code/CSAdminPanel/WebContent/pages/messages/CSMessagesDetails.jsp
===================================================================
--- trunk/code/CSAdminPanel/WebContent/pages/messages/CSMessagesDetails.jsp	2006-09-30 18:27:21 UTC (rev 167)
+++ trunk/code/CSAdminPanel/WebContent/pages/messages/CSMessagesDetails.jsp	2006-09-30 19:03:58 UTC (rev 168)
@@ -31,32 +31,34 @@
 						</h:commandLink>
 					</h:panelGrid>
 				<%--</f:facet>--%>
-				<h:panelGrid columns="1" styleClass="viewTable" id="messagesList">
+					<h:dataTable value="#{searchMessageBean.messageExtended}" var="messageDisplayed">
+					<h:column>
+					<h:panelGrid columns="1" styleClass="viewTable" id="messagesList">
 					<h:messages />
 						<h:panelGrid columns="1" styleClass="listView-header">
 							<h:panelGrid columns="4">
 								<h:panelGrid columns="2">
 									<h:outputText value="#{Locale.MESSAGE_DESCRIPTION}"
 										styleClass="listView-title" />
-									<h:outputText value="#{searchMessageBean.messageExtended.message.description}"
+									<h:outputText value="#{messageDisplayed.message.description}"
 										styleClass="listView-header-value" />
 								</h:panelGrid>
 								<h:panelGrid columns="2">
 									<h:outputText value="#{Locale.MESSAGE_SENDER}"
 										styleClass="listView-title" />
-									<h:outputText value="#{searchMessageBean.messageExtended.message.sender}"
+									<h:outputText value="#{messageDisplayed.message.sender}"
 										styleClass="listView-header-value" />
 								</h:panelGrid>
 								<h:panelGrid columns="2">
 									<h:outputText value="#{Locale.MESSAGE_RECEIVER}"
 										styleClass="listView-title" />
-									<h:outputText value="#{searchMessageBean.messageExtended.message.receiver}"
+									<h:outputText value="#{messageDisplayed.message.receiver}"
 										styleClass="listView-header-value" />
 								</h:panelGrid>
 								<h:panelGrid columns="2">
 									<h:outputText value="#{Locale.MESSAGE_DATE_SEND}"
 										styleClass="listView-title" />
-									<h:outputText value="#{searchMessageBean.messageExtended.message.sendDate}"
+									<h:outputText value="#{messageDisplayed.message.sendDate}"
 										styleClass="listView-header-value">
 										<f:convertDateTime 
 										timeZone="CET"
@@ -69,7 +71,7 @@
 									<h:panelGrid columns="2">
 										<h:outputText value="#{Locale.MESSAGE_DATE_CREATION}"
 											styleClass="listView-title" />
-										<h:outputText value="#{searchMessageBean.messageExtended.message.creationDate}"
+										<h:outputText value="#{messageDisplayed.message.creationDate}"
 											styleClass="listView-header-value">
 											<f:convertDateTime
 											timeZone="CET"
@@ -79,7 +81,7 @@
 									<h:panelGrid columns="2">
 										<h:outputText value="#{Locale.MESSAGE_DATE_START}"
 											styleClass="listView-title" />
-										<h:outputText value="#{searchMessageBean.messageExtended.message.startDate}"
+										<h:outputText value="#{messageDisplayed.message.startDate}"
 											styleClass="listView-header-value">
 											<f:convertDateTime
 											timeZone="CET"
@@ -89,7 +91,7 @@
 									<h:panelGrid columns="2">
 										<h:outputText value="#{Locale.MESSAGE_DATE_END}"
 											styleClass="listView-title" />
-										<h:outputText value="#{searchMessageBean.messageExtended.message.endDate}"
+										<h:outputText value="#{messageDisplayed.message.endDate}"
 											styleClass="listView-header-value">
 											<f:convertDateTime
 											timeZone="CET"
@@ -99,7 +101,7 @@
 									<h:panelGrid columns="2">
 										<h:outputText value="#{Locale.MESSAGE_DATE_EXPIRATION}"
 											styleClass="listView-title" />
-										<h:outputText value="#{searchMessageBean.messageExtended.message.expirationDate}"
+										<h:outputText value="#{messageDisplayed.message.expirationDate}"
 											styleClass="listView-header-value">
 											<f:convertDateTime
 											timeZone="CET"
@@ -109,7 +111,7 @@
 									<h:panelGrid columns="2">
 										<h:outputText value="#{Locale.MESSAGE_DATE_LAST_PROCESS}"
 											styleClass="listView-title" />
-										<h:outputText value="#{searchMessageBean.messageExtended.message.lastProcessDate}"
+										<h:outputText value="#{messageDisplayed.message.lastProcessDate}"
 											styleClass="listView-header-value">
 											<f:convertDateTime
 											timeZone="CET"
@@ -121,13 +123,13 @@
 									<h:panelGrid columns="2" >
 										<h:outputText value="#{Locale.MESSAGE_SAP_ID}"
 											styleClass="listView-title" />
-										<h:outputText value="#{searchMessageBean.messageExtended.message.sapID}"
+										<h:outputText value="#{messageDisplayed.message.sapID}"
 											styleClass="listView-header-value" />
 									</h:panelGrid>
 									<h:panelGrid columns="2">
 										<h:outputText value="#{Locale.MESSAGE_ID}"
 											styleClass="listView-title" />
-										<h:outputText value="#{searchMessageBean.messageExtended.message.id}"
+										<h:outputText value="#{messageDisplayed.message.id}"
 											styleClass="listView-header-value" />
 									</h:panelGrid>
 								</h:panelGrid>
@@ -135,31 +137,31 @@
 									<h:panelGrid columns="2">
 										<h:outputText value="#{Locale.MESSAGE_DIRECTION}"
 											styleClass="listView-title" />
-										<h:outputText value="#{searchMessageBean.messageExtended.message.direction}"
+										<h:outputText value="#{messageDisplayed.message.direction}"
 											styleClass="listView-header-value" />
 									</h:panelGrid>
 									<h:panelGrid columns="2">
 										<h:outputText value="#{Locale.MESSAGE_STATUS}"
 											styleClass="listView-title" />
-										<h:outputText value="#{searchMessageBean.messageExtended.message.status}"
+										<h:outputText value="#{messageDisplayed.message.status}"
 											styleClass="listView-header-value" />
 									</h:panelGrid>
 									<h:panelGrid columns="2">
 										<h:outputText value="#{Locale.MESSAGE_PRIORITY}"
 											styleClass="listView-title" />
-										<h:outputText value="#{searchMessageBean.messageExtended.message.priority}"
+										<h:outputText value="#{messageDisplayed.message.priority}"
 											styleClass="listView-header-value" />
 									</h:panelGrid>
 									<h:panelGrid columns="2">
 										<h:outputText value="#{Locale.MESSAGE_FORMAT_TYPE}"
 											styleClass="listView-title" />
-										<h:outputText value="#{searchMessageBean.messageExtended.message.formatType}"
+										<h:outputText value="#{messageDisplayed.message.formatType}"
 											styleClass="listView-header-value" />
 									</h:panelGrid>
 									<h:panelGrid columns="2">
 										<h:outputText value="#{Locale.MESSAGE_LAST_PROCESS}"
 											styleClass="listView-title" />
-										<h:outputText value="#{searchMessageBean.messageExtended.message.lastProcessMessage}"
+										<h:outputText value="#{messageDisplayed.message.lastProcessMessage}"
 											styleClass="listView-header-value" />
 									</h:panelGrid>
 								</h:panelGrid>
@@ -170,7 +172,7 @@
 										<h:commandLink
 											actionListener="#{resubmitMessageBean.resubmitMessage}"
 											action="inbox" value="#{Locale.MESSAGE_RESUBMIT}">
-											<f:param name="messageId" value="#{searchMessageBean.messageExtended.message.id}" />
+											<f:param name="messageId" value="#{messageDisplayed.message.id}" />
 										</h:commandLink>
 									</h:panelGrid>
 								</h:panelGrid>
@@ -180,7 +182,7 @@
 									<h:outputText value="#{Locale.MESSAGE_CONTENTS_TITLE}" />
 								</f:facet>
 								<h:panelGrid columns="1" styleClass="listView-entity">
-									<h:dataTable value="#{searchMessageBean.messageExtended.sentContents}" var="sentContents"
+									<h:dataTable value="#{messageDisplayed.sentContents}" var="sentContents"
 										styleClass="listView-title" id="content">
 										<h:column>
 											<h:panelGrid columns="2">
@@ -229,8 +231,10 @@
 							<f:param value="next" name="pageDir" />
 							<h:graphicImage value="#{pageContext.request.contextPath}/pages/files/go-next.png" styleClass="header-icon"/>
 						</h:commandLink>
-					</h:panelGrid>--%>
-				</h:panelGrid>
+					</h:panelGrid>--%>
+				</h:panelGrid>
+				</h:column>
+				</h:dataTable>
 			</h:form>
 		</h:panelGrid>
 	</h:panelGrid>
Modified: trunk/code/CSCommon/src/org/commsuite/aop/AopUtils.java
===================================================================
--- trunk/code/CSCommon/src/org/commsuite/aop/AopUtils.java	2006-09-30 18:27:21 UTC (rev 167)
+++ trunk/code/CSCommon/src/org/commsuite/aop/AopUtils.java	2006-09-30 19:03:58 UTC (rev 168)
@@ -2,5 +2,5 @@
 
 public class AopUtils {
 	public static String[] NOT_LOGGED_PATTERNS = new String[] { "toString",
-			"hashCode", ".set", "equals", "IntEnumUserType" };
+			"hashCode", ".set", "equals", "IntEnumUserType", "getId", ".model." };
 }
Modified: trunk/code/CSCommon/src/org/commsuite/aop/SystemArchitecture.java
===================================================================
--- trunk/code/CSCommon/src/org/commsuite/aop/SystemArchitecture.java	2006-09-30 18:27:21 UTC (rev 167)
+++ trunk/code/CSCommon/src/org/commsuite/aop/SystemArchitecture.java	2006-09-30 19:03:58 UTC (rev 168)
@@ -33,7 +33,12 @@
 				if (i != 0) {
 					parameters += ", ";
 				}
-				parameters += pjp.getArgs()[i];
+				try {
+					parameters += pjp.getArgs()[i];
+				} catch (Exception e) {
+					parameters += "???";
+					// don't cate if we can NOT log some parameter
+				}
 			}
 		}
 
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
 | 
| 
     
      
      
      From: <sku...@us...> - 2006-09-30 18:25:53
      
     
   | 
Revision: 166
          http://svn.sourceforge.net/comsuite/?rev=166&view=rev
Author:   skuzniak
Date:     2006-09-30 11:19:39 -0700 (Sat, 30 Sep 2006)
Log Message:
-----------
"--Wszystkie--" message internationalized
Modified Paths:
--------------
    trunk/code/CSAdminPanel/JavaSource/org/commsuite/web/beans/LanguageSelectionBean.java
    trunk/code/CSAdminPanel/JavaSource/org/commsuite/web/beans/servers/SearchServerBean.java
    trunk/code/CSAdminPanel/JavaSource/org/commsuite/web/locale/Locale_en.properties
    trunk/code/CSAdminPanel/JavaSource/org/commsuite/web/locale/Locale_pl.properties
    trunk/code/CSAdminPanel/WebContent/WEB-INF/faces-config.xml
Modified: trunk/code/CSAdminPanel/JavaSource/org/commsuite/web/beans/LanguageSelectionBean.java
===================================================================
--- trunk/code/CSAdminPanel/JavaSource/org/commsuite/web/beans/LanguageSelectionBean.java	2006-09-30 16:55:13 UTC (rev 165)
+++ trunk/code/CSAdminPanel/JavaSource/org/commsuite/web/beans/LanguageSelectionBean.java	2006-09-30 18:19:39 UTC (rev 166)
@@ -20,11 +20,15 @@
  */
 package org.commsuite.web.beans;
 
+import java.io.File;
+import java.io.FileInputStream;
+import java.io.IOException;
 import java.text.MessageFormat;
 import java.util.Arrays;
 import java.util.List;
 import java.util.Locale;
 import java.util.MissingResourceException;
+import java.util.Properties;
 import java.util.ResourceBundle;
 
 import javax.faces.application.FacesMessage;
@@ -46,8 +50,12 @@
 
     private static final Locale DEFAULT_LOCALE = Locale.getDefault();
     
+    private static final String LOCALE_FILENAME = "webapps/CommunicationsSuiteAdmin/WEB-INF/classes/org/commsuite/web/locale/Locale_";
+    
     private static final String LOCALE_CLASSNAME = "org.commsuite.web.locale.Locale";
 
+	private static final String LOCALE_EXTENSION = ".properties";
+
     private List<SelectItem> supportedLanguages;
 
     /**
@@ -174,4 +182,23 @@
         FacesContext.getCurrentInstance().addMessage(parentComponent,
                 new FacesMessage(message1 + " " + message2));
     }
+    
+    public static String getLabel(String labelName) {
+    	String locale = FacesContext.getCurrentInstance().getViewRoot()
+    			.getLocale().toString();
+    	Properties p = new Properties();
+    	String tomcatCatalog = new File(".").getAbsolutePath();
+    	tomcatCatalog = tomcatCatalog.replace('\\', '/');
+    	String file = tomcatCatalog.substring(0, tomcatCatalog.length()- 6)+ "/"+ LOCALE_FILENAME+ locale+ LOCALE_EXTENSION;
+    	
+    	try {
+    		p.load(new FileInputStream(file));
+    	} catch(IOException ioe) {
+    		logger.fatal("Cannot open locale filename: "+ file);
+    	}
+    	logger.debug("Label name: "+ labelName);
+    	logger.debug("Property value: "+ p.getProperty(labelName));
+    	logger.debug(p.keySet());
+    	return (null == p.getProperty(labelName)) ? "" : p.getProperty(labelName);
+    }
 }
Modified: trunk/code/CSAdminPanel/JavaSource/org/commsuite/web/beans/servers/SearchServerBean.java
===================================================================
--- trunk/code/CSAdminPanel/JavaSource/org/commsuite/web/beans/servers/SearchServerBean.java	2006-09-30 16:55:13 UTC (rev 165)
+++ trunk/code/CSAdminPanel/JavaSource/org/commsuite/web/beans/servers/SearchServerBean.java	2006-09-30 18:19:39 UTC (rev 166)
@@ -58,6 +58,8 @@
 
     private static final Logger logger = Logger.getLogger(SearchServerBean.class);
 
+	private static final String CHOICE_ALL_LABEL = "CHOICE_ALL";
+
     private List<ServerExtended> servers;
 
     private List<String> serverStates = new FastTable<String>();
@@ -369,7 +371,7 @@
     public List<SelectItem> getBooleanSearchList() {
     	List<SelectItem> items = new FastTable<SelectItem>();
     	SelectItem item = new SelectItem();
-    	item.setLabel("--Wszystkie--");
+    	item.setLabel(LanguageSelectionBean.getLabel(CHOICE_ALL_LABEL));
     	item.setValue(10);
     	items.add(item);
     	item = new SelectItem();
Modified: trunk/code/CSAdminPanel/JavaSource/org/commsuite/web/locale/Locale_en.properties
===================================================================
--- trunk/code/CSAdminPanel/JavaSource/org/commsuite/web/locale/Locale_en.properties	2006-09-30 16:55:13 UTC (rev 165)
+++ trunk/code/CSAdminPanel/JavaSource/org/commsuite/web/locale/Locale_en.properties	2006-09-30 18:19:39 UTC (rev 166)
@@ -285,6 +285,7 @@
 LABEL_DETAILS=Details
 LABEL_BACK=Back to list
 LABEL_SEARCH=Search
+CHOICE_ALL=--All--
 LABEL_ACTIVE=Active
 COMMON_LEGEND=Legend
 COMMON_LEGEND_MANDATORY=Mandatory field
Modified: trunk/code/CSAdminPanel/JavaSource/org/commsuite/web/locale/Locale_pl.properties
===================================================================
--- trunk/code/CSAdminPanel/JavaSource/org/commsuite/web/locale/Locale_pl.properties	2006-09-30 16:55:13 UTC (rev 165)
+++ trunk/code/CSAdminPanel/JavaSource/org/commsuite/web/locale/Locale_pl.properties	2006-09-30 18:19:39 UTC (rev 166)
@@ -290,6 +290,7 @@
 LABEL_SEARCH=Szukaj
 LABEL_ACTIVE=Instancja aktywna
 COMMON_LEGEND=Legenda
+CHOICE_ALL=--Wszystkie--
 COMMON_LEGEND_MANDATORY=Pola obowi\u0105zkowe
 COMMON_LEGEND_WITH_LOAD_BALANCING=Pole obowi\u0105zkowe, gdy wybrano opcje 'R\u00f3wnowa\u017cenie obci\u0105\u017ce\u0144'
 COMMON_LEGEND_WITHOUT_LOAD_BALANCING=Pole obowi\u0105zkowe, gdy nie wybrano opcji 'R\u00f3wnowa\u017cenie obci\u0105\u017ce\u0144'
Modified: trunk/code/CSAdminPanel/WebContent/WEB-INF/faces-config.xml
===================================================================
--- trunk/code/CSAdminPanel/WebContent/WEB-INF/faces-config.xml	2006-09-30 16:55:13 UTC (rev 165)
+++ trunk/code/CSAdminPanel/WebContent/WEB-INF/faces-config.xml	2006-09-30 18:19:39 UTC (rev 166)
@@ -2,6 +2,15 @@
 <!DOCTYPE faces-config PUBLIC "-//Sun Microsystems, Inc.//DTD JavaServer Faces Config 1.1//EN"
                               "http://java.sun.com/dtd/web-facesconfig_1_1.dtd">
 <faces-config>
+ <application>
+  <locale-config>
+   <default-locale id="en_EN">en_EN</default-locale>
+   <supported-locale id="pl_PL">pl_PL</supported-locale>
+  </locale-config>
+  <message-bundle>org.commsuite.web.locale.Locale_en</message-bundle>
+  <message-bundle>org.commsuite.web.locale.Locale_pl</message-bundle>
+  <variable-resolver>org.springframework.web.jsf.DelegatingVariableResolver</variable-resolver>
+ </application>
  <converter>
   <converter-for-class>org.commsuite.enums.Language</converter-for-class>
   <converter-class>org.commsuite.web.converter.LanguageConverer</converter-class>
@@ -662,16 +671,6 @@
   <validator-id>postalCodeValidator</validator-id>
   <validator-class>org.commsuite.web.validator.PostalCodeValidator</validator-class>
  </validator>
- <application>
-  <variable-resolver>org.springframework.web.jsf.DelegatingVariableResolver</variable-resolver>
-  <locale-config>
-   <default-locale>en_EN</default-locale>
-   <supported-locale id="en_EN">en_EN</supported-locale>
-   <supported-locale id="pl_PL">pl_PL</supported-locale>
-  </locale-config>
-  <message-bundle>org.commsuite.web.locale.Locale_en</message-bundle>
-  <message-bundle>org.commsuite.web.locale.Locale_pl</message-bundle>
- </application>
  <factory/>
  <lifecycle/>
 </faces-config>
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
 | 
| 
     
      
      
      From: <ma...@us...> - 2006-09-30 16:55:42
      
     
   | 
Revision: 165
          http://svn.sourceforge.net/comsuite/?rev=165&view=rev
Author:   marasm
Date:     2006-09-30 09:55:13 -0700 (Sat, 30 Sep 2006)
Log Message:
-----------
file omitted in last commit
Modified Paths:
--------------
    trunk/code/CSCommon/src/org/commsuite/aop/SystemArchitecture.java
Modified: trunk/code/CSCommon/src/org/commsuite/aop/SystemArchitecture.java
===================================================================
--- trunk/code/CSCommon/src/org/commsuite/aop/SystemArchitecture.java	2006-09-30 16:43:07 UTC (rev 164)
+++ trunk/code/CSCommon/src/org/commsuite/aop/SystemArchitecture.java	2006-09-30 16:55:13 UTC (rev 165)
@@ -20,7 +20,7 @@
 	public Object doDataAccessOperation(ProceedingJoinPoint pjp)
 			throws Throwable {
 
-		for (String methodNamePattern : AopUtils.NOT_LOGGED_METHODS) {
+		for (String methodNamePattern : AopUtils.NOT_LOGGED_PATTERNS) {
 			if (pjp.getSignature().toString().contains(methodNamePattern)) {
 				return pjp.proceed();
 			}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
 | 
| 
     
      
      
      From: <ma...@us...> - 2006-09-30 16:52:42
      
     
   | 
Revision: 164
          http://svn.sourceforge.net/comsuite/?rev=164&view=rev
Author:   marasm
Date:     2006-09-30 09:43:07 -0700 (Sat, 30 Sep 2006)
Log Message:
-----------
aspectj loggers added
Modified Paths:
--------------
    trunk/code/CSCommon/.classpath
    trunk/code/CSMiddleware/build.xml
    trunk/code/CSMiddleware/default.properties
    trunk/code/CSMiddleware/war/WEB-INF/web.xml
Added Paths:
-----------
    trunk/code/CSCommon/lib/aspectjrt.jar
    trunk/code/CSCommon/lib-compiletime/aspectjtools.jar
    trunk/code/CSCommon/src/org/commsuite/aop/AopUtils.java
    trunk/code/CSCommon/src/org/commsuite/aop/SystemArchitecture.java
Removed Paths:
-------------
    trunk/code/CSCommon/src/aop.properties
    trunk/code/CSCommon/src/org/commsuite/aop/CsMethodsDebuggerInterceptor.java
    trunk/code/CSMiddleware/src/aopContext.xml
Property Changed:
----------------
    trunk/
Property changes on: trunk
___________________________________________________________________
Name: svn:ignore
   + bin
.settings
Modified: trunk/code/CSCommon/.classpath
===================================================================
--- trunk/code/CSCommon/.classpath	2006-09-29 17:30:36 UTC (rev 163)
+++ trunk/code/CSCommon/.classpath	2006-09-30 16:43:07 UTC (rev 164)
@@ -21,5 +21,7 @@
 	<classpathentry kind="lib" path="lib/geronimo-activation_1.0.2_spec-1.1.jar"/>
 	<classpathentry kind="lib" path="lib/xbean-2.2.0.jar"/>
 	<classpathentry kind="lib" path="lib/log4j-1.2.14.jar"/>
+	<classpathentry kind="lib" path="lib-compiletime/aspectjtools.jar"/>
+	<classpathentry kind="lib" path="lib/aspectjrt.jar"/>
 	<classpathentry kind="output" path="bin"/>
 </classpath>
Added: trunk/code/CSCommon/lib/aspectjrt.jar
===================================================================
(Binary files differ)
Property changes on: trunk/code/CSCommon/lib/aspectjrt.jar
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream
Added: trunk/code/CSCommon/lib-compiletime/aspectjtools.jar
===================================================================
(Binary files differ)
Property changes on: trunk/code/CSCommon/lib-compiletime/aspectjtools.jar
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream
Deleted: trunk/code/CSCommon/src/aop.properties
===================================================================
--- trunk/code/CSCommon/src/aop.properties	2006-09-29 17:30:36 UTC (rev 163)
+++ trunk/code/CSCommon/src/aop.properties	2006-09-30 16:43:07 UTC (rev 164)
@@ -1,4 +0,0 @@
-dao.times.debug.interceptor.debug = true
-dao.times.debug.interceptor.debug.methods.parameters = true
-dao.times.debug.interceptor.debug.returned.values = true
-dao.times.debug.interceptor.omited.methods = 
Added: trunk/code/CSCommon/src/org/commsuite/aop/AopUtils.java
===================================================================
--- trunk/code/CSCommon/src/org/commsuite/aop/AopUtils.java	                        (rev 0)
+++ trunk/code/CSCommon/src/org/commsuite/aop/AopUtils.java	2006-09-30 16:43:07 UTC (rev 164)
@@ -0,0 +1,6 @@
+package org.commsuite.aop;
+
+public class AopUtils {
+	public static String[] NOT_LOGGED_PATTERNS = new String[] { "toString",
+			"hashCode", ".set", "equals", "IntEnumUserType" };
+}
Deleted: trunk/code/CSCommon/src/org/commsuite/aop/CsMethodsDebuggerInterceptor.java
===================================================================
--- trunk/code/CSCommon/src/org/commsuite/aop/CsMethodsDebuggerInterceptor.java	2006-09-29 17:30:36 UTC (rev 163)
+++ trunk/code/CSCommon/src/org/commsuite/aop/CsMethodsDebuggerInterceptor.java	2006-09-30 16:43:07 UTC (rev 164)
@@ -1,119 +0,0 @@
-/* $Id $
- * 
- * Communications Suite.
- * Copyright (C) 2006 Szymon Kuzniak, Rafal Malinowski, Marek Musielak, Pawel Walkiewicz,
- * Agnieszka Wisniewska, Marcin Zduniak, Liliana Ziolek.
- * 
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the <a href="http://www.gnu.org/licenses/gpl.html">GNU General Public License</a>
- * as published by the Free Software Foundation; either version 2
- * of the License, or (at your option) any later version.
- * 
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- * GNU General Public License for more details.
- * 
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA
- */
-package org.commsuite.aop;
-
-import java.util.ArrayList;
-import java.util.List;
-import java.util.Properties;
-
-import org.apache.log4j.Logger;
-
-import org.aopalliance.intercept.MethodInterceptor;
-import org.aopalliance.intercept.MethodInvocation;
-
-/**
- * @author Marek Musielak
- */
-public class CsMethodsDebuggerInterceptor implements MethodInterceptor {
-
-	private final static Logger logger = Logger
-			.getLogger(CsMethodsDebuggerInterceptor.class);
-
-	private boolean debug;
-
-	private boolean debugMethodsParameters;
-
-	private boolean debugReturnedValues;
-
-	private List<String> omitedMethods;
-
-	public Object invoke(MethodInvocation invocation) throws Throwable {
-
-		if (!debug) {
-			return invocation.proceed();
-		}
-
-		String methodName = invocation.getMethod().getName();
-
-		if (omitedMethods.contains(methodName)) {
-			return invocation.proceed();
-		}
-
-		Object[] arguments = invocation.getArguments();
-
-		StringBuilder sb = new StringBuilder( //
-				invocation.getThis().getClass().getCanonicalName() + "."
-						+ methodName + "(");
-
-		if (debugMethodsParameters) {
-			if (arguments != null) {
-				for (int i = 0; i < arguments.length; i++) {
-					if (0 != i) {
-						sb.append(", ");
-					}
-					sb.append(arguments[i]);
-				}
-			}
-		}
-
-		sb.append(")");
-
-		logger.debug("START " + sb.toString());
-		long time = System.currentTimeMillis();
-		Object rval = invocation.proceed();
-		time = System.currentTimeMillis() - time;
-
-		sb = new StringBuilder("END "
-				+ invocation.getThis().getClass().getCanonicalName() + "."
-				+ methodName + "()" + " ms" + time);
-
-		if (debugReturnedValues) {
-			sb.append(" " + rval);
-		}
-
-		logger.debug(sb.toString());
-
-		return rval;
-	}
-
-	public void setOmitedMethods(String omitedMethodsString) {
-		List<String> methodsNames = new ArrayList<String>();
-		if (omitedMethodsString != null) {
-			for (String string : omitedMethodsString.split(";")) {
-				methodsNames.add(string);
-			}
-		}
-		this.omitedMethods = methodsNames;
-	}
-
-	public void setDebugProperties(Properties debugProperties) {
-		this.debug = "true".equals(debugProperties
-				.getProperty("dao.times.debug.interceptor.debug"));
-		this.debugMethodsParameters = "true"
-				.equals(debugProperties
-						.getProperty("dao.times.debug.interceptor.debug.methods.parameters"));
-		this.debugReturnedValues = "true"
-				.equals(debugProperties
-						.getProperty("dao.times.debug.interceptor.debug.returned.values"));
-		this.setOmitedMethods(debugProperties
-				.getProperty("dao.times.debug.interceptor.omited.methods"));
-	}
-}
Added: trunk/code/CSCommon/src/org/commsuite/aop/SystemArchitecture.java
===================================================================
--- trunk/code/CSCommon/src/org/commsuite/aop/SystemArchitecture.java	                        (rev 0)
+++ trunk/code/CSCommon/src/org/commsuite/aop/SystemArchitecture.java	2006-09-30 16:43:07 UTC (rev 164)
@@ -0,0 +1,58 @@
+package org.commsuite.aop;
+
+import org.apache.log4j.Logger;
+import org.aspectj.lang.ProceedingJoinPoint;
+import org.aspectj.lang.annotation.Around;
+import org.aspectj.lang.annotation.Aspect;
+import org.aspectj.lang.annotation.Pointcut;
+
+@Aspect
+public class SystemArchitecture {
+
+	private static final Logger logger = Logger
+			.getLogger(SystemArchitecture.class);
+
+	@Pointcut("execution(* org.commsuite..*(..))")
+	public void dataAccessOperation() {
+	}
+
+	@Around("dataAccessOperation()")
+	public Object doDataAccessOperation(ProceedingJoinPoint pjp)
+			throws Throwable {
+
+		for (String methodNamePattern : AopUtils.NOT_LOGGED_METHODS) {
+			if (pjp.getSignature().toString().contains(methodNamePattern)) {
+				return pjp.proceed();
+			}
+		}
+
+		String parameters = "";
+
+		if (null != pjp.getArgs()) {
+			for (int i = 0; i < pjp.getArgs().length; i++) {
+				if (i != 0) {
+					parameters += ", ";
+				}
+				parameters += pjp.getArgs()[i];
+			}
+		}
+
+		Object result = null;
+
+		logger.debug(pjp.getSignature() + "(" + parameters + ") START");
+		Throwable exceptionToThrow = null;
+		try {
+			result = pjp.proceed();
+		} catch (Throwable e) {
+			exceptionToThrow = e;
+			throw exceptionToThrow;
+		} finally {
+			logger.debug(pjp.getSignature() + " " + result);
+			if (exceptionToThrow != null) {
+				throw exceptionToThrow;
+			}
+		}
+		return result;
+	}
+
+}
Modified: trunk/code/CSMiddleware/build.xml
===================================================================
--- trunk/code/CSMiddleware/build.xml	2006-09-29 17:30:36 UTC (rev 163)
+++ trunk/code/CSMiddleware/build.xml	2006-09-30 16:43:07 UTC (rev 164)
@@ -224,7 +224,15 @@
 		<!-- SQL -->
 		<copy file="${sql.middleware.import}" tofile="${tmp.sql.middleware.import}" failonerror="true" overwrite="true" />
 
-		<antcall target="compile:middleware:javac" />
+		<if>
+			<equals arg1="true" arg2="${aspectj.enabled}" />
+				<then>
+					<antcall target="compile:middleware:aspectj" />
+				</then>
+				<else>
+					<antcall target="compile:middleware:javac" />
+				</else>
+		</if>
 		<copy todir="${tmp.build.middleware.dir}" filtering="true">
 			<fileset dir="${tmp.src.middleware.dir}">
 				<exclude name="**/*.java" />
@@ -267,7 +275,15 @@
 			<fileset dir="${war.adminpanel.dir}" />
 		</copy>
 
-		<antcall target="compile:adminpanel:javac" />
+		<if>
+			<equals arg1="true" arg2="${aspectj.enabled}" />
+			<then>
+				<antcall target="compile:adminpanel:aspectj" />
+			</then>
+			<else>
+				<antcall target="compile:adminpanel:javac" />
+			</else>
+		</if>
 		<copy todir="${tmp.build.adminpanel.dir}" filtering="true">
 			<fileset dir="${tmp.src.adminpanel.dir}">
 				<exclude name="**/*.java" />
@@ -600,6 +616,25 @@
 		<list url="${tomcat.manager.url}" username="${tomcat.username}" password="${tomcat.password}" />
 	</target>
 
+	<!-- ASPECT-J TARGETS -->
+	<taskdef resource="org/aspectj/tools/ant/taskdefs/aspectjTaskdefs.properties">
+		<classpath refid="classpath-compiletime" />
+	</taskdef>
+	
+	<target name="compile:middleware:aspectj">
+		<iajc sourceRoots="${tmp.src.middleware.dir}" destDir="${tmp.build.middleware.dir}" verbose="true" showWeaveInfo="true" log="${compile-time.log.file}" source="${source.compatibility}" target="${bytecode.compatibility}" debug="${javac.debug}" deprecation="false" failonerror="true">
+			<classpath refid="classpath-middleware" />
+			<classpath refid="classpath-compiletime" />
+		</iajc>
+	</target>
+	
+	<target name="compile:adminpanel:aspectj">
+		<iajc sourceRoots="${tmp.src.adminpanel.dir}" destDir="${tmp.build.adminpanel.dir}" verbose="true" showWeaveInfo="true" log="${compile-time.log.file}" source="${source.compatibility}" target="${bytecode.compatibility}" debug="${javac.debug}" deprecation="false" failonerror="true">
+			<classpath refid="classpath-adminpanel" />
+			<classpath refid="classpath-compiletime" />
+		</iajc>
+	</target>
+
 	<target name="coverage" depends="init,hibernate:mappings,build:unit-tests" description="EMMA code coverage report generation.">
 		<taskdef resource="emma_ant.properties" classpathref="classpath-compiletime" />
 		<path id="classpath-emma">
Modified: trunk/code/CSMiddleware/default.properties
===================================================================
--- trunk/code/CSMiddleware/default.properties	2006-09-29 17:30:36 UTC (rev 163)
+++ trunk/code/CSMiddleware/default.properties	2006-09-30 16:43:07 UTC (rev 164)
@@ -94,6 +94,8 @@
 bytecode.compatibility=1.5
 source.compatibility=1.5
 
+aspectj.enabled=true
+
 jdepend.viewer=jdepend.swingui.JDepend
 
 drop.before.populate=no
Deleted: trunk/code/CSMiddleware/src/aopContext.xml
===================================================================
--- trunk/code/CSMiddleware/src/aopContext.xml	2006-09-29 17:30:36 UTC (rev 163)
+++ trunk/code/CSMiddleware/src/aopContext.xml	2006-09-30 16:43:07 UTC (rev 164)
@@ -1,25 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN" "http://www.springframework.org/dtd/spring-beans.dtd">
-
-<beans>
-	<bean id="debugProperties"
-		class="org.springframework.beans.factory.config.PropertiesFactoryBean">
-		<property name="location" value="classpath:aop.properties" />
-	</bean>
-
-	<bean id="csMethodsDebuggerInterceptor" class="org.commsuite.aop.CsMethodsDebuggerInterceptor">
-		<property name="debugProperties" ref="debugProperties" />
-	</bean>
-
-	<bean id="proxyCreator" class="org.springframework.aop.framework.autoproxy.BeanNameAutoProxyCreator">
-		<property name="beanNames">
-			<value>*Target,converterBuilder,exDevRegister,mOutRouter,mSAPIn,filterManager,sapCommManager</value>
-		</property>
-		<property name="interceptorNames">
-			<list>
-				<value>csMethodsDebuggerInterceptor</value>
-			</list>
-		</property>
-	</bean>
-	
-</beans>
\ No newline at end of file
Modified: trunk/code/CSMiddleware/war/WEB-INF/web.xml
===================================================================
--- trunk/code/CSMiddleware/war/WEB-INF/web.xml	2006-09-29 17:30:36 UTC (rev 163)
+++ trunk/code/CSMiddleware/war/WEB-INF/web.xml	2006-09-30 16:43:07 UTC (rev 164)
@@ -49,7 +49,6 @@
 			classpath:/applicationContext.xml,
 			classpath:/datasourceContext.xml,
 			classpath:/activeMQContext.xml,
-			classpath:/aopContext.xml,
 			classpath:/hibernateContext.xml, classpath:/sapContext.xml
 			classpath:/deviceContext.xml, classpath:/jmxContext.xml,
 			classpath:/converterBuilderContext.xml,
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
 | 
| 
     
      
      
      From: <sku...@us...> - 2006-09-29 17:30:55
      
     
   | 
Revision: 163
          http://svn.sourceforge.net/comsuite/?rev=163&view=rev
Author:   skuzniak
Date:     2006-09-29 10:30:36 -0700 (Fri, 29 Sep 2006)
Log Message:
-----------
locales corrected
Modified Paths:
--------------
    trunk/code/CSAdminPanel/JavaSource/org/commsuite/web/beans/LanguageSelectionBean.java
    trunk/code/CSAdminPanel/WebContent/CSLoginForm.jsp
    trunk/code/CSAdminPanel/WebContent/WEB-INF/faces-config.xml
    trunk/code/CSAdminPanel/WebContent/loginError.jsp
Modified: trunk/code/CSAdminPanel/JavaSource/org/commsuite/web/beans/LanguageSelectionBean.java
===================================================================
--- trunk/code/CSAdminPanel/JavaSource/org/commsuite/web/beans/LanguageSelectionBean.java	2006-09-26 12:02:23 UTC (rev 162)
+++ trunk/code/CSAdminPanel/JavaSource/org/commsuite/web/beans/LanguageSelectionBean.java	2006-09-29 17:30:36 UTC (rev 163)
@@ -77,8 +77,8 @@
         // least) or stored in a database.
 
         final SelectItem languages[] = { 
-        		new SelectItem("pl", "Polski"),
-                new SelectItem("en", "English") };
+                new SelectItem("en", "English"),
+        		new SelectItem("pl", "Polski") };
         this.supportedLanguages = new FastTable<SelectItem>(Arrays.asList(languages));
     }
 
Modified: trunk/code/CSAdminPanel/WebContent/CSLoginForm.jsp
===================================================================
--- trunk/code/CSAdminPanel/WebContent/CSLoginForm.jsp	2006-09-26 12:02:23 UTC (rev 162)
+++ trunk/code/CSAdminPanel/WebContent/CSLoginForm.jsp	2006-09-29 17:30:36 UTC (rev 163)
@@ -1,6 +1,6 @@
 <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
 <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
-<f:view>
+<f:view locale="#{languageSelectionBean.locale}">
 <f:loadBundle basename="org.commsuite.web.locale.Locale" var="Locale" />
 <html>
 <head>
Modified: trunk/code/CSAdminPanel/WebContent/WEB-INF/faces-config.xml
===================================================================
--- trunk/code/CSAdminPanel/WebContent/WEB-INF/faces-config.xml	2006-09-26 12:02:23 UTC (rev 162)
+++ trunk/code/CSAdminPanel/WebContent/WEB-INF/faces-config.xml	2006-09-29 17:30:36 UTC (rev 163)
@@ -2,764 +2,676 @@
 <!DOCTYPE faces-config PUBLIC "-//Sun Microsystems, Inc.//DTD JavaServer Faces Config 1.1//EN"
                               "http://java.sun.com/dtd/web-facesconfig_1_1.dtd">
 <faces-config>
-	<application>
-		<message-bundle>org.commsuite.web.Locale</message-bundle>
-		<variable-resolver>
-			org.springframework.web.jsf.DelegatingVariableResolver
-		</variable-resolver>
-		<locale-config>
-			<default-locale>en</default-locale>
-			<supported-locale>en</supported-locale>
-		</locale-config>
-	</application>
-	<factory />
-	<converter>
-		<converter-for-class>
-			org.commsuite.enums.Language
-		</converter-for-class>
-		<converter-class>
-			org.commsuite.web.converter.LanguageConverer
-		</converter-class>
-	</converter>
-	<converter>
-		<converter-for-class>
-			org.commsuite.enums.Country
-		</converter-for-class>
-		<converter-class>
-			org.commsuite.web.converter.CountryConverter
-		</converter-class>
-	</converter>
-	<converter>
-		<converter-for-class>
-			org.commsuite.enums.TimeZone
-		</converter-for-class>
-		<converter-class>
-			org.commsuite.web.converter.TimeZoneConverter
-		</converter-class>
-	</converter>
-	<converter>
-		<converter-for-class>
-			org.commsuite.enums.Priority
-		</converter-for-class>
-		<converter-class>
-			org.commsuite.web.converter.PriorityConverter
-		</converter-class>
-	</converter>
-	<converter>
-		<converter-for-class>
-			org.commsuite.enums.Direction
-		</converter-for-class>
-		<converter-class>
-			org.commsuite.web.converter.DirectionConverter
-		</converter-class>
-	</converter>
-	<converter>
-		<converter-for-class>
-			org.commsuite.enums.FormatType
-		</converter-for-class>
-		<converter-class>
-			org.commsuite.web.converter.FormatTypeConverter
-		</converter-class>
-	</converter>
-	<converter>
-		<converter-for-class>
-			org.commsuite.enums.Status
-		</converter-for-class>
-		<converter-class>
-			org.commsuite.web.converter.StatusConverter
-		</converter-class>
-	</converter>
-	<converter>
-		<converter-id>emptyFieldValidatorConverter</converter-id>
-		<converter-class>
-			org.commsuite.web.converter.EmptyFieldValidatorConverter
-		</converter-class>
-	</converter>
-	<converter>
-		<converter-id>maxConnectionsConverter</converter-id>
-		<converter-class>
-			org.commsuite.web.converter.MaxConnectionsValidatorConverter
-		</converter-class>
-	</converter>
-	<managed-bean>
-		<managed-bean-name>languageSelectionBean</managed-bean-name>
-		<managed-bean-class>
-			org.commsuite.web.beans.LanguageSelectionBean
-		</managed-bean-class>
-		<managed-bean-scope>session</managed-bean-scope>
-		<managed-property>
-			<property-name>supportedLanguages</property-name>
-			<property-class>java.util.List</property-class>
-			<list-entries />
-		</managed-property>
-		<managed-property>
-			<property-name>locale</property-name>
-			<property-class>java.lang.String</property-class>
-			<value />
-		</managed-property>
-	</managed-bean>
-	<managed-bean>
-		<managed-bean-name>actionBean</managed-bean-name>
-		<managed-bean-class>
-			org.commsuite.web.beans.actions.ActionBean
-		</managed-bean-class>
-		<managed-bean-scope>request</managed-bean-scope>
-		<managed-property>
-			<property-name>description</property-name>
-			<property-class>java.lang.String</property-class>
-			<value />
-		</managed-property>
-		<managed-property>
-			<property-name>name</property-name>
-			<property-class>java.lang.String</property-class>
-			<value />
-		</managed-property>
-	</managed-bean>
-	<managed-bean>
-		<managed-bean-name>deleteUserBean</managed-bean-name>
-		<managed-bean-class>
-			org.commsuite.web.beans.users.DeleteUserBean
-		</managed-bean-class>
-		<managed-bean-scope>request</managed-bean-scope>
-	</managed-bean>
-	<managed-bean>
-		<managed-bean-name>addSapServerBean</managed-bean-name>
-		<managed-bean-class>
-			org.commsuite.web.beans.servers.AddSapServerBean
-		</managed-bean-class>
-		<managed-bean-scope>session</managed-bean-scope>
-		<managed-property>
-			<property-name>adminEmail</property-name>
-			<property-class>java.lang.String</property-class>
-			<value />
-		</managed-property>
-		<managed-property>
-			<property-name>defaultInstance</property-name>
-			<property-class>boolean</property-class>
-			<value />
-		</managed-property>
-		<managed-property>
-			<property-name>group</property-name>
-			<property-class>java.lang.String</property-class>
-			<value />
-		</managed-property>
-		<managed-property>
-			<property-name>gwhost</property-name>
-			<property-class>java.lang.String</property-class>
-			<value />
-		</managed-property>
-		<managed-property>
-			<property-name>gwserv</property-name>
-			<property-class>java.lang.String</property-class>
-			<value />
-		</managed-property>
-		<managed-property>
-			<property-name>host</property-name>
-			<property-class>java.lang.String</property-class>
-			<value />
-		</managed-property>
-		<managed-property>
-			<property-name>loadBalancing</property-name>
-			<property-class>boolean</property-class>
-			<value />
-		</managed-property>
-		<managed-property>
-			<property-name>maxConnectionsInPool</property-name>
-			<property-class>int</property-class>
-			<value />
-		</managed-property>
-		<managed-property>
-			<property-name>name</property-name>
-			<property-class>java.lang.String</property-class>
-			<value />
-		</managed-property>
-		<managed-property>
-			<property-name>progid</property-name>
-			<property-class>java.lang.String</property-class>
-			<value />
-		</managed-property>
-		<managed-property>
-			<property-name>r3name</property-name>
-			<property-class>java.lang.String</property-class>
-			<value />
-		</managed-property>
-		<managed-property>
-			<property-name>systemNumber</property-name>
-			<property-class>java.lang.String</property-class>
-			<value />
-		</managed-property>
-		<managed-property>
-			<property-name>unicode</property-name>
-			<property-class>boolean</property-class>
-			<value />
-		</managed-property>
-	</managed-bean>
-	<managed-bean>
-		<managed-bean-name>groupBean</managed-bean-name>
-		<managed-bean-class>
-			org.commsuite.web.beans.groups.GroupBean
-		</managed-bean-class>
-		<managed-bean-scope>session</managed-bean-scope>
-		<managed-property>
-			<property-name>description</property-name>
-			<property-class>java.lang.String</property-class>
-			<value />
-		</managed-property>
-		<managed-property>
-			<property-name>name</property-name>
-			<property-class>java.lang.String</property-class>
-			<value />
-		</managed-property>
-	</managed-bean>
-	<managed-bean>
-		<managed-bean-name>searchGroupBean</managed-bean-name>
-		<managed-bean-class>
-			org.commsuite.web.beans.groups.SearchGroupBean
-		</managed-bean-class>
-		<managed-bean-scope>session</managed-bean-scope>
-		<managed-property>
-			<property-name>selectedGroup</property-name>
-			<property-class>java.util.List</property-class>
-			<value />
-		</managed-property>
-		<managed-property>
-			<property-name>name</property-name>
-			<property-class>java.lang.String</property-class>
-			<value />
-		</managed-property>
-		<managed-property>
-			<property-name>description</property-name>
-			<property-class>java.lang.String</property-class>
-			<value />
-		</managed-property>
-		<managed-property>
-			<property-name>selectedRoleIds</property-name>
-			<property-class>java.util.List</property-class>
-			<value />
-		</managed-property>
-		<managed-property>
-			<property-name>selectedUserIds</property-name>
-			<property-class>java.util.List</property-class>
-			<value />
-		</managed-property>
-	</managed-bean>
-	<managed-bean>
-		<managed-bean-name>searchUserBean</managed-bean-name>
-		<managed-bean-class>
-			org.commsuite.web.beans.users.SearchUserBean
-		</managed-bean-class>
-		<managed-bean-scope>session</managed-bean-scope>
-	</managed-bean>
-	<managed-bean>
-		<managed-bean-name>searchActionBean</managed-bean-name>
-		<managed-bean-class>
-			org.commsuite.web.beans.actions.SearchActionBean
-		</managed-bean-class>
-		<managed-bean-scope>session</managed-bean-scope>
-		<managed-property>
-			<property-name>selectedAction</property-name>
-			<property-class>java.lang.String</property-class>
-			<value />
-		</managed-property>
-	</managed-bean>
-	<managed-bean>
-		<managed-bean-name>searchRoleBean</managed-bean-name>
-		<managed-bean-class>
-			org.commsuite.web.beans.roles.SearchRoleBean
-		</managed-bean-class>
-		<managed-bean-scope>session</managed-bean-scope>
-		<managed-property>
-			<property-name>selectedRole</property-name>
-			<property-class>java.lang.String</property-class>
-			<value />
-		</managed-property>
-		<managed-property>
-			<property-name>selectedActionsIds</property-name>
-			<property-class>java.util.List</property-class>
-			<value />
-		</managed-property>
-		<managed-property>
-			<property-name>selectedUserIds</property-name>
-			<property-class>java.util.List</property-class>
-			<value />
-		</managed-property>
-	</managed-bean>
-	<managed-bean>
-		<managed-bean-name>roleBean</managed-bean-name>
-		<managed-bean-class>
-			org.commsuite.web.beans.roles.RoleBean
-		</managed-bean-class>
-		<managed-bean-scope>session</managed-bean-scope>
-		<managed-property>
-			<property-name>assignedActions</property-name>
-			<property-class>java.util.List</property-class>
-			<value />
-		</managed-property>
-		<managed-property>
-			<property-name>description</property-name>
-			<property-class>java.lang.String</property-class>
-			<value />
-		</managed-property>
-		<managed-property>
-			<property-name>name</property-name>
-			<property-class>java.lang.String</property-class>
-			<value />
-		</managed-property>
-		<managed-property>
-			<property-name>selectedActions</property-name>
-			<property-class>java.util.List</property-class>
-			<value />
-		</managed-property>
-	</managed-bean>
-	<managed-bean>
-		<managed-bean-name>sessionBean</managed-bean-name>
-		<managed-bean-class>
-			org.commsuite.web.beans.SessionBean
-		</managed-bean-class>
-		<managed-bean-scope>application</managed-bean-scope>
-	</managed-bean>
-	<managed-bean>
-		<managed-bean-name>resubmitMessageBean</managed-bean-name>
-		<managed-bean-class>
-			org.commsuite.web.beans.messages.ResubmitMessageBean
-		</managed-bean-class>
-		<managed-bean-scope>request</managed-bean-scope>
-	</managed-bean>
-	<managed-bean>
-		<managed-bean-name>searchServerBean</managed-bean-name>
-		<managed-bean-class>
-			org.commsuite.web.beans.servers.SearchServerBean
-		</managed-bean-class>
-		<managed-bean-scope>session</managed-bean-scope>
-		<managed-property>
-			<property-name>adminEmail</property-name>
-			<property-class>java.lang.String</property-class>
-			<value />
-		</managed-property>
-		<managed-property>
-			<property-name>client</property-name>
-			<property-class>java.lang.String</property-class>
-			<value />
-		</managed-property>
-		<managed-property>
-			<property-name>defaultInstance</property-name>
-			<property-class>boolean</property-class>
-			<value />
-		</managed-property>
-		<managed-property>
-			<property-name>group</property-name>
-			<property-class>java.lang.String</property-class>
-			<value />
-		</managed-property>
-		<managed-property>
-			<property-name>gwhost</property-name>
-			<property-class>java.lang.String</property-class>
-			<value />
-		</managed-property>
-		<managed-property>
-			<property-name>gwserv</property-name>
-			<property-class>java.lang.String</property-class>
-			<value />
-		</managed-property>
-		<managed-property>
-			<property-name>host</property-name>
-			<property-class>java.lang.String</property-class>
-			<value />
-		</managed-property>
-		<managed-property>
-			<property-name>loadBalancing</property-name>
-			<property-class>boolean</property-class>
-			<value />
-		</managed-property>
-		<managed-property>
-			<property-name>maxConnectionsInPool</property-name>
-			<property-class>int</property-class>
-			<value />
-		</managed-property>
-		<managed-property>
-			<property-name>name</property-name>
-			<property-class>java.lang.String</property-class>
-			<value />
-		</managed-property>
-		<managed-property>
-			<property-name>password</property-name>
-			<property-class>java.lang.String</property-class>
-			<value />
-		</managed-property>
-		<managed-property>
-			<property-name>progid</property-name>
-			<property-class>java.lang.String</property-class>
-			<value />
-		</managed-property>
-		<managed-property>
-			<property-name>r3name</property-name>
-			<property-class>java.lang.String</property-class>
-			<value />
-		</managed-property>
-		<managed-property>
-			<property-name>systemNumber</property-name>
-			<property-class>java.lang.String</property-class>
-			<value />
-		</managed-property>
-		<managed-property>
-			<property-name>unicode</property-name>
-			<property-class>boolean</property-class>
-			<value />
-		</managed-property>
-		<managed-property>
-			<property-name>user</property-name>
-			<property-class>java.lang.String</property-class>
-			<value />
-		</managed-property>
-	</managed-bean>
-	<managed-bean>
-		<managed-bean-name>addUserBean</managed-bean-name>
-		<managed-bean-class>
-			org.commsuite.web.beans.users.AddUserBean
-		</managed-bean-class>
-		<managed-bean-scope>session</managed-bean-scope>
-		<managed-property>
-			<property-name>city</property-name>
-			<property-class>java.lang.String</property-class>
-			<value />
-		</managed-property>
-		<managed-property>
-			<property-name>country</property-name>
-			<property-class>org.commsuite.enums.Country</property-class>
-			<value />
-		</managed-property>
-		<managed-property>
-			<property-name>department</property-name>
-			<property-class>java.lang.String</property-class>
-			<value />
-		</managed-property>
-		<managed-property>
-			<property-name>email</property-name>
-			<property-class>java.lang.String</property-class>
-			<value />
-		</managed-property>
-		<managed-property>
-			<property-name>enabled</property-name>
-			<property-class>boolean</property-class>
-			<value />
-		</managed-property>
-		<managed-property>
-			<property-name>fax</property-name>
-			<property-class>java.lang.String</property-class>
-			<value />
-		</managed-property>
-		<managed-property>
-			<property-name>firstName</property-name>
-			<property-class>java.lang.String</property-class>
-			<value />
-		</managed-property>
-		<managed-property>
-			<property-name>id</property-name>
-			<property-class>long</property-class>
-			<value />
-		</managed-property>
-		<managed-property>
-			<property-name>language</property-name>
-			<property-class>
-				org.commsuite.enums.Language
-			</property-class>
-			<value />
-		</managed-property>
-		<managed-property>
-			<property-name>lastName</property-name>
-			<property-class>java.lang.String</property-class>
-			<value />
-		</managed-property>
-		<managed-property>
-			<property-name>login</property-name>
-			<property-class>java.lang.String</property-class>
-			<value />
-		</managed-property>
-		<managed-property>
-			<property-name>mobile</property-name>
-			<property-class>java.lang.String</property-class>
-			<value />
-		</managed-property>
-		<managed-property>
-			<property-name>password</property-name>
-			<property-class>java.lang.String</property-class>
-			<value />
-		</managed-property>
-		<managed-property>
-			<property-name>position</property-name>
-			<property-class>java.lang.String</property-class>
-			<value />
-		</managed-property>
-		<managed-property>
-			<property-name>postalCode</property-name>
-			<property-class>java.lang.String</property-class>
-			<value />
-		</managed-property>
-		<managed-property>
-			<property-name>state</property-name>
-			<property-class>java.lang.String</property-class>
-			<value />
-		</managed-property>
-		<managed-property>
-			<property-name>street</property-name>
-			<property-class>java.lang.String</property-class>
-			<value />
-		</managed-property>
-		<managed-property>
-			<property-name>telephone</property-name>
-			<property-class>java.lang.String</property-class>
-			<value />
-		</managed-property>
-		<managed-property>
-			<property-name>timeZone</property-name>
-			<property-class>
-				org.commsuite.enums.TimeZone
-			</property-class>
-			<value />
-		</managed-property>
-		<managed-property>
-			<property-name>validFrom</property-name>
-			<property-class>java.util.Date</property-class>
-			<value />
-		</managed-property>
-		<managed-property>
-			<property-name>validTo</property-name>
-			<property-class>java.util.Date</property-class>
-			<value />
-		</managed-property>
-	</managed-bean>
-	<managed-bean>
-		<managed-bean-name>searchMessageBean</managed-bean-name>
-		<managed-bean-class>
-			org.commsuite.web.beans.messages.SearchMessageBean
-		</managed-bean-class>
-		<managed-bean-scope>session</managed-bean-scope>
-		<managed-property>
-			<property-name>description</property-name>
-			<property-class>java.lang.String</property-class>
-			<value />
-		</managed-property>
-		<managed-property>
-			<property-name>direction</property-name>
-			<property-class>
-				org.commsuite.enums.Direction
-			</property-class>
-			<value />
-		</managed-property>
-		<managed-property>
-			<property-name>formatType</property-name>
-			<property-class>
-				org.commsuite.enums.FormatType
-			</property-class>
-			<value />
-		</managed-property>
-		<managed-property>
-			<property-name>lastProcessMessage</property-name>
-			<property-class>java.lang.String</property-class>
-			<value />
-		</managed-property>
-		<managed-property>
-			<property-name>priority</property-name>
-			<property-class>
-				org.commsuite.enums.Priority
-			</property-class>
-			<value />
-		</managed-property>
-		<managed-property>
-			<property-name>receiver</property-name>
-			<property-class>java.lang.String</property-class>
-			<value />
-		</managed-property>
-		<managed-property>
-			<property-name>sapID</property-name>
-			<property-class>java.lang.String</property-class>
-			<value />
-		</managed-property>
-		<managed-property>
-			<property-name>sender</property-name>
-			<property-class>java.lang.String</property-class>
-			<value />
-		</managed-property>
-		<managed-property>
-			<property-name>sentContentsList</property-name>
-			<property-class>java.util.List</property-class>
-			<value />
-		</managed-property>
-		<managed-property>
-			<property-name>status</property-name>
-			<property-class>org.commsuite.enums.Status</property-class>
-			<value />
-		</managed-property>
-		<managed-property>
-			<property-name>sendDateFrom</property-name>
-			<property-class>java.util.Date</property-class>
-			<value />
-		</managed-property>
-		<managed-property>
-			<property-name>sendDateTo</property-name>
-			<property-class>java.util.Date</property-class>
-			<value />
-		</managed-property>
-		<managed-property>
-			<property-name>id</property-name>
-			<property-class>java.lang.Long</property-class>
-			<value />
-		</managed-property>
-	</managed-bean>
-	<navigation-rule>
-		<from-view-id>/pages/*</from-view-id>
-		<navigation-case>
-			<from-outcome>addAction</from-outcome>
-			<to-view-id>/pages/actions/CSActionAdd.jsp</to-view-id>
-		</navigation-case>
-		<navigation-case>
-			<from-outcome>searchAction</from-outcome>
-			<to-view-id>/pages/actions/CSActionSearch.jsp</to-view-id>
-		</navigation-case>
-		<navigation-case>
-			<from-outcome>editAction</from-outcome>
-			<to-view-id>/pages/actions/CSActionsEdit.jsp</to-view-id>
-		</navigation-case>
-		<navigation-case>
-			<from-outcome>addGroup</from-outcome>
-			<to-view-id>/pages/groups/CSGroupAdd.jsp</to-view-id>
-		</navigation-case>
-		<navigation-case>
-			<from-outcome>searchGroup</from-outcome>
-			<to-view-id>/pages/groups/CSGroupSearch.jsp</to-view-id>
-		</navigation-case>
-		<navigation-case>
-			<from-outcome>editGroup</from-outcome>
-			<to-view-id>/pages/groups/CSGroupEdit.jsp</to-view-id>
-		</navigation-case>
-		<navigation-case>
-			<from-outcome>addRole</from-outcome>
-			<to-view-id>/pages/roles/CSRoleCreate.jsp</to-view-id>
-		</navigation-case>
-		<navigation-case>
-			<from-outcome>searchRole</from-outcome>
-			<to-view-id>/pages/roles/CSRoleSearch.jsp</to-view-id>
-		</navigation-case>
-		<navigation-case>
-			<from-outcome>editRole</from-outcome>
-			<to-view-id>/pages/roles/CSRoleEdit.jsp</to-view-id>
-		</navigation-case>
-		<navigation-case>
-			<from-outcome>addServer</from-outcome>
-			<to-view-id>/pages/servers/CSServerAdd.jsp</to-view-id>
-		</navigation-case>
-		<navigation-case>
-			<from-outcome>showServers</from-outcome>
-			<to-view-id>/pages/servers/CSSAPServers.jsp</to-view-id>
-		</navigation-case>
-		<navigation-case>
-			<from-outcome>addUser</from-outcome>
-			<to-view-id>/pages/users/CSUserAdd.jsp</to-view-id>
-		</navigation-case>
-		<navigation-case>
-			<from-outcome>searchUser</from-outcome>
-			<to-view-id>/pages/users/CSUserSearch.jsp</to-view-id>
-		</navigation-case>
-		<navigation-case>
-			<from-outcome>showUsers</from-outcome>
-			<to-view-id>
-				/pages/users/CSUsersSearchResult.jsp
-			</to-view-id>
-		</navigation-case>
-		<navigation-case>
-			<from-outcome>showMessages</from-outcome>
-			<to-view-id>/pages/messages/CSMessages.jsp</to-view-id>
-		</navigation-case>
-		<navigation-case>
-			<from-outcome>home</from-outcome>
-			<to-view-id>/pages/CSMainPanel.jsp</to-view-id>
-		</navigation-case>
-		<navigation-case>
-			<from-outcome>servlet</from-outcome>
-			<to-view-id>/pages/CSContentsServlet.jsp</to-view-id>
-		</navigation-case>
-		<navigation-case>
-			<from-outcome>usersToGroup</from-outcome>
-			<to-view-id>/pages/common/CSUsersToGroup.jsp</to-view-id>
-		</navigation-case>
-		<navigation-case>
-			<from-outcome>usersToRole</from-outcome>
-			<to-view-id>/pages/common/CSUsersToRole.jsp</to-view-id>
-		</navigation-case>
-		<navigation-case>
-			<from-outcome>actionsToRoles</from-outcome>
-			<to-view-id>/pages/common/CSActionsToRole.jsp</to-view-id>
-		</navigation-case>
-		<navigation-case>
-			<from-outcome>rolesToGroup</from-outcome>
-			<to-view-id>/pages/common/CSRolesToGroup.jsp</to-view-id>
-		</navigation-case>
-		<navigation-case>
-			<from-outcome>loggedOut</from-outcome>
-			<to-view-id>/CSLoginForm.jsp</to-view-id>
-			<redirect />
-		</navigation-case>
-		<navigation-case>
-			<from-outcome>searchMessages</from-outcome>
-			<to-view-id>
-				/pages/messages/CSMessagesSearch.jsp
-			</to-view-id>
-		</navigation-case>
-		<navigation-case>
-			<from-outcome>editUser</from-outcome>
-			<to-view-id>/pages/users/CSUserEdit.jsp</to-view-id>
-		</navigation-case>
-		<navigation-case>
-			<from-outcome>searchServers</from-outcome>
-			<to-view-id>/pages/servers/CSServerSearch.jsp</to-view-id>
-		</navigation-case>
-		<navigation-case>
-			<from-outcome>editServer</from-outcome>
-			<to-view-id>/pages/servers/CSServerEdit.jsp</to-view-id>
-		</navigation-case>
-		<navigation-case>
-			<from-outcome>messageDetails</from-outcome>
-			<to-view-id>
-				/pages/messages/CSMessagesDetails.jsp
-			</to-view-id>
-		</navigation-case>
-	</navigation-rule>
-	<navigation-rule>
-		<from-view-id>/loginError.jsp</from-view-id>
-		<navigation-case>
-			<from-outcome>loginPage</from-outcome>
-			<to-view-id>/index.jsp</to-view-id>
-		</navigation-case>
-	</navigation-rule>
-	<lifecycle />
-	<validator>
-		<validator-id>longLenghtValidator</validator-id>
-		<validator-class>
-			org.commsuite.web.validator.LongLenghtValidator
-		</validator-class>
-	</validator>
-	<validator>
-		<validator-id>shortLenghtValidator</validator-id>
-		<validator-class>
-			org.commsuite.web.validator.ShortLenghtValidator
-		</validator-class>
-	</validator>
-	<validator>
-		<validator-id>emailAddressValidator</validator-id>
-		<validator-class>
-			org.commsuite.web.validator.EmailAddressValidator
-		</validator-class>
-	</validator>
-	<validator>
-		<validator-id>phoneNumberValidator</validator-id>
-		<validator-class>
-			org.commsuite.web.validator.PhoneNumberValidator
-		</validator-class>
-	</validator>
-	<validator>
-		<validator-id>postalCodeValidator</validator-id>
-		<validator-class>
-			org.commsuite.web.validator.PostalCodeValidator
-		</validator-class>
-	</validator>
+ <converter>
+  <converter-for-class>org.commsuite.enums.Language</converter-for-class>
+  <converter-class>org.commsuite.web.converter.LanguageConverer</converter-class>
+ </converter>
+ <converter>
+  <converter-for-class>org.commsuite.enums.Country</converter-for-class>
+  <converter-class>org.commsuite.web.converter.CountryConverter</converter-class>
+ </converter>
+ <converter>
+  <converter-for-class>org.commsuite.enums.TimeZone</converter-for-class>
+  <converter-class>org.commsuite.web.converter.TimeZoneConverter</converter-class>
+ </converter>
+ <converter>
+  <converter-for-class>org.commsuite.enums.Priority</converter-for-class>
+  <converter-class>org.commsuite.web.converter.PriorityConverter</converter-class>
+ </converter>
+ <converter>
+  <converter-for-class>org.commsuite.enums.Direction</converter-for-class>
+  <converter-class>org.commsuite.web.converter.DirectionConverter</converter-class>
+ </converter>
+ <converter>
+  <converter-for-class>org.commsuite.enums.FormatType</converter-for-class>
+  <converter-class>org.commsuite.web.converter.FormatTypeConverter</converter-class>
+ </converter>
+ <converter>
+  <converter-for-class>org.commsuite.enums.Status</converter-for-class>
+  <converter-class>org.commsuite.web.converter.StatusConverter</converter-class>
+ </converter>
+ <converter>
+  <converter-id>emptyFieldValidatorConverter</converter-id>
+  <converter-class>org.commsuite.web.converter.EmptyFieldValidatorConverter</converter-class>
+ </converter>
+ <converter>
+  <converter-id>maxConnectionsConverter</converter-id>
+  <converter-class>org.commsuite.web.converter.MaxConnectionsValidatorConverter</converter-class>
+ </converter>
+ <managed-bean>
+  <managed-bean-name>languageSelectionBean</managed-bean-name>
+  <managed-bean-class>org.commsuite.web.beans.LanguageSelectionBean</managed-bean-class>
+  <managed-bean-scope>session</managed-bean-scope>
+  <managed-property>
+   <property-name>supportedLanguages</property-name>
+   <property-class>java.util.List</property-class>
+   <list-entries/>
+  </managed-property>
+  <managed-property>
+   <property-name>locale</property-name>
+   <property-class>java.lang.String</property-class>
+   <value/>
+  </managed-property>
+ </managed-bean>
+ <managed-bean>
+  <managed-bean-name>actionBean</managed-bean-name>
+  <managed-bean-class>org.commsuite.web.beans.actions.ActionBean</managed-bean-class>
+  <managed-bean-scope>request</managed-bean-scope>
+  <managed-property>
+   <property-name>description</property-name>
+   <property-class>java.lang.String</property-class>
+   <value/>
+  </managed-property>
+  <managed-property>
+   <property-name>name</property-name>
+   <property-class>java.lang.String</property-class>
+   <value/>
+  </managed-property>
+ </managed-bean>
+ <managed-bean>
+  <managed-bean-name>deleteUserBean</managed-bean-name>
+  <managed-bean-class>org.commsuite.web.beans.users.DeleteUserBean</managed-bean-class>
+  <managed-bean-scope>request</managed-bean-scope>
+ </managed-bean>
+ <managed-bean>
+  <managed-bean-name>addSapServerBean</managed-bean-name>
+  <managed-bean-class>org.commsuite.web.beans.servers.AddSapServerBean</managed-bean-class>
+  <managed-bean-scope>session</managed-bean-scope>
+  <managed-property>
+   <property-name>adminEmail</property-name>
+   <property-class>java.lang.String</property-class>
+   <value/>
+  </managed-property>
+  <managed-property>
+   <property-name>defaultInstance</property-name>
+   <property-class>boolean</property-class>
+   <value/>
+  </managed-property>
+  <managed-property>
+   <property-name>group</property-name>
+   <property-class>java.lang.String</property-class>
+   <value/>
+  </managed-property>
+  <managed-property>
+   <property-name>gwhost</property-name>
+   <property-class>java.lang.String</property-class>
+   <value/>
+  </managed-property>
+  <managed-property>
+   <property-name>gwserv</property-name>
+   <property-class>java.lang.String</property-class>
+   <value/>
+  </managed-property>
+  <managed-property>
+   <property-name>host</property-name>
+   <property-class>java.lang.String</property-class>
+   <value/>
+  </managed-property>
+  <managed-property>
+   <property-name>loadBalancing</property-name>
+   <property-class>boolean</property-class>
+   <value/>
+  </managed-property>
+  <managed-property>
+   <property-name>maxConnectionsInPool</property-name>
+   <property-class>int</property-class>
+   <value/>
+  </managed-property>
+  <managed-property>
+   <property-name>name</property-name>
+   <property-class>java.lang.String</property-class>
+   <value/>
+  </managed-property>
+  <managed-property>
+   <property-name>progid</property-name>
+   <property-class>java.lang.String</property-class>
+   <value/>
+  </managed-property>
+  <managed-property>
+   <property-name>r3name</property-name>
+   <property-class>java.lang.String</property-class>
+   <value/>
+  </managed-property>
+  <managed-property>
+   <property-name>systemNumber</property-name>
+   <property-class>java.lang.String</property-class>
+   <value/>
+  </managed-property>
+  <managed-property>
+   <property-name>unicode</property-name>
+   <property-class>boolean</property-class>
+   <value/>
+  </managed-property>
+ </managed-bean>
+ <managed-bean>
+  <managed-bean-name>groupBean</managed-bean-name>
+  <managed-bean-class>org.commsuite.web.beans.groups.GroupBean</managed-bean-class>
+  <managed-bean-scope>session</managed-bean-scope>
+  <managed-property>
+   <property-name>description</property-name>
+   <property-class>java.lang.String</property-class>
+   <value/>
+  </managed-property>
+  <managed-property>
+   <property-name>name</property-name>
+   <property-class>java.lang.String</property-class>
+   <value/>
+  </managed-property>
+ </managed-bean>
+ <managed-bean>
+  <managed-bean-name>searchGroupBean</managed-bean-name>
+  <managed-bean-class>org.commsuite.web.beans.groups.SearchGroupBean</managed-bean-class>
+  <managed-bean-scope>session</managed-bean-scope>
+  <managed-property>
+   <property-name>selectedGroup</property-name>
+   <property-class>java.util.List</property-class>
+   <value/>
+  </managed-property>
+  <managed-property>
+   <property-name>name</property-name>
+   <property-class>java.lang.String</property-class>
+   <value/>
+  </managed-property>
+  <managed-property>
+   <property-name>description</property-name>
+   <property-class>java.lang.String</property-class>
+   <value/>
+  </managed-property>
+  <managed-property>
+   <property-name>selectedRoleIds</property-name>
+   <property-class>java.util.List</property-class>
+   <value/>
+  </managed-property>
+  <managed-property>
+   <property-name>selectedUserIds</property-name>
+   <property-class>java.util.List</property-class>
+   <value/>
+  </managed-property>
+ </managed-bean>
+ <managed-bean>
+  <managed-bean-name>searchUserBean</managed-bean-name>
+  <managed-bean-class>org.commsuite.web.beans.users.SearchUserBean</managed-bean-class>
+  <managed-bean-scope>session</managed-bean-scope>
+ </managed-bean>
+ <managed-bean>
+  <managed-bean-name>searchActionBean</managed-bean-name>
+  <managed-bean-class>org.commsuite.web.beans.actions.SearchActionBean</managed-bean-class>
+  <managed-bean-scope>session</managed-bean-scope>
+  <managed-property>
+   <property-name>selectedAction</property-name>
+   <property-class>java.lang.String</property-class>
+   <value/>
+  </managed-property>
+ </managed-bean>
+ <managed-bean>
+  <managed-bean-name>searchRoleBean</managed-bean-name>
+  <managed-bean-class>org.commsuite.web.beans.roles.SearchRoleBean</managed-bean-class>
+  <managed-bean-scope>session</managed-bean-scope>
+  <managed-property>
+   <property-name>selectedRole</property-name>
+   <property-class>java.lang.String</property-class>
+   <value/>
+  </managed-property>
+  <managed-property>
+   <property-name>selectedActionsIds</property-name>
+   <property-class>java.util.List</property-class>
+   <value/>
+  </managed-property>
+  <managed-property>
+   <property-name>selectedUserIds</property-name>
+   <property-class>java.util.List</property-class>
+   <value/>
+  </managed-property>
+ </managed-bean>
+ <managed-bean>
+  <managed-bean-name>roleBean</managed-bean-name>
+  <managed-bean-class>org.commsuite.web.beans.roles.RoleBean</managed-bean-class>
+  <managed-bean-scope>session</managed-bean-scope>
+  <managed-property>
+   <property-name>assignedActions</property-name>
+   <property-class>java.util.List</property-class>
+   <value/>
+  </managed-property>
+  <managed-property>
+   <property-name>description</property-name>
+   <property-class>java.lang.String</property-class>
+   <value/>
+  </managed-property>
+  <managed-property>
+   <property-name>name</property-name>
+   <property-class>java.lang.String</property-class>
+   <value/>
+  </managed-property>
+  <managed-property>
+   <property-name>selectedActions</property-name>
+   <property-class>java.util.List</property-class>
+   <value/>
+  </managed-property>
+ </managed-bean>
+ <managed-bean>
+  <managed-bean-name>sessionBean</managed-bean-name>
+  <managed-bean-class>org.commsuite.web.beans.SessionBean</managed-bean-class>
+  <managed-bean-scope>application</managed-bean-scope>
+ </managed-bean>
+ <managed-bean>
+  <managed-bean-name>resubmitMessageBean</managed-bean-name>
+  <managed-bean-class>org.commsuite.web.beans.messages.ResubmitMessageBean</managed-bean-class>
+  <managed-bean-scope>request</managed-bean-scope>
+ </managed-bean>
+ <managed-bean>
+  <managed-bean-name>searchServerBean</managed-bean-name>
+  <managed-bean-class>org.commsuite.web.beans.servers.SearchServerBean</managed-bean-class>
+  <managed-bean-scope>session</managed-bean-scope>
+  <managed-property>
+   <property-name>adminEmail</property-name>
+   <property-class>java.lang.String</property-class>
+   <value/>
+  </managed-property>
+  <managed-property>
+   <property-name>client</property-name>
+   <property-class>java.lang.String</property-class>
+   <value/>
+  </managed-property>
+  <managed-property>
+   <property-name>defaultInstance</property-name>
+   <property-class>boolean</property-class>
+   <value/>
+  </managed-property>
+  <managed-property>
+   <property-name>group</property-name>
+   <property-class>java.lang.String</property-class>
+   <value/>
+  </managed-property>
+  <managed-property>
+   <property-name>gwhost</property-name>
+   <property-class>java.lang.String</property-class>
+   <value/>
+  </managed-property>
+  <managed-property>
+   <property-name>gwserv</property-name>
+   <property-class>java.lang.String</property-class>
+   <value/>
+  </managed-property>
+  <managed-property>
+   <property-name>host</property-name>
+   <property-class>java.lang.String</property-class>
+   <value/>
+  </managed-property>
+  <managed-property>
+   <property-name>loadBalancing</property-name>
+   <property-class>boolean</property-class>
+   <value/>
+  </managed-property>
+  <managed-property>
+   <property-name>maxConnectionsInPool</property-name>
+   <property-class>int</property-class>
+   <value/>
+  </managed-property>
+  <managed-property>
+   <property-name>name</property-name>
+   <property-class>java.lang.String</property-class>
+   <value/>
+  </managed-property>
+  <managed-property>
+   <property-name>password</property-name>
+   <property-class>java.lang.String</property-class>
+   <value/>
+  </managed-property>
+  <managed-property>
+   <property-name>progid</property-name>
+   <property-class>java.lang.String</property-class>
+   <value/>
+  </managed-property>
+  <managed-property>
+   <property-name>r3name</property-name>
+   <property-class>java.lang.String</property-class>
+   <value/>
+  </managed-property>
+  <managed-property>
+   <property-name>systemNumber</property-name>
+   <property-class>java.lang.String</property-class>
+   <value/>
+  </managed-property>
+  <managed-property>
+   <property-name>unicode</property-name>
+   <property-class>boolean</property-class>
+   <value/>
+  </managed-property>
+  <managed-property>
+   <property-name>user</property-name>
+   <property-class>java.lang.String</property-class>
+   <value/>
+  </managed-property>
+ </managed-bean>
+ <managed-bean>
+  <managed-bean-name>addUserBean</managed-bean-name>
+  <managed-bean-class>org.commsuite.web.beans.users.AddUserBean</managed-bean-class>
+  <managed-bean-scope>session</managed-bean-scope>
+  <managed-property>
+   <property-name>city</property-name>
+   <property-class>java.lang.String</property-class>
+   <value/>
+  </managed-property>
+  <managed-property>
+   <property-name>country</property-name>
+   <property-class>org.commsuite.enums.Country</property-class>
+   <value/>
+  </managed-property>
+  <managed-property>
+   <property-name>department</property-name>
+   <property-class>java.lang.String</property-class>
+   <value/>
+  </managed-property>
+  <managed-property>
+   <property-name>email</property-name>
+   <property-class>java.lang.String</property-class>
+   <value/>
+  </managed-property>
+  <managed-property>
+   <property-name>enabled</property-name>
+   <property-class>boolean</property-class>
+   <value/>
+  </managed-property>
+  <managed-property>
+   <property-name>fax</property-name>
+   <property-class>java.lang.String</property-class>
+   <value/>
+  </managed-property>
+  <managed-property>
+   <property-name>firstName</property-name>
+   <property-class>java.lang.String</property-class>
+   <value/>
+  </managed-property>
+  <managed-property>
+   <property-name>id</property-name>
+   <property-class>long</property-class>
+   <value/>
+  </managed-property>
+  <managed-property>
+   <property-name>language</property-name>
+   <property-class>org.commsuite.enums.Language</property-class>
+   <value/>
+  </managed-property>
+  <managed-property>
+   <property-name>lastName</property-name>
+   <property-class>java.lang.String</property-class>
+   <value/>
+  </managed-property>
+  <managed-property>
+   <property-name>login</property-name>
+   <property-class>java.lang.String</property-class>
+   <value/>
+  </managed-property>
+  <managed-property>
+   <property-name>mobile</property-name>
+   <property-class>java.lang.String</property-class>
+   <value/>
+  </managed-property>
+  <managed-property>
+   <property-name>password</property-name>
+   <property-class>java.lang.String</property-class>
+   <value/>
+  </managed-property>
+  <managed-property>
+   <property-name>position</property-name>
+   <property-class>java.lang.String</property-class>
+   <value/>
+  </managed-property>
+  <managed-property>
+   <property-name>postalCode</property-name>
+   <property-class>java.lang.String</property-class>
+   <value/>
+  </managed-property>
+  <managed-property>
+   <property-name>state</property-name>
+   <property-class>java.lang.String</property-class>
+   <value/>
+  </managed-property>
+  <managed-property>
+   <property-name>street</property-name>
+   <property-class>java.lang.String</property-class>
+   <value/>
+  </managed-property>
+  <managed-property>
+   <property-name>telephone</property-name>
+   <property-class>java.lang.String</property-class>
+   <value/>
+  </managed-property>
+  <managed-property>
+   <property-name>timeZone</property-name>
+   <property-class>org.commsuite.enums.TimeZone</property-class>
+   <value/>
+  </managed-property>
+  <managed-property>
+   <property-name>validFrom</property-name>
+   <property-class>java.util.Date</property-class>
+   <value/>
+  </managed-property>
+  <managed-property>
+   <property-name>validTo</property-name>
+   <property-class>java.util.Date</property-class>
+   <value/>
+  </managed-property>
+ </managed-bean>
+ <managed-bean>
+  <managed-bean-name>searchMessageBean</managed-bean-name>
+  <managed-bean-class>org.commsuite.web.beans.messages.SearchMessageBean</managed-bean-class>
+  <managed-bean-scope>session</managed-bean-scope>
+  <managed-property>
+   <property-name>description</property-name>
+   <property-class>java.lang.String</property-class>
+   <value/>
+  </managed-property>
+  <managed-property>
+   <property-name>direction</property-name>
+   <property-class>org.commsuite.enums.Direction</property-class>
+   <value/>
+  </managed-property>
+  <managed-property>
+   <property-name>formatType</property-name>
+   <property-class>org.commsuite.enums.FormatType</property-class>
+   <value/>
+  </managed-property>
+  <managed-property>
+   <property-name>lastProcessMessage</property-name>
+   <property-class>java.lang.String</property-class>
+   <value/>
+  </managed-property>
+  <managed-property>
+   <property-name>priority</property-name>
+   <property-class>org.commsuite.enums.Priority</property-class>
+   <value/>
+  </managed-property>
+  <managed-property>
+   <property-name>receiver</property-name>
+   <property-class>java.lang.String</property-class>
+   <value/>
+  </managed-property>
+  <managed-property>
+   <property-name>sapID</property-name>
+   <property-class>java.lang.String</property-class>
+   <value/>
+  </managed-property>
+  <managed-property>
+   <property-name>sender</property-name>
+   <property-class>java.lang.String</property-class>
+   <value/>
+  </managed-property>
+  <managed-property>
+   <property-name>sentContentsList</property-name>
+   <property-class>java.util.List</property-class>
+   <value/>
+  </managed-property>
+  <managed-property>
+   <property-name>status</property-name>
+   <property-class>org.commsuite.enums.Status</property-class>
+   <value/>
+  </managed-property>
+  <managed-property>
+   <property-name>sendDateFrom</property-name>
+   <property-class>java.util.Date</property-class>
+   <value/>
+  </managed-property>
+  <managed-property>
+   <property-name>sendDateTo</property-name>
+   <property-class>java.util.Date</property-class>
+   <value/>
+  </managed-property>
+  <managed-property>
+   <property-name>id</property-name>
+   <property-class>java.lang.Long</property-class>
+   <value/>
+  </managed-property>
+ </managed-bean>
+ <navigation-rule>
+  <from-view-id>/pages/*</from-view-id>
+  <navigation-case>
+   <from-outcome>addAction</from-outcome>
+   <to-view-id>/pages/actions/CSActionAdd.jsp</to-view-id>
+  </navigation-case>
+  <navigation-case>
+   <from-outcome>searchAction</from-outcome>
+   <to-view-id>/pages/actions/CSActionSearch.jsp</to-view-id>
+  </navigation-case>
+  <navigation-case>
+   <from-outcome>editAction</from-outcome>
+   <to-view-id>/pages/actions/CSActionsEdit.jsp</to-view-id>
+  </navigation-case>
+  <navigation-case>
+   <from-outcome>addGroup</from-outcome>
+   <to-view-id>/pages/groups/CSGroupAdd.jsp</to-view-id>
+  </navigation-case>
+  <navigation-case>
+   <from-outcome>searchGroup</from-outcome>
+   <to-view-id>/pages/groups/CSGroupSearch.jsp</to-view-id>
+  </navigation-case>
+  <navigation-case>
+   <from-outcome>editGroup</from-outcome>
+   <to-view-id>/pages/groups/CSGroupEdit.jsp</to-view-id>
+  </navigation-case>
+  <navigation-case>
+   <from-outcome>addRole</from-outcome>
+   <to-view-id>/pages/roles/CSRoleCreate.jsp</to-view-id>
+  </navigation-case>
+  <navigation-case>
+   <from-outcome>searchRole</from-outcome>
+   <to-view-id>/pages/roles/CSRoleSearch.jsp</to-view-id>
+  </navigation-case>
+  <navigation-case>
+   <from-outcome>editRole</from-outcome>
+   <to-view-id>/pages/roles/CSRoleEdit.jsp</to-view-id>
+  </navigation-case>
+  <navigation-case>
+   <from-outcome>addServer</from-outcome>
+   <to-view-id>/pages/servers/CSServerAdd.jsp</to-view-id>
+  </navigation-case>
+  <navigation-case>
+   <from-outcome>showServers</from-outcome>
+   <to-view-id>/pages/servers/CSSAPServers.jsp</to-view-id>
+  </navigation-case>
+  <navigation-case>
+   <from-outcome>addUser</from-outcome>
+   <to-view-id>/pages/users/CSUserAdd.jsp</to-view-id>
+  </navigation-case>
+  <navigation-case>
+   <from-outcome>searchUser</from-outcome>
+   <to-view-id>/pages/users/CSUserSearch.jsp</to-view-id>
+  </navigation-case>
+  <navigation-case>
+   <from-outcome>showUsers</from-outcome>
+   <to-view-id>/pages/users/CSUsersSearchResult.jsp</to-view-id>
+  </navigation-case>
+  <navigation-case>
+   <from-outcome>showMessages</from-outcome>
+   <to-view-id>/pages/messages/CSMessages.jsp</to-view-id>
+  </navigation-case>
+  <navigation-case>
+   <from-outcome>home</from-outcome>
+   <to-view-id>/pages/CSMainPanel.jsp</to-view-id>
+  </navigation-case>
+  <navigation-case>
+   <from-outcome>servlet</from-outcome>
+   <to-view-id>/pages/CSContentsServlet.jsp</to-view-id>
+  </navigation-case>
+  <navigation-case>
+   <from-outcome>usersToGroup</from-outcome>
+   <to-view-id>/pages/common/CSUsersToGroup.jsp</to-view-id>
+  </navigation-case>
+  <navigation-case>
+   <from-outcome>usersToRole</from-outcome>
+   <to-view-id>/pages/common/CSUsersToRole.jsp</to-view-id>
+  </navigation-case>
+  <navigation-case>
+   <from-outcome>actionsToRoles</from-outcome>
+   <to-view-id>/pages/common/CSActionsToRole.jsp</to-view-id>
+  </navigation-case>
+  <navigation-case>
+   <from-outcome>rolesToGroup</from-outcome>
+   <to-view-id>/pages/common/CSRolesToGroup.jsp</to-view-id>
+  </navigation-case>
+  <navigation-case>
+   <from-outcome>loggedOut</from-outcome>
+   <to-view-id>/CSLoginForm.jsp</to-view-id>
+   <redirect/>
+  </navigation-case>
+  <navigation-case>
+   <from-outcome>searchMessages</from-outcome>
+   <to-view-id>/pages/messages/CSMessagesSearch.jsp</to-view-id>
+  </navigation-case>
+  <navigation-case>
+   <from-outcome>editUser</from-outcome>
+   <to-view-id>/pages/users/CSUserEdit.jsp</to-view-id>
+  </navigation-case>
+  <navigation-case>
+   <from-outcome>searchServers</from-outcome>
+   <to-view-id>/pages/servers/CSServerSearch.jsp</to-view-id>
+  </navigation-case>
+  <navigation-case>
+   <from-outcome>editServer</from-outcome>
+   <to-view-id>/pages/servers/CSServerEdit.jsp</to-view-id>
+  </navigation-case>
+  <navigation-case>
+   <from-outcome>messageDetails</from-outcome>
+   <to-view-id>/pages/messages/CSMessagesDetails.jsp</to-view-id>
+  </navigation-case>
+ </navigation-rule>
+ <navigation-rule>
+  <from-view-id>/loginError.jsp</from-view-id>
+  <navigation-case>
+   <from-outcome>loginPage</from-outcome>
+   <to-view-id>/index.jsp</to-view-id>
+  </navigation-case>
+ </navigation-rule>
+ <validator>
+  <validator-id>longLenghtValidator</validator-id>
+  <validator-class>org.commsuite.web.validator.LongLenghtValidator</validator-class>
+ </validator>
+ <validator>
+  <validator-id>shortLenghtValidator</validator-id>
+  <validator-class>org.commsuite.web.validator.ShortLenghtValidator</validator-class>
+ </validator>
+ <validator>
+  <validator-id>emailAddressValidator</validator-id>
+  <validator-class>org.commsuite.web.validator.EmailAddressValidator</validator-class>
+ </validator>
+ <validator>
+  <validator-id>phoneNumberValidator</validator-id>
+  <validator-class>org.commsuite.web.validator.PhoneNumberValidator</validator-class>
+ </validator>
+ <validator>
+  <validator-id>postalCodeValidator</validator-id>
+  <validator-class>org.commsuite.web.validator.PostalCodeValidator</validator-class>
+ </validator>
+ <application>
+  <variable-resolver>org.springframework.web.jsf.DelegatingVariableResolver</variable-resolver>
+  <locale-config>
+   <default-locale>en_EN</default-locale>
+   <supported-locale id="en_EN">en_EN</supported-locale>
+   <supported-locale id="pl_PL">pl_PL</supported-locale>
+  </locale-config>
+  <message-bundle>org.commsuite.web.locale.Locale_en</message-bundle>
+  <message-bundle>org.commsuite.web.locale.Locale_pl</message-bundle>
+ </application>
+ <factory/>
+ <lifecycle/>
 </faces-config>
Modified: trunk/code/CSAdminPanel/WebContent/loginError.jsp
===================================================================
--- trunk/code/CSAdminPanel/WebContent/loginError.jsp	2006-09-26 12:02:23 UTC (rev 162)
+++ trunk/code/CSAdminPanel/WebContent/loginError.jsp	2006-09-29 17:30:36 UTC (rev 163)
@@ -1,6 +1,6 @@
 <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
 <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
-<f:view>
+<f:view locale="#{languageSelectionBean.locale}">
 <f:loadBundle basename="org.commsuite.web.locale.Locale" var="Locale" />
 	<html>
 		<head>
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
 | 
| 
     
      
      
      From: <zd...@us...> - 2006-09-26 12:02:49
      
     
   | 
Revision: 162
          http://svn.sourceforge.net/comsuite/?rev=162&view=rev
Author:   zduniak
Date:     2006-09-26 05:02:23 -0700 (Tue, 26 Sep 2006)
Log Message:
-----------
- Devices emulator implemented - working just fine
- Minor improvements in SAP-related module
Modified Paths:
--------------
    trunk/code/CSMiddleware/src/org/commsuite/devices/Device.java
    trunk/code/CSMiddleware/src/org/commsuite/sap/JCoFunctionTranslator.java
    trunk/code/CSMiddleware/src/org/commsuite/sap/SAPComm.java
    trunk/code/CSMiddleware/src/org/commsuite/sap/SAPCommManager.java
    trunk/code/CSMiddleware/src/org/commsuite/tests/emulator/SAPEmulatingServlet.java
Added Paths:
-----------
    trunk/code/CSMiddleware/src/org/commsuite/tests/emulator/res/sample.pdf
    trunk/code/CSMiddleware/war/deviceemulator.jsp
Modified: trunk/code/CSMiddleware/src/org/commsuite/devices/Device.java
===================================================================
--- trunk/code/CSMiddleware/src/org/commsuite/devices/Device.java	2006-09-24 12:42:52 UTC (rev 161)
+++ trunk/code/CSMiddleware/src/org/commsuite/devices/Device.java	2006-09-26 12:02:23 UTC (rev 162)
@@ -236,7 +236,6 @@
 
             notifySendStateChange(messageId, OutboundMessage.State.FAILED);
         }
-    	
     }
 
     /**
Modified: trunk/code/CSMiddleware/src/org/commsuite/sap/JCoFunctionTranslator.java
===================================================================
--- trunk/code/CSMiddleware/src/org/commsuite/sap/JCoFunctionTranslator.java	2006-09-24 12:42:52 UTC (rev 161)
+++ trunk/code/CSMiddleware/src/org/commsuite/sap/JCoFunctionTranslator.java	2006-09-26 12:02:23 UTC (rev 162)
@@ -174,7 +174,7 @@
 	// [PW] REFACTOR this method is defenitely too long.. [SK]
 	// Cyclomatic Complexity of 26
 	public static JCO.Function getJCOFunctionFromMessage(Message message,
-			IRepository repository) {
+			IRepository repository, String mainReceiver) {
 		final JCO.Function f = repository
 				.getFunctionTemplate(SX_OBJECT_RECEIVE).getFunction();
 		if (null == f) {
@@ -427,7 +427,7 @@
 		receivers.appendRow();
 		// RECEIVER field must contains valid, SAP-instance-server unique e-mail
 		// address:
-		receivers.setValue(message.getReceiver(), "RECEIVER");
+		receivers.setValue(mainReceiver != null ? mainReceiver : message.getReceiver(), "RECEIVER");
 		receivers.setValue("INT", "ADR_TYP");
 		receivers.setValue("X", "EXPRESS");
 		receivers.setValue("X", "NOTIF_DEL");
Modified: trunk/code/CSMiddleware/src/org/commsuite/sap/SAPComm.java
===================================================================
--- trunk/code/CSMiddleware/src/org/commsuite/sap/SAPComm.java	2006-09-24 12:42:52 UTC (rev 161)
+++ trunk/code/CSMiddleware/src/org/commsuite/sap/SAPComm.java	2006-09-26 12:02:23 UTC (rev 162)
@@ -225,8 +225,7 @@
 						&& 0 == messages[0].getSentContents().size()) {
 					final String errMsg = "Message without any content is not supported";
 					logger.error(errMsg);
-					throw new JCO.AbapException("INTERNAL",
-							errMsg);
+					throw new JCO.AbapException("INTERNAL", errMsg);
 				}
 
 				if (null == msgManager) {
@@ -477,12 +476,10 @@
 
 		JCO.Client client = null;
 		try {
-			// setting correct receiver:
-			message.setReceiver(instanceDef.getAdminEmail());
-
 			// converting message to JCO.Function:
 			final JCO.Function f = JCoFunctionTranslator
-					.getJCOFunctionFromMessage(message, repository);
+					.getJCOFunctionFromMessage(message, repository, instanceDef
+							.getAdminEmail());
 
 			// REVIEW: is below synchronization necessary ?
 			// synchronized (this) {
@@ -490,8 +487,10 @@
 			client.execute(f);
 			// }
 			final boolean send = checkFunctionReturn(f);
-			logger.debug("Message to [" + message.getReceiver()
-					+ "] sent status: " + send);
+			if (logger.isDebugEnabled()) {
+				logger.debug("Message to [" + message.getReceiver()
+						+ "] sent status: " + send);
+			}
 			return send;
 		} catch (Throwable t) {
 			logger.fatal("Exception during sending the message to SAP server",
Modified: trunk/code/CSMiddleware/src/org/commsuite/sap/SAPCommManager.java
===================================================================
--- trunk/code/CSMiddleware/src/org/commsuite/sap/SAPCommManager.java	2006-09-24 12:42:52 UTC (rev 161)
+++ trunk/code/CSMiddleware/src/org/commsuite/sap/SAPCommManager.java	2006-09-26 12:02:23 UTC (rev 162)
@@ -37,7 +37,7 @@
 import com.sap.mw.jco.JCO;
 
 /**
- * TODO: [MZ] implement! REVIEW: [MZ] synchronize in appropriate scope TODO: [MZ] Complete comments.
+ * REVIEW: [MZ] synchronize in appropriate scope
  * 
  * @since 1.0
  * @author Marcin Zduniak
@@ -45,7 +45,7 @@
  */
 public class SAPCommManager implements ISAPCommManager {
 
-    // TODO: przeniesc do pliku properties
+    // TODO: move to properties file
     private final static int TRACE_LEVEL = 10;
 
     private static final Logger logger = Logger.getLogger(SAPCommManager.class);
Modified: trunk/code/CSMiddleware/src/org/commsuite/tests/emulator/SAPEmulatingServlet.java
===================================================================
--- trunk/code/CSMiddleware/src/org/commsuite/tests/emulator/SAPEmulatingServlet.java	2006-09-24 12:42:52 UTC (rev 161)
+++ trunk/code/CSMiddleware/src/org/commsuite/tests/emulator/SAPEmulatingServlet.java	2006-09-26 12:02:23 UTC (rev 162)
@@ -44,66 +44,71 @@
  */
 public class SAPEmulatingServlet extends HttpServlet {
 
-    private static final long serialVersionUID = 9071969523995027656L;
+	private static final long serialVersionUID = 9071969523995027656L;
 
-    public SAPEmulatingServlet() {
-        super();
-    }
+	public SAPEmulatingServlet() {
+		super();
+	}
 
-    @Override
-    protected void service(HttpServletRequest req, HttpServletResponse res)
-            throws ServletException, IOException {
-        final String action = req.getParameter("a");
-        final PrintWriter out = res.getWriter();
-        out.print("<html>");
-        if (null == action) {
-            showAllFiles(out);
-        } else {
-            try {
-                simulateJCOFunction(action);
-                out.print("Messages sent");
-            } catch (Throwable e) {
-                out.print("Exception: ");
-                out.print(e.getMessage());
-                e.printStackTrace();
-            }
-        }
-        out.print("</html>");
-    }
+	@Override
+	protected void service(HttpServletRequest req, HttpServletResponse res)
+			throws ServletException, IOException {
+		final String action = req.getParameter("a");
+		final PrintWriter out = res.getWriter();
+		out.print("<html>");
+		if (null == action) {
+			showAllFiles(out);
+		} else {
+			try {
+				simulateJCOFunction(action);
+				out.print("Messages sent");
+			} catch (Throwable e) {
+				out.print("Exception: ");
+				out.print(e.getMessage());
+				e.printStackTrace();
+			}
+		}
+		out.print("</html>");
+	}
 
-    private void simulateJCOFunction(String action) throws IOException, ClassNotFoundException {
-        final String path = getResPath() + "/" + action;
-        final InputStream is = new FileInputStream(new File(path));
-        final ObjectInputStream objIn = new ObjectInputStream(is);
-        final Object obj = objIn.readObject();
+	private void simulateJCOFunction(String action) throws IOException,
+			ClassNotFoundException {
+		final String path = getResPath() + "/" + action;
+		final InputStream is = new FileInputStream(new File(path));
+		final ObjectInputStream objIn = new ObjectInputStream(is);
+		final Object obj = objIn.readObject();
 
-        if (obj instanceof JCO.Function) {
-            final JCO.Function function = (JCO.Function) obj;
-            for (ISAPComm isapComm : SpringMiddlewareContext.getSAPCommManager().getSapComms().values()) {
-                final SAPComm sapComm = (SAPComm) isapComm;
-                sapComm.handleJCORequest(function, "ISO8859_2");
-            }
-        }
-    }
+		if (obj instanceof JCO.Function) {
+			final JCO.Function function = (JCO.Function) obj;
+			for (ISAPComm isapComm : SpringMiddlewareContext
+					.getSAPCommManager().getSapComms().values()) {
+				final SAPComm sapComm = (SAPComm) isapComm;
+				sapComm.handleJCORequest(function, "ISO8859_2");
+			}
+		}
+	}
 
-    private String getResPath() {
-        final String path = this.getClass().getResource("/").getPath() + "/"
-                + this.getClass().getPackage().getName().replace('.', '/') + "/res";
-        return path;
-    }
+	private String getResPath() {
+		final String path = this.getClass().getResource("/").getPath() + "/"
+				+ this.getClass().getPackage().getName().replace('.', '/')
+				+ "/res";
+		return path;
+	}
 
-    private void showAllFiles(PrintWriter out) {
-        final File resPath = new File(getResPath());
-        
-        if (null == resPath) {
-            out.append("Could not find path to files.");
-            return;
-        }
-        
-        out.append("Available test messages:<br/><br/>");
-        for (String name : resPath.list()) {
-            out.append("<a href='?a=" + name + "'>" + name + "</a><br/>");
-        }
-    }
+	private void showAllFiles(PrintWriter out) {
+		final File resPath = new File(getResPath());
 
+		if (null == resPath) {
+			out.append("Could not find path to files.");
+			return;
+		}
+
+		out.append("Available test messages:<br/><br/>");
+		for (String name : resPath.list()) {
+			if (name.endsWith(".ser")) {
+				out.append("<a href='?a=" + name + "'>" + name + "</a><br/>");
+			}
+		}
+	}
+
 }
Added: trunk/code/CSMiddleware/src/org/commsuite/tests/emulator/res/sample.pdf
===================================================================
(Binary files differ)
Property changes on: trunk/code/CSMiddleware/src/org/commsuite/tests/emulator/res/sample.pdf
___________________________________________________________________
Name: svn:mime-type
   + application/pdf
Added: trunk/code/CSMiddleware/war/deviceemulator.jsp
===================================================================
--- trunk/code/CSMiddleware/war/deviceemulator.jsp	                        (rev 0)
+++ trunk/code/CSMiddleware/war/deviceemulator.jsp	2006-09-26 12:02:23 UTC (rev 162)
@@ -0,0 +1,133 @@
+<%
+/* $Id $
+ * 
+ * Communications Suite.
+ * Copyright (C) 2006 Szymon Kuzniak, Rafal Malinowski, Marek Musielak, Pawel Walkiewicz,
+ * Agnieszka Wisniewska, Marcin Zduniak, Liliana Ziolek.
+ * 
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the <a href="http://www.gnu.org/licenses/gpl.html">GNU General Public License</a>
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+ * 
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ * 
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA
+ */
+%><?xml version="1.0" encoding="UTF-8" ?>
+<%@ page language="java" contentType="text/html; charset=UTF-8"
+	pageEncoding="UTF-8"
+	import="org.commsuite.model.*,java.util.*,org.commsuite.enums.*,org.commsuite.util.*,java.io.*,org.commsuite.messaging.*"%>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
+<title>Device emulator</title>
+</head>
+<body>
+<h3>Device emulator</h3>
+<%
+		if (null != request.getParameter("msgSent")) {
+		final boolean faxType = "FAX".equalsIgnoreCase(request
+		.getParameter("type"));
+
+		final Message message = new Message();
+		message.setCreationDate(new Date());
+		message
+		.setDescription("Message received from emulated device: "
+				+ request.getParameter("type"));
+		message.setDirection(Direction.INBOUND);
+
+		message.setEndDate(null);
+
+		message.setExpirationDate(null);
+
+		message
+		.setFormatType(faxType ? FormatType.FAX
+				: FormatType.SMS);
+		message.setLastProcessDate(new Date());
+		message.setLastProcessMessage(message.getDescription());
+
+		message.setPriority(Priority.LEVEL_4);
+
+		message.setReceiver(request.getParameter("receiver"));
+		message.setSapID(RandomGUID.getGUID());
+
+		message.setSendDate(new Date());
+		message.setSender(request.getParameter("sender"));
+		message.setStartDate(new Date());
+		message.setStatus(Status.RECEIVED_FROM_EXTERNAL_DEVICE);
+
+		final Contents contents = new Contents();
+		if (faxType) {
+			// FAX:
+			final String pathToSamplePDF = "/org/commsuite/tests/emulator/res/sample.pdf";
+			final InputStream is = getClass().getResourceAsStream(
+			pathToSamplePDF);
+			contents.setData(IOUtil.convertIS2Bytes(is));
+			contents.setMimeType(Contents.MIME_TYPE_PDF);
+		} else {
+			// SMS:
+			contents.setData(request.getParameter("smstxt").getBytes());
+			contents.setMimeType(Contents.MIME_TYPE_TEXT_PLAIN);
+		}
+		contents.setDescription(message.getDescription());
+
+		message.addContents(contents);
+
+		SpringMiddlewareContext.getMessageManager()
+		.saveMessage(message);
+
+		// processing external filters (plugins):
+		boolean stopProcessing = false;
+		final FilterManager filterManager = SpringMiddlewareContext
+		.getFilterManager();
+		if (!filterManager.processMessage(message)) {
+			stopProcessing = true;
+		}
+
+		if (!stopProcessing) {
+			SpringMiddlewareContext.getJMSManager().sendMessage(
+			SpringMiddlewareBeansConstants.M_SAP_IN_QUEUE_NAME,
+			message);
+
+		}
+%>
+<b>Message sent<br/></b>
+<%
+}
+%>
+<form method="post"><input type="hidden" name="msgSent" value="1" />
+<table border="0">
+	<tr>
+		<td>Sender:</td>
+		<td><input type="text" name="sender" value="48600123456" /></td>
+	</tr>
+	<tr>
+		<td>Receiver:</td>
+		<td><input type="text" name="receiver" value="48600654321" /></td>
+	</tr>
+	<tr>
+		<td>Fax/SMS:</td>
+		<td><input type="radio" name="type" value="FAX" checked /> Fax<br />
+		<input type="radio" name="type" value="SMS" /> SMS<br />
+		</td>
+	</tr>
+	<tr>
+		<td>SMS text:</td>
+		<td><input type="text" name="smstxt"
+			value="Hello world of SMS funs" /></td>
+	</tr>
+	<tr>
+		<td>FAX file:</td>
+		<td>For faxes appropriate sample PDF file will be used</td>
+	</tr>
+</table>
+<input type="submit" value="Send" /></form>
+</body>
+</html>
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
 | 
| 
     
      
      
      From: <zd...@us...> - 2006-09-24 12:43:05
      
     
   | 
Revision: 161
          http://svn.sourceforge.net/comsuite/?rev=161&view=rev
Author:   zduniak
Date:     2006-09-24 05:42:52 -0700 (Sun, 24 Sep 2006)
Log Message:
-----------
English translation
Modified Paths:
--------------
    trunk/code/CSAdminPanel/JavaSource/org/commsuite/web/locale/Locale_en.properties
    trunk/code/CSAdminPanel/JavaSource/org/commsuite/web/locale/Locale_pl.properties
    trunk/code/CSAdminPanel/WebContent/WEB-INF/faces-config.xml
Modified: trunk/code/CSAdminPanel/JavaSource/org/commsuite/web/locale/Locale_en.properties
===================================================================
--- trunk/code/CSAdminPanel/JavaSource/org/commsuite/web/locale/Locale_en.properties	2006-09-23 22:33:36 UTC (rev 160)
+++ trunk/code/CSAdminPanel/JavaSource/org/commsuite/web/locale/Locale_en.properties	2006-09-24 12:42:52 UTC (rev 161)
@@ -54,246 +54,245 @@
 MENU_ROLES=Roles
 MENU_MAIN=Home
 # user
-USER_TITLE_ADD=Dodaj u\u017cytkownika
-USER_TITLE_EDIT=Edycja u\u017cytkownika
-USER_TITLE_SEARCH=Wyszukiwanie u\u017cytkownik\u00f3w
-USER_TITLE_LIST=Znalezieni u\u017cytkownicy
-USER_DATA_PERSONAL=Dane personalne
-USER_DATA_COMPANY=Dane firmowe
-USER_DATA_ADDRESS=Adres i dane kontaktowe
-USER_DATA_ACCOUNT=Dane o koncie
-USER_FIRSTNAME=Imi\u0119
-USER_LASTNAME=Nazwisko
+USER_TITLE_ADD=Add user
+USER_TITLE_EDIT=User edit
+USER_TITLE_SEARCH=Searching for users
+USER_TITLE_LIST=Found users
+USER_DATA_PERSONAL=Personal data
+USER_DATA_COMPANY=Company data
+USER_DATA_ADDRESS=Address and contact data
+USER_DATA_ACCOUNT=Account data
+USER_FIRSTNAME=Firstname
+USER_LASTNAME=Lastname
 USER_LOGIN=Login
-USER_PASSWORD=Has\u0142o
-USER_REPEAT=Powt\u00f3rz
-USER_COMPANY_POSITION=Stanowisko
-USER_COMAPNY_DEPARTAMENT=Wydzia\u0142
-USER_COMAPNY_ENABLED=Aktywne
+USER_PASSWORD=Password
+USER_REPEAT=Repeat
+USER_COMPANY_POSITION=Position
+USER_COMAPNY_DEPARTAMENT=Department
+USER_COMAPNY_ENABLED=Enabled
 USER_ADDRESS_EMAIL=e-mail
-USER_ADDRESS_PHONE=Telefon
+USER_ADDRESS_PHONE=Phone
 USER_ADDRESS_FAX=Fax
-USER_ADDRESS_MOBILE=Tel. kom\u00f3rkowy
-USER_ADDRESS_STREET=Ulica
-USER_ADDRESS_CITY=Miasto
-USER_ADDRESS_STATE=Wojew\u00f3dztwo
-USER_ADDRESS_POSATAL=Kod pocztowy
-USER_ADDRESS_COUNTRY=Kraj
-USER_ADDRESS_LANGUAGE=J\u0119zyk
-USER_ADDRESS_TIMEZONE=Str. czasow
-USER_CREATED=Data utworzenia
-USER_LAST_LOGON=Ostatnie logowanie
-USER_LAST_PASSWORD=Ostatnia zmiana has\u0142a
+USER_ADDRESS_MOBILE=Mobile
+USER_ADDRESS_STREET=Street
+USER_ADDRESS_CITY=City
+USER_ADDRESS_STATE=State
+USER_ADDRESS_POSATAL=Zip
+USER_ADDRESS_COUNTRY=Country
+USER_ADDRESS_LANGUAGE=Language
+USER_ADDRESS_TIMEZONE=Time zone
+USER_CREATED=Created
+USER_LAST_LOGON=Last logon
+USER_LAST_PASSWORD=Last password change
 # role
-ROLE_TITLE_EDIT=Edycja roli
-ROLE_TITLE_ADD=Dodawanie nowej roli
-ROLE_TITLE_ACTION_NAME=Nazwa akcji
-ROLE_TITLE_ACTION_DESCRIPTION=Opis akcji
-ROLE_TITLE_SEARCH=Wyszukiwanie r\u00f3l
-ROLE_EDIT_ACTIONS= - przypisywanie akcji
-ROLE_EDIT_USERS= - przypisywanie u\u017cytkownik\u00f3w
-ROLE_NAME=Nazwa roli
-ROLE_ADD_ALL=Dodaj wszystkie role
-ROLE_ADD_SELECTED=Dodaj zaznaczone role
-ROLE_REMOVE_SELECTED=Usu\u0144 zaznaczone role
-ROLE_REMOVE_ALL=Usu\u0144 wszystkie przypisane role
-ROLE_ACTIONS=Wybierz akcje dla tej roli
-ROLE_ACTIONS_AVAILABLE=Dost\u0119pne akcje
-ROLE_ACTIONS_SELECTED=Wybrane akcje
-ROLE_CURRENT_ACTIONS=Akcje przypisane do tej roli
-ROLE_CURRENT_USERS=U\u017cytkownicy przypisani do tej roli
-ROLE_FOUND=Znalezione role:
+ROLE_TITLE_EDIT=Role edit
+ROLE_TITLE_ADD=Add new role
+ROLE_TITLE_ACTION_NAME=Action name
+ROLE_TITLE_ACTION_DESCRIPTION=Action description
+ROLE_TITLE_SEARCH=Searching for roles
+ROLE_EDIT_ACTIONS= - actions assignment
+ROLE_EDIT_USERS= - users assignment
+ROLE_NAME=Role name
+ROLE_ADD_ALL=Add all roles
+ROLE_ADD_SELECTED=Add selected role
+ROLE_REMOVE_SELECTED=Remove selected role
+ROLE_REMOVE_ALL=Remove all assigned roles
+ROLE_ACTIONS=Choose action for selected role
+ROLE_ACTIONS_AVAILABLE=Available actions
+ROLE_ACTIONS_SELECTED=Selected actions
+ROLE_CURRENT_ACTIONS=Actions assigned to selected role
+ROLE_CURRENT_USERS=Users assigned to selected role
+ROLE_FOUND=Found roles:
 # server 
-SERVER_TITLE_ADD=Dodaj nowy serwer
-SERVER_TITLE_EDIT=Edycja serwera
-SERVER_TITLE_SEARCH=Wyszukiwanie serwer\u00f3w
-SERVER_TITLE_LIST=Lista serwer\u00f3w
-SERVER_SUBTITLE_INFO=Nazwa serwera
-SERVER_SUBTITLE_CONF=Ustawienia
-SERVER_SUBTITLE_USER=Dane u\u017cytkowika
-SERVER_SUBTITLE_BALANCING=R\u00f3wnowa\u017cenie obci\u0105\u017ce\u0144
-SERVER_TEST_BUTTON=Testuj serwer
-SERVER_STATE_INFO=Stan serwera
-SERVER_NAME=Nazwa serwera
-SERVER_R3NAME=Nazwa serwera R/3
-SERVER_MAX_CONNECTIONS=Maksymalna liczba po\u0142\u0105cze\u0144
-SERVER_DEFAULT_INSTANCE=Instancja domy\u015blna
-SERVER_GROUP=Grupa
-SERVER_SYSTEM_NUMBER=Numer systemowy
-SERVER_LOAD_BALANCING=R\u00f3wnowa\u017cenie obci\u0105\u017ce\u0144
-SERVER_LOAD_BALANCING_ENABLED=R\u00f3wnowa\u017cenie obci\u0105\u017ce\u0144: w\u0142\u0105czone
-SERVER_LOAD_BALANCING_DISABLED=R\u00f3wnowa\u017cenie obci\u0105\u017ce\u0144: wy\u0142\u0105czone
+SERVER_TITLE_ADD=Add server
+SERVER_TITLE_EDIT=Edit server
+SERVER_TITLE_SEARCH=Searching for servers
+SERVER_TITLE_LIST=Servers list
+SERVER_SUBTITLE_INFO=Server name
+SERVER_SUBTITLE_CONF=Settings
+SERVER_SUBTITLE_USER=User data
+SERVER_SUBTITLE_BALANCING=Load balancing
+SERVER_TEST_BUTTON=Server testing
+SERVER_STATE_INFO=Server state
+SERVER_NAME=Server name
+SERVER_R3NAME=R/3 server name
+SERVER_MAX_CONNECTIONS=Max. connections
+SERVER_DEFAULT_INSTANCE=Default server
+SERVER_GROUP=Group
+SERVER_SYSTEM_NUMBER=System number
+SERVER_LOAD_BALANCING=Load balancing
+SERVER_LOAD_BALANCING_ENABLED=Load balancing: on
+SERVER_LOAD_BALANCING_DISABLED=Load balancing: off
 SERVER_PROG_ID=Prog id
 SERVER_UNICODE=Unicode
-SERVER_ACTIVE_INSTANCE=Uaktywnij
-SERVER_ACTIVE=Instancja aktywna
+SERVER_ACTIVE_INSTANCE=Activate
+SERVER_ACTIVE=Server active
 SERVER_GWHOST=GWHost
 SERVER_GWSERVER=GWServer
-SERVER_MANDANT=Klient(mandant)
-SERVER_USER=U\u017cytkownik
-SERVER_PASSWORD=Has\u0142o
-SERVER_PASSWORD_REPEAT=Powt\u00f3rz has\u0142o
-SERVER_ADM_EMAIL=e-mail administratora
+SERVER_MANDANT=Client (mandant)
+SERVER_USER=User
+SERVER_PASSWORD=Password
+SERVER_PASSWORD_REPEAT=Repeat password
+SERVER_ADM_EMAIL=Admin e-mail
 SERVER_HOST=Host
 # messages
-MESSAGE_TITLE_LIST=Wiadomo\u015bci
-MESSAGE_TITLE_SEARCH=Wyszukiwanie wiadomo\u015bci
-MESSAGE_DATA_GENERAL=Og\u00f3lne
-MESSAGE_DATA_DATE=Data
-MESSAGE_DATA_DETAILS=Informacje szczeg\u00f3\u0142owe
-MESSAGE_DATA_SAPID=Identyfikator SAP
-MESSAGE_DESCRIPTION=Temat
-MESSAGE_SENDER=Nadawca
-MESSAGE_RECEIVER=Odbiorca
-MESSAGE_DATE_SEND=Data wys\u0142ania
-MESSAGE_DATE_CREATION=Data utworzenia
-MESSAGE_DATE_START=Data rozpocz\u0119cia
-MESSAGE_DATE_END=Data zako\u0144czenia
-MESSAGE_DATE_EXPIRATION=Data wyga\u015bni\u0119cia
-MESSAGE_DATE_LAST_PROCESS=Data ostatniego przetworzenia
-MESSAGE_SAP_ID=Id servera SAP
-MESSAGE_ID=Id wiadomo\u015bci
-MESSAGE_DIRECTION=Kierunek
+MESSAGE_TITLE_LIST=Messages
+MESSAGE_TITLE_SEARCH=Searching for messages
+MESSAGE_DATA_GENERAL=General
+MESSAGE_DATA_DATE=Date
+MESSAGE_DATA_DETAILS=Details
+MESSAGE_DATA_SAPID=SAP ID
+MESSAGE_DESCRIPTION=Title
+MESSAGE_SENDER=Sender
+MESSAGE_RECEIVER=Receiver
+MESSAGE_DATE_SEND=Send date
+MESSAGE_DATE_CREATION=Creation date
+MESSAGE_DATE_START=Start date
+MESSAGE_DATE_END=End date
+MESSAGE_DATE_EXPIRATION=Expiration date
+MESSAGE_DATE_LAST_PROCESS=Last processing date
+MESSAGE_SAP_ID=SAP Server ID
+MESSAGE_ID=Message ID
+MESSAGE_DIRECTION=Direction
 MESSAGE_STATUS=Status
-MESSAGE_PRIORITY=Priorytet
-MESSAGE_FORMAT_TYPE=Format
-MESSAGE_LAST_PROCESS=Ostatnio przetwarzane
-MESSAGE_CONTENTS_TITLE=Tytu\u0142
-MESSAGE_CONTENTS_MIME_TYPE=Mime
-MESSAGE_CONTENTS_CONTENT_TYPE=Rodzaj wiadomo\u015bci
-MESSAGE_CONTENTS_NAME=Zawarto\u015b\u0107
-MESSAGE_CONTENTS_STATE=Stan
-MENU_MESSAGE_LIST=Lista wiadomo\u015bci
-MENU_MESSAGE_SEARCH=Wyszukiwanie wiadomo\u015bci
-MESSAGE_RESUBMIT=Zakolejkuj ponownie
+MESSAGE_PRIORITY=Priority
+MESSAGE_FORMAT_TYPE=Format type
+MESSAGE_LAST_PROCESS=Last processing message
+MESSAGE_CONTENTS_TITLE=Title
+MESSAGE_CONTENTS_MIME_TYPE=Mime type
+MESSAGE_CONTENTS_CONTENT_TYPE=Content type
+MESSAGE_CONTENTS_NAME=Content
+MESSAGE_CONTENTS_STATE=State
+MENU_MESSAGE_LIST=Messages list
+MENU_MESSAGE_SEARCH=Searching for messages
+MESSAGE_RESUBMIT=Enqueue again
 # action
-ACTION_TITLE_ADD=Dodawanie nowych akcji
-ACTION_TITLE_EDIT=Edycja akcji
-ACTION_TITLE_SEARCH=Wyszukiwanie akcji
-ACTION_NAME=Nazwa akcji
-ACTION_FOUND=Znalezione akcje
+ACTION_TITLE_ADD=Add action
+ACTION_TITLE_EDIT=Action editi
+ACTION_TITLE_SEARCH=Searching for actions
+ACTION_NAME=Action name
+ACTION_FOUND=Found actions
 # groups
-GROUP_TITLE_EDIT=Edycja grupy
-GROUP_TITLE_ADD=Dodanie nowej grupy
-GROUP_TITLE_SEARCH=Wyszukiwanie grup
-GROUP_TITLE_ROLE_NAME=Nazwa roli
-GROUP_TITLE_ROLE_DESCRIPTION=Opis roli
-GROUP_EDIT_ASSIGN_ROLE= - przypisywanie r\u00f3l	
-GROUP_EDIT_ASSIGN_USER= - przypisywanie u\u017cytkownik\u00f3w
-GROUP_NAME=Nazwa grupy: 
-GROUP_CURRENT_ROLES=Role przypisane do tej grupy
-GROUP_CURRENT_USERS=U\u017cytkownicy przypisani do tej grupy
-GROUP_ROLE_AVAILABLE=Dost\u0119pne role
-GROUP_ROLE_SELECTED=Role do przypisania
-GROUP_FOUND=Znalezione grupy
+GROUP_TITLE_EDIT=Group edit
+GROUP_TITLE_ADD=Add group
+GROUP_TITLE_SEARCH=Searching for groups
+GROUP_TITLE_ROLE_NAME=Role name
+GROUP_TITLE_ROLE_DESCRIPTION=Role description
+GROUP_EDIT_ASSIGN_ROLE= - role assignment
+GROUP_EDIT_ASSIGN_USER= - users assignment
+GROUP_NAME=Group name:
+GROUP_CURRENT_ROLES=Roles assiged to selected group
+GROUP_CURRENT_USERS=Users assigned to selected group
+GROUP_ROLE_AVAILABLE=Available roles
+GROUP_ROLE_SELECTED=Roles to assign
+GROUP_FOUND=Found groups
 # menus
-MENU_ADD_ACTION=Dodawanie akcji
-MENU_SEARCH_ACTIONS=Wyszukiwanie akcji
-MENU_ADD_GROUP=Dodawanie grup
-MENU_EDIT_GROUP=Edycja grup
-MENU_ADD_ROLE=Dodawanie r\u00f3l
-MENU_EDIT_ROLE=Edycja r\u00f3l
-MENU_ADD_USER=Dodawanie u\u017cytkownik\u00f3w
-MENU_SEARCH_USER=Wyszukiwanie u\u017cytkownik\u00f3w
-MENU_ADD_INSTANCE=Dodawanie server\u00f3w
-MENU_LIST_INSTANCES=Wyszukiwanie server\u00f3w
+MENU_ADD_ACTION=Add action
+MENU_SEARCH_ACTIONS=Searching for actions
+MENU_ADD_GROUP=Add group
+MENU_EDIT_GROUP=Group edit
+MENU_ADD_ROLE=Add role
+MENU_EDIT_ROLE=Role edit
+MENU_ADD_USER=Add user
+MENU_SEARCH_USER=Searching for users
+MENU_ADD_INSTANCE=Add server
+MENU_LIST_INSTANCES=Searching for servers
 #messages
-MESSAGE_ACTION_SUCCESSFULL=Akcja dodana pomy\u015blnie.
-MESSAGE_ACTION_SUCCESSFULL_DELETE=Akcja usuni\u0119ta pomy\u015blnie.
-MESSAGE_ACTION_SUCCESSFULL_UPDATE=Akcja zmodyfikowana pomy\u015blnie.
-MESSAGE_ACTION_ERROR_ADD= podczas dodawania akcji. 
-MESSAGE_ACTION_ERROR_DELETE= podczas usuwania akcji. 
-MESSAGE_ACTION_ERROR_UPDATE= podczas modyfikowania akcji. 
-MESSAGE_ACTION_ERROR_FETCH= podczas pobierania listy akcji.
-MESSAGE_ACTION_ERROR_NPE=Nie wybrano \u017cadnej akcji.
-DUPLICATED_ACTION_MESSAGE=Akcja o podanej nazwie ju\u017c istnieje w bazie danych.
+MESSAGE_ACTION_SUCCESSFULL=Action added successfully
+MESSAGE_ACTION_SUCCESSFULL_DELETE=Action removed successfully
+MESSAGE_ACTION_SUCCESSFULL_UPDATE=Action updated successfully
+MESSAGE_ACTION_ERROR_ADD= while action adding
+MESSAGE_ACTION_ERROR_DELETE= while action removing
+MESSAGE_ACTION_ERROR_UPDATE= while action updating
+MESSAGE_ACTION_ERROR_FETCH= while fetching actions list
+MESSAGE_ACTION_ERROR_NPE=You haven't selected any action
+DUPLICATED_ACTION_MESSAGE=Action with given name already exists in database
 
-MESSAGE_ROLE_SUCCESSFULL=Rola dodana pomy\u015blnie.
-MESSAGE_ROLE_SUCCESSFULL_DELETE=Rola usuni\u0119ta pomy\u015blnie.
-MESSAGE_ROLE_SUCCESSFULL_UPDATE=Rola zmodyfikowana pomy\u015blnie.
-MESSAGE_ROLE_ERROR_ADD= podczas dodawania roli. 
-MESSAGE_ROLE_ERROR_DELETE= podczas usuwania roli. 
-MESSAGE_ROLE_ERROR_UPDATE= podczas modyfikacji roli. 
-MESSAGE_ROLE_ERROR_FETCH= podczas pobierania listy r\u00f3l.
-DUPLICATED_ROLE_MESSAGE=Rola o podanej nazwie ju\u017c istnieje w bazie danych.
+MESSAGE_ROLE_SUCCESSFULL=Role added successfully
+MESSAGE_ROLE_SUCCESSFULL_DELETE=Role removed successfully
+MESSAGE_ROLE_SUCCESSFULL_UPDATE=Role updated successfully
+MESSAGE_ROLE_ERROR_ADD= while role adding
+MESSAGE_ROLE_ERROR_DELETE= while role removing
+MESSAGE_ROLE_ERROR_UPDATE= while role updating
+MESSAGE_ROLE_ERROR_FETCH= while fetching roles list
+DUPLICATED_ROLE_MESSAGE=Role with given name already exists in database
 
-MESSAGE_GROUP_SUCCESSFULL=Grupa dodana pomy\u015blnie.
-MESSAGE_GROUP_SUCCESSFULL_DELETE=Grupa usuni\u0119ta pomy\u015blnie.
-MESSAGE_GROUP_SUCCESSFULL_UPDATE=Grupa zmodyfikowana pomy\u015blnie.
-MESSAGE_GROUP_ERROR_ADD= podczas dodawania grupy. 
-MESSAGE_GROUP_ERROR_DELETE= podczas usuwania grupy. 
-MESSAGE_GROUP_ERROR_UPDATE= podczas modyfikacji grupy. 
-MESSAGE_GROUP_ERROR_FETCH= podczas pobierania listy grup.
-DUPLICATED_GROUP_MESSAGE=Grupa o podanej nazwie ju\u017c istnieje w bazie danych.
+MESSAGE_GROUP_SUCCESSFULL=Group added successfully
+MESSAGE_GROUP_SUCCESSFULL_DELETE=Group removed successfully
+MESSAGE_GROUP_SUCCESSFULL_UPDATE=Group updated successfully
+MESSAGE_GROUP_ERROR_ADD= while group adding
+MESSAGE_GROUP_ERROR_DELETE= while group removing
+MESSAGE_GROUP_ERROR_UPDATE= while group updating
+MESSAGE_GROUP_ERROR_FETCH= while fetching groups list
+DUPLICATED_GROUP_MESSAGE=Group with given name already exists in database
 
-MESSAGE_USER_SUCCESSFULL=U\u017cytkownik zmodyfikowany pomy\u015blnie.
-MESSAGE_USER_SUCCESSFULL_DELETE=U\u017cytkownik usuni\u0119ty pomy\u015blnie.
-MESSAGE_USER_SUCCESSFULL_UPDATE=U\u017cytkownik zmodyfikowany pomy\u015blnie.
-MESSAGE_USER_ERROR_ADD= podczas dodawania u\u017cytkownika.
-MESSAGE_USER_ERROR_DELETE= podczas usuwania u\u017cytkownika. 
-MESSAGE_USER_ERROR_UPDATE= podczas modyfikacji u\u017cytkownika. 
-MESSAGE_USER_ERROR_FETCH= podczas pobierania listy u\u017cytkownik\u00f3w.
-MESSAGE_USER_ERROR_PASSWORD=Has\u0142a musz\u0105 byc takie same.
+MESSAGE_USER_SUCCESSFULL=User added successfully
+MESSAGE_USER_SUCCESSFULL_DELETE=User removed successfully
+MESSAGE_USER_SUCCESSFULL_UPDATE=User updated successfully
+MESSAGE_USER_ERROR_ADD= while user adding
+MESSAGE_USER_ERROR_DELETE= while user removing
+MESSAGE_USER_ERROR_UPDATE= while user updating
+MESSAGE_USER_ERROR_FETCH= while fetching users list
+MESSAGE_USER_ERROR_PASSWORD=Passwords must be equal
 
-MESSAGE_SERVER_SUCCESSFULL=Serwer zmodyfikowany pomy\u015blnie.
-MESSAGE_SERVER_SUCCESSFULL_DELETE=Serwer usuni\u0119ty pomy\u015blnie.
-MESSAGE_SERVER_SUCCESSFULL_UPDATE=Serwer zmodyfikowany pomy\u015blnie.
-MESSAGE_SERVER_ERROR_ADD= podczas dodawania serwera. 
-MESSAGE_SERVER_ERROR_DELETE= podczas usuwania serwera. 
-MESSAGE_SERVER_ERROR_UPDATE= podczas modyfikacji serwera. 
-MESSAGE_SERVER_ERROR_FETCH= podczas pobierania listy serwer\u00f3w.
-MESSAGE_SERVER_ERROR_TEST= podczas testowania serwera.
-MESSAGE_SERVER_ERROR_IOOBE=Podany serwer nie zosta\u0142 odnaleziony.
-MESSAGE_SERVER_ERROR_PASSWORD=Has\u0142a musz\u0105 byc takie same.
-MESSAGE_SERVER_ERROR_VALIDATE=Nie zosta\u0142y wype\u0142nione pola konieczne, przy zaznaczeniu/odznaczeniu opcji 'R\u00f3wnowa\u017cenie obci\u0105\u017ce\u0144'
+MESSAGE_SERVER_SUCCESSFULL=Server added successfully
+MESSAGE_SERVER_SUCCESSFULL_DELETE=Server removed successfully
+MESSAGE_SERVER_SUCCESSFULL_UPDATE=Server updated successfully
+MESSAGE_SERVER_ERROR_ADD= while server adding
+MESSAGE_SERVER_ERROR_DELETE= while server removing
+MESSAGE_SERVER_ERROR_UPDATE= while server updating
+MESSAGE_SERVER_ERROR_FETCH= while fetching servers list
+MESSAGE_SERVER_ERROR_TEST= while performing server test
+MESSAGE_SERVER_ERROR_IOOBE=Could not found given server
+MESSAGE_SERVER_ERROR_PASSWORD=Passwords must be equal
+MESSAGE_SERVER_ERROR_VALIDATE=Mandatory fileds not set according to present 'Load balancing' field configuration
 
-MESSAGE_MESSAGE_ERROR_FETCH= podczas pobierania listy wiadomo\u015bci.
+MESSAGE_MESSAGE_ERROR_FETCH= while fetching messages list
 
-MESSAGE_ERROR_MANDATORY_FIELD=Pole obowi\u0105zkowe
-MESSAGE_ERROR_NOTHING_SELECTED=Prosz\u0119 wybrac obiekt do edycji.
-MESSAGE_ERROR_EMAIL=Pole musi byc poprawnym adresem email
-MESSAGE_ERROR_LONG=Zbyt du\u017co znak\u00f3w
-MESSAGE_ERROR_POSTAL=Wymgany format dd-ddd
-MESSAGE_ERROR_PHONE=Wymagany format d*
-ERROR_TYPE=Pole powinno byc liczb\u0105,
-ERROR_RANGE=Liczba musi byc wi\u0119ksza od 0 i mniejsza od 100
-MESSAGE_ACTION_ERROR_ASSIGNED=Ta akcja jest przypisana i nie mo\u017ce byc usuni?ta. Usu\u0144 przypisania i spr\u00f3buj ponownie.
-MESSAGE_GROUP_ERROR_ASSIGNED=Ta grupa jest przypisana lub posiada jakie\u015b przypisania. Usu\u0144 przypisania i spr\u00f3buj ponownie.
-MESSAGE_ROLE_ERROR_ASSIGNED=Ta rola jest przypisana lub posiada jakie\u015b przypisania. Usu\u0144 przypisania i spr\u00f3buj ponownie.
-MESSAGE_USER_ERROR_ASSIGNED=Ten u\u017cytkownik jest przypisany do roli lub grupy. Usu\u0144 przypisania i spr\u00f3buj ponownie.
+MESSAGE_ERROR_MANDATORY_FIELD=Mandatory field
+MESSAGE_ERROR_NOTHING_SELECTED=Choose object to edit
+MESSAGE_ERROR_EMAIL=E-mail field not correct
+MESSAGE_ERROR_LONG=Too many characters
+MESSAGE_ERROR_POSTAL=Required format: dd-ddd
+MESSAGE_ERROR_PHONE=Required format: d*
+ERROR_TYPE=This field should contains only digits,
+ERROR_RANGE=Number should be in range 0-100
+MESSAGE_ACTION_ERROR_ASSIGNED=You are not allowed to delete this action. Remove assignments to this action and try again.
+MESSAGE_GROUP_ERROR_ASSIGNED=You are not allowed to delete this group. Remove assignments to this group and try again.
+MESSAGE_ROLE_ERROR_ASSIGNED=You are not allowed to delete this role. Remove assignments to this role and try again.
+MESSAGE_USER_ERROR_ASSIGNED=You are not allowed to delete this user. Remove assignments to this user and try again.
 # 403
-403_MAIN_MESSAGE=Zas\u00f3b jest chroniony.
-403_DESCRIPTION=Nie posiadasz wystarczaj\u0105cych upranie\u0144, aby przegl\u0105c t\u0105 stron\u0119 \
-				Aby uzyskac prawo do przegl\u0119dania tej i innych zastrze\u017conych zasob\u00f3w \
-				skontaktuj si\u0119 z administratorem systemu.
+403_MAIN_MESSAGE=Protected resource
+403_DESCRIPTION=You haven't provileges to access this resource. To gain access to this resource contact with administrator.
+
 # general
-MESSAGE_LATER=Spr\u00f3buj p\u00f3\u017aniej.
-MESSAGE_ERROR_DATABASE=Problem z baz\u0105 danych
-MESSAGE_ERROR_GENERAL=Wyst\u0105pi\u0142 problem
-BUTTON_SAVE=Zapisz
-BUTTON_ASSIGN=Przypisz
-BUTTON_CANCEL=Anuluj
-LABEL_DESCRIPTION=Opis
+MESSAGE_LATER=Try again later
+MESSAGE_ERROR_DATABASE=Error during connection to database
+MESSAGE_ERROR_GENERAL=Error occured
+BUTTON_SAVE=Save
+BUTTON_ASSIGN=Assign
+BUTTON_CANCEL=Cancel
+LABEL_DESCRIPTION=Description
 LOCALE_APP_NAME=Communications Suite
 LABEL_START=Start
 LABEL_STOP=Stop
-LABEL_EDIT=Edycja
-LABEL_ADD=Nowa
-LABEL_DELETE=Usu\u0144
-LABEL_TITLE_USER_FIRSTNAME=Imi\u0119
-LABEL_TITLE_USER_LASTNAME=Nazwisko
-LABEL_INSERT=Dodaj
-LABEL_DETAILS=Szczeg\u00f3\u0142y
-LABEL_BACK=Powr\u00f3t do listy
-LABEL_SEARCH=Szukaj
-LABEL_ACTIVE=Instancja aktywna
-COMMON_LEGEND=Legenda
-COMMON_LEGEND_MANDATORY=Pola obowi\u0105zkowe
-COMMON_LEGEND_WITH_LOAD_BALANCING=Pole obowi\u0105zkowe, gdy wybrano opcje 'R\u00f3wnowa\u017cenie obci\u0105\u017ce\u0144'
-COMMON_LEGEND_WITHOUT_LOAD_BALANCING=Pole obowi\u0105zkowe, gdy nie wybrano opcji 'R\u00f3wnowa\u017cenie obci\u0105\u017ce\u0144'
-COMMON_LEGEND_EMAIL=To pole jest obowi\u0105zkowe i musi zawierac unikatowy i istniej\u0105cy w systemie SAP R/3 adres e-mail u\u017cytkownika.
-COMMON_LEGEND_MAX_CONNECTIONS=To pole jest obowi\u0105zkowe i musi byc liczb\u0105 ca\u0142kowit\u0105 z przedzia\u0142u <1 - 100>.
-COMMON_LEGEND_POSTAL=Kod pocztowy w formacie: dd-ddd
-COMMON_LEGEND_PHONE=Numer telefonu
-COMMON_LEGEND_ACTIVATE=Uaktywnia wybran\u0105 instancj\u0119. Tylko instancje aktywne mog\u0105 byc nast\u0119pnie uruchamiane lub zatrzymywane, \
-			r\u00f3wnie\u017c tylko instancje aktywne s\u0105 uruchamiane podczas startu serwera.
\ No newline at end of file
+LABEL_EDIT=Edit
+LABEL_ADD=Add
+LABEL_DELETE=Delete
+LABEL_TITLE_USER_FIRSTNAME=Firstname
+LABEL_TITLE_USER_LASTNAME=Lastname
+LABEL_INSERT=Insert
+LABEL_DETAILS=Details
+LABEL_BACK=Back to list
+LABEL_SEARCH=Search
+LABEL_ACTIVE=Active
+COMMON_LEGEND=Legend
+COMMON_LEGEND_MANDATORY=Mandatory field
+COMMON_LEGEND_WITH_LOAD_BALANCING=Mandatory field for 'Load balancing' connections
+COMMON_LEGEND_WITHOUT_LOAD_BALANCING=Mandatory field for not 'Load balancing' connections
+COMMON_LEGEND_EMAIL=This field is mandatory and should contain unique  e-mail address of existing user in SAP R/3 system.
+COMMON_LEGEND_MAX_CONNECTIONS=This field is mandatory and should contain number from range <1 - 100>
+COMMON_LEGEND_POSTAL=Postal code in format: dd-ddd
+COMMON_LEGEND_PHONE=Phone
+COMMON_LEGEND_ACTIVATE=Activate selected instance. Only active instances can be started and stopped and only \
+		active instances are automatically started during CS system startup.
\ No newline at end of file
Modified: trunk/code/CSAdminPanel/JavaSource/org/commsuite/web/locale/Locale_pl.properties
===================================================================
--- trunk/code/CSAdminPanel/JavaSource/org/commsuite/web/locale/Locale_pl.properties	2006-09-23 22:33:36 UTC (rev 160)
+++ trunk/code/CSAdminPanel/JavaSource/org/commsuite/web/locale/Locale_pl.properties	2006-09-24 12:42:52 UTC (rev 161)
@@ -228,7 +228,7 @@
 MESSAGE_GROUP_ERROR_FETCH= podczas pobierania listy grup.
 DUPLICATED_GROUP_MESSAGE=Grupa o podanej nazwie ju\u017c istnieje w bazie danych.
 
-MESSAGE_USER_SUCCESSFULL=U\u017cytkownik zmodyfikowany pomy\u015blnie.
+MESSAGE_USER_SUCCESSFULL=U\u017cytkownik dodany pomy\u015blnie.
 MESSAGE_USER_SUCCESSFULL_DELETE=U\u017cytkownik usuni\u0119ty pomy\u015blnie.
 MESSAGE_USER_SUCCESSFULL_UPDATE=U\u017cytkownik zmodyfikowany pomy\u015blnie.
 MESSAGE_USER_ERROR_ADD= podczas dodawania u\u017cytkownika.
@@ -237,7 +237,7 @@
 MESSAGE_USER_ERROR_FETCH= podczas pobierania listy u\u017cytkownik\u00f3w.
 MESSAGE_USER_ERROR_PASSWORD=Has\u0142a musz\u0105 byc takie same.
 
-MESSAGE_SERVER_SUCCESSFULL=Serwer zmodyfikowany pomy\u015blnie.
+MESSAGE_SERVER_SUCCESSFULL=Serwer dodany pomy\u015blnie.
 MESSAGE_SERVER_SUCCESSFULL_DELETE=Serwer usuni\u0119ty pomy\u015blnie.
 MESSAGE_SERVER_SUCCESSFULL_UPDATE=Serwer zmodyfikowany pomy\u015blnie.
 MESSAGE_SERVER_ERROR_ADD= podczas dodawania serwera. 
@@ -257,9 +257,9 @@
 MESSAGE_ERROR_LONG=Zbyt du\u017co znak\u00f3w
 MESSAGE_ERROR_POSTAL=Wymgany format dd-ddd
 MESSAGE_ERROR_PHONE=Wymagany format d*
-ERROR_TYPE=Pole powinno byc liczb\u0105,
+ERROR_TYPE=Pole powinno by\u0107 liczb\u0105,
 ERROR_RANGE=Liczba musi byc wi\u0119ksza od 0 i mniejsza od 100
-MESSAGE_ACTION_ERROR_ASSIGNED=Ta akcja jest przypisana i nie mo\u017ce byc usuni?ta. Usu\u0144 przypisania i spr\u00f3buj ponownie.
+MESSAGE_ACTION_ERROR_ASSIGNED=Ta akcja jest przypisana i nie mo\u017ce byc usuni\u0119ta. Usu\u0144 przypisania i spr\u00f3buj ponownie.
 MESSAGE_GROUP_ERROR_ASSIGNED=Ta grupa jest przypisana lub posiada jakie\u015b przypisania. Usu\u0144 przypisania i spr\u00f3buj ponownie.
 MESSAGE_ROLE_ERROR_ASSIGNED=Ta rola jest przypisana lub posiada jakie\u015b przypisania. Usu\u0144 przypisania i spr\u00f3buj ponownie.
 MESSAGE_USER_ERROR_ASSIGNED=Ten u\u017cytkownik jest przypisany do roli lub grupy. Usu\u0144 przypisania i spr\u00f3buj ponownie.
@@ -297,5 +297,5 @@
 COMMON_LEGEND_MAX_CONNECTIONS=To pole jest obowi\u0105zkowe i musi byc liczb\u0105 ca\u0142kowit\u0105 z przedzia\u0142u <1 - 100>.
 COMMON_LEGEND_POSTAL=Kod pocztowy w formacie: dd-ddd
 COMMON_LEGEND_PHONE=Numer telefonu
-COMMON_LEGEND_ACTIVATE=Uaktywnia wybran\u0105 instancj\u0119. Tylko instancje aktywne mog\u0105 byc nast\u0119pnie uruchamiane lub zatrzymywane, \
+COMMON_LEGEND_ACTIVATE=Uaktywnia wybran\u0105 instancj\u0119. Tylko instancje aktywne mog\u0105 by\u0107 nast\u0119pnie uruchamiane lub zatrzymywane, \
 			r\u00f3wnie\u017c tylko instancje aktywne s\u0105 uruchamiane podczas startu serwera.
\ No newline at end of file
Modified: trunk/code/CSAdminPanel/WebContent/WEB-INF/faces-config.xml
===================================================================
--- trunk/code/CSAdminPanel/WebContent/WEB-INF/faces-config.xml	2006-09-23 22:33:36 UTC (rev 160)
+++ trunk/code/CSAdminPanel/WebContent/WEB-INF/faces-config.xml	2006-09-24 12:42:52 UTC (rev 161)
@@ -2,6 +2,17 @@
 <!DOCTYPE faces-config PUBLIC "-//Sun Microsystems, Inc.//DTD JavaServer Faces Config 1.1//EN"
                               "http://java.sun.com/dtd/web-facesconfig_1_1.dtd">
 <faces-config>
+	<application>
+		<message-bundle>org.commsuite.web.Locale</message-bundle>
+		<variable-resolver>
+			org.springframework.web.jsf.DelegatingVariableResolver
+		</variable-resolver>
+		<locale-config>
+			<default-locale>en</default-locale>
+			<supported-locale>en</supported-locale>
+		</locale-config>
+	</application>
+	<factory />
 	<converter>
 		<converter-for-class>
 			org.commsuite.enums.Language
@@ -720,6 +731,7 @@
 			<to-view-id>/index.jsp</to-view-id>
 		</navigation-case>
 	</navigation-rule>
+	<lifecycle />
 	<validator>
 		<validator-id>longLenghtValidator</validator-id>
 		<validator-class>
@@ -750,16 +762,4 @@
 			org.commsuite.web.validator.PostalCodeValidator
 		</validator-class>
 	</validator>
-	<application>
-		<variable-resolver>
-			org.springframework.web.jsf.DelegatingVariableResolver
-		</variable-resolver>
-		<locale-config>
-			<default-locale>pl</default-locale>
-			<supported-locale>pl</supported-locale>
-		</locale-config>
-		<message-bundle>org.commsuite.web.Locale</message-bundle>
-	</application>
-	<lifecycle />
-	<factory />
 </faces-config>
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
 | 
| 
     
      
      
      From: <zd...@us...> - 2006-09-23 22:33:49
      
     
   | 
Revision: 160
          http://svn.sourceforge.net/comsuite/?rev=160&view=rev
Author:   zduniak
Date:     2006-09-23 15:33:36 -0700 (Sat, 23 Sep 2006)
Log Message:
-----------
Tests corrected
Modified Paths:
--------------
    trunk/code/CSMiddleware/src/org/commsuite/sap/SAPComm.java
    trunk/code/CSTests/src/org/commsuite/devices/DeviceTest.java
Modified: trunk/code/CSMiddleware/src/org/commsuite/sap/SAPComm.java
===================================================================
--- trunk/code/CSMiddleware/src/org/commsuite/sap/SAPComm.java	2006-09-23 21:59:40 UTC (rev 159)
+++ trunk/code/CSMiddleware/src/org/commsuite/sap/SAPComm.java	2006-09-23 22:33:36 UTC (rev 160)
@@ -223,8 +223,10 @@
 
 				if (null != messages && messages.length > 0
 						&& 0 == messages[0].getSentContents().size()) {
+					final String errMsg = "Message without any content is not supported";
+					logger.error(errMsg);
 					throw new JCO.AbapException("INTERNAL",
-							"Message without any content is not supported");
+							errMsg);
 				}
 
 				if (null == msgManager) {
Modified: trunk/code/CSTests/src/org/commsuite/devices/DeviceTest.java
===================================================================
--- trunk/code/CSTests/src/org/commsuite/devices/DeviceTest.java	2006-09-23 21:59:40 UTC (rev 159)
+++ trunk/code/CSTests/src/org/commsuite/devices/DeviceTest.java	2006-09-23 22:33:36 UTC (rev 160)
@@ -63,8 +63,9 @@
 
 		public FakeDevice(String name) {
 			super(name);
-
 			messagesSent = new FastTable<OutboundMessage>();
+			super.setContentsManager(SpringMiddlewareContext.getContentsManager());
+			super.setSentContentManager(SpringMiddlewareContext.getSentContentManager());
 		}
 
 		public List<OutboundMessage> getMessagesSent() {
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
 | 
| 
     
      
      
      From: <zd...@us...> - 2006-09-23 21:59:51
      
     
   | 
Revision: 159
          http://svn.sourceforge.net/comsuite/?rev=159&view=rev
Author:   zduniak
Date:     2006-09-23 14:59:40 -0700 (Sat, 23 Sep 2006)
Log Message:
-----------
Issue 0001350 resolved
Modified Paths:
--------------
    trunk/code/CSMiddleware/src/org/commsuite/sap/JCoFunctionTranslator.java
    trunk/code/CSMiddleware/src/org/commsuite/sap/SAPComm.java
Modified: trunk/code/CSMiddleware/src/org/commsuite/sap/JCoFunctionTranslator.java
===================================================================
--- trunk/code/CSMiddleware/src/org/commsuite/sap/JCoFunctionTranslator.java	2006-09-23 21:33:24 UTC (rev 158)
+++ trunk/code/CSMiddleware/src/org/commsuite/sap/JCoFunctionTranslator.java	2006-09-23 21:59:40 UTC (rev 159)
@@ -446,9 +446,10 @@
 
 	/**
 	 * Converts JCO.Function objects into an array of
-	 * {@link org.commsuite.model.Message} objects. TODO: change println
-	 * statements to logger statements
+	 * {@link org.commsuite.model.Message} objects. 
 	 * 
+	 * TODO: change println statements to logger statements
+	 * 
 	 * @param function
 	 *            the {@link JCO.Function} object to convert
 	 * @return the converted {@link org.commsuite.model.Message}
@@ -511,14 +512,14 @@
 		msg.setSapID(receiveInfoStructure.getString("COMM_ID"));
 		msg.setSender(receiveInfoStructure.getString("SENDER"));
 		final String format = receiveInfoStructure.getString("ADR_TYPE");
-		if (format.equals("FAX")) {
+		if ("FAX".equals(format)) {
 			msg.setFormatType(FormatType.FAX);
 
 		}
-		if (format.equals("INT")) {
+		if ("INT".equals(format)) {
 			msg.setFormatType(FormatType.EMAIL);
 		}
-		if (format.equals("PAG")) {
+		if ("PAG".equals(format)) {
 			msg.setFormatType(FormatType.SMS);
 		}
 
@@ -564,13 +565,10 @@
 		 * DOCUMENT_DATA structure
 		 */
 		// msg.setObjectName(documentDataStructure.getString("OBJ_NAME"));
-		msg.setDescription(documentDataStructure.getString("OBJ_DESCR")/*
-																		 * ,
-																		 * partnerCharset
-																		 */);
+		msg.setDescription(documentDataStructure.getString("OBJ_DESCR"));
 
 		msg.setPriority(Priority.LEVEL_4); // default
-		Integer priority = new Integer(4);
+		Integer priority = 4;
 		try {
 			priority = (Integer) getOptionalVal("PRIORITY", TYPE_INT,
 					documentDataStructure);
@@ -583,25 +581,25 @@
 		}
 		// REFACTOR same thing with enum can be done here..[SK]
 		if (null != priority) {
-			if (priority.equals(new Integer(0))) {
+			if (priority.equals(0)) {
 				msg.setPriority(Priority.LEVEL_0);
-			} else if (priority.equals(new Integer(1))) {
+			} else if (priority.equals(1)) {
 				msg.setPriority(Priority.LEVEL_1);
-			} else if (priority.equals(new Integer(2))) {
+			} else if (priority.equals(2)) {
 				msg.setPriority(Priority.LEVEL_2);
-			} else if (priority.equals(new Integer(3))) {
+			} else if (priority.equals(3)) {
 				msg.setPriority(Priority.LEVEL_3);
-			} else if (priority.equals(new Integer(4))) {
+			} else if (priority.equals(4)) {
 				msg.setPriority(Priority.LEVEL_4);
-			} else if (priority.equals(new Integer(5))) {
+			} else if (priority.equals(5)) {
 				msg.setPriority(Priority.LEVEL_5);
-			} else if (priority.equals(new Integer(6))) {
+			} else if (priority.equals(6)) {
 				msg.setPriority(Priority.LEVEL_6);
-			} else if (priority.equals(new Integer(7))) {
+			} else if (priority.equals(7)) {
 				msg.setPriority(Priority.LEVEL_7);
-			} else if (priority.equals(new Integer(8))) {
+			} else if (priority.equals(8)) {
 				msg.setPriority(Priority.LEVEL_8);
-			} else if (priority.equals(new Integer(9))) {
+			} else if (priority.equals(9)) {
 				msg.setPriority(Priority.LEVEL_9);
 			}
 		}
Modified: trunk/code/CSMiddleware/src/org/commsuite/sap/SAPComm.java
===================================================================
--- trunk/code/CSMiddleware/src/org/commsuite/sap/SAPComm.java	2006-09-23 21:33:24 UTC (rev 158)
+++ trunk/code/CSMiddleware/src/org/commsuite/sap/SAPComm.java	2006-09-23 21:59:40 UTC (rev 159)
@@ -41,8 +41,8 @@
 import com.sap.mw.jco.JCO.Function;
 
 /**
- * Module responsible for initiationg server-side and client-side communication with the external
- * SAP R/3 system.
+ * Module responsible for initiationg server-side and client-side communication
+ * with the external SAP R/3 system.
  * 
  * TODO: [MZ] Complete comments. REVIEW: [SK] ENCAPSULATION !!!
  * 
@@ -53,552 +53,595 @@
  * @author Agnieszka Wiśniewska
  */
 public class SAPComm implements ISAPComm {
-	
+
 	private MessageManager msgManager;
-	
+
 	private JMSMessageManager jmsManager;
 
-    private long SX_OBJECT_RECEIVE_functionsNumber;
+	private long SX_OBJECT_RECEIVE_functionsNumber;
 
-    private long SX_OBJECT_STATUS_RECEIVE_functionsNumber;
+	private long SX_OBJECT_STATUS_RECEIVE_functionsNumber;
 
-    private long unrecognizedFunctionsNumber;
+	private long unrecognizedFunctionsNumber;
 
-    private long errorsWhileHandlingFunctions;
+	private long errorsWhileHandlingFunctions;
 
-    private final static Logger logger = Logger.getLogger(SAPComm.class);
+	private final static Logger logger = Logger.getLogger(SAPComm.class);
 
-    private static final String JCO_CONNECTIONS_POOL_PREFIX = "CSPool_";
+	private static final String JCO_CONNECTIONS_POOL_PREFIX = "CSPool_";
 
-    private static final String JCO_REPOSITORY_PREFIX = "CSRepo_";
+	private static final String JCO_REPOSITORY_PREFIX = "CSRepo_";
 
-    // TODO: przeniesc wlanczanie/ wylanczanie trace'a do pliku local.properties
-    private static final boolean TRACE_ENABLED = true;
+	// TODO: przeniesc wlanczanie/ wylanczanie trace'a do pliku local.properties
+	private static final boolean TRACE_ENABLED = true;
 
-    /**
-     * Definition of the logging parameters.
-     */
-    private SAPInstanceDef instanceDef;
+	/**
+	 * Definition of the logging parameters.
+	 */
+	private SAPInstanceDef instanceDef;
 
-    /**
-     * Indicate whther module has been corectly initiated.
-     */
-    private boolean initiated;
+	/**
+	 * Indicate whther module has been corectly initiated.
+	 */
+	private boolean initiated;
 
-    /**
-     * Remote repository of the associated SAP R/3 system.
-     */
-    private IRepository repository;
+	/**
+	 * Remote repository of the associated SAP R/3 system.
+	 */
+	private IRepository repository;
 
-    /**
-     * Inner instance of runnig server that registers itself on the remote SAP R/3 server.
-     */
-    private IJCOServer server;
+	/**
+	 * Inner instance of runnig server that registers itself on the remote SAP
+	 * R/3 server.
+	 */
+	private IJCOServer server;
 
-    private boolean handlingRequest;
+	private boolean handlingRequest;
 
-    /**
-     * Inner definition of JCO-based server.
-     */
-    /* package scope */class JCOServer extends JCO.Server implements IJCOServer, UncaughtExceptionHandler {
+	/**
+	 * Inner definition of JCO-based server.
+	 */
+	/* package scope */class JCOServer extends JCO.Server implements
+			IJCOServer, UncaughtExceptionHandler {
 
-        private final Logger logger = Logger.getLogger(SAPComm.JCOServer.class);
+		private final Logger logger = Logger.getLogger(SAPComm.JCOServer.class);
 
-        private final String PARTNER_CHARSET;
+		private final String PARTNER_CHARSET;
 
-        /* package scope */JCOServer() {
-            super(SAPComm.this.getLogonProperties(), SAPComm.this.repository);
-            logger.info("Server registering properties: " + SAPComm.this.getLogonProperties());
-            super.getThread().setUncaughtExceptionHandler(this);
-            JCO.Client client = null;
-            try {
-                client = SAPComm.this.getJCOClient();
-                PARTNER_CHARSET = client.getAttributes().getPartnerCharset();
-            } finally {
-                if (null != client) {
-                    releaseJCOClient(client);
-                }
-            }
-            logger.info("JCO.Server created");
-        }
+		/* package scope */JCOServer() {
+			super(SAPComm.this.getLogonProperties(), SAPComm.this.repository);
+			logger.info("Server registering properties: "
+					+ SAPComm.this.getLogonProperties());
+			super.getThread().setUncaughtExceptionHandler(this);
+			JCO.Client client = null;
+			try {
+				client = SAPComm.this.getJCOClient();
+				PARTNER_CHARSET = client.getAttributes().getPartnerCharset();
+			} finally {
+				if (null != client) {
+					releaseJCOClient(client);
+				}
+			}
+			logger.info("JCO.Server created");
+		}
 
-        @Override
-        protected void handleRequest(final JCO.Function function) {
-            handlingRequest = true;
-            // TODO: rozwazyc czy nie lepiej obslugiwac zgloszenie od klientow w osobnych watkach.
-            // strona: http://eclipsesap2java.sourceforge.net/Tips.htm pkt. 2 wskazuje ze
-            // implementacja
-            // SAP JCo pozwala tylko na jednego zdalnego uzytkownik (jeden SAP R/3) na jedna
-            // instancje
-            // Server JCo (tzn. nie jest ta implementacja analogiczna do specyfikacji Servletow,
-            // gdzie
-            // na jedna instance Servletu teoretycznie moze przypadac dowolna liczba zdalnych
-            // uzytkownikow)
-            handleJCORequest(function, PARTNER_CHARSET);
-            handlingRequest = false;
-        }
+		@Override
+		protected void handleRequest(final JCO.Function function) {
+			handlingRequest = true;
+			// TODO: rozwazyc czy nie lepiej obslugiwac zgloszenie od klientow w
+			// osobnych watkach.
+			// strona: http://eclipsesap2java.sourceforge.net/Tips.htm pkt. 2
+			// wskazuje ze
+			// implementacja
+			// SAP JCo pozwala tylko na jednego zdalnego uzytkownik (jeden SAP
+			// R/3) na jedna
+			// instancje
+			// Server JCo (tzn. nie jest ta implementacja analogiczna do
+			// specyfikacji Servletow,
+			// gdzie
+			// na jedna instance Servletu teoretycznie moze przypadac dowolna
+			// liczba zdalnych
+			// uzytkownikow)
+			handleJCORequest(function, PARTNER_CHARSET);
+			handlingRequest = false;
+		}
 
-        public void serverExceptionOccurred(JCO.Server server, Exception ex) {
-            logger.fatal("Exception in server: " + SAPComm.this.instanceDef.getName() + "[ProgID: "
-                    + server.getProgID() + "]", ex);
-        }
+		public void serverExceptionOccurred(JCO.Server server, Exception ex) {
+			logger.fatal("Exception in server: "
+					+ SAPComm.this.instanceDef.getName() + "[ProgID: "
+					+ server.getProgID() + "]", ex);
+		}
 
-        public void serverStateChangeOccurred(JCO.Server server, int oldState, int newState) {
-            if (logger.isInfoEnabled()) {
-                final TextBuilder sb = new TextBuilder();
-                sb.append("Server: ").append(SAPComm.this.instanceDef.getName())
-                        .append("[ProgID: ").append(server.getProgID()).append("]").append(
-                                " changed state from [");
-                // REFACTOR duplicated code here
-                if ((oldState & JCO.STATE_STOPPED) != 0)
-                    sb.append(" STOPPED ");
-                if ((oldState & JCO.STATE_STARTED) != 0)
-                    sb.append(" STARTED ");
-                if ((oldState & JCO.STATE_LISTENING) != 0)
-                    sb.append(" LISTENING ");
-                if ((oldState & JCO.STATE_TRANSACTION) != 0)
-                    sb.append(" TRANSACTION ");
-                if ((oldState & JCO.STATE_BUSY) != 0)
-                    sb.append(" BUSY ");
+		public void serverStateChangeOccurred(JCO.Server server, int oldState,
+				int newState) {
+			if (logger.isInfoEnabled()) {
+				final TextBuilder sb = new TextBuilder();
+				sb.append("Server: ")
+						.append(SAPComm.this.instanceDef.getName()).append(
+								"[ProgID: ").append(server.getProgID()).append(
+								"]").append(" changed state from [");
+				// REFACTOR duplicated code here
+				if ((oldState & JCO.STATE_STOPPED) != 0)
+					sb.append(" STOPPED ");
+				if ((oldState & JCO.STATE_STARTED) != 0)
+					sb.append(" STARTED ");
+				if ((oldState & JCO.STATE_LISTENING) != 0)
+					sb.append(" LISTENING ");
+				if ((oldState & JCO.STATE_TRANSACTION) != 0)
+					sb.append(" TRANSACTION ");
+				if ((oldState & JCO.STATE_BUSY) != 0)
+					sb.append(" BUSY ");
 
-                sb.append("] to [");
+				sb.append("] to [");
 
-                if ((newState & JCO.STATE_STOPPED) != 0)
-                    sb.append(" STOPPED ");
-                if ((newState & JCO.STATE_STARTED) != 0)
-                    sb.append(" STARTED ");
-                if ((newState & JCO.STATE_LISTENING) != 0)
-                    sb.append(" LISTENING ");
-                if ((newState & JCO.STATE_TRANSACTION) != 0)
-                    sb.append(" TRANSACTION ");
-                if ((newState & JCO.STATE_BUSY) != 0)
-                    sb.append(" BUSY ");
+				if ((newState & JCO.STATE_STOPPED) != 0)
+					sb.append(" STOPPED ");
+				if ((newState & JCO.STATE_STARTED) != 0)
+					sb.append(" STARTED ");
+				if ((newState & JCO.STATE_LISTENING) != 0)
+					sb.append(" LISTENING ");
+				if ((newState & JCO.STATE_TRANSACTION) != 0)
+					sb.append(" TRANSACTION ");
+				if ((newState & JCO.STATE_BUSY) != 0)
+					sb.append(" BUSY ");
 
-                sb.append("]");
+				sb.append("]");
 
-                logger.info(sb.toString());
-            }
-        }
+				logger.info(sb.toString());
+			}
+		}
 
-        public void serverErrorOccurred(JCO.Server server, Error error) {
-            logger.fatal("Error in server: " + SAPComm.this.instanceDef.getName() + "[ProgID: "
-                    + server.getProgID() + "]", error);
-            
-            // TODO: consider stopping SAP server in exceptional situation: 
-            // stopServer();
-        }
-        
-        public void uncaughtException(Thread t, Throwable e) {
-        	logger.fatal("UncaughtException in server: " + SAPComm.this.instanceDef.getName(), e);
-        	
-            // TODO: consider stopping SAP server in exceptional situation: 
-            // stopServer();
-        }
-    }
+		public void serverErrorOccurred(JCO.Server server, Error error) {
+			logger.fatal("Error in server: "
+					+ SAPComm.this.instanceDef.getName() + "[ProgID: "
+					+ server.getProgID() + "]", error);
 
-    public IJCOServer getServer() {
+			// TODO: consider stopping SAP server in exceptional situation:
+			// stopServer();
+		}
+
+		public void uncaughtException(Thread t, Throwable e) {
+			logger.fatal("UncaughtException in server: "
+					+ SAPComm.this.instanceDef.getName(), e);
+
+			// TODO: consider stopping SAP server in exceptional situation:
+			// stopServer();
+		}
+	}
+
+	public IJCOServer getServer() {
 		return server;
 	}
 
 	public void handleJCORequest(final JCO.Function function, String charset) {
-        try {
-            logger.info("Handling request for function: " + function.getName());
-            if (JCoFunctionTranslator.SX_OBJECT_RECEIVE.equals(function.getName())) {
-                final Message[] messages = JCoFunctionTranslator.getMessagesFromJCOFunction(
-                        function, charset);
+		try {
+			logger.info("Handling request for function: " + function.getName());
+			if (JCoFunctionTranslator.SX_OBJECT_RECEIVE.equals(function
+					.getName())) {
+				final Message[] messages = JCoFunctionTranslator
+						.getMessagesFromJCOFunction(function, charset);
 
-                if (null == msgManager) {
-                	msgManager = SpringMiddlewareContext.getMessageManager();
-                }
-                
-                if (null == jmsManager) {
-                	jmsManager = SpringMiddlewareContext.getJMSManager();
-                }
+				if (null != messages && messages.length > 0
+						&& 0 == messages[0].getSentContents().size()) {
+					throw new JCO.AbapException("INTERNAL",
+							"Message without any content is not supported");
+				}
 
-                final Date currentDate = new Date();
-                for (Message msg : messages) {
-                    msg.setSAPInstanceDefOwner(instanceDef);
-                    if (null == msg.getSendDate()) {
-                        msg.setSendDate(currentDate);
-                    }
-                    msg = msgManager.saveMessage(msg);
-                    jmsManager.sendMessage(SpringMiddlewareBeansConstants.M_OUT_ROUTER_QUEUE_NAME,
-                            msg);
-                }
+				if (null == msgManager) {
+					msgManager = SpringMiddlewareContext.getMessageManager();
+				}
 
-                SX_OBJECT_RECEIVE_functionsNumber++;
-            } else if (JCoFunctionTranslator.SX_OBJECT_STATUS_RECEIVE.equals(function.getName())) {
-                // TODO: implement receiving status information
-                final Message messageToUpdate = SpringMiddlewareContext.getMessageManager()
-                        .getMessageBySapIdAndSAPInstanceDef("TODO:someId", this.instanceDef);
+				if (null == jmsManager) {
+					jmsManager = SpringMiddlewareContext.getJMSManager();
+				}
 
-                SX_OBJECT_STATUS_RECEIVE_functionsNumber++;
-            } else {
-                if (false == JCOFunctionsImplementation.serveFunction(function, charset)) {
-                    logger.warn("SAP JCO function: " + function.getName() + " not supported.");
-                    this.unrecognizedFunctionsNumber++;
-                    throw new JCO.AbapException("INTERNAL", "Function " + function.getName()
-                            + " not supported.");
-                }
-            }
-        } catch (JCO.AbapException ex) {
-            logger.fatal("AbapException during handlig request", ex);
-            errorsWhileHandlingFunctions++;
-            throw ex;
-        } catch (Throwable t) {
-            logger.fatal("Unrecognized exception during handlig request", t);
-            errorsWhileHandlingFunctions++;
-            throw new JCO.AbapException("SYSTEM_FAILURE", t.getMessage());
-        }
-    }
+				final Date currentDate = new Date();
+				for (Message msg : messages) {
+					msg.setSAPInstanceDefOwner(instanceDef);
+					if (null == msg.getSendDate()) {
+						msg.setSendDate(currentDate);
+					}
+					msg = msgManager.saveMessage(msg);
+					jmsManager
+							.sendMessage(
+									SpringMiddlewareBeansConstants.M_OUT_ROUTER_QUEUE_NAME,
+									msg);
+				}
 
-    /**
-     * REVIEW: public ? what for ? i dont think that this method is necessary at all.
-     * 
-     * @param server
-     *            The server to set.
-     */
-    public void setServer(IJCOServer server) {
-        this.server = server;
-    }
+				SX_OBJECT_RECEIVE_functionsNumber++;
+			} else if (JCoFunctionTranslator.SX_OBJECT_STATUS_RECEIVE
+					.equals(function.getName())) {
+				// TODO: implement receiving status information
+				final Message messageToUpdate = SpringMiddlewareContext
+						.getMessageManager()
+						.getMessageBySapIdAndSAPInstanceDef("TODO:someId",
+								this.instanceDef);
 
-    /**
-     * @return Returns whether initiated
-     */
-    public boolean isInitiated() {
-        return initiated;
-    }
+				SX_OBJECT_STATUS_RECEIVE_functionsNumber++;
+			} else {
+				if (false == JCOFunctionsImplementation.serveFunction(function,
+						charset)) {
+					logger.warn("SAP JCO function: " + function.getName()
+							+ " not supported.");
+					this.unrecognizedFunctionsNumber++;
+					throw new JCO.AbapException("INTERNAL", "Function "
+							+ function.getName() + " not supported.");
+				}
+			}
+		} catch (JCO.AbapException ex) {
+			logger.fatal("AbapException during handlig request", ex);
+			errorsWhileHandlingFunctions++;
+			throw ex;
+		} catch (Throwable t) {
+			logger.fatal("Unrecognized exception during handlig request", t);
+			errorsWhileHandlingFunctions++;
+			throw new JCO.AbapException("SYSTEM_FAILURE", t.getMessage());
+		}
+	}
 
-    /**
-     * @param initiated
-     *            The initiated to set.
-     */
-    /* package scope */void setInitiated(boolean initiated) {
-        this.initiated = initiated;
-    }
+	/**
+	 * REVIEW: public ? what for ? i dont think that this method is necessary at
+	 * all.
+	 * 
+	 * @param server
+	 *            The server to set.
+	 */
+	public void setServer(IJCOServer server) {
+		this.server = server;
+	}
 
-    /**
-     * Default public constructor.
-     */
-    public SAPComm() {
-        super();
-    }
+	/**
+	 * @return Returns whether initiated
+	 */
+	public boolean isInitiated() {
+		return initiated;
+	}
 
-    /**
-     * @return Returns the instanceDef.
-     */
-    public SAPInstanceDef getInstanceDef() {
-        return instanceDef;
-    }
+	/**
+	 * @param initiated
+	 *            The initiated to set.
+	 */
+	/* package scope */void setInitiated(boolean initiated) {
+		this.initiated = initiated;
+	}
 
-    /**
-     * @param instanceDef
-     *            The instanceDef to set.
-     */
-    /* package scope */void setInstanceDef(SAPInstanceDef instanceDef) {
-        this.instanceDef = instanceDef;
-    }
+	/**
+	 * Default public constructor.
+	 */
+	public SAPComm() {
+		super();
+	}
 
-    /**
-     * @param instanceDef
-     *            Definition of the logging parameters
-     * @throws IllegalArgumentException
-     */
-    public void init(SAPInstanceDef instanceDef) {
-        if (null == instanceDef) {
-            throw new IllegalArgumentException("Given instanceDef parameter can not be null.");
-        }
-        if (initiated) {
-            destroy();
-        }
-        this.instanceDef = instanceDef;
-        initSAPConnections();
-        initRepository();
-        initiated = true;
-    }
+	/**
+	 * @return Returns the instanceDef.
+	 */
+	public SAPInstanceDef getInstanceDef() {
+		return instanceDef;
+	}
 
-    private void initRepository() {
-        repository = JCO.createRepository(getRepositoryName(), getPoolName());
-    }
+	/**
+	 * @param instanceDef
+	 *            The instanceDef to set.
+	 */
+	/* package scope */void setInstanceDef(SAPInstanceDef instanceDef) {
+		this.instanceDef = instanceDef;
+	}
 
-    private void initSAPConnections() {
-        releaseSAPConnections();
+	/**
+	 * @param instanceDef
+	 *            Definition of the logging parameters
+	 * @throws IllegalArgumentException
+	 */
+	public void init(SAPInstanceDef instanceDef) {
+		if (null == instanceDef) {
+			throw new IllegalArgumentException(
+					"Given instanceDef parameter can not be null.");
+		}
+		if (initiated) {
+			destroy();
+		}
+		this.instanceDef = instanceDef;
+		initSAPConnections();
+		initRepository();
+		initiated = true;
+	}
 
-        // creating a new connection pool
-        final String poolName = getPoolName();
-        JCO.addClientPool(poolName, instanceDef.getMaxConnectionsInPool(), getLogonProperties());
-        final JCO.Pool pool = JCO.getClientPoolManager().getPool(poolName);
-        pool.setMaxConnections(2 * instanceDef.getMaxConnectionsInPool());
-        pool.setTrace(TRACE_ENABLED);
-    }
+	private void initRepository() {
+		repository = JCO.createRepository(getRepositoryName(), getPoolName());
+	}
 
-    /* package scope */Properties getLogonProperties() {
-        final String JCO_CLIENT_PREFIX = "jco.client.";
-        final String JCO_SERVER_PREFIX = "jco.server.";
-        final Properties props = new Properties();
+	private void initSAPConnections() {
+		releaseSAPConnections();
 
-        // client properties:
-        props.put(JCO_CLIENT_PREFIX + "client", instanceDef.getClient());
-        props.put(JCO_CLIENT_PREFIX + "user", instanceDef.getUser());
-        props.put(JCO_CLIENT_PREFIX + "passwd", instanceDef.getPassword());
+		// creating a new connection pool
+		final String poolName = getPoolName();
+		JCO.addClientPool(poolName, instanceDef.getMaxConnectionsInPool(),
+				getLogonProperties());
+		final JCO.Pool pool = JCO.getClientPoolManager().getPool(poolName);
+		pool.setMaxConnections(2 * instanceDef.getMaxConnectionsInPool());
+		pool.setTrace(TRACE_ENABLED);
+	}
 
-        // if (null != instanceDef.getLanguage()) {
-        // props.put(JCO_CLIENT_PREFIX + "lang", instanceDef.getLanguage());
-        // }
+	/* package scope */Properties getLogonProperties() {
+		final String JCO_CLIENT_PREFIX = "jco.client.";
+		final String JCO_SERVER_PREFIX = "jco.server.";
+		final Properties props = new Properties();
 
-        if (instanceDef.isLoadBalancing()) {
-            props.put(JCO_CLIENT_PREFIX + "r3name", instanceDef.getR3name());
-            props.put(JCO_CLIENT_PREFIX + "group", instanceDef.getGroup());
-            props.put(JCO_CLIENT_PREFIX + "mshost", instanceDef.getHost());
+		// client properties:
+		props.put(JCO_CLIENT_PREFIX + "client", instanceDef.getClient());
+		props.put(JCO_CLIENT_PREFIX + "user", instanceDef.getUser());
+		props.put(JCO_CLIENT_PREFIX + "passwd", instanceDef.getPassword());
 
-        } else {
-            props.put(JCO_CLIENT_PREFIX + "sysnr", instanceDef.getSystemNumber());
-            props.put(JCO_CLIENT_PREFIX + "ashost", instanceDef.getHost());
-        }
+		// if (null != instanceDef.getLanguage()) {
+		// props.put(JCO_CLIENT_PREFIX + "lang", instanceDef.getLanguage());
+		// }
 
-        props.put(JCO_CLIENT_PREFIX + "trace", TRACE_ENABLED ? "1" : "0");
-        props.put(JCO_CLIENT_PREFIX + "lcheck", "1");
+		if (instanceDef.isLoadBalancing()) {
+			props.put(JCO_CLIENT_PREFIX + "r3name", instanceDef.getR3name());
+			props.put(JCO_CLIENT_PREFIX + "group", instanceDef.getGroup());
+			props.put(JCO_CLIENT_PREFIX + "mshost", instanceDef.getHost());
 
-        // server properties:
-        props.put(JCO_SERVER_PREFIX + "gwhost", instanceDef.getGwhost());
-        props.put(JCO_SERVER_PREFIX + "gwserv", instanceDef.getGwserv());
-        props.put(JCO_SERVER_PREFIX + "progid", instanceDef.getProgid());
-        props.put(JCO_SERVER_PREFIX + "unicode", instanceDef.isUnicode() ? "1" : "0");
+		} else {
+			props.put(JCO_CLIENT_PREFIX + "sysnr", instanceDef
+					.getSystemNumber());
+			props.put(JCO_CLIENT_PREFIX + "ashost", instanceDef.getHost());
+		}
 
-        return props;
-    }
+		props.put(JCO_CLIENT_PREFIX + "trace", TRACE_ENABLED ? "1" : "0");
+		props.put(JCO_CLIENT_PREFIX + "lcheck", "1");
 
-    private void releaseSAPConnections() {
-        // testing whether connection pool already exists:
-        final JCO.Pool pool = JCO.getClientPoolManager().getPool(getPoolName());
-        if (null != pool) {
-            // pool already exists, so we remove it
-            JCO.getClientPoolManager().removePool(getPoolName());
-        }
-    }
+		// server properties:
+		props.put(JCO_SERVER_PREFIX + "gwhost", instanceDef.getGwhost());
+		props.put(JCO_SERVER_PREFIX + "gwserv", instanceDef.getGwserv());
+		props.put(JCO_SERVER_PREFIX + "progid", instanceDef.getProgid());
+		props.put(JCO_SERVER_PREFIX + "unicode", instanceDef.isUnicode() ? "1"
+				: "0");
 
-    private String getPoolName() {
-        return JCO_CONNECTIONS_POOL_PREFIX + instanceDef.getName();
-    }
+		return props;
+	}
 
-    private String getRepositoryName() {
-        return JCO_REPOSITORY_PREFIX + instanceDef.getName();
-    }
+	private void releaseSAPConnections() {
+		// testing whether connection pool already exists:
+		final JCO.Pool pool = JCO.getClientPoolManager().getPool(getPoolName());
+		if (null != pool) {
+			// pool already exists, so we remove it
+			JCO.getClientPoolManager().removePool(getPoolName());
+		}
+	}
 
-    /* package scope */JCO.Client getJCOClient() {
-        return JCO.getClient(getPoolName());
-    }
+	private String getPoolName() {
+		return JCO_CONNECTIONS_POOL_PREFIX + instanceDef.getName();
+	}
 
-    private void releaseJCOClient(JCO.Client client) {
-        JCO.releaseClient(client);
-    }
+	private String getRepositoryName() {
+		return JCO_REPOSITORY_PREFIX + instanceDef.getName();
+	}
 
-    public void destroy() {
-        stopServer();
-        releaseSAPConnections();
-        instanceDef = null;
-        initiated = false;
-    }
+	/* package scope */JCO.Client getJCOClient() {
+		return JCO.getClient(getPoolName());
+	}
 
-    public void stopServer() {
-        if (null != server && server.isAlive()) {
-            logger.debug("Stopping SAP server");
-            server.stop();
-            server.abort("Connection aborted by administrator.");
-        } else {
-            logger.debug("SAP server already stopped");
-        }
-        server = null;
-        logger.debug("SAP server STOPPED");
-    }
+	private void releaseJCOClient(JCO.Client client) {
+		JCO.releaseClient(client);
+	}
 
-    /**
-     * this method was created only to be override in tests
-     * 
-     * @return new {@link SAPComm.JCOServer} instance
-     */
-    /* package scope */IJCOServer getNewJCOServer() {
-        return this.new JCOServer();
-    }
+	public void destroy() {
+		stopServer();
+		releaseSAPConnections();
+		instanceDef = null;
+		initiated = false;
+	}
 
-    public void startServer() {
-        if (!isRemoteSystemWorking()) {
-            logger.error("Remote system is not working: " + getName());
-            return;
-        }
-        stopServer();
-        server = getNewJCOServer();
-        server.setTrace(TRACE_ENABLED);
-        JCO.addServerExceptionListener(server);
-        JCO.addServerStateChangedListener(server);
-        JCO.addServerErrorListener(server);
-        server.start();
-    }
+	public void stopServer() {
+		if (null != server && server.isAlive()) {
+			logger.debug("Stopping SAP server");
+			server.stop();
+			server.abort("Connection aborted by administrator.");
+		} else {
+			logger.debug("SAP server already stopped");
+		}
+		server = null;
+		logger.debug("SAP server STOPPED");
+	}
 
-    /**
-     * @return true if message was sent, false if sending failed
-     */
-    public boolean sendMessage(Message message) {
-        logger.debug("Sending message: " + message.toString());
+	/**
+	 * this method was created only to be override in tests
+	 * 
+	 * @return new {@link SAPComm.JCOServer} instance
+	 */
+	/* package scope */IJCOServer getNewJCOServer() {
+		return this.new JCOServer();
+	}
 
-        JCO.Client client = null;
-        try {
-            // setting correct receiver:
-            message.setReceiver(instanceDef.getAdminEmail());
+	public void startServer() {
+		if (!isRemoteSystemWorking()) {
+			logger.error("Remote system is not working: " + getName());
+			return;
+		}
+		stopServer();
+		server = getNewJCOServer();
+		server.setTrace(TRACE_ENABLED);
+		JCO.addServerExceptionListener(server);
+		JCO.addServerStateChangedListener(server);
+		JCO.addServerErrorListener(server);
+		server.start();
+	}
 
-            // converting message to JCO.Function:
-            final JCO.Function f = JCoFunctionTranslator.getJCOFunctionFromMessage(message,
-                    repository);
+	/**
+	 * @return true if message was sent, false if sending failed
+	 */
+	public boolean sendMessage(Message message) {
+		logger.debug("Sending message: " + message.toString());
 
-            // REVIEW: is below synchronization necessary ?
-            // synchronized (this) {
-            client = getJCOClient();
-            client.execute(f);
-            // }
-            final boolean send = checkFunctionReturn(f);
-            logger.debug("Message to [" + message.getReceiver() + "] sent status: " + send);
-            return send;
-        } catch (Throwable t) {
-            logger.fatal("Exception during sending the message to SAP server", t);
-            return false;
-        } finally {
-            if (null != client) {
-                releaseJCOClient(client);
-            }
-        }
-    }
+		JCO.Client client = null;
+		try {
+			// setting correct receiver:
+			message.setReceiver(instanceDef.getAdminEmail());
 
-    private boolean checkFunctionReturn(final Function f) {
-        // testing return state:
-        final JCO.Table receivers = f.getTableParameterList().getTable("RECEIVERS");
-        receivers.setRow(0);
-        final String code = receivers.getString("CODE");
+			// converting message to JCO.Function:
+			final JCO.Function f = JCoFunctionTranslator
+					.getJCOFunctionFromMessage(message, repository);
 
-        if (logger.isDebugEnabled()) {
-            logger.debug("Answer: " + code);
-            logger.debug("MSGV1: " + receivers.getString("MSGV1"));
-            logger.debug("MSGV2: " + receivers.getString("MSGV2"));
-            logger.debug("MSGV3: " + receivers.getString("MSGV3"));
-            logger.debug("MSGV4: " + receivers.getString("MSGV4"));
-        }
+			// REVIEW: is below synchronization necessary ?
+			// synchronized (this) {
+			client = getJCOClient();
+			client.execute(f);
+			// }
+			final boolean send = checkFunctionReturn(f);
+			logger.debug("Message to [" + message.getReceiver()
+					+ "] sent status: " + send);
+			return send;
+		} catch (Throwable t) {
+			logger.fatal("Exception during sending the message to SAP server",
+					t);
+			return false;
+		} finally {
+			if (null != client) {
+				releaseJCOClient(client);
+			}
+		}
+	}
 
-        // TODO: ustawianie odpowiednich pol w message w zaleznosci od zwroconego 'CODE'
-        // i powyzszych dodatkowych parametrow MSGV1..4
+	private boolean checkFunctionReturn(final Function f) {
+		// testing return state:
+		final JCO.Table receivers = f.getTableParameterList().getTable(
+				"RECEIVERS");
+		receivers.setRow(0);
+		final String code = receivers.getString("CODE");
 
-        return SAPStatusCodeConstants.DELIVERED_SUCCESSFULLY_701.equals(code);
-    }
+		if (logger.isDebugEnabled()) {
+			logger.debug("Answer: " + code);
+			logger.debug("MSGV1: " + receivers.getString("MSGV1"));
+			logger.debug("MSGV2: " + receivers.getString("MSGV2"));
+			logger.debug("MSGV3: " + receivers.getString("MSGV3"));
+			logger.debug("MSGV4: " + receivers.getString("MSGV4"));
+		}
 
-    public boolean sendNotification(Notification notification) {
-        logger.debug("Sending notification: " + notification.toString());
+		// TODO: ustawianie odpowiednich pol w message w zaleznosci od
+		// zwroconego 'CODE'
+		// i powyzszych dodatkowych parametrow MSGV1..4
 
-        JCO.Client client = null;
-        try {
-            // converting notification message to JCO.Function:
-            final JCO.Function f = JCoFunctionTranslator.getJCOFunctionFromNotification(
-                    notification, repository);
+		return SAPStatusCodeConstants.DELIVERED_SUCCESSFULLY_701.equals(code);
+	}
 
-            // REVIEW: is below synchronization necessary ?
-            // synchronized (this) {
-            client = getJCOClient();
-            client.execute(f);
-            // }
-            final boolean send = checkFunctionReturn(f);
-            logger.debug("Notification message to [" + notification.getMessage().getSender()
-                    + "] delivered with sent status: " + notification.getState().name());
-            return send;
-        } catch (Throwable t) {
-            logger.fatal("Exception during sending the notification message to SAP server", t);
-            return false;
-        } finally {
-            if (null != client) {
-                releaseJCOClient(client);
-            }
-        }
-    }
+	public boolean sendNotification(Notification notification) {
+		logger.debug("Sending notification: " + notification.toString());
 
-    public boolean isRemoteSystemWorking() {
-        // TODO: [MZ] i'm not sure whether this implementation is correct
-        JCO.Client client = null;
-        try {
-            client = getJCOClient();
-            
-            if (null == client) {
-                logger
-                        .warn("Cannot obtain JCO.Client object from pool during testing SAP server's state.");
-                return false;
-            }
-            
-            // Send a ping to the server
-            client.ping();
+		JCO.Client client = null;
+		try {
+			// converting notification message to JCO.Function:
+			final JCO.Function f = JCoFunctionTranslator
+					.getJCOFunctionFromNotification(notification, repository);
 
-//            final JCO.Attributes attr = client.getAttributes();
-//            final String partnerRelease = attr.getPartnerRelease();
-//            logger.debug("Partner release: " + partnerRelease);
-//            return (null != partnerRelease) && (partnerRelease.length() > 0);
-            
-            return true;
-        } catch (Throwable t) {
-            logger.error("Exception during testing SAP server's state", t);
-            return false;
-        } finally {
-            if (null != client) {
-                releaseJCOClient(client);
-            }
-        }
-    }
+			// REVIEW: is below synchronization necessary ?
+			// synchronized (this) {
+			client = getJCOClient();
+			client.execute(f);
+			// }
+			final boolean send = checkFunctionReturn(f);
+			logger.debug("Notification message to ["
+					+ notification.getMessage().getSender()
+					+ "] delivered with sent status: "
+					+ notification.getState().name());
+			return send;
+		} catch (Throwable t) {
+			logger
+					.fatal(
+							"Exception during sending the notification message to SAP server",
+							t);
+			return false;
+		} finally {
+			if (null != client) {
+				releaseJCOClient(client);
+			}
+		}
+	}
 
-    public boolean isDefault() {
-        return instanceDef.isDefaultInstance();
-    }
+	public boolean isRemoteSystemWorking() {
+		// TODO: [MZ] i'm not sure whether this implementation is correct
+		JCO.Client client = null;
+		try {
+			client = getJCOClient();
 
-    public String getName() {
-        return instanceDef.getName();
-    }
+			if (null == client) {
+				logger
+						.warn("Cannot obtain JCO.Client object from pool during testing SAP server's state.");
+				return false;
+			}
 
-    @Override
-    public boolean equals(final Object o) {
-        // REVIEW: is this correct ?
-        if (null == o) {
-            return false;
-        }
-        if (!(o instanceof SAPComm)) {
-            return false;
-        }
-        if (o == this) {
-            return true;
-        }
+			// Send a ping to the server
+			client.ping();
 
-        final SAPComm s = (SAPComm) o;
-        return s.getName().equals(this.getName());
-    }
+			// final JCO.Attributes attr = client.getAttributes();
+			// final String partnerRelease = attr.getPartnerRelease();
+			// logger.debug("Partner release: " + partnerRelease);
+			// return (null != partnerRelease) && (partnerRelease.length() > 0);
 
-    @Override
-    public int hashCode() {
-        return getName().hashCode();
-        // TODO: implement
-    }
+			return true;
+		} catch (Throwable t) {
+			logger.error("Exception during testing SAP server's state", t);
+			return false;
+		} finally {
+			if (null != client) {
+				releaseJCOClient(client);
+			}
+		}
+	}
 
-    /**
-     * @see java.lang.Object#toString()
-     */
-    @Override
-    public String toString() {
-        return new ToStringBuilder(this).append("name", this.getName()).append(" initiated",
-                this.initiated).append(" default", this.isDefault()).append(
-                " SX_OBJECT_RECEIVE functions number", this.SX_OBJECT_RECEIVE_functionsNumber)
-                .append(" SX_OBJECT_STATUS_RECEIVE_functionsNumber",
-                        this.SX_OBJECT_STATUS_RECEIVE_functionsNumber).append(
-                        " Unrecognized functions number", this.unrecognizedFunctionsNumber).append(
-                        " Errors while handling functions", this.errorsWhileHandlingFunctions)
-                .toString();
-    }
+	public boolean isDefault() {
+		return instanceDef.isDefaultInstance();
+	}
 
-    public boolean isHandlingRequest() {
-        return handlingRequest;
-    }
-    
-    public boolean isActiveInstance() {
-    	return this.instanceDef.isActiveInstance();
-    }
+	public String getName() {
+		return instanceDef.getName();
+	}
 
+	@Override
+	public boolean equals(final Object o) {
+		// REVIEW: is this correct ?
+		if (null == o) {
+			return false;
+		}
+		if (!(o instanceof SAPComm)) {
+			return false;
+		}
+		if (o == this) {
+			return true;
+		}
+
+		final SAPComm s = (SAPComm) o;
+		return s.getName().equals(this.getName());
+	}
+
+	@Override
+	public int hashCode() {
+		return getName().hashCode();
+		// TODO: implement
+	}
+
+	/**
+	 * @see java.lang.Object#toString()
+	 */
+	@Override
+	public String toString() {
+		return new ToStringBuilder(this).append("name", this.getName()).append(
+				" initiated", this.initiated).append(" default",
+				this.isDefault()).append(" SX_OBJECT_RECEIVE functions number",
+				this.SX_OBJECT_RECEIVE_functionsNumber).append(
+				" SX_OBJECT_STATUS_RECEIVE_functionsNumber",
+				this.SX_OBJECT_STATUS_RECEIVE_functionsNumber).append(
+				" Unrecognized functions number",
+				this.unrecognizedFunctionsNumber).append(
+				" Errors while handling functions",
+				this.errorsWhileHandlingFunctions).toString();
+	}
+
+	public boolean isHandlingRequest() {
+		return handlingRequest;
+	}
+
+	public boolean isActiveInstance() {
+		return this.instanceDef.isActiveInstance();
+	}
+
 }
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
 | 
| 
     
      
      
      From: <zd...@us...> - 2006-09-23 21:33:42
      
     
   | 
Revision: 158
          http://svn.sourceforge.net/comsuite/?rev=158&view=rev
Author:   zduniak
Date:     2006-09-23 14:33:24 -0700 (Sat, 23 Sep 2006)
Log Message:
-----------
- Few files' name changed
- CSS corrected accordingly
Modified Paths:
--------------
    trunk/code/CSAdminPanel/WebContent/pages/css/mainStyle.css
Added Paths:
-----------
    trunk/code/CSAdminPanel/WebContent/pages/files/gif/background/banner_2.gif
    trunk/code/CSAdminPanel/WebContent/pages/files/gif/background/bg_1.gif
    trunk/code/CSAdminPanel/WebContent/pages/files/gif/background/bg_2.gif
Removed Paths:
-------------
    trunk/code/CSAdminPanel/WebContent/pages/files/gif/background/banner_bez_logo.gif
    trunk/code/CSAdminPanel/WebContent/pages/files/gif/background/tlo_1.gif
    trunk/code/CSAdminPanel/WebContent/pages/files/gif/background/tlo_2.gif
Modified: trunk/code/CSAdminPanel/WebContent/pages/css/mainStyle.css
===================================================================
--- trunk/code/CSAdminPanel/WebContent/pages/css/mainStyle.css	2006-09-23 21:24:34 UTC (rev 157)
+++ trunk/code/CSAdminPanel/WebContent/pages/css/mainStyle.css	2006-09-23 21:33:24 UTC (rev 158)
@@ -72,7 +72,7 @@
 }
 
 .menu{
-  background-image:url(../files/gif/background/tlo_2.gif);
+  background-image:url(../files/gif/background/bg_2.gif);
   width:205px;
   height:435px;
   display:block;
Copied: trunk/code/CSAdminPanel/WebContent/pages/files/gif/background/banner_2.gif (from rev 152, trunk/code/CSAdminPanel/WebContent/pages/files/gif/background/banner_bez_logo.gif)
===================================================================
(Binary files differ)
Deleted: trunk/code/CSAdminPanel/WebContent/pages/files/gif/background/banner_bez_logo.gif
===================================================================
(Binary files differ)
Copied: trunk/code/CSAdminPanel/WebContent/pages/files/gif/background/bg_1.gif (from rev 152, trunk/code/CSAdminPanel/WebContent/pages/files/gif/background/tlo_1.gif)
===================================================================
(Binary files differ)
Copied: trunk/code/CSAdminPanel/WebContent/pages/files/gif/background/bg_2.gif (from rev 152, trunk/code/CSAdminPanel/WebContent/pages/files/gif/background/tlo_2.gif)
===================================================================
(Binary files differ)
Deleted: trunk/code/CSAdminPanel/WebContent/pages/files/gif/background/tlo_1.gif
===================================================================
(Binary files differ)
Deleted: trunk/code/CSAdminPanel/WebContent/pages/files/gif/background/tlo_2.gif
===================================================================
(Binary files differ)
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
 | 
| 
     
      
      
      From: <zd...@us...> - 2006-09-23 21:24:43
      
     
   | 
Revision: 157
          http://svn.sourceforge.net/comsuite/?rev=157&view=rev
Author:   zduniak
Date:     2006-09-23 14:24:34 -0700 (Sat, 23 Sep 2006)
Log Message:
-----------
Second banner with BCC logo renamed
Added Paths:
-----------
    trunk/code/CSAdminPanel/WebContent/pages/files/gif/background/banner_with_bcc_logo2.gif
Removed Paths:
-------------
    trunk/code/CSAdminPanel/WebContent/pages/files/gif/background/banner_2.gif
Deleted: trunk/code/CSAdminPanel/WebContent/pages/files/gif/background/banner_2.gif
===================================================================
(Binary files differ)
Copied: trunk/code/CSAdminPanel/WebContent/pages/files/gif/background/banner_with_bcc_logo2.gif (from rev 152, trunk/code/CSAdminPanel/WebContent/pages/files/gif/background/banner_2.gif)
===================================================================
(Binary files differ)
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
 | 
| 
     
      
      
      From: <zd...@us...> - 2006-09-23 21:17:58
      
     
   | 
Revision: 156
          http://svn.sourceforge.net/comsuite/?rev=156&view=rev
Author:   zduniak
Date:     2006-09-23 14:17:48 -0700 (Sat, 23 Sep 2006)
Log Message:
-----------
Banner with BCC logo renamed
Added Paths:
-----------
    trunk/code/CSAdminPanel/WebContent/pages/files/gif/background/banner_with_bcc_logo.gif
Removed Paths:
-------------
    trunk/code/CSAdminPanel/WebContent/pages/files/gif/background/banner_1.gif
Deleted: trunk/code/CSAdminPanel/WebContent/pages/files/gif/background/banner_1.gif
===================================================================
(Binary files differ)
Copied: trunk/code/CSAdminPanel/WebContent/pages/files/gif/background/banner_with_bcc_logo.gif (from rev 152, trunk/code/CSAdminPanel/WebContent/pages/files/gif/background/banner_1.gif)
===================================================================
(Binary files differ)
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
 | 
| 
     
      
      
      From: <zd...@us...> - 2006-09-23 18:12:13
      
     
   | 
Revision: 155
          http://svn.sourceforge.net/comsuite/?rev=155&view=rev
Author:   zduniak
Date:     2006-09-23 11:12:07 -0700 (Sat, 23 Sep 2006)
Log Message:
-----------
Form for changing language moved left a little (on 1024x768 screen resolution it was outside of visible are with previous configuration)
Modified Paths:
--------------
    trunk/code/CSAdminPanel/WebContent/pages/CSHeader.jsp
Modified: trunk/code/CSAdminPanel/WebContent/pages/CSHeader.jsp
===================================================================
--- trunk/code/CSAdminPanel/WebContent/pages/CSHeader.jsp	2006-09-23 17:49:43 UTC (rev 154)
+++ trunk/code/CSAdminPanel/WebContent/pages/CSHeader.jsp	2006-09-23 18:12:07 UTC (rev 155)
@@ -1,81 +1,110 @@
-<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
-<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
+<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
+<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
 
-<div class="csheader" >
-<f:subview id="CSHeader">
+<div class="csheader"><f:subview id="CSHeader">
 	<f:loadBundle basename="org.commsuite.web.locale.Locale" var="Locale" />
 	<h:form id="lang">
-		<h:panelGrid columns="3" styleClass="header">
-			<h:panelGrid id="headerName" columns="1" styleClass="header-menu-banner">
-			
-				<h:panelGrid columns="7" styleClass="header-menu-icons">
+		<h:panelGrid columns="1" styleClass="header">
+			<h:panelGrid id="headerName" columns="1"
+				styleClass="header-menu-banner">
+				<h:panelGrid columns="10" styleClass="header-menu-icons">
 					<h:commandLink action="home" styleClass="header-link">
-					<h:panelGrid columns="1">
-						<h:graphicImage value="#{pageContext.request.contextPath}/pages/files/gif/user-home.gif" styleClass="header-icon"/>
-						<h:outputText value="#{Locale.MENU_MAIN}" styleClass="header-command"/>
-					</h:panelGrid>
+						<h:panelGrid columns="1">
+							<h:graphicImage
+								value="#{pageContext.request.contextPath}/pages/files/gif/user-home.gif"
+								styleClass="header-icon" />
+							<h:outputText value="#{Locale.MENU_MAIN}"
+								styleClass="header-command" />
+						</h:panelGrid>
 					</h:commandLink>
-					
-					<h:commandLink actionListener="#{searchServerBean.doSearching}" action="showServers" >
-					<f:param value="false" name="searching" />
-					<h:panelGrid columns="1">
-							<h:graphicImage value="#{pageContext.request.contextPath}/pages/files/gif/network-server.gif" styleClass="header-icon"/>
-							<h:outputText value="#{Locale.MENU_SERVERS}" styleClass="header-command"/>
-					</h:panelGrid>
+
+					<h:commandLink actionListener="#{searchServerBean.doSearching}"
+						action="showServers">
+						<f:param value="false" name="searching" />
+						<h:panelGrid columns="1">
+							<h:graphicImage
+								value="#{pageContext.request.contextPath}/pages/files/gif/network-server.gif"
+								styleClass="header-icon" />
+							<h:outputText value="#{Locale.MENU_SERVERS}"
+								styleClass="header-command" />
+						</h:panelGrid>
 					</h:commandLink>
-					
-					<h:commandLink action="#{searchMessageBean.showAll}" styleClass="header-link">
-					<h:panelGrid columns="1">
-						<h:graphicImage value="#{pageContext.request.contextPath}/pages/files/gif/mail-message-new.gif" styleClass="header-icon"/>
-						<h:outputText value="#{Locale.MENU_INBOX}" styleClass="header-command"/>
-					</h:panelGrid>
+
+					<h:commandLink action="#{searchMessageBean.showAll}"
+						styleClass="header-link">
+						<h:panelGrid columns="1">
+							<h:graphicImage
+								value="#{pageContext.request.contextPath}/pages/files/gif/mail-message-new.gif"
+								styleClass="header-icon" />
+							<h:outputText value="#{Locale.MENU_INBOX}"
+								styleClass="header-command" />
+						</h:panelGrid>
 					</h:commandLink>
-					
-					<h:commandLink actionListener="#{searchUserBean.selectUser}" action="showUsers" >
-					<f:param value="false" name="searching" />
-					<h:panelGrid columns="1">
-						<h:graphicImage value="#{pageContext.request.contextPath}/pages/files/gif/contact-new.gif" styleClass="header-icon"/>
-						<h:outputText value="#{Locale.MENU_USERS}" styleClass="header-command"/>
-					</h:panelGrid>
+
+					<h:commandLink actionListener="#{searchUserBean.selectUser}"
+						action="showUsers">
+						<f:param value="false" name="searching" />
+						<h:panelGrid columns="1">
+							<h:graphicImage
+								value="#{pageContext.request.contextPath}/pages/files/gif/contact-new.gif"
+								styleClass="header-icon" />
+							<h:outputText value="#{Locale.MENU_USERS}"
+								styleClass="header-command" />
+						</h:panelGrid>
 					</h:commandLink>
-					
-					<h:commandLink action="searchRole" >
-					<h:panelGrid columns="1">
-						<h:graphicImage value="#{pageContext.request.contextPath}/pages/files/gif/preferences-desktop-theme.gif" styleClass="header-icon"/>
-						<h:outputText value="#{Locale.MENU_ROLES}" styleClass="header-command"/>
-					</h:panelGrid>
+
+					<h:commandLink action="searchRole">
+						<h:panelGrid columns="1">
+							<h:graphicImage
+								value="#{pageContext.request.contextPath}/pages/files/gif/preferences-desktop-theme.gif"
+								styleClass="header-icon" />
+							<h:outputText value="#{Locale.MENU_ROLES}"
+								styleClass="header-command" />
+						</h:panelGrid>
 					</h:commandLink>
+
+					<h:commandLink action="searchAction">
+						<h:panelGrid columns="1">
+							<h:graphicImage
+								value="#{pageContext.request.contextPath}/pages/files/gif/video-x-generic.gif"
+								styleClass="header-icon" />
+							<h:outputText value="#{Locale.MENU_ACTIONS}"
+								styleClass="header-command" />
+						</h:panelGrid>
+					</h:commandLink>
+
+					<h:commandLink action="searchGroup">
+						<h:panelGrid columns="1">
+							<h:graphicImage
+								value="#{pageContext.request.contextPath}/pages/files/gif/x-office-address-book.gif"
+								styleClass="header-icon" />
+							<h:outputText value="#{Locale.MENU_GROUPS}"
+								styleClass="header-command" />
+						</h:panelGrid>
+					</h:commandLink>
 					
-					<h:commandLink action="searchAction" >
 					<h:panelGrid columns="1">
-						<h:graphicImage value="#{pageContext.request.contextPath}/pages/files/gif/video-x-generic.gif" styleClass="header-icon"/>
-						<h:outputText value="#{Locale.MENU_ACTIONS}" styleClass="header-command"/>
+						<h:outputText value=" "
+							styleClass="header-icon" />
 					</h:panelGrid>
-					</h:commandLink>
-					
-					<h:commandLink action="searchGroup" >
+
+					<h:panelGroup id="headerLangCombo" styleClass="header-lang">
+						<h:graphicImage
+							value="#{pageContext.request.contextPath}/pages/files/gif/preferences-desktop-locale.gif" />
+						<h:selectOneMenu value="#{languageSelectionBean.locale}">
+							<f:selectItems
+								value="#{languageSelectionBean.supportedLanguages}" />
+						</h:selectOneMenu>
+						<h:commandButton value="Go!" />
+					</h:panelGroup>
+
 					<h:panelGrid columns="1">
-						<h:graphicImage value="#{pageContext.request.contextPath}/pages/files/gif/x-office-address-book.gif" styleClass="header-icon"/>
-						<h:outputText value="#{Locale.MENU_GROUPS}" styleClass="header-command"/>
+						<h:outputText value="[#{sessionBean.currentlyLogged}]"
+							styleClass="header-user" />
+						<h:commandLink value="Logout" action="#{sessionBean.logout}" />
 					</h:panelGrid>
-					</h:commandLink>
 				</h:panelGrid>
-			
 			</h:panelGrid>
-			
-			<h:panelGroup id="headerLangCombo" styleClass="header-lang">
-				<h:graphicImage value="#{pageContext.request.contextPath}/pages/files/gif/preferences-desktop-locale.gif" />
-				<h:selectOneMenu value="#{languageSelectionBean.locale}">
-					<f:selectItems value="#{languageSelectionBean.supportedLanguages}"/>
-				</h:selectOneMenu>
-				<h:commandButton value="Go!" />
-			</h:panelGroup>
-			
-			<h:panelGrid columns="1">
-				<h:outputText value="[#{sessionBean.currentlyLogged}]" styleClass="header-user"/>
-				<h:commandLink value="Logout" action="#{sessionBean.logout}" />
-			</h:panelGrid>
 		</h:panelGrid>
 	</h:form>
-</f:subview>
-</div>  
+</f:subview></div>
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
 | 
| 
     
      
      
      From: <zd...@us...> - 2006-09-23 17:49:52
      
     
   | 
Revision: 154
          http://svn.sourceforge.net/comsuite/?rev=154&view=rev
Author:   zduniak
Date:     2006-09-23 10:49:43 -0700 (Sat, 23 Sep 2006)
Log Message:
-----------
Tests corrected
Modified Paths:
--------------
    trunk/code/CSTests/src/org/commsuite/devices/fax/polling/ReceivePollingJobTest.java
Modified: trunk/code/CSTests/src/org/commsuite/devices/fax/polling/ReceivePollingJobTest.java
===================================================================
--- trunk/code/CSTests/src/org/commsuite/devices/fax/polling/ReceivePollingJobTest.java	2006-09-23 17:45:22 UTC (rev 153)
+++ trunk/code/CSTests/src/org/commsuite/devices/fax/polling/ReceivePollingJobTest.java	2006-09-23 17:49:43 UTC (rev 154)
@@ -44,6 +44,7 @@
 import org.quartz.JobDataMap;
 import org.quartz.JobDetail;
 import org.quartz.JobExecutionContext;
+import org.quartz.JobExecutionException;
 
 /**
  * @author Rafał Malinowski
@@ -72,7 +73,7 @@
 		
 	}
 	
-	public void testExecute() throws IOException, ServerResponseException, FaxInboundMessageCreateException {
+	public void testExecute() throws IOException, ServerResponseException, FaxInboundMessageCreateException, JobExecutionException {
         Vector<String> fileList = new Vector<String>();
 		fileList.add("  fax000000001.tif     +48 61 8417419      ");
 		
@@ -112,7 +113,7 @@
 		verify(hylafax);
 	}
 	
-	public void testExecuteIncoming() throws FileNotFoundException, IOException, ServerResponseException, FaxInboundMessageCreateException {
+	public void testExecuteIncoming() throws FileNotFoundException, IOException, ServerResponseException, FaxInboundMessageCreateException, JobExecutionException {
 		Vector<String> fileList1 = new Vector<String>();
 		Vector<String> fileList2 = new Vector<String>();
 		fileList1.add("* fax000000001.tif     +48 61 8417419      ");
@@ -160,7 +161,7 @@
 		verify(hylafax);
 	}
 	
-	public void testExecuteIncomingNotInOrder() throws IOException, ServerResponseException, FaxInboundMessageCreateException {
+	public void testExecuteIncomingNotInOrder() throws IOException, ServerResponseException, FaxInboundMessageCreateException, JobExecutionException {
 		Vector<String> fileList1 = new Vector<String>();
 		Vector<String> fileList2 = new Vector<String>();
 		Vector<String> fileList3 = new Vector<String>();
@@ -227,7 +228,7 @@
 		verify(hylafax);
 	}
 	
-	public void testExecuteWrongFilename() throws IOException, ServerResponseException, FaxInboundMessageCreateException {
+	public void testExecuteWrongFilename() throws IOException, ServerResponseException, FaxInboundMessageCreateException, JobExecutionException {
 		Vector<String> fileList = new Vector<String>();
 		fileList.add("  fax000000001.tif     +48 61 8417419      ");
 		fileList.add("  fax000000002.gif     +48 61 8417419      ");
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
 | 
| 
     
      
      
      From: <zd...@us...> - 2006-09-23 17:45:30
      
     
   | 
Revision: 153
          http://svn.sourceforge.net/comsuite/?rev=153&view=rev
Author:   zduniak
Date:     2006-09-23 10:45:22 -0700 (Sat, 23 Sep 2006)
Log Message:
-----------
File with SQL actions definition renamed.
Added Paths:
-----------
    trunk/code/CSAdminPanel/actions.sql
Removed Paths:
-------------
    trunk/code/CSAdminPanel/akcje.sql
Copied: trunk/code/CSAdminPanel/actions.sql (from rev 101, trunk/code/CSAdminPanel/akcje.sql)
===================================================================
--- trunk/code/CSAdminPanel/actions.sql	                        (rev 0)
+++ trunk/code/CSAdminPanel/actions.sql	2006-09-23 17:45:22 UTC (rev 153)
@@ -0,0 +1,48 @@
+/*delete from roles_actions;
+delete from actions;
+delete from roles;*/
+insert into actions(id, name) values (1, '/pages/*');
+/*insert into actions(id, name) values (2, '/pages/CSHeader.jsp');
+insert into actions(id, name) values (3, '/pages/CSContentsServlet.jsf?');
+insert into actions(id, name) values (4, '/pages/actions/CSActionAdd.jsf?');
+insert into actions(id, name) values (5, '/pages/actions/CSActionSearch.jsf?');
+insert into actions(id, name) values (6, '/pages/common/CSActionsToRole.jsf?');
+insert into actions(id, name) values (7, '/pages/common/CSRolesToGroup.jsf?');
+insert into actions(id, name) values (8, '/pages/common/CSUsersToRole.jsf?');
+insert into actions(id, name) values (9, '/pages/common/CSUsersToGroup.jsf?');
+insert into actions(id, name) values (10, '/pages/groups/CSGroupAdd.jsf?');
+insert into actions(id, name) values (11, '/pages/groups/CSGroupSearch.jsf?');
+insert into actions(id, name) values (12, '/pages/groups/CSGroupEdit.jsf?');
+insert into actions(id, name) values (13, '/pages/messages/CSMessages.jsf?');
+insert into actions(id, name) values (14, '/pages/servers/CSServerAdd.jsf?');
+insert into actions(id, name) values (15, '/pages/servers/CSSapServers.jsf?');
+insert into actions(id, name) values (16, '/pages/roles/CSRoleCreate.jsf?');
+insert into actions(id, name) values (17, '/pages/roles/CSRoleEdit.jsf?');
+insert into actions(id, name) values (18, '/pages/roles/CSRoleSearch.jsf?');
+insert into actions(id, name) values (19, '/pages/users/CSUserAdd.jsf?');
+insert into actions(id, name) values (20, '/pages/users/CSUserSearch.jsf?');
+insert into actions(id, name) values (21, '/pages/users/CSUsersSearchResult.jsf?');*/
+
+insert into roles(id, name) values (50, 'ROLE_SUPERVISOR');
+
+insert into roles_actions values (1, 50);
+/*insert into roles_actions values (2, 1);
+insert into roles_actions values (3, 1);
+insert into roles_actions values (4, 1);
+insert into roles_actions values (5, 1);
+insert into roles_actions values (6, 1);
+insert into roles_actions values (7, 1);
+insert into roles_actions values (8, 1);
+insert into roles_actions values (9, 1);
+insert into roles_actions values (10, 1);
+insert into roles_actions values (11, 1);
+insert into roles_actions values (12, 1);
+insert into roles_actions values (13, 1);
+insert into roles_actions values (14, 1);
+insert into roles_actions values (15, 1);
+insert into roles_actions values (16, 1);
+insert into roles_actions values (17, 1);
+insert into roles_actions values (18, 1);
+insert into roles_actions values (19, 1);
+insert into roles_actions values (20, 1);
+insert into roles_actions values (21, 1);*/actions
\ No newline at end of file
Deleted: trunk/code/CSAdminPanel/akcje.sql
===================================================================
--- trunk/code/CSAdminPanel/akcje.sql	2006-09-23 16:03:48 UTC (rev 152)
+++ trunk/code/CSAdminPanel/akcje.sql	2006-09-23 17:45:22 UTC (rev 153)
@@ -1,48 +0,0 @@
-/*delete from roles_actions;
-delete from actions;
-delete from roles;*/
-insert into actions(id, name) values (1, '/pages/*');
-/*insert into actions(id, name) values (2, '/pages/CSHeader.jsp');
-insert into actions(id, name) values (3, '/pages/CSContentsServlet.jsf?');
-insert into actions(id, name) values (4, '/pages/actions/CSActionAdd.jsf?');
-insert into actions(id, name) values (5, '/pages/actions/CSActionSearch.jsf?');
-insert into actions(id, name) values (6, '/pages/common/CSActionsToRole.jsf?');
-insert into actions(id, name) values (7, '/pages/common/CSRolesToGroup.jsf?');
-insert into actions(id, name) values (8, '/pages/common/CSUsersToRole.jsf?');
-insert into actions(id, name) values (9, '/pages/common/CSUsersToGroup.jsf?');
-insert into actions(id, name) values (10, '/pages/groups/CSGroupAdd.jsf?');
-insert into actions(id, name) values (11, '/pages/groups/CSGroupSearch.jsf?');
-insert into actions(id, name) values (12, '/pages/groups/CSGroupEdit.jsf?');
-insert into actions(id, name) values (13, '/pages/messages/CSMessages.jsf?');
-insert into actions(id, name) values (14, '/pages/servers/CSServerAdd.jsf?');
-insert into actions(id, name) values (15, '/pages/servers/CSSapServers.jsf?');
-insert into actions(id, name) values (16, '/pages/roles/CSRoleCreate.jsf?');
-insert into actions(id, name) values (17, '/pages/roles/CSRoleEdit.jsf?');
-insert into actions(id, name) values (18, '/pages/roles/CSRoleSearch.jsf?');
-insert into actions(id, name) values (19, '/pages/users/CSUserAdd.jsf?');
-insert into actions(id, name) values (20, '/pages/users/CSUserSearch.jsf?');
-insert into actions(id, name) values (21, '/pages/users/CSUsersSearchResult.jsf?');*/
-
-insert into roles(id, name) values (50, 'ROLE_SUPERVISOR');
-
-insert into roles_actions values (1, 50);
-/*insert into roles_actions values (2, 1);
-insert into roles_actions values (3, 1);
-insert into roles_actions values (4, 1);
-insert into roles_actions values (5, 1);
-insert into roles_actions values (6, 1);
-insert into roles_actions values (7, 1);
-insert into roles_actions values (8, 1);
-insert into roles_actions values (9, 1);
-insert into roles_actions values (10, 1);
-insert into roles_actions values (11, 1);
-insert into roles_actions values (12, 1);
-insert into roles_actions values (13, 1);
-insert into roles_actions values (14, 1);
-insert into roles_actions values (15, 1);
-insert into roles_actions values (16, 1);
-insert into roles_actions values (17, 1);
-insert into roles_actions values (18, 1);
-insert into roles_actions values (19, 1);
-insert into roles_actions values (20, 1);
-insert into roles_actions values (21, 1);*/actions
\ No newline at end of file
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
 | 
| 
     
      
      
      From: <sku...@us...> - 2006-09-23 16:04:39
      
     
   | 
Revision: 152
          http://svn.sourceforge.net/comsuite/?rev=152&view=rev
Author:   skuzniak
Date:     2006-09-23 09:03:48 -0700 (Sat, 23 Sep 2006)
Log Message:
-----------
locale added to every view tag
Modified Paths:
--------------
    trunk/code/CSAdminPanel/.exadelproject
    trunk/code/CSAdminPanel/JavaSource/org/commsuite/web/locale/Locale_en.properties
    trunk/code/CSAdminPanel/WebContent/pages/CSMainPanel.jsp
    trunk/code/CSAdminPanel/WebContent/pages/actions/CSActionAdd.jsp
    trunk/code/CSAdminPanel/WebContent/pages/actions/CSActionSearch.jsp
    trunk/code/CSAdminPanel/WebContent/pages/actions/CSActionsEdit.jsp
    trunk/code/CSAdminPanel/WebContent/pages/common/CSActionsToRole.jsp
    trunk/code/CSAdminPanel/WebContent/pages/common/CSRolesToGroup.jsp
    trunk/code/CSAdminPanel/WebContent/pages/common/CSUsersToGroup.jsp
    trunk/code/CSAdminPanel/WebContent/pages/common/CSUsersToRole.jsp
    trunk/code/CSAdminPanel/WebContent/pages/groups/CSGroupAdd.jsp
    trunk/code/CSAdminPanel/WebContent/pages/groups/CSGroupEdit.jsp
    trunk/code/CSAdminPanel/WebContent/pages/groups/CSGroupSearch.jsp
    trunk/code/CSAdminPanel/WebContent/pages/messages/CSMessages.jsp
    trunk/code/CSAdminPanel/WebContent/pages/messages/CSMessagesDetails.jsp
    trunk/code/CSAdminPanel/WebContent/pages/messages/CSMessagesSearch.jsp
    trunk/code/CSAdminPanel/WebContent/pages/roles/CSRoleCreate.jsp
    trunk/code/CSAdminPanel/WebContent/pages/roles/CSRoleEdit.jsp
    trunk/code/CSAdminPanel/WebContent/pages/roles/CSRoleSearch.jsp
    trunk/code/CSAdminPanel/WebContent/pages/servers/CSSAPServers.jsp
    trunk/code/CSAdminPanel/WebContent/pages/servers/CSServerAdd.jsp
    trunk/code/CSAdminPanel/WebContent/pages/servers/CSServerEdit.jsp
    trunk/code/CSAdminPanel/WebContent/pages/servers/CSServerSearch.jsp
    trunk/code/CSAdminPanel/WebContent/pages/users/CSUserAdd.jsp
    trunk/code/CSAdminPanel/WebContent/pages/users/CSUserEdit.jsp
    trunk/code/CSAdminPanel/WebContent/pages/users/CSUserSearch.jsp
    trunk/code/CSAdminPanel/WebContent/pages/users/CSUsersSearchResult.jsp
Modified: trunk/code/CSAdminPanel/.exadelproject
===================================================================
--- trunk/code/CSAdminPanel/.exadelproject	2006-09-23 14:21:37 UTC (rev 151)
+++ trunk/code/CSAdminPanel/.exadelproject	2006-09-23 16:03:48 UTC (rev 152)
@@ -18,8 +18,6 @@
  <FILESYSTEM ENTITY="FileSystemJar"
   LOCATION="%exadel.workspace%/lib/commons-beanutils-1.7.0.jar" NAME="lib-commons-beanutils-1.7.0.jar"/>
  <FILESYSTEM ENTITY="FileSystemJar"
-  LOCATION="%exadel.workspace%/lib/commons-digester-1.6.jar" NAME="lib-commons-digester-1.6.jar"/>
- <FILESYSTEM ENTITY="FileSystemJar"
   LOCATION="%exadel.workspace%/lib/commons-el-1.0.jar" NAME="lib-commons-el-1.0.jar"/>
  <FILESYSTEM ENTITY="FileSystemJar"
   LOCATION="%exadel.workspace%/lib/jstl-1.1.0.jar" NAME="lib-jstl-1.1.0.jar"/>
Modified: trunk/code/CSAdminPanel/JavaSource/org/commsuite/web/locale/Locale_en.properties
===================================================================
--- trunk/code/CSAdminPanel/JavaSource/org/commsuite/web/locale/Locale_en.properties	2006-09-23 14:21:37 UTC (rev 151)
+++ trunk/code/CSAdminPanel/JavaSource/org/commsuite/web/locale/Locale_en.properties	2006-09-23 16:03:48 UTC (rev 152)
@@ -1,52 +1,63 @@
 # login form
 WELCOME_LOGIN=Login:
-WELCOME_PASSWORD=Has\u0142o:
-LOGIN_BTN= Loguj
-WARNING_WRONG_LOGIN_PASSWORD=Podano z\u0142y login lub has\u0142o.
-MESSAGE_BACK_LOGIN_PAGE=Link poni\u017cej zaprowadzi Ci\u0119 spowrotem do strony logowania.
-LOGIN_PAGE=Strona logowania 
+WELCOME_PASSWORD=Password:
+LOGIN_BTN= Log me in
+WARNING_WRONG_LOGIN_PASSWORD=Wrong login or password
+MESSAGE_BACK_LOGIN_PAGE=Link below will lead You to the login page
+LOGIN_PAGE=Login page
+# first page texts
+INFO_SERVERS=The 'servers' section allows to adding, modyfing, deleting and viewing available servers.
+INFO_MESSAGES=The 'messages' section allows to viewing messages from database.
+INFO_USERS=The 'users' section allows to adding, modyfing, deleting and viewing users registered in system.
+INFO_GROUPS= The 'groups' section allows to managing groups - adding, deleting, and modifications of existing groups. Here is \
+		possibility to assign users and roles to group.
+INFO_ROLES= The 'roles' section allows to managing roles - adding, deleting, and modifications of existing roles. Here is \
+		possibility to assign users and actions to role.
+INFO_ACTIONS=The 'actions' section allows to manage actions, which can be performed by system users - adding, deleting, and modifications.
 # pages titles
 TITLE=Communications Suite - 
-LOGIN_ERROR_TITLE=B\u0142\u0105d logowania
-LOGIN_TITLE=Logowanie
-MAIN_TITLE=Strona g\u0142\u00f3wna
-SERVERS_LIST_TITLE=Lista serwer\u00f3w R/3
-SERVERS_SEARCH_TITLE=Wyszukiwanie serwer\u00f3w
-SERVERS_ADD_TITLE=Dodawanie serwer\u00f3w
-MESSAGES_LIST_TITLE=Lista wiadomo\u015bci
-MESSAGES_SEARCH_TITLE=Wyszukiwanie wiadomo\u015bci
-USERS_SEARCH_TITLE=Wyszukiwanie u\u017cytkownik\u00f3w
-USERS_LIST_TITLE=Lista u\u017cytkownik\u00f3w
-USERS_ADD_TITLE=Dodawanie u\u017cytkownik\u00f3w
-USERS_EDIT_TITLE=Edycja u\u017cytkownik\u00f3w
-ACTIONS_ADD_TITLE=Dodawanie akcji
-ACTIONS_LIST_TITLE=Lista akcji
-ACTIONS_EDIT_TITLE=Edycja akcji
-ROLES_LIST_TITLE=Lista r\u00f3l
-ROLES_EDIT_TITLE=Edycja roli
-ROLES_ADD_TITLE=Dodawanie roli
-ROLES_ACTIONS_TITLE=Przypisywanie akcji do roli
-ROLES_USERS_TITLE=Przypisywanie u\u017cytkownik\u00f3w do roli
-GROUPS_LIST_TITLE=Lista grup
-GROUPS_EDIT_TITLE=Edycja grupy
-GROUPS_ADD_TITLE=Dodawanie grupy
-GROUPS_ROLES_TITLE=Przypisywanie r\u00f3l do grupy
-GROUPS_USERS_TITLE=Przypisywanie u\u017cytkownik\u00f3w do grupy
+LOGIN_ERROR_TITLE=Login error
+LOGIN_TITLE=Login
+MAIN_TITLE=Main page
+SERVERS_LIST_TITLE=R/3 servers list
+SERVERS_SEARCH_TITLE=Search server
+SERVERS_ADD_TITLE=Add server
+MESSAGES_LIST_TITLE=Messages list
+MESSAGES_DETAILS_TITLE=Message details
+MESSAGES_SEARCH_TITLE=Search message
+USERS_SEARCH_TITLE=Search user
+USERS_LIST_TITLE=Users list
+USERS_ADD_TITLE=Add user
+USERS_EDIT_TITLE=Edit user
+ACTIONS_ADD_TITLE=Add action
+ACTIONS_LIST_TITLE=Actions list
+ACTIONS_EDIT_TITLE=Edit action
+ROLES_LIST_TITLE=Roles list
+ROLES_EDIT_TITLE=Edit role
+ROLES_ADD_TITLE=Add role
+ROLES_ACTIONS_TITLE=Assign action to role
+ROLES_USERS_TITLE=Assign user to role
+GROUPS_LIST_TITLE=Groups list
+GROUPS_EDIT_TITLE=Edit group
+GROUPS_ADD_TITLE=Add group
+GROUPS_ROLES_TITLE=Assign role to group
+GROUPS_USERS_TITLE=Assign user to group
 # upper menu
-MENU_LANG=J\u0119zyk:
-MENU_LOGGED_AS=Zalogowny jako:
-MENU_LANG_BTN=Zmie\u0144
-MENU_INBOX=Wiadomo\u015bci
-MENU_SERVERS=Serwery
-MENU_USERS=U\u017cytkownicy
-MENU_ACTIONS=Akcje
-MENU_GROUPS=Grupy
-MENU_ROLES=Role
-MENU_MAIN=G\u0142\u00f3wna
+MENU_LANG=Language:
+MENU_LOGGED_AS=Logged as:
+MENU_LANG_BTN=Change
+MENU_INBOX=Messages
+MENU_SERVERS=Servers
+MENU_USERS=Users
+MENU_ACTIONS=Actions
+MENU_GROUPS=Groups
+MENU_ROLES=Roles
+MENU_MAIN=Home
 # user
 USER_TITLE_ADD=Dodaj u\u017cytkownika
+USER_TITLE_EDIT=Edycja u\u017cytkownika
 USER_TITLE_SEARCH=Wyszukiwanie u\u017cytkownik\u00f3w
-USER_TITLE_LIST=Znalezieni u\u017cytkownik\u00f3w
+USER_TITLE_LIST=Znalezieni u\u017cytkownicy
 USER_DATA_PERSONAL=Dane personalne
 USER_DATA_COMPANY=Dane firmowe
 USER_DATA_ADDRESS=Adres i dane kontaktowe
@@ -94,12 +105,14 @@
 ROLE_FOUND=Znalezione role:
 # server 
 SERVER_TITLE_ADD=Dodaj nowy serwer
+SERVER_TITLE_EDIT=Edycja serwera
+SERVER_TITLE_SEARCH=Wyszukiwanie serwer\u00f3w
 SERVER_TITLE_LIST=Lista serwer\u00f3w
 SERVER_SUBTITLE_INFO=Nazwa serwera
 SERVER_SUBTITLE_CONF=Ustawienia
 SERVER_SUBTITLE_USER=Dane u\u017cytkowika
 SERVER_SUBTITLE_BALANCING=R\u00f3wnowa\u017cenie obci\u0105\u017ce\u0144
-SERVER_TEST_BUTTON=Tesuj serwer
+SERVER_TEST_BUTTON=Testuj serwer
 SERVER_STATE_INFO=Stan serwera
 SERVER_NAME=Nazwa serwera
 SERVER_R3NAME=Nazwa serwera R/3
@@ -108,13 +121,18 @@
 SERVER_GROUP=Grupa
 SERVER_SYSTEM_NUMBER=Numer systemowy
 SERVER_LOAD_BALANCING=R\u00f3wnowa\u017cenie obci\u0105\u017ce\u0144
+SERVER_LOAD_BALANCING_ENABLED=R\u00f3wnowa\u017cenie obci\u0105\u017ce\u0144: w\u0142\u0105czone
+SERVER_LOAD_BALANCING_DISABLED=R\u00f3wnowa\u017cenie obci\u0105\u017ce\u0144: wy\u0142\u0105czone
 SERVER_PROG_ID=Prog id
 SERVER_UNICODE=Unicode
+SERVER_ACTIVE_INSTANCE=Uaktywnij
+SERVER_ACTIVE=Instancja aktywna
 SERVER_GWHOST=GWHost
 SERVER_GWSERVER=GWServer
 SERVER_MANDANT=Klient(mandant)
 SERVER_USER=U\u017cytkownik
 SERVER_PASSWORD=Has\u0142o
+SERVER_PASSWORD_REPEAT=Powt\u00f3rz has\u0142o
 SERVER_ADM_EMAIL=e-mail administratora
 SERVER_HOST=Host
 # messages
@@ -143,10 +161,10 @@
 MESSAGE_CONTENTS_TITLE=Tytu\u0142
 MESSAGE_CONTENTS_MIME_TYPE=Mime
 MESSAGE_CONTENTS_CONTENT_TYPE=Rodzaj wiadomo\u015bci
-MESSAGE_CONTENTS_NAME=Zawarto\u015bc
+MESSAGE_CONTENTS_NAME=Zawarto\u015b\u0107
 MESSAGE_CONTENTS_STATE=Stan
 MENU_MESSAGE_LIST=Lista wiadomo\u015bci
-MENU_MESSAGE_SEARCH=Szukaj
+MENU_MESSAGE_SEARCH=Wyszukiwanie wiadomo\u015bci
 MESSAGE_RESUBMIT=Zakolejkuj ponownie
 # action
 ACTION_TITLE_ADD=Dodawanie nowych akcji
@@ -163,8 +181,8 @@
 GROUP_EDIT_ASSIGN_ROLE= - przypisywanie r\u00f3l	
 GROUP_EDIT_ASSIGN_USER= - przypisywanie u\u017cytkownik\u00f3w
 GROUP_NAME=Nazwa grupy: 
-GROUP_CURRENT_ROLES=Przypisane role
-GROUP_CURRENT_USERS=Przypisani u\u017cytkownicy
+GROUP_CURRENT_ROLES=Role przypisane do tej grupy
+GROUP_CURRENT_USERS=U\u017cytkownicy przypisani do tej grupy
 GROUP_ROLE_AVAILABLE=Dost\u0119pne role
 GROUP_ROLE_SELECTED=Role do przypisania
 GROUP_FOUND=Znalezione grupy
@@ -178,7 +196,7 @@
 MENU_ADD_USER=Dodawanie u\u017cytkownik\u00f3w
 MENU_SEARCH_USER=Wyszukiwanie u\u017cytkownik\u00f3w
 MENU_ADD_INSTANCE=Dodawanie server\u00f3w
-MENU_LIST_INSTANCES=Lista server\u00f3w
+MENU_LIST_INSTANCES=Wyszukiwanie server\u00f3w
 #messages
 MESSAGE_ACTION_SUCCESSFULL=Akcja dodana pomy\u015blnie.
 MESSAGE_ACTION_SUCCESSFULL_DELETE=Akcja usuni\u0119ta pomy\u015blnie.
@@ -208,15 +226,16 @@
 MESSAGE_GROUP_ERROR_FETCH= podczas pobierania listy grup.
 DUPLICATED_GROUP_MESSAGE=Grupa o podanej nazwie ju\u017c istnieje w bazie danych.
 
-MESSAGE_USER_SUCCESSFULL=U\u017cytkownik dodany pomy\u015blnie.
+MESSAGE_USER_SUCCESSFULL=U\u017cytkownik zmodyfikowany pomy\u015blnie.
 MESSAGE_USER_SUCCESSFULL_DELETE=U\u017cytkownik usuni\u0119ty pomy\u015blnie.
 MESSAGE_USER_SUCCESSFULL_UPDATE=U\u017cytkownik zmodyfikowany pomy\u015blnie.
 MESSAGE_USER_ERROR_ADD= podczas dodawania u\u017cytkownika.
 MESSAGE_USER_ERROR_DELETE= podczas usuwania u\u017cytkownika. 
 MESSAGE_USER_ERROR_UPDATE= podczas modyfikacji u\u017cytkownika. 
 MESSAGE_USER_ERROR_FETCH= podczas pobierania listy u\u017cytkownik\u00f3w.
+MESSAGE_USER_ERROR_PASSWORD=Has\u0142a musz\u0105 byc takie same.
 
-MESSAGE_SERVER_SUCCESSFULL=Serwer dodany pomy\u015blnie.
+MESSAGE_SERVER_SUCCESSFULL=Serwer zmodyfikowany pomy\u015blnie.
 MESSAGE_SERVER_SUCCESSFULL_DELETE=Serwer usuni\u0119ty pomy\u015blnie.
 MESSAGE_SERVER_SUCCESSFULL_UPDATE=Serwer zmodyfikowany pomy\u015blnie.
 MESSAGE_SERVER_ERROR_ADD= podczas dodawania serwera. 
@@ -225,17 +244,28 @@
 MESSAGE_SERVER_ERROR_FETCH= podczas pobierania listy serwer\u00f3w.
 MESSAGE_SERVER_ERROR_TEST= podczas testowania serwera.
 MESSAGE_SERVER_ERROR_IOOBE=Podany serwer nie zosta\u0142 odnaleziony.
+MESSAGE_SERVER_ERROR_PASSWORD=Has\u0142a musz\u0105 byc takie same.
 MESSAGE_SERVER_ERROR_VALIDATE=Nie zosta\u0142y wype\u0142nione pola konieczne, przy zaznaczeniu/odznaczeniu opcji 'R\u00f3wnowa\u017cenie obci\u0105\u017ce\u0144'
 
 MESSAGE_MESSAGE_ERROR_FETCH= podczas pobierania listy wiadomo\u015bci.
 
 MESSAGE_ERROR_MANDATORY_FIELD=Pole obowi\u0105zkowe
+MESSAGE_ERROR_NOTHING_SELECTED=Prosz\u0119 wybrac obiekt do edycji.
 MESSAGE_ERROR_EMAIL=Pole musi byc poprawnym adresem email
 MESSAGE_ERROR_LONG=Zbyt du\u017co znak\u00f3w
 MESSAGE_ERROR_POSTAL=Wymgany format dd-ddd
 MESSAGE_ERROR_PHONE=Wymagany format d*
 ERROR_TYPE=Pole powinno byc liczb\u0105,
 ERROR_RANGE=Liczba musi byc wi\u0119ksza od 0 i mniejsza od 100
+MESSAGE_ACTION_ERROR_ASSIGNED=Ta akcja jest przypisana i nie mo\u017ce byc usuni?ta. Usu\u0144 przypisania i spr\u00f3buj ponownie.
+MESSAGE_GROUP_ERROR_ASSIGNED=Ta grupa jest przypisana lub posiada jakie\u015b przypisania. Usu\u0144 przypisania i spr\u00f3buj ponownie.
+MESSAGE_ROLE_ERROR_ASSIGNED=Ta rola jest przypisana lub posiada jakie\u015b przypisania. Usu\u0144 przypisania i spr\u00f3buj ponownie.
+MESSAGE_USER_ERROR_ASSIGNED=Ten u\u017cytkownik jest przypisany do roli lub grupy. Usu\u0144 przypisania i spr\u00f3buj ponownie.
+# 403
+403_MAIN_MESSAGE=Zas\u00f3b jest chroniony.
+403_DESCRIPTION=Nie posiadasz wystarczaj\u0105cych upranie\u0144, aby przegl\u0105c t\u0105 stron\u0119 \
+				Aby uzyskac prawo do przegl\u0119dania tej i innych zastrze\u017conych zasob\u00f3w \
+				skontaktuj si\u0119 z administratorem systemu.
 # general
 MESSAGE_LATER=Spr\u00f3buj p\u00f3\u017aniej.
 MESSAGE_ERROR_DATABASE=Problem z baz\u0105 danych
@@ -245,13 +275,18 @@
 BUTTON_CANCEL=Anuluj
 LABEL_DESCRIPTION=Opis
 LOCALE_APP_NAME=Communications Suite
+LABEL_START=Start
+LABEL_STOP=Stop
 LABEL_EDIT=Edycja
 LABEL_ADD=Nowa
 LABEL_DELETE=Usu\u0144
 LABEL_TITLE_USER_FIRSTNAME=Imi\u0119
 LABEL_TITLE_USER_LASTNAME=Nazwisko
 LABEL_INSERT=Dodaj
+LABEL_DETAILS=Szczeg\u00f3\u0142y
+LABEL_BACK=Powr\u00f3t do listy
 LABEL_SEARCH=Szukaj
+LABEL_ACTIVE=Instancja aktywna
 COMMON_LEGEND=Legenda
 COMMON_LEGEND_MANDATORY=Pola obowi\u0105zkowe
 COMMON_LEGEND_WITH_LOAD_BALANCING=Pole obowi\u0105zkowe, gdy wybrano opcje 'R\u00f3wnowa\u017cenie obci\u0105\u017ce\u0144'
@@ -259,4 +294,6 @@
 COMMON_LEGEND_EMAIL=To pole jest obowi\u0105zkowe i musi zawierac unikatowy i istniej\u0105cy w systemie SAP R/3 adres e-mail u\u017cytkownika.
 COMMON_LEGEND_MAX_CONNECTIONS=To pole jest obowi\u0105zkowe i musi byc liczb\u0105 ca\u0142kowit\u0105 z przedzia\u0142u <1 - 100>.
 COMMON_LEGEND_POSTAL=Kod pocztowy w formacie: dd-ddd
-COMMON_LEGEND_PHONE=Numer telefonu
\ No newline at end of file
+COMMON_LEGEND_PHONE=Numer telefonu
+COMMON_LEGEND_ACTIVATE=Uaktywnia wybran\u0105 instancj\u0119. Tylko instancje aktywne mog\u0105 byc nast\u0119pnie uruchamiane lub zatrzymywane, \
+			r\u00f3wnie\u017c tylko instancje aktywne s\u0105 uruchamiane podczas startu serwera.
\ No newline at end of file
Modified: trunk/code/CSAdminPanel/WebContent/pages/CSMainPanel.jsp
===================================================================
--- trunk/code/CSAdminPanel/WebContent/pages/CSMainPanel.jsp	2006-09-23 14:21:37 UTC (rev 151)
+++ trunk/code/CSAdminPanel/WebContent/pages/CSMainPanel.jsp	2006-09-23 16:03:48 UTC (rev 152)
@@ -3,7 +3,7 @@
 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
 <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
 <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
-<f:view>
+<f:view locale="#{languageSelectionBean.locale}">
 <f:loadBundle basename="org.commsuite.web.locale.Locale" var="Locale" />
 <html>
 	<head>
Modified: trunk/code/CSAdminPanel/WebContent/pages/actions/CSActionAdd.jsp
===================================================================
--- trunk/code/CSAdminPanel/WebContent/pages/actions/CSActionAdd.jsp	2006-09-23 14:21:37 UTC (rev 151)
+++ trunk/code/CSAdminPanel/WebContent/pages/actions/CSActionAdd.jsp	2006-09-23 16:03:48 UTC (rev 152)
@@ -1,6 +1,6 @@
 <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
 <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
-<f:view>
+<f:view locale="#{languageSelectionBean.locale}">
 <f:loadBundle basename="org.commsuite.web.locale.Locale" var="Locale" />
 <html>
 	<head>
Modified: trunk/code/CSAdminPanel/WebContent/pages/actions/CSActionSearch.jsp
===================================================================
--- trunk/code/CSAdminPanel/WebContent/pages/actions/CSActionSearch.jsp	2006-09-23 14:21:37 UTC (rev 151)
+++ trunk/code/CSAdminPanel/WebContent/pages/actions/CSActionSearch.jsp	2006-09-23 16:03:48 UTC (rev 152)
@@ -1,6 +1,6 @@
 <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
 <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
-<f:view>
+<f:view locale="#{languageSelectionBean.locale}">
 <f:loadBundle basename="org.commsuite.web.locale.Locale" var="Locale" />
 <html>
 	<head>
Modified: trunk/code/CSAdminPanel/WebContent/pages/actions/CSActionsEdit.jsp
===================================================================
--- trunk/code/CSAdminPanel/WebContent/pages/actions/CSActionsEdit.jsp	2006-09-23 14:21:37 UTC (rev 151)
+++ trunk/code/CSAdminPanel/WebContent/pages/actions/CSActionsEdit.jsp	2006-09-23 16:03:48 UTC (rev 152)
@@ -1,6 +1,6 @@
 <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
 <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
-<f:view>
+<f:view locale="#{languageSelectionBean.locale}">
 <f:loadBundle basename="org.commsuite.web.locale.Locale" var="Locale" />
 <html>
 	<head>
Modified: trunk/code/CSAdminPanel/WebContent/pages/common/CSActionsToRole.jsp
===================================================================
--- trunk/code/CSAdminPanel/WebContent/pages/common/CSActionsToRole.jsp	2006-09-23 14:21:37 UTC (rev 151)
+++ trunk/code/CSAdminPanel/WebContent/pages/common/CSActionsToRole.jsp	2006-09-23 16:03:48 UTC (rev 152)
@@ -1,6 +1,6 @@
 <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
 <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
-<f:view>
+<f:view locale="#{languageSelectionBean.locale}">
 <f:loadBundle basename="org.commsuite.web.locale.Locale" var="Locale" />
 <html>
 	<head>
Modified: trunk/code/CSAdminPanel/WebContent/pages/common/CSRolesToGroup.jsp
===================================================================
--- trunk/code/CSAdminPanel/WebContent/pages/common/CSRolesToGroup.jsp	2006-09-23 14:21:37 UTC (rev 151)
+++ trunk/code/CSAdminPanel/WebContent/pages/common/CSRolesToGroup.jsp	2006-09-23 16:03:48 UTC (rev 152)
@@ -1,6 +1,6 @@
 <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
 <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
-<f:view>
+<f:view locale="#{languageSelectionBean.locale}">
 <f:loadBundle basename="org.commsuite.web.locale.Locale" var="Locale" />
 <html>
 	<head>
Modified: trunk/code/CSAdminPanel/WebContent/pages/common/CSUsersToGroup.jsp
===================================================================
--- trunk/code/CSAdminPanel/WebContent/pages/common/CSUsersToGroup.jsp	2006-09-23 14:21:37 UTC (rev 151)
+++ trunk/code/CSAdminPanel/WebContent/pages/common/CSUsersToGroup.jsp	2006-09-23 16:03:48 UTC (rev 152)
@@ -1,6 +1,6 @@
 <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
 <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
-<f:view>
+<f:view locale="#{languageSelectionBean.locale}">
 <f:loadBundle basename="org.commsuite.web.locale.Locale" var="Locale" />
 <html>
 	<head>
Modified: trunk/code/CSAdminPanel/WebContent/pages/common/CSUsersToRole.jsp
===================================================================
--- trunk/code/CSAdminPanel/WebContent/pages/common/CSUsersToRole.jsp	2006-09-23 14:21:37 UTC (rev 151)
+++ trunk/code/CSAdminPanel/WebContent/pages/common/CSUsersToRole.jsp	2006-09-23 16:03:48 UTC (rev 152)
@@ -1,6 +1,6 @@
 <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
 <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
-<f:view>
+<f:view locale="#{languageSelectionBean.locale}">
 <f:loadBundle basename="org.commsuite.web.locale.Locale" var="Locale" />
 <html>
 	<head>
Modified: trunk/code/CSAdminPanel/WebContent/pages/groups/CSGroupAdd.jsp
===================================================================
--- trunk/code/CSAdminPanel/WebContent/pages/groups/CSGroupAdd.jsp	2006-09-23 14:21:37 UTC (rev 151)
+++ trunk/code/CSAdminPanel/WebContent/pages/groups/CSGroupAdd.jsp	2006-09-23 16:03:48 UTC (rev 152)
@@ -1,6 +1,6 @@
 <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
 <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
-<f:view>
+<f:view locale="#{languageSelectionBean.locale}">
 <f:loadBundle basename="org.commsuite.web.locale.Locale" var="Locale" />
 <html>
 	<head>
Modified: trunk/code/CSAdminPanel/WebContent/pages/groups/CSGroupEdit.jsp
===================================================================
--- trunk/code/CSAdminPanel/WebContent/pages/groups/CSGroupEdit.jsp	2006-09-23 14:21:37 UTC (rev 151)
+++ trunk/code/CSAdminPanel/WebContent/pages/groups/CSGroupEdit.jsp	2006-09-23 16:03:48 UTC (rev 152)
@@ -1,6 +1,6 @@
 <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
 <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
-<f:view>
+<f:view locale="#{languageSelectionBean.locale}">
 <f:loadBundle basename="org.commsuite.web.locale.Locale" var="Locale" />
 <html>
 	<head>
Modified: trunk/code/CSAdminPanel/WebContent/pages/groups/CSGroupSearch.jsp
===================================================================
--- trunk/code/CSAdminPanel/WebContent/pages/groups/CSGroupSearch.jsp	2006-09-23 14:21:37 UTC (rev 151)
+++ trunk/code/CSAdminPanel/WebContent/pages/groups/CSGroupSearch.jsp	2006-09-23 16:03:48 UTC (rev 152)
@@ -1,6 +1,6 @@
 <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
 <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
-<f:view>
+<f:view locale="#{languageSelectionBean.locale}">
 <f:loadBundle basename="org.commsuite.web.locale.Locale" var="Locale" />
 <html>
 	<head>
Modified: trunk/code/CSAdminPanel/WebContent/pages/messages/CSMessages.jsp
===================================================================
--- trunk/code/CSAdminPanel/WebContent/pages/messages/CSMessages.jsp	2006-09-23 14:21:37 UTC (rev 151)
+++ trunk/code/CSAdminPanel/WebContent/pages/messages/CSMessages.jsp	2006-09-23 16:03:48 UTC (rev 152)
@@ -1,7 +1,7 @@
 <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
 <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
 <%@ taglib uri="http://myfaces.apache.org/tomahawk" prefix="t" %>
-<f:view>
+<f:view locale="#{languageSelectionBean.locale}">
 <f:loadBundle basename="org.commsuite.web.locale.Locale" var="Locale" />
 <html>
 <head>
Modified: trunk/code/CSAdminPanel/WebContent/pages/messages/CSMessagesDetails.jsp
===================================================================
--- trunk/code/CSAdminPanel/WebContent/pages/messages/CSMessagesDetails.jsp	2006-09-23 14:21:37 UTC (rev 151)
+++ trunk/code/CSAdminPanel/WebContent/pages/messages/CSMessagesDetails.jsp	2006-09-23 16:03:48 UTC (rev 152)
@@ -1,6 +1,6 @@
 <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
 <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
-<f:view>
+<f:view locale="#{languageSelectionBean.locale}">
 <f:loadBundle basename="org.commsuite.web.locale.Locale" var="Locale" />
 <html>
 <head>
Modified: trunk/code/CSAdminPanel/WebContent/pages/messages/CSMessagesSearch.jsp
===================================================================
--- trunk/code/CSAdminPanel/WebContent/pages/messages/CSMessagesSearch.jsp	2006-09-23 14:21:37 UTC (rev 151)
+++ trunk/code/CSAdminPanel/WebContent/pages/messages/CSMessagesSearch.jsp	2006-09-23 16:03:48 UTC (rev 152)
@@ -1,6 +1,6 @@
 <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
 <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
-<f:view>
+<f:view locale="#{languageSelectionBean.locale}">
 <f:loadBundle basename="org.commsuite.web.locale.Locale" var="Locale" />
 <html>
 	<head>
Modified: trunk/code/CSAdminPanel/WebContent/pages/roles/CSRoleCreate.jsp
===================================================================
--- trunk/code/CSAdminPanel/WebContent/pages/roles/CSRoleCreate.jsp	2006-09-23 14:21:37 UTC (rev 151)
+++ trunk/code/CSAdminPanel/WebContent/pages/roles/CSRoleCreate.jsp	2006-09-23 16:03:48 UTC (rev 152)
@@ -1,6 +1,6 @@
 <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
 <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
-<f:view>
+<f:view locale="#{languageSelectionBean.locale}">
 <f:loadBundle basename="org.commsuite.web.locale.Locale" var="Locale" />
 <html>
 	<head>
Modified: trunk/code/CSAdminPanel/WebContent/pages/roles/CSRoleEdit.jsp
===================================================================
--- trunk/code/CSAdminPanel/WebContent/pages/roles/CSRoleEdit.jsp	2006-09-23 14:21:37 UTC (rev 151)
+++ trunk/code/CSAdminPanel/WebContent/pages/roles/CSRoleEdit.jsp	2006-09-23 16:03:48 UTC (rev 152)
@@ -1,6 +1,6 @@
 <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
 <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
-<f:view>
+<f:view locale="#{languageSelectionBean.locale}">
 <f:loadBundle basename="org.commsuite.web.locale.Locale" var="Locale" />
 <html>
 	<head>
Modified: trunk/code/CSAdminPanel/WebContent/pages/roles/CSRoleSearch.jsp
===================================================================
--- trunk/code/CSAdminPanel/WebContent/pages/roles/CSRoleSearch.jsp	2006-09-23 14:21:37 UTC (rev 151)
+++ trunk/code/CSAdminPanel/WebContent/pages/roles/CSRoleSearch.jsp	2006-09-23 16:03:48 UTC (rev 152)
@@ -1,6 +1,6 @@
 <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
 <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
-<f:view>
+<f:view locale="#{languageSelectionBean.locale}">
 <f:loadBundle basename="org.commsuite.web.locale.Locale" var="Locale" />
 <html>
 	<head>
Modified: trunk/code/CSAdminPanel/WebContent/pages/servers/CSSAPServers.jsp
===================================================================
--- trunk/code/CSAdminPanel/WebContent/pages/servers/CSSAPServers.jsp	2006-09-23 14:21:37 UTC (rev 151)
+++ trunk/code/CSAdminPanel/WebContent/pages/servers/CSSAPServers.jsp	2006-09-23 16:03:48 UTC (rev 152)
@@ -1,7 +1,7 @@
 <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
 <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
 <%@ taglib uri="http://myfaces.apache.org/tomahawk" prefix="t" %>
-<f:view>
+<f:view locale="#{languageSelectionBean.locale}">
 <f:loadBundle basename="org.commsuite.web.locale.Locale" var="Locale" />
 <html>
 	<head>
Modified: trunk/code/CSAdminPanel/WebContent/pages/servers/CSServerAdd.jsp
===================================================================
--- trunk/code/CSAdminPanel/WebContent/pages/servers/CSServerAdd.jsp	2006-09-23 14:21:37 UTC (rev 151)
+++ trunk/code/CSAdminPanel/WebContent/pages/servers/CSServerAdd.jsp	2006-09-23 16:03:48 UTC (rev 152)
@@ -1,6 +1,6 @@
 <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
 <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
-<f:view>
+<f:view locale="#{languageSelectionBean.locale}">
 <f:loadBundle basename="org.commsuite.web.locale.Locale" var="Locale" />
 <html>
 	<head>
Modified: trunk/code/CSAdminPanel/WebContent/pages/servers/CSServerEdit.jsp
===================================================================
--- trunk/code/CSAdminPanel/WebContent/pages/servers/CSServerEdit.jsp	2006-09-23 14:21:37 UTC (rev 151)
+++ trunk/code/CSAdminPanel/WebContent/pages/servers/CSServerEdit.jsp	2006-09-23 16:03:48 UTC (rev 152)
@@ -1,6 +1,6 @@
 <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
 <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
-<f:view>
+<f:view locale="#{languageSelectionBean.locale}">
 <f:loadBundle basename="org.commsuite.web.locale.Locale" var="Locale" />
 <html>
 	<head>
Modified: trunk/code/CSAdminPanel/WebContent/pages/servers/CSServerSearch.jsp
===================================================================
--- trunk/code/CSAdminPanel/WebContent/pages/servers/CSServerSearch.jsp	2006-09-23 14:21:37 UTC (rev 151)
+++ trunk/code/CSAdminPanel/WebContent/pages/servers/CSServerSearch.jsp	2006-09-23 16:03:48 UTC (rev 152)
@@ -1,6 +1,6 @@
 <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
 <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
-<f:view>
+<f:view locale="#{languageSelectionBean.locale}">
 <f:loadBundle basename="org.commsuite.web.locale.Locale" var="Locale" />
 <html>
 	<head>
Modified: trunk/code/CSAdminPanel/WebContent/pages/users/CSUserAdd.jsp
===================================================================
--- trunk/code/CSAdminPanel/WebContent/pages/users/CSUserAdd.jsp	2006-09-23 14:21:37 UTC (rev 151)
+++ trunk/code/CSAdminPanel/WebContent/pages/users/CSUserAdd.jsp	2006-09-23 16:03:48 UTC (rev 152)
@@ -1,7 +1,7 @@
 <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
 <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
 <%@ taglib uri="http://myfaces.apache.org/tomahawk" prefix="t" %>
-<f:view>
+<f:view locale="#{languageSelectionBean.locale}">
 <f:loadBundle basename="org.commsuite.web.locale.Locale" var="Locale" />
 <html>
 	<head>
Modified: trunk/code/CSAdminPanel/WebContent/pages/users/CSUserEdit.jsp
===================================================================
--- trunk/code/CSAdminPanel/WebContent/pages/users/CSUserEdit.jsp	2006-09-23 14:21:37 UTC (rev 151)
+++ trunk/code/CSAdminPanel/WebContent/pages/users/CSUserEdit.jsp	2006-09-23 16:03:48 UTC (rev 152)
@@ -1,7 +1,7 @@
 <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
 <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
 <%@ taglib uri="http://myfaces.apache.org/tomahawk" prefix="t" %>
-<f:view>
+<f:view locale="#{languageSelectionBean.locale}">
 <f:loadBundle basename="org.commsuite.web.locale.Locale" var="Locale" />
 <html>
 	<head>
Modified: trunk/code/CSAdminPanel/WebContent/pages/users/CSUserSearch.jsp
===================================================================
--- trunk/code/CSAdminPanel/WebContent/pages/users/CSUserSearch.jsp	2006-09-23 14:21:37 UTC (rev 151)
+++ trunk/code/CSAdminPanel/WebContent/pages/users/CSUserSearch.jsp	2006-09-23 16:03:48 UTC (rev 152)
@@ -1,7 +1,7 @@
 <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
 <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
 <%@ taglib uri="http://myfaces.apache.org/tomahawk" prefix="t" %>
-<f:view>
+<f:view locale="#{languageSelectionBean.locale}">
 <f:loadBundle basename="org.commsuite.web.locale.Locale" var="Locale" />
 <html>
 	<head>
Modified: trunk/code/CSAdminPanel/WebContent/pages/users/CSUsersSearchResult.jsp
===================================================================
--- trunk/code/CSAdminPanel/WebContent/pages/users/CSUsersSearchResult.jsp	2006-09-23 14:21:37 UTC (rev 151)
+++ trunk/code/CSAdminPanel/WebContent/pages/users/CSUsersSearchResult.jsp	2006-09-23 16:03:48 UTC (rev 152)
@@ -1,7 +1,7 @@
 <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
 <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
 <%@ taglib uri="http://myfaces.apache.org/tomahawk" prefix="t" %>
-<f:view>
+<f:view locale="#{languageSelectionBean.locale}">
 <f:loadBundle basename="org.commsuite.web.locale.Locale" var="Locale" />
 <html>
 	<head>
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
 | 
| 
     
      
      
      From: <sku...@us...> - 2006-09-23 14:22:20
      
     
   | 
Revision: 151
          http://svn.sourceforge.net/comsuite/?rev=151&view=rev
Author:   skuzniak
Date:     2006-09-23 07:21:37 -0700 (Sat, 23 Sep 2006)
Log Message:
-----------
multiple languages enabled, some other changes
Modified Paths:
--------------
    trunk/code/CSAdminPanel/JavaSource/org/commsuite/web/beans/servers/SearchServerBean.java
    trunk/code/CSAdminPanel/WebContent/pages/CSHeader.jsp
    trunk/code/CSAdminPanel/WebContent/pages/CSMainPanel.jsp
    trunk/code/CSCommon/src/org/commsuite/model/ws/WSSAPInstanceDef.java
    trunk/code/CSMiddleware/src/org/commsuite/dao/SAPInstanceDefDao.java
    trunk/code/CSMiddleware/src/org/commsuite/dao/hibernate/SAPInstanceDefDaoImpl.java
    trunk/code/CSMiddleware/src/org/commsuite/managers/impl/SAPInstanceDefManagerImpl.java
    trunk/code/CSMiddleware/src/org/commsuite/model/SAPInstanceDef.java
    trunk/code/CSMiddleware/src/org/commsuite/ws/services/ServersService.java
Modified: trunk/code/CSAdminPanel/JavaSource/org/commsuite/web/beans/servers/SearchServerBean.java
===================================================================
--- trunk/code/CSAdminPanel/JavaSource/org/commsuite/web/beans/servers/SearchServerBean.java	2006-09-23 12:42:16 UTC (rev 150)
+++ trunk/code/CSAdminPanel/JavaSource/org/commsuite/web/beans/servers/SearchServerBean.java	2006-09-23 14:21:37 UTC (rev 151)
@@ -121,6 +121,7 @@
         instance.setR3name(this.r3name);
         instance.setSystemNumber(this.systemNumber);
         instance.setUser(this.user);
+        instance.setActiveInstance(this.activeInstance);
         
         if (1 == this.getUnicodeSearchIndex()) {
         	instance.setUnicode(true);
Modified: trunk/code/CSAdminPanel/WebContent/pages/CSHeader.jsp
===================================================================
--- trunk/code/CSAdminPanel/WebContent/pages/CSHeader.jsp	2006-09-23 12:42:16 UTC (rev 150)
+++ trunk/code/CSAdminPanel/WebContent/pages/CSHeader.jsp	2006-09-23 14:21:37 UTC (rev 151)
@@ -5,7 +5,7 @@
 <f:subview id="CSHeader">
 	<f:loadBundle basename="org.commsuite.web.locale.Locale" var="Locale" />
 	<h:form id="lang">
-		<h:panelGrid columns="2" styleClass="header">
+		<h:panelGrid columns="3" styleClass="header">
 			<h:panelGrid id="headerName" columns="1" styleClass="header-menu-banner">
 			
 				<h:panelGrid columns="7" styleClass="header-menu-icons">
@@ -62,7 +62,7 @@
 				</h:panelGrid>
 			
 			</h:panelGrid>
-			<%--
+			
 			<h:panelGroup id="headerLangCombo" styleClass="header-lang">
 				<h:graphicImage value="#{pageContext.request.contextPath}/pages/files/gif/preferences-desktop-locale.gif" />
 				<h:selectOneMenu value="#{languageSelectionBean.locale}">
@@ -70,7 +70,7 @@
 				</h:selectOneMenu>
 				<h:commandButton value="Go!" />
 			</h:panelGroup>
-			--%>
+			
 			<h:panelGrid columns="1">
 				<h:outputText value="[#{sessionBean.currentlyLogged}]" styleClass="header-user"/>
 				<h:commandLink value="Logout" action="#{sessionBean.logout}" />
Modified: trunk/code/CSAdminPanel/WebContent/pages/CSMainPanel.jsp
===================================================================
--- trunk/code/CSAdminPanel/WebContent/pages/CSMainPanel.jsp	2006-09-23 12:42:16 UTC (rev 150)
+++ trunk/code/CSAdminPanel/WebContent/pages/CSMainPanel.jsp	2006-09-23 14:21:37 UTC (rev 151)
@@ -21,7 +21,7 @@
 				<h:commandLink action="showServers" styleClass="header-link">
 					<h:graphicImage value="#{pageContext.request.contextPath}/pages/files/gif/network-server64.gif" styleClass="header-icon"/>
 				</h:commandLink>
-				<h:panelGrid columns="1">
+				<h:panelGrid columns="1" styleClass="listView-header-odd">
 					<h:outputText value="#{Locale.MENU_SERVERS}" styleClass="header-command"/>
 					<h:outputText value="#{Locale.INFO_SERVERS}" />
 				</h:panelGrid>
@@ -29,7 +29,7 @@
 				<h:commandLink action="showMessages" styleClass="header-link">
 					<h:graphicImage value="#{pageContext.request.contextPath}/pages/files/gif/mail-message-new64.gif" styleClass="header-icon"/>
 				</h:commandLink>
-				<h:panelGrid columns="1">
+				<h:panelGrid columns="1" styleClass="listView-header-even">
 					<h:outputText value="#{Locale.MENU_INBOX}" styleClass="header-command"/>
 					<h:outputText value="#{Locale.INFO_MESSAGES}" />
 				</h:panelGrid>
@@ -37,7 +37,7 @@
 				<h:commandLink action="searchUser" styleClass="header-link">
 					<h:graphicImage value="#{pageContext.request.contextPath}/pages/files/gif/contact-new64.gif" styleClass="header-icon"/>
 				</h:commandLink>
-				<h:panelGrid columns="1">
+				<h:panelGrid columns="1" styleClass="listView-header-odd">
 					<h:outputText value="#{Locale.MENU_USERS}" styleClass="header-command"/>
 					<h:outputText value="#{Locale.INFO_USERS}" />
 				</h:panelGrid>
@@ -45,7 +45,7 @@
 				<h:commandLink action="searchRole" styleClass="header-link">
 					<h:graphicImage value="#{pageContext.request.contextPath}/pages/files/gif/preferences-desktop-theme64.gif" styleClass="header-icon"/>
 				</h:commandLink>
-				<h:panelGrid columns="1">
+				<h:panelGrid columns="1" styleClass="listView-header-even">
 					<h:outputText value="#{Locale.MENU_ROLES}" styleClass="header-command"/>
 					<h:outputText value="#{Locale.INFO_ROLES}" />
 				</h:panelGrid>
@@ -53,7 +53,7 @@
 				<h:commandLink action="searchAction" styleClass="header-link">
 					<h:graphicImage value="#{pageContext.request.contextPath}/pages/files/gif/video-x-generic64.gif" styleClass="header-icon"/>
 				</h:commandLink>
-				<h:panelGrid columns="1">
+				<h:panelGrid columns="1" styleClass="listView-header-odd">
 					<h:outputText value="#{Locale.MENU_ACTIONS}" styleClass="header-command"/>
 					<h:outputText value="#{Locale.INFO_ACTIONS}" />
 				</h:panelGrid>
@@ -61,7 +61,7 @@
 				<h:commandLink action="searchGroup" styleClass="header-link">
 					<h:graphicImage value="#{pageContext.request.contextPath}/pages/files/gif/x-office-address-book64.gif" styleClass="header-icon"/>
 				</h:commandLink>
-				<h:panelGrid columns="1">
+				<h:panelGrid columns="1" styleClass="listView-header-even">
 					<h:outputText value="#{Locale.MENU_GROUPS}" styleClass="header-command"/>
 					<h:outputText value="#{Locale.INFO_GROUPS}" />
 				</h:panelGrid>
Modified: trunk/code/CSCommon/src/org/commsuite/model/ws/WSSAPInstanceDef.java
===================================================================
--- trunk/code/CSCommon/src/org/commsuite/model/ws/WSSAPInstanceDef.java	2006-09-23 12:42:16 UTC (rev 150)
+++ trunk/code/CSCommon/src/org/commsuite/model/ws/WSSAPInstanceDef.java	2006-09-23 14:21:37 UTC (rev 151)
@@ -92,7 +92,7 @@
 
     public void setMaxConnectionsInPool(int maxConnectionsInPool);
     
-    public void setActiveInstance(boolean active);
+    public void setActiveInstance(boolean activeInstance);
 
 	public boolean isActiveInstance();
 
Modified: trunk/code/CSMiddleware/src/org/commsuite/dao/SAPInstanceDefDao.java
===================================================================
--- trunk/code/CSMiddleware/src/org/commsuite/dao/SAPInstanceDefDao.java	2006-09-23 12:42:16 UTC (rev 150)
+++ trunk/code/CSMiddleware/src/org/commsuite/dao/SAPInstanceDefDao.java	2006-09-23 14:21:37 UTC (rev 151)
@@ -34,7 +34,7 @@
 	public List<SAPInstanceDef> getSAPInstances();
 	
 	public List<SAPInstanceDef> getMatchingServers(SAPInstanceDef instance,
-			boolean defaultSearch, boolean loadSearech, boolean unicodeSearch);
+			boolean defaultSearch, boolean loadSearech, boolean unicodeSearch, boolean activeSearch);
 
 	public SAPInstanceDef getSAPInstanceDef(Long id);
 
Modified: trunk/code/CSMiddleware/src/org/commsuite/dao/hibernate/SAPInstanceDefDaoImpl.java
===================================================================
--- trunk/code/CSMiddleware/src/org/commsuite/dao/hibernate/SAPInstanceDefDaoImpl.java	2006-09-23 12:42:16 UTC (rev 150)
+++ trunk/code/CSMiddleware/src/org/commsuite/dao/hibernate/SAPInstanceDefDaoImpl.java	2006-09-23 14:21:37 UTC (rev 151)
@@ -138,55 +138,28 @@
 	 */
 	@SuppressWarnings("unchecked")
 	public List<SAPInstanceDef> getMatchingServers(SAPInstanceDef instance,
-			boolean defaultSearch, boolean loadSearch, boolean unicodeSearch) {
-		logger.debug("INSTANCE: " + instance);
-		String query = "select s from SAPInstanceDef s where"
-				+ " s.name like '%"
-				+ instance.getName()
-				+ "%'"
-				+ (defaultSearch ? " and s.defaultInstance = "
-						+ instance.isDefaultInstance() : "")
-				+ (0 != instance.getMaxConnectionsInPool() ? "  and s.maxConnectionsInPool = "
-						+ instance.getMaxConnectionsInPool()
-						: "")
-				+ (instance.getUser().trim().length() != 0 ? " and s.user like '%"
-						+ instance.getUser() + "%'"
-						: "")
-				+ (instance.getPassword().trim().length() != 0 ? " and s.password like '%"
-						+ instance.getPassword() + "%'"
-						: "")
-				+ (instance.getClient().trim().length() != 0 ? " and s.client like '%"
-						+ instance.getClient() + "%'"
-						: "")
-				+ (instance.getHost().trim().length() != 0 ? " and s.host like '%"
-						+ instance.getHost() + "%'"
-						: "")
-				+ (instance.getR3name().trim().length() != 0 ? " and s.r3name like '%"
-						+ instance.getR3name() + "%'"
-						: "")
-				+ (instance.getGroup().trim().length() != 0 ? " and s.group like '%"
-						+ instance.getGroup() + "%'"
-						: "")
-				+ (instance.getSystemNumber().trim().length() != 0 ? " and s.systemNumber like '%"
-						+ instance.getSystemNumber() + "%'"
-						: "")
-				+ (loadSearch ? " and s.loadBalancing = "
-						+ instance.isLoadBalancing() : "")
-				+ (instance.getGwhost().trim().length() != 0 ? " and s.gwhost like '%"
-						+ instance.getGwhost() + "%'"
-						: "")
-				+ (instance.getGwserv().trim().length() != 0 ? " and s.gwserv like '%"
-						+ instance.getGwserv() + "%'"
-						: "")
-				+ (instance.getProgid().trim().length() != 0 ? " and s.progid like '%"
-						+ instance.getProgid() + "%'"
-						: "")
-				+ (unicodeSearch ? " and s.unicode = " + instance.isUnicode()
-						: "")
-				+ (instance.getAdminEmail().trim().length() != 0 ? " and s.name like '%"
-						+ instance.getAdminEmail() + "%'"
-						: "");
-		logger.debug("QUERY: " + query);
+			boolean defaultSearch, boolean loadSearch, boolean unicodeSearch,
+			boolean activeSearch) {
+		logger.debug("INSTANCE: "+ instance);
+		String query = "select s from SAPInstanceDef s where" +
+			" s.name like '%" +instance.getName()+ "%'"+
+			(defaultSearch ? " and s.defaultInstance = "+ instance.isDefaultInstance() : "")+
+			(0 != instance.getMaxConnectionsInPool() ? "  and s.maxConnectionsInPool = "+ instance.getMaxConnectionsInPool() : "")+
+			(instance.getUser().trim().length() != 0 ? " and s.user like '%" +instance.getUser()+ "%'" : "")+
+			(instance.getPassword().trim().length() != 0 ? " and s.password like '%" +instance.getPassword()+ "%'" : "")+
+			(instance.getClient().trim().length() != 0 ? " and s.client like '%" +instance.getClient()+ "%'" : "")+
+			(instance.getHost().trim().length() != 0 ? " and s.host like '%" +instance.getHost()+ "%'" : "")+
+			(instance.getR3name().trim().length() != 0 ? " and s.r3name like '%" +instance.getR3name()+ "%'" : "")+
+			(instance.getGroup().trim().length() != 0 ? " and s.group like '%" +instance.getGroup()+ "%'" : "")+
+			(instance.getSystemNumber().trim().length() != 0 ? " and s.systemNumber like '%" +instance.getSystemNumber()+ "%'" : "")+
+			(loadSearch ? " and s.loadBalancing = "+ instance.isLoadBalancing() : "")+
+			(activeSearch ? " and s.activeInstance = "+ instance.isActiveInstance() : "")+
+			(instance.getGwhost().trim().length() != 0 ? " and s.gwhost like '%" +instance.getGwhost()+ "%'" : "")+
+			(instance.getGwserv().trim().length() != 0 ? " and s.gwserv like '%" +instance.getGwserv()+ "%'" : "")+
+			(instance.getProgid().trim().length() != 0 ? " and s.progid like '%" +instance.getProgid()+ "%'" : "")+
+			(unicodeSearch ? " and s.unicode = "+ instance.isUnicode() : "")+
+			(instance.getAdminEmail().trim().length() != 0 ? " and s.name like '%" +instance.getAdminEmail()+ "%'" : "");
+		logger.debug("QUERY: "+ query);
 		final List list = getHibernateTemplate().find(query);
 		logger.debug("SIZE OF INSTANCES MATCHING TO GIVES PATTERN: "
 				+ list.size());
Modified: trunk/code/CSMiddleware/src/org/commsuite/managers/impl/SAPInstanceDefManagerImpl.java
===================================================================
--- trunk/code/CSMiddleware/src/org/commsuite/managers/impl/SAPInstanceDefManagerImpl.java	2006-09-23 12:42:16 UTC (rev 150)
+++ trunk/code/CSMiddleware/src/org/commsuite/managers/impl/SAPInstanceDefManagerImpl.java	2006-09-23 14:21:37 UTC (rev 151)
@@ -47,7 +47,7 @@
 	 */
 	public List<SAPInstanceDef> getSelectedSAPInstances(SAPInstanceDef instance, 
 			boolean defaultSearch, boolean loadSearch, boolean unicodeSearch, boolean activeSearch) {
-		return dao.getMatchingServers(instance, defaultSearch, loadSearch, unicodeSearch);
+		return dao.getMatchingServers(instance, defaultSearch, loadSearch, unicodeSearch, activeSearch);
 	}
 
 	/**
Modified: trunk/code/CSMiddleware/src/org/commsuite/model/SAPInstanceDef.java
===================================================================
--- trunk/code/CSMiddleware/src/org/commsuite/model/SAPInstanceDef.java	2006-09-23 12:42:16 UTC (rev 150)
+++ trunk/code/CSMiddleware/src/org/commsuite/model/SAPInstanceDef.java	2006-09-23 14:21:37 UTC (rev 151)
@@ -80,7 +80,7 @@
      */
     private String client;
     
-    private boolean activeInstance = true;
+    private boolean activeInstance;
 
     // /**
     // * SAP logon language. This field is not obligatory.
Modified: trunk/code/CSMiddleware/src/org/commsuite/ws/services/ServersService.java
===================================================================
--- trunk/code/CSMiddleware/src/org/commsuite/ws/services/ServersService.java	2006-09-23 12:42:16 UTC (rev 150)
+++ trunk/code/CSMiddleware/src/org/commsuite/ws/services/ServersService.java	2006-09-23 14:21:37 UTC (rev 151)
@@ -398,6 +398,7 @@
         instance.setSystemNumber(wsInstance.getSystemNumber());
         instance.setUnicode(wsInstance.isUnicode());
         instance.setUser(wsInstance.getUser());
+        instance.setActiveInstance(wsInstance.isActiveInstance());
     }
 
     /**
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
 | 
| 
     
      
      
      From: <zd...@us...> - 2006-09-23 12:42:36
      
     
   | 
Revision: 150
          http://svn.sourceforge.net/comsuite/?rev=150&view=rev
Author:   zduniak
Date:     2006-09-23 05:42:16 -0700 (Sat, 23 Sep 2006)
Log Message:
-----------
Some other small improvements in code (preparation to implementation of incoming messages simulator)
Modified Paths:
--------------
    trunk/code/CSMiddleware/src/org/commsuite/devices/Device.java
    trunk/code/CSMiddleware/src/org/commsuite/devices/DeviceManager.java
    trunk/code/CSMiddleware/src/org/commsuite/devices/fax/FaxDevice.java
    trunk/code/CSMiddleware/src/org/commsuite/devices/fax/polling/FaxDevicePolling.java
    trunk/code/CSMiddleware/src/org/commsuite/devices/fax/polling/ReceivePollingJob.java
    trunk/code/CSMiddleware/src/org/commsuite/devices/sms/ReceivePollingJob.java
    trunk/code/CSMiddleware/src/org/commsuite/notification/ReceiveNotifier.java
    trunk/code/CSMiddleware/src/org/commsuite/util/SpringMiddlewareBeansConstants.java
Modified: trunk/code/CSMiddleware/src/org/commsuite/devices/Device.java
===================================================================
--- trunk/code/CSMiddleware/src/org/commsuite/devices/Device.java	2006-09-23 12:11:16 UTC (rev 149)
+++ trunk/code/CSMiddleware/src/org/commsuite/devices/Device.java	2006-09-23 12:42:16 UTC (rev 150)
@@ -33,7 +33,6 @@
 import org.commsuite.model.Message;
 import org.commsuite.model.SentContent;
 import org.commsuite.util.RandomGUID;
-//import org.commsuite.util.SpringMiddlewareContext;
 
 /**
  * Device for sending/receiving messages.
@@ -385,7 +384,7 @@
      * @param message received message
      */
     public void notifyReceive(InboundMessage message) {
-        logger.debug("message received from " + message.getSourceAddress() + " to " + message.getDestinationAddress());
+        logger.debug("Message received from " + message.getSourceAddress() + " to " + message.getDestinationAddress());
         messagesReceived++;
 
         synchronized (receiveListeners) {
Modified: trunk/code/CSMiddleware/src/org/commsuite/devices/DeviceManager.java
===================================================================
--- trunk/code/CSMiddleware/src/org/commsuite/devices/DeviceManager.java	2006-09-23 12:11:16 UTC (rev 149)
+++ trunk/code/CSMiddleware/src/org/commsuite/devices/DeviceManager.java	2006-09-23 12:42:16 UTC (rev 150)
@@ -72,8 +72,8 @@
     /**
      * @see IDeviceManager.setDevices(List<Device>)
      */
-    public void setDevices(List<Device> devices) {
-        for (final Device device : devices) {
+    public void setDevices(List<Device> localDevices) {
+        for (final Device device : localDevices) {
             if (device.getName() == null) {
                 logger.error("Null device name");
                 // REVIEW: [RM] Maybe some exception should be thrown here?
@@ -81,7 +81,7 @@
             }
 
             if (!deviceNames.contains(device.getName())) {
-                this.devices.add(device);
+                devices.add(device);
                 device.addReceiveListener(this);
                 device.addSendStateChangeListener(this);
                 deviceNames.add(device.getName());
Modified: trunk/code/CSMiddleware/src/org/commsuite/devices/fax/FaxDevice.java
===================================================================
--- trunk/code/CSMiddleware/src/org/commsuite/devices/fax/FaxDevice.java	2006-09-23 12:11:16 UTC (rev 149)
+++ trunk/code/CSMiddleware/src/org/commsuite/devices/fax/FaxDevice.java	2006-09-23 12:42:16 UTC (rev 150)
@@ -72,6 +72,7 @@
 	 * @param args
 	 * @throws Exception
 	 */
+    @Deprecated
 	public static void main(String[] args) throws Exception {
 		Device device = new FaxDevicePolling("fax001");
 		
@@ -178,6 +179,7 @@
 	 * 
 	 * @throws DeviceInitializationFailedException when device is already initialized, is initializing or when connection with HylaFAX server failed
 	 */
+	@Override
 	public void init() throws DeviceInitializationFailedException {
 		logger.info("Fax device: " + getName() + " initializing");
 		
@@ -191,15 +193,23 @@
 		
 		setState(Device.State.INITIALIZING);
 		
-		faxClient = getNewHylaFAXClient();
+//		faxClient = getNewHylaFAXClient();
+//		
+//		try {
+//			faxClient.open(getHost());
+//			faxClient.user(getUser());
+//
+//			faxClient.type(HylaFAXClient.TYPE_IMAGE);
+//			faxClient.mode(HylaFAXClient.MODE_ZLIB);
+//			faxClient.jparm("NOTIFY", HylaFAXClient.NOTIFY_NONE);
+//		} catch (Exception e) {
+//            logger.fatal("", e);
+//			setState(Device.State.OFF);
+//			throw new DeviceInitializationFailedException(e);
+//		}
 		
 		try {
-			faxClient.open(getHost());
-			faxClient.user(getUser());
-
-			faxClient.type(HylaFAXClient.TYPE_IMAGE);
-			faxClient.mode(HylaFAXClient.MODE_ZLIB);
-			faxClient.jparm("NOTIFY", HylaFAXClient.NOTIFY_NONE);
+			faxClient = getConnection();
 		} catch (Exception e) {
             logger.fatal("", e);
 			setState(Device.State.OFF);
@@ -227,6 +237,7 @@
 	 * 
 	 * @throws DeviceShutdownFailedException when device is not initialized or closing connection fails
 	 */
+	@Override
 	public void shutdown() throws DeviceShutdownFailedException {
 		// not initialized - cannot shutdown
 		if (getState() != Device.State.ON) {
@@ -244,7 +255,7 @@
 		}
 
 		try {
-			faxClient.quit();
+			closeConnection(faxClient);
 		} catch (Exception e) {
 			faxClient = null;
 			logger.error(getName() + ": faxClient.quit() failed", e);
@@ -299,6 +310,7 @@
 	 * @throws OutboundMessageInvalidContentException when message has no content.
 	 * @throws OutboundMessageInvalidDestinationAddressException when message has no destination address.
 	 */
+	@Override
 	public void send(OutboundMessage message) throws
 		DeviceInvalidOutboundMessageException, OutboundMessageInvalidContentMimeTypeException, 
 		OutboundMessageInvalidContentException, OutboundMessageInvalidDestinationAddressException,
Modified: trunk/code/CSMiddleware/src/org/commsuite/devices/fax/polling/FaxDevicePolling.java
===================================================================
--- trunk/code/CSMiddleware/src/org/commsuite/devices/fax/polling/FaxDevicePolling.java	2006-09-23 12:11:16 UTC (rev 149)
+++ trunk/code/CSMiddleware/src/org/commsuite/devices/fax/polling/FaxDevicePolling.java	2006-09-23 12:42:16 UTC (rev 150)
@@ -55,6 +55,7 @@
 	 * 
 	 * @throws DeviceInitializationFailedException when quarts fails
 	 */
+	@Override
 	protected void initNotification() throws DeviceInitializationFailedException {
 		final SchedulerFactory shedulerFactory = new org.quartz.impl.StdSchedulerFactory();  
 		final JobDetail receivePollingJobDetail = new JobDetail(getName() + "_receivePollingJobDetail", null, ReceivePollingJob.class);
@@ -88,6 +89,7 @@
 	 * 
 	 * @throws DeviceInitializationFailedException when quarts fails
 	 */
+	@Override
 	protected void shutdownNotification() throws DeviceShutdownFailedException {
 		try {
 			scheduler.shutdown(true);
Modified: trunk/code/CSMiddleware/src/org/commsuite/devices/fax/polling/ReceivePollingJob.java
===================================================================
--- trunk/code/CSMiddleware/src/org/commsuite/devices/fax/polling/ReceivePollingJob.java	2006-09-23 12:11:16 UTC (rev 149)
+++ trunk/code/CSMiddleware/src/org/commsuite/devices/fax/polling/ReceivePollingJob.java	2006-09-23 12:42:16 UTC (rev 150)
@@ -35,6 +35,7 @@
 import org.commsuite.devices.fax.FaxInboundMessage;
 import org.commsuite.devices.fax.FaxInboundMessageCreateException;
 import org.quartz.JobExecutionContext;
+import org.quartz.JobExecutionException;
 import org.quartz.StatefulJob;
 
 /**
@@ -72,11 +73,11 @@
      * FaxInboundMessage is created and FaxDevice is notified about it (notifyReceive). After downloading file is deleted from server
      * so it won't be downloaded again in next iteration of job.
      * 
-     * @see FaxDevice.notifyReceive
+     * @see FaxDevice#notifyReceive(org.comsuite.devices.InboundMessage)
      * @param context job context, contains FaxDevice
      */
-    public void execute(JobExecutionContext context) {
-        final FaxDevice faxDevice = (FaxDevice) (context.getJobDetail().getJobDataMap().get("FaxDevice"));
+    public void execute(JobExecutionContext context) throws JobExecutionException {
+        final FaxDevice faxDevice = (FaxDevice) context.getJobDetail().getJobDataMap().get("FaxDevice");
         final HylaFAXClient hylafaxClient;
 
 		try {
@@ -105,33 +106,31 @@
                 if (m.matches()) {
                     // ignore receiving faxes
                     // only notify about received
-                    if (m.group(1).trim().equals("*")) {
+                    if ("*".equals(m.group(1).trim())) {
                         continue;
                     }
 
                     final String faxFileName = m.group(2).trim();
-
-                    final int receivedFaxId = Integer.valueOf(m.group(3).trim()).intValue();
+                    final String receivedFaxIdStr = m.group(3).trim();
                     final String faxFileAddress = m.group(4).trim();
                     
                     try {
-
-                        logger.info("new fax: " + faxFileDescription + ", notify");
+                        logger.info("New fax: " + faxFileDescription + ", notify");
                         // logger.info(faxDevice.getName() + ": new fax: " + faxFileDescription
                         // + ", notify");
 
                         // unable to set anyting useful to destinationAddress here
                         // needs hylafax update ?
                         final FaxInboundMessage inboundMessage = new FaxInboundMessage(faxDevice, hylafaxClient,
-                                Integer.toString(receivedFaxId), faxFileAddress, null, "image/tiff",
+                        		receivedFaxIdStr, faxFileAddress, null, "image/tiff",
                                 "recvq/" + faxFileName);
 
                         faxDevice.notifyReceive(inboundMessage);
                     } catch (FaxInboundMessageCreateException e) {
-                        logger.fatal("creating FaxInboundMessage failed, it is impossible", e);
+                        logger.fatal("Creating FaxInboundMessage failed, it is impossible", e);
                     }
                 } else {
-                    logger.warn("wrong file description: " + faxFileDescription);
+                    logger.warn("Wrong file description: " + faxFileDescription);
                     // logger.warn(faxDevice.getName() + ": wrong file description: " +
                     // faxFileDescription);
                 }
@@ -140,16 +139,16 @@
             logger.fatal("Directory recvq not found!", e);
             // logger.fatal(faxDevice.getName() + ": directory recvq not found!", e);
         } catch (IOException e) {
-            logger.error(faxDevice.getName(), e);
+            logger.error("Fax: " + faxDevice.getName(), e);
         } catch (ServerResponseException e) {
-            logger.error(faxDevice.getName(), e);
+            logger.error("Fax: " + faxDevice.getName(), e);
         } finally {
         	try {
 				faxDevice.closeConnection(hylafaxClient);
 			} catch (IOException e) {
-				e.printStackTrace();
+				logger.error("Fax: " + faxDevice.getName(), e);
 			} catch (ServerResponseException e) {
-				e.printStackTrace();
+				logger.error("Fax: " + faxDevice.getName(), e);
 			}
         }
     }
Modified: trunk/code/CSMiddleware/src/org/commsuite/devices/sms/ReceivePollingJob.java
===================================================================
--- trunk/code/CSMiddleware/src/org/commsuite/devices/sms/ReceivePollingJob.java	2006-09-23 12:11:16 UTC (rev 149)
+++ trunk/code/CSMiddleware/src/org/commsuite/devices/sms/ReceivePollingJob.java	2006-09-23 12:42:16 UTC (rev 150)
@@ -3,8 +3,6 @@
 import java.util.LinkedList;
 import java.util.List;
 
-import javolution.util.FastList;
-
 import org.apache.log4j.Logger;
 import org.commsuite.devices.fax.FaxDevice;
 import org.quartz.JobExecutionContext;
Modified: trunk/code/CSMiddleware/src/org/commsuite/notification/ReceiveNotifier.java
===================================================================
--- trunk/code/CSMiddleware/src/org/commsuite/notification/ReceiveNotifier.java	2006-09-23 12:11:16 UTC (rev 149)
+++ trunk/code/CSMiddleware/src/org/commsuite/notification/ReceiveNotifier.java	2006-09-23 12:42:16 UTC (rev 150)
@@ -113,11 +113,11 @@
         // priority 4 is the default one:
         message.setPriority(Priority.LEVEL_4);
 
-        if (null == document.getDestinationAddress())
+        if (null == document.getDestinationAddress()) {
             message.setReceiver("(unknown)");
-        else
+        } else {
             message.setReceiver(document.getDestinationAddress());
-
+        }
         message.setSapID(RandomGUID.getGUID());
 
         // TODO: [RM] dla SMSow data odebrania SMSa przez nas system wcale nie musi byc zblizona
@@ -145,10 +145,6 @@
         	return;
         }
 
-        // TODO: [MM] Message should be send to MSAPIN JMS queue hera, and this consumer
-        // of this queue should be responsible of invoking sendMessageToDefault() method.
-        // See Mantis issue 1464 for further details.
-        // DONE
         jmsMessageManager.sendMessage(SpringMiddlewareBeansConstants.M_SAP_IN_QUEUE_NAME, message);
     }
 }
Modified: trunk/code/CSMiddleware/src/org/commsuite/util/SpringMiddlewareBeansConstants.java
===================================================================
--- trunk/code/CSMiddleware/src/org/commsuite/util/SpringMiddlewareBeansConstants.java	2006-09-23 12:11:16 UTC (rev 149)
+++ trunk/code/CSMiddleware/src/org/commsuite/util/SpringMiddlewareBeansConstants.java	2006-09-23 12:42:16 UTC (rev 150)
@@ -21,7 +21,7 @@
 package org.commsuite.util;
 
 /**
- * class with String contains some names
+ * Class with String contains some names.
  * 
  * @since 1.0
  * @author Marek Musielak
@@ -29,40 +29,10 @@
  */
 public class SpringMiddlewareBeansConstants {
 
-//    public final static String ACEGI_MEMORY_AUTHENTICATION = "memoryAuthentication";
-
-//    public final static String ACEGI_DAO_AUTHENTICATION_PROVIDER = "daoAuthenticationProvider";
-
-//    public final static String ACEGI_AUTHENTICATION_MANAGER = "authenticationManager";
-
-//    public final static String ACEGI_AUTHENTICATION_PROCESSING_FILTER = "authenticationProcessingFilter";
-
-//    public final static String ACEGI_ROLE_VOTER = "roleVoter";
-
-//    public final static String ACEGI_ACCESS_DECISION_MANAGER = "accessDecisionManager";
-
-//    public final static String ACEGI_EXCEPTION_TRANSLATION_FILTER = "exceptionTranslationFilter";
-
-//    public final static String ACEGI_HTTP_SESSION_CONTEXT_INTEGRATION_FILTER = "httpSessionContextIntegrationFilter";
-
-//    public final static String ACEGI_AUTHENTICATION_ENTRY_POINT = "authenticationEntryPoint";
-
-//    public final static String ACEGI_FILTER_INVOCATION_INTERCEPTOR = "filterInvocationInterceptor";
-
-//    public final static String ACEGI_FILTER_CHAIN_PROXY = "filterChainProxy";
-
-//    public final static String ACTIVEMQ_BROKER = "activeMQBroker";
-
-//    public final static String ACTIVEMQ_JMS_FACTORY = "jmsFactory";
-
     public final static String ACTIVEMQ_JMS_TEMPLATE = "jmsTemplate";
 
     public final static String ACTIVEMQ_JMS_MESSAGES_MANAGER = "jmsMessagesManager";
 
-//    public final static String APPLICATION_CONTEXT_PROPERTY_CONFIGURER = "propertyConfigurer";
-
-//    public final static String DATA_SOURCE = "dataSource";
-
     public final static String DEVICE_MANAGER = "deviceManager";
 
     public final static String HIBERNATE_USER_DAO = "userDao";
@@ -81,48 +51,24 @@
 
     public final static String HIBERNATE_SENT_CONTENT_DAO = "sentContentDao";
 
-//    public final static String HIBERNATE_USER_MANAGER_TARGET = "userManagerTarget";
-
     public final static String HIBERNATE_USER_MANAGER = "userManager";
 
-//    public final static String HIBERNATE_ACTION_MANAGER_TARGET = "actionManagerTarget";
-
     public final static String HIBERNATE_ACTION_MANAGER = "actionManager";
 
-//    public final static String HIBERNATE_CONTENTS_MANAGER_TARGET = "contentsManagerTarget";
-
     public final static String HIBERNATE_CONTENTS_MANAGER = "contentsManager";
 
-//    public final static String HIBERNATE_SENT_CONTENT_MANAGER_TARGET = "sentContentManagerTarget";
-
     public final static String HIBERNATE_SENT_CONTENT_MANAGER = "sentContentManager";
 
-//    public final static String HIBERNATE_ROLE_MANAGER_TARGET = "roleManagerTarget";
-
     public final static String HIBERNATE_ROLE_MANAGER = "roleManager";
 
-//    public final static String HIBERNATE_GROUP_MANAGER_TARGET = "groupManagerTarget";
-
     public final static String HIBERNATE_GROUP_MANAGER = "groupManager";
 
-//    public final static String HIBERNATE_MESSAGE_MANAGER_TARGET = "messageManagerTarget";
-
     public final static String HIBERNATE_MESSAGE_MANAGER = "messageManager";
 
-//    public final static String HIBERNATE_SAP_INSTANCE_DEF_MANAGER_TARGET = "sapInstanceDefManagerTarget";
-
     public final static String HIBERNATE_SAP_INSTANCE_DEF_MANAGER = "sapInstanceDefManager";
 
     public final static String HIBERNATE_SESSION_FACTORY = "sessionFactory";
 
-//    public final static String HIBERNATE_TRANSACTION_MANAGER = "transactionManager";
-
-//    public final static String HIBERNATE_MATCH_ALL_WITH_PROP_REQ = "matchAllWithPropReq";
-
-//    public final static String HIBERNATE_MATCH_ALL_TX_INTERCEPTOR = "matchAllTxInterceptor";
-
-//    public final static String HIBERNATE_AUTO_PROXY_CREATOR = "autoProxyCreator";
-
     public final static String SAP_COMM_MANAGER = "sapCommManager";
 
     public final static String EX_DEV_REGISTER = "exDevRegister";
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
 | 
| 
     
      
      
      From: <zd...@us...> - 2006-09-23 12:11:30
      
     
   | 
Revision: 149
          http://svn.sourceforge.net/comsuite/?rev=149&view=rev
Author:   zduniak
Date:     2006-09-23 05:11:16 -0700 (Sat, 23 Sep 2006)
Log Message:
-----------
Refactoring: more fine-grained synchronization during sending/receiving SMSes
Modified Paths:
--------------
    trunk/code/CSMiddleware/src/org/commsuite/devices/Device.java
    trunk/code/CSMiddleware/src/org/commsuite/devices/DeviceManager.java
    trunk/code/CSMiddleware/src/org/commsuite/devices/OutboundMessage.java
    trunk/code/CSMiddleware/src/org/commsuite/devices/sms/ReceivePollingJob.java
    trunk/code/CSMiddleware/src/org/commsuite/devices/sms/SmsDevice.java
Modified: trunk/code/CSMiddleware/src/org/commsuite/devices/Device.java
===================================================================
--- trunk/code/CSMiddleware/src/org/commsuite/devices/Device.java	2006-09-23 11:37:31 UTC (rev 148)
+++ trunk/code/CSMiddleware/src/org/commsuite/devices/Device.java	2006-09-23 12:11:16 UTC (rev 149)
@@ -398,6 +398,7 @@
     /**
      * @see java.lang.Object#toString()
      */
+    @Override
     public String toString() {
         return new ToStringBuilder(this).append("name", this.name).append("state", this.state)
                 .append("messagesReceived", this.messagesReceived).append("messagesSent",
Modified: trunk/code/CSMiddleware/src/org/commsuite/devices/DeviceManager.java
===================================================================
--- trunk/code/CSMiddleware/src/org/commsuite/devices/DeviceManager.java	2006-09-23 11:37:31 UTC (rev 148)
+++ trunk/code/CSMiddleware/src/org/commsuite/devices/DeviceManager.java	2006-09-23 12:11:16 UTC (rev 149)
@@ -28,8 +28,6 @@
 import org.commsuite.devices.OutboundMessage.State;
 import org.commsuite.messaging.ExDevRegister;
 
-import edu.emory.mathcs.backport.java.util.Collections;
-
 /**
  * Class used to manage (initialize and shutdown) all external devices used in CS.
  * 
Modified: trunk/code/CSMiddleware/src/org/commsuite/devices/OutboundMessage.java
===================================================================
--- trunk/code/CSMiddleware/src/org/commsuite/devices/OutboundMessage.java	2006-09-23 11:37:31 UTC (rev 148)
+++ trunk/code/CSMiddleware/src/org/commsuite/devices/OutboundMessage.java	2006-09-23 12:11:16 UTC (rev 149)
@@ -35,32 +35,34 @@
  * @author Rafał Malinowski
  */
 public abstract class OutboundMessage {
-	
+
 	/**
 	 * States of message.
 	 */
 	public static enum State {
-		SUBMITED,
-		DELIVERED,
-		FAILED
+		SUBMITED, DELIVERED, FAILED
 	}
-	
+
 	protected abstract List<String> getAcceptedMimeTypes();
-	
+
 	private Device device;
+
 	private String messageId = null;
+
 	private String contentMimeType;
-    private String destinationAddress;
-    
-    private byte[] content;
 
-    private Converter converter;
-	
-    /**
-     * Creates new outbound message.
-     * 
-     * @param device device which will send this message.
-     */
+	private String destinationAddress;
+
+	private byte[] content;
+
+	private Converter converter;
+
+	/**
+	 * Creates new outbound message.
+	 * 
+	 * @param device
+	 *            device which will send this message.
+	 */
 	public OutboundMessage(Device device) {
 		this.device = device;
 	}
@@ -71,7 +73,7 @@
 	public Device getDevice() {
 		return device;
 	}
-	
+
 	public void setMessageId(String messageId) {
 		this.messageId = messageId;
 	}
@@ -82,35 +84,41 @@
 	public String getMessageId() {
 		return messageId;
 	}
-	
+
 	/**
 	 * Checks if mimeType is supported. Currently only postscript is supported.
 	 * 
+	 * TODO: emphasize in JavaDoc that by invoking this method you also change
+	 * the object internal state (converter variable).
+	 * 
 	 * @return true, if mimeType is supported
 	 */
 	protected boolean isContentMimeTypeSupported() {
 		if (contentMimeType == null) {
 			return false;
 		}
-		
-		ConverterBuilder builder = (ConverterBuilder)SpringContext.getBean("converterBuilder");
+
+		ConverterBuilder builder = (ConverterBuilder) SpringContext
+				.getBean("converterBuilder");
 		converter = null;
-		
+
 		for (final String acceptedMimeType : getAcceptedMimeTypes()) {
 			try {
-				Converter newConverter = builder.getConverter(new Conversion(contentMimeType, acceptedMimeType));
-				
-				if (converter == null || converter.getQuality() < newConverter.getQuality()) {
+				Converter newConverter = builder.getConverter(new Conversion(
+						contentMimeType, acceptedMimeType));
+
+				if (converter == null
+						|| converter.getQuality() < newConverter.getQuality()) {
 					converter = newConverter;
 				}
 			} catch (ConversionImpossibleException e) {
 				// ignore, we dont care
-			}	
+			}
 		}
-		
+
 		return (converter != null);
 	}
-	
+
 	protected Converter getConverter() {
 		return converter;
 	}
@@ -118,46 +126,46 @@
 	/**
 	 * Sets message mime type.
 	 * 
-	 * @param contentMimeType mime type to set
+	 * @param contentMimeType
+	 *            mime type to set
 	 * @return true if given mime type is supported
 	 */
-    public boolean setContentMimeType(String contentMimeType) {
-        this.contentMimeType = contentMimeType;
+	public boolean setContentMimeType(String contentMimeType) {
+		this.contentMimeType = contentMimeType;
 
-        return isContentMimeTypeSupported();
-    }
+		return isContentMimeTypeSupported();
+	}
 
-    public String getContentMimeType() {
-        return contentMimeType;
-    }
-	
-    public void setDestinationAddress(String destinationAddress) {
-        this.destinationAddress = destinationAddress;
-    }
+	public String getContentMimeType() {
+		return contentMimeType;
+	}
 
-    public String getDestinationAddress() {
-        return destinationAddress;
-    }
- 
+	public void setDestinationAddress(String destinationAddress) {
+		this.destinationAddress = destinationAddress;
+	}
+
+	public String getDestinationAddress() {
+		return destinationAddress;
+	}
+
 	public byte[] getContent() {
 		return content;
 	}
-	
+
 	public void setContent(byte[] content) {
 		this.content = content;
 	}
-	
+
+	@Override
 	public boolean equals(Object obj) {
 		if (!(obj instanceof OutboundMessage)) {
 			return false;
 		}
-		
-		OutboundMessage message = (OutboundMessage)obj;
-		
-		return
-			device == message.device &&
-			messageId.equals(message.messageId) &&
-			contentMimeType.equals(message.contentMimeType) &&
-			content.equals(message.content);
+
+		final OutboundMessage message = (OutboundMessage) obj;
+
+		return device == message.device && messageId.equals(message.messageId)
+				&& contentMimeType.equals(message.contentMimeType)
+				&& content.equals(message.content);
 	}
 }
Modified: trunk/code/CSMiddleware/src/org/commsuite/devices/sms/ReceivePollingJob.java
===================================================================
--- trunk/code/CSMiddleware/src/org/commsuite/devices/sms/ReceivePollingJob.java	2006-09-23 11:37:31 UTC (rev 148)
+++ trunk/code/CSMiddleware/src/org/commsuite/devices/sms/ReceivePollingJob.java	2006-09-23 12:11:16 UTC (rev 149)
@@ -1,10 +1,14 @@
 package org.commsuite.devices.sms;
 
 import java.util.LinkedList;
+import java.util.List;
 
+import javolution.util.FastList;
+
 import org.apache.log4j.Logger;
 import org.commsuite.devices.fax.FaxDevice;
 import org.quartz.JobExecutionContext;
+import org.quartz.JobExecutionException;
 import org.quartz.StatefulJob;
 import org.smslib.CIncomingMessage;
 
@@ -16,36 +20,39 @@
  */
 public class ReceivePollingJob implements StatefulJob {
 
-	private static final Logger logger = Logger.getLogger(ReceivePollingJob.class);
+	private static final Logger logger = Logger
+			.getLogger(ReceivePollingJob.class);
 
-    /**
-     * Executes job instance. This checks device buffer for new sms message. For each SMS message SmsDevice is informed about.
-     * 
-     * @see FaxDevice.notifyReceive
-     * @param context job context, contains SmsDevice
-     */
-    public void execute(JobExecutionContext context) {
-//    	logger.info("execute");
-    	
-    	synchronized (SmsDevice.class) {
-    		final SmsDevice smsDevice = (SmsDevice) (context.getJobDetail().getJobDataMap().get("SmsDevice"));
-    		
-			LinkedList messageList;
-			messageList = new LinkedList();
-			
-			SmsService smsService= smsDevice.getSmsService();
-			
+	/**
+	 * Executes job instance. This checks device buffer for new sms message. For
+	 * each SMS message SmsDevice is informed about.
+	 * 
+	 * @see FaxDevice.notifyReceive
+	 * @param context
+	 *            job context, contains SmsDevice
+	 */
+	public void execute(JobExecutionContext context) throws JobExecutionException {
+//		 logger.info("execute");
+
+		final SmsDevice smsDevice = (SmsDevice) context.getJobDetail()
+				.getJobDataMap().get("SmsDevice");
+		List messageList = new LinkedList();
+		SmsService smsService = smsDevice.getSmsService();
+
+		synchronized (SmsDevice.class) {
 			try {
-				smsService.readMessages(messageList, CIncomingMessage.CLASS_ALL);
+				smsService
+						.readMessages(messageList, CIncomingMessage.CLASS_ALL);
 			} catch (Exception e) {
 				logger.error("Error during reading messages", e);
 			}
-			
-			for (int i = 0; i < messageList.size(); i ++) {
-				CIncomingMessage message = (CIncomingMessage) messageList.get(i);
+
+			for (int i = 0; i < messageList.size(); i++) {
+				CIncomingMessage message = (CIncomingMessage) messageList
+						.get(i);
 				smsService.received(message);
 			}
-    	}
-    }
-    
+		}
+	}
+
 }
Modified: trunk/code/CSMiddleware/src/org/commsuite/devices/sms/SmsDevice.java
===================================================================
--- trunk/code/CSMiddleware/src/org/commsuite/devices/sms/SmsDevice.java	2006-09-23 11:37:31 UTC (rev 148)
+++ trunk/code/CSMiddleware/src/org/commsuite/devices/sms/SmsDevice.java	2006-09-23 12:11:16 UTC (rev 149)
@@ -55,477 +55,535 @@
  */
 public final class SmsDevice extends Device {
 
-    private static final Logger logger = Logger.getLogger(SmsDevice.class);
+	private static final Logger logger = Logger.getLogger(SmsDevice.class);
 
-    protected String port;
+	protected String port;
 
-    protected String gsmDeviceManufacturer;
+	protected String gsmDeviceManufacturer;
 
-    protected String gsmDeviceModel;
+	protected String gsmDeviceModel;
 
-    protected int baud;
+	protected int baud;
 
-    protected boolean changeUTFCharacters;
+	protected boolean changeUTFCharacters;
 
-    protected int maxMessageLength;
+	protected int maxMessageLength;
 
-    protected String warningsReceiver;
+	protected String warningsReceiver;
 
-    protected int warningBatteryLevel;
+	protected int warningBatteryLevel;
 
-    protected int warningSignalLevel;
+	protected int warningSignalLevel;
 
-    // 30 minutes by default:
-    protected int warningsInterval = 60 * 30;
+	// 30 minutes by default:
+	protected int warningsInterval = 60 * 30;
 
-    private long lastBatteryWarning;
+	private long lastBatteryWarning;
 
-    private long lastSignalWarning;
+	private long lastSignalWarning;
 
-    private SmsService service;
+	private SmsService service;
 
 	private Scheduler scheduler;
 
-    /**
-     * Creates new SmsDevice.
-     * 
-     * @param name unique name of device
-     */
-    public SmsDevice(String name) {
-        super(name);
-        setState(Device.State.OFF);
-    }
+	/**
+	 * Creates new SmsDevice.
+	 * 
+	 * @param name
+	 *            unique name of device
+	 */
+	public SmsDevice(String name) {
+		super(name);
+		setState(Device.State.OFF);
+	}
 
-    /**
-     * Connects to GSM modem.
-     * 
-     * @throws DeviceInitializationFailedException when connection failed
-     */
-    @Override
-    public void init() throws DeviceInitializationFailedException {
-        setState(Device.State.INITIALIZING);
+	/**
+	 * Connects to GSM modem.
+	 * 
+	 * @throws DeviceInitializationFailedException
+	 *             when connection failed
+	 */
+	@Override
+	public void init() throws DeviceInitializationFailedException {
+		setState(Device.State.INITIALIZING);
 
-        try {
-            synchronized (SmsDevice.class) {
-                service = new SmsService(this, getPort(), getBaud(), getGsmDeviceManufacturer(),
-                        getGsmDeviceModel());
-                logger.info("Using " + CService._name + " " + CService._version);
+		try {
+			synchronized (SmsDevice.class) {
+				service = new SmsService(this, getPort(), getBaud(),
+						getGsmDeviceManufacturer(), getGsmDeviceModel());
+				logger
+						.info("Using " + CService._name + " "
+								+ CService._version);
 
-                // service.setReceiveMode(SmsService.RECEIVE_MODE_ASYNC_POLL);
-                service.setReceiveMode(SmsService.RECEIVE_MODE_SYNC);
+				// service.setReceiveMode(SmsService.RECEIVE_MODE_ASYNC_POLL);
+				service.setReceiveMode(SmsService.RECEIVE_MODE_SYNC);
 
-                service.setSimPin("");
-                service.connect();
+				service.setSimPin("");
+				service.connect();
 
-                logger.debug("IsConnected: " + service.getConnected());
+				logger.debug("IsConnected: " + service.getConnected());
 
-                if (service.getConnected()) {
-                    setState(Device.State.ON);
+				if (service.getConnected()) {
+					setState(Device.State.ON);
 
-                    service.setSmscNumber("");
-                    service.refreshDeviceInfo();
+					service.setSmscNumber("");
+					service.refreshDeviceInfo();
 
-                    // Print out GSM device info...
-                    if (logger.isInfoEnabled()) {
-                        logger.info("Mobile Device Information: ");
-                        logger.info("Manufacturer : " + service.getDeviceInfo().getManufacturer());
-                        logger.info("Model : " + service.getDeviceInfo().getModel());
-                        logger.info("Serial No : " + service.getDeviceInfo().getSerialNo());
-                        logger.info("IMSI : " + service.getDeviceInfo().getImsi());
-                        logger.info("S/W Version : " + service.getDeviceInfo().getSwVersion());
-                        logger.info("Battery Level : " + service.getDeviceInfo().getBatteryLevel()
-                                + "%");
-                        logger.info("Signal Level : " + service.getDeviceInfo().getSignalLevel()
-                                + "%");
-                    }
-                } else {
-                    setState(Device.State.OFF);
-                }
-            }
-        } catch (Throwable t) {
-            logger.error("", t);
+					// Print out GSM device info...
+					if (logger.isInfoEnabled()) {
+						logger.info("Mobile Device Information: ");
+						logger.info("Manufacturer : "
+								+ service.getDeviceInfo().getManufacturer());
+						logger.info("Model : "
+								+ service.getDeviceInfo().getModel());
+						logger.info("Serial No : "
+								+ service.getDeviceInfo().getSerialNo());
+						logger.info("IMSI : "
+								+ service.getDeviceInfo().getImsi());
+						logger.info("S/W Version : "
+								+ service.getDeviceInfo().getSwVersion());
+						logger.info("Battery Level : "
+								+ service.getDeviceInfo().getBatteryLevel()
+								+ "%");
+						logger.info("Signal Level : "
+								+ service.getDeviceInfo().getSignalLevel()
+								+ "%");
+					}
+				} else {
+					setState(Device.State.OFF);
+				}
+			}
+		} catch (Throwable t) {
+			logger.error("", t);
 
-            setState(Device.State.OFF);
-            throw new DeviceInitializationFailedException(t);
-        }
-        
-        initNotification();
-    }
+			setState(Device.State.OFF);
+			throw new DeviceInitializationFailedException(t);
+		}
 
+		initNotification();
+	}
 
-    /**
-     * Disconnects from GSM modem.
-     * 
-     * @throws DeviceShutdownFailedException when disconnection failed
-     */
-    @Override
-    public void shutdown() throws DeviceShutdownFailedException {
-        try {
-        	shutdownNotification();
-        	
-            // TODO: kod bezpiecznie zamykający urządzenie
-            service.disconnect();
+	/**
+	 * Disconnects from GSM modem.
+	 * 
+	 * @throws DeviceShutdownFailedException
+	 *             when disconnection failed
+	 */
+	@Override
+	public void shutdown() throws DeviceShutdownFailedException {
+		try {
+			shutdownNotification();
 
-            setState(Device.State.OFF);
-        } catch (Throwable t) {
-            logger.error("", t);
-            setState(Device.State.OFF);
-            throw new DeviceShutdownFailedException(t);
-        }
-    }
+			// TODO: kod bezpiecznie zamykający urządzenie
+			service.disconnect();
 
-    public String getGsmDeviceManufacturer() {
-        return gsmDeviceManufacturer;
-    }
+			setState(Device.State.OFF);
+		} catch (Throwable t) {
+			logger.error("", t);
+			setState(Device.State.OFF);
+			throw new DeviceShutdownFailedException(t);
+		}
+	}
 
-    public void setGsmDeviceManufacturer(String gsmDeviceManufacturer) {
-        this.gsmDeviceManufacturer = gsmDeviceManufacturer;
-    }
+	public String getGsmDeviceManufacturer() {
+		return gsmDeviceManufacturer;
+	}
 
-    public String getGsmDeviceModel() {
-        return gsmDeviceModel;
-    }
+	public void setGsmDeviceManufacturer(String gsmDeviceManufacturer) {
+		this.gsmDeviceManufacturer = gsmDeviceManufacturer;
+	}
 
-    public void setGsmDeviceModel(String gsmDeviceModel) {
-        this.gsmDeviceModel = gsmDeviceModel;
-    }
+	public String getGsmDeviceModel() {
+		return gsmDeviceModel;
+	}
 
-    public String getPort() {
-        return port;
-    }
+	public void setGsmDeviceModel(String gsmDeviceModel) {
+		this.gsmDeviceModel = gsmDeviceModel;
+	}
 
-    public void setPort(String port) {
-        this.port = port;
-    }
+	public String getPort() {
+		return port;
+	}
 
-    public int getBaud() {
-        return baud;
-    }
+	public void setPort(String port) {
+		this.port = port;
+	}
 
-    public void setBaud(int baud) {
-        this.baud = baud;
-    }
+	public int getBaud() {
+		return baud;
+	}
 
-    public void setChangeUTFCharacters(boolean changeUTFCharacters) {
-        this.changeUTFCharacters = changeUTFCharacters;
-    }
+	public void setBaud(int baud) {
+		this.baud = baud;
+	}
 
-    public boolean getChangeUTFCharacters() {
-        return changeUTFCharacters;
-    }
+	public void setChangeUTFCharacters(boolean changeUTFCharacters) {
+		this.changeUTFCharacters = changeUTFCharacters;
+	}
 
-    public void setMaxMessageLength(int maxMessageLength) {
-        this.maxMessageLength = maxMessageLength;
-    }
+	public boolean getChangeUTFCharacters() {
+		return changeUTFCharacters;
+	}
 
-    public int getMaxMessageLenght() {
-        return maxMessageLength;
-    }
+	public void setMaxMessageLength(int maxMessageLength) {
+		this.maxMessageLength = maxMessageLength;
+	}
 
-    public void setWarningsReceiver(String warningsReciever) {
-        this.warningsReceiver = warningsReciever;
-    }
+	public int getMaxMessageLenght() {
+		return maxMessageLength;
+	}
 
-    public String getWarningsReceiver() {
-        return warningsReceiver;
-    }
+	public void setWarningsReceiver(String warningsReciever) {
+		this.warningsReceiver = warningsReciever;
+	}
 
-    public void setWarningBatteryLevel(int warningBatteryLevel) {
-        this.warningBatteryLevel = warningBatteryLevel;
-    }
+	public String getWarningsReceiver() {
+		return warningsReceiver;
+	}
 
-    public int getWarningBatteryLevel() {
-        return warningBatteryLevel;
-    }
+	public void setWarningBatteryLevel(int warningBatteryLevel) {
+		this.warningBatteryLevel = warningBatteryLevel;
+	}
 
-    public void setWarningSignalLevel(int warningSignalLevel) {
-        this.warningSignalLevel = warningSignalLevel;
-    }
+	public int getWarningBatteryLevel() {
+		return warningBatteryLevel;
+	}
 
-    public int getWarningSignalLevel() {
-        return warningSignalLevel;
-    }
+	public void setWarningSignalLevel(int warningSignalLevel) {
+		this.warningSignalLevel = warningSignalLevel;
+	}
 
-    /**
-     * Set interval in seconds.
-     * 
-     * By default 30 minutes.
-     * 
-     * @int warningsInterval warnings interval in seconds
-     */
-    public void setWarningsInterval(int warningsInterval) {
-        this.warningsInterval = warningsInterval;
-    }
+	public int getWarningSignalLevel() {
+		return warningSignalLevel;
+	}
 
-    /**
-     * Get interval in seconds.
-     * 
-     * @return warnings interval in seconds
-     */
-    public int getWarningsInterval() {
-        return warningsInterval;
-    }
+	/**
+	 * Set interval in seconds.
+	 * 
+	 * By default 30 minutes.
+	 * 
+	 * @int warningsInterval warnings interval in seconds
+	 */
+	public void setWarningsInterval(int warningsInterval) {
+		this.warningsInterval = warningsInterval;
+	}
 
-    /**
-     * Creates new message that can be sent using this device.
-     * 
-     * @return new message that can be sent using this device
-     */
-    @Override
-    public OutboundMessage createOutboundMessage() {
-        return new SmsOutboundMessage(this);
-    }
+	/**
+	 * Get interval in seconds.
+	 * 
+	 * @return warnings interval in seconds
+	 */
+	public int getWarningsInterval() {
+		return warningsInterval;
+	}
 
-    /**
-     * Sends message throught GSM modem. Message can only have plain/text data.
-     * 
-     * @throws DeviceInvalidOutboundMessageException message was created on another device
-     * @throws OutboundMessageInvalidContentMimeTypeException message does not have text/plain data
-     * @throws OutboundMessageInvalidContentException message is too long
-     * @throws OutboundMessageSendException an error occured
-     */
-    @Override
-    public void send(OutboundMessage message) throws DeviceInvalidOutboundMessageException,
-            OutboundMessageInvalidContentMimeTypeException, OutboundMessageInvalidContentException,
-            OutboundMessageInvalidDestinationAddressException, OutboundMessageSendException,
-            OutboundMessageConversionFailedException {
-        if (!(message instanceof SmsOutboundMessage)) {
-            throw new DeviceInvalidOutboundMessageException(
-                    "SmsDevice can handle only SmsOutboundMessage");
-        }
+	/**
+	 * Creates new message that can be sent using this device.
+	 * 
+	 * @return new message that can be sent using this device
+	 */
+	@Override
+	public OutboundMessage createOutboundMessage() {
+		return new SmsOutboundMessage(this);
+	}
 
-        if (message.getDevice() != this) {
-            throw new DeviceInvalidOutboundMessageException(
-                    "SmsDevice can handle only SmsOutboundMessage that it created");
-        }
+	/**
+	 * Sends message throught GSM modem. Message can only have plain/text data.
+	 * 
+	 * @throws DeviceInvalidOutboundMessageException
+	 *             message was created on another device
+	 * @throws OutboundMessageInvalidContentMimeTypeException
+	 *             message does not have text/plain data
+	 * @throws OutboundMessageInvalidContentException
+	 *             message is too long
+	 * @throws OutboundMessageSendException
+	 *             an error occured
+	 */
+	@Override
+	public void send(OutboundMessage message)
+			throws DeviceInvalidOutboundMessageException,
+			OutboundMessageInvalidContentMimeTypeException,
+			OutboundMessageInvalidContentException,
+			OutboundMessageInvalidDestinationAddressException,
+			OutboundMessageSendException,
+			OutboundMessageConversionFailedException {
+		if (!(message instanceof SmsOutboundMessage)) {
+			throw new DeviceInvalidOutboundMessageException(
+					"SmsDevice can handle only SmsOutboundMessage");
+		}
 
-        final byte[] data = message.getContent();
-        String text;
-        try {
-            text = new String(data, "UTF-8");
-        } catch (UnsupportedEncodingException e) {
-            logger.warn("Exception during internally converting SMS into String", e);
-            // default charset:
-            text = new String(data);
-        }
+		if (message.getDevice() != this) {
+			throw new DeviceInvalidOutboundMessageException(
+					"SmsDevice can handle only SmsOutboundMessage that it created");
+		}
 
-        if (text.length() > maxMessageLength) {
-            throw new OutboundMessageInvalidContentException(
-                    "SMS message is too long, cannot be sent");
-        }
+		final byte[] data = message.getContent();
+		String text;
+		try {
+			text = new String(data, "UTF-8");
+		} catch (UnsupportedEncodingException e) {
+			logger
+					.warn(
+							"Exception during internally converting SMS into String",
+							e);
+			// default charset:
+			text = new String(data);
+		}
 
-        try {
-            if (changeUTFCharacters) {
-                text = removeUTFCharacters(text);
-            }
-        } catch (UnsupportedEncodingException e) {
-            logger.fatal("", e);
-        }
+		if (text.length() > maxMessageLength) {
+			throw new OutboundMessageInvalidContentException(
+					"SMS message is too long, cannot be sent");
+		}
 
-        final int batteryCurrentLevel = service.getDeviceInfo().getBatteryLevel();
-        if (batteryCurrentLevel < warningBatteryLevel) {
-            final Date now = new Date();
-            final long seconds = now.getTime() / 1000L;
+		try {
+			if (changeUTFCharacters) {
+				text = removeUTFCharacters(text);
+			}
+		} catch (UnsupportedEncodingException e) {
+			logger.fatal("", e);
+		}
 
-            if (seconds - lastBatteryWarning >= warningsInterval) {
-                final TextBuilder tb = new TextBuilder();
-                tb.append("CS: Battery level ").append(batteryCurrentLevel).append(
-                        "% is lower than ").append(warningBatteryLevel).append("%");
-                final String warningMsg = tb.toString();
+		final int batteryCurrentLevel = service.getDeviceInfo()
+				.getBatteryLevel();
+		if (batteryCurrentLevel < warningBatteryLevel) {
+			final Date now = new Date();
+			final long seconds = now.getTime() / 1000L;
 
-                logger.warn(warningMsg);
+			if (seconds - lastBatteryWarning >= warningsInterval) {
+				final TextBuilder tb = new TextBuilder();
+				tb.append("CS: Battery level ").append(batteryCurrentLevel)
+						.append("% is lower than ").append(warningBatteryLevel)
+						.append("%");
+				final String warningMsg = tb.toString();
 
-                if (null != warningsReceiver && !"".equals(warningsReceiver)) {
-                    sendSMSMessage(warningMsg, warningsReceiver);
-                }
-            }
+				logger.warn(warningMsg);
 
-            lastBatteryWarning = seconds;
-        }
+				if (null != warningsReceiver && !"".equals(warningsReceiver)) {
+					sendSMSMessage(warningMsg, warningsReceiver);
+				}
+			}
 
-        final int signalCurrentLevel = service.getDeviceInfo().getSignalLevel();
-        if (signalCurrentLevel < warningSignalLevel) {
-            final Date now = new Date();
-            final long seconds = now.getTime() / 1000L;
+			lastBatteryWarning = seconds;
+		}
 
-            if (seconds - lastSignalWarning >= warningsInterval) {
-                final TextBuilder tb = new TextBuilder();
-                tb.append("CS: Signal level ").append(signalCurrentLevel)
-                        .append("% is lower than ").append(warningSignalLevel).append("%");
-                final String warningMsg = tb.toString();
+		final int signalCurrentLevel = service.getDeviceInfo().getSignalLevel();
+		if (signalCurrentLevel < warningSignalLevel) {
+			final Date now = new Date();
+			final long seconds = now.getTime() / 1000L;
 
-                logger.warn(warningMsg);
+			if (seconds - lastSignalWarning >= warningsInterval) {
+				final TextBuilder tb = new TextBuilder();
+				tb.append("CS: Signal level ").append(signalCurrentLevel)
+						.append("% is lower than ").append(warningSignalLevel)
+						.append("%");
+				final String warningMsg = tb.toString();
 
-                if (null != warningsReceiver && !"".equals(warningsReceiver)) {
-                    sendSMSMessage(warningMsg, warningsReceiver);
-                }
-            }
+				logger.warn(warningMsg);
 
-            lastSignalWarning = seconds;
-        }
+				if (null != warningsReceiver && !"".equals(warningsReceiver)) {
+					sendSMSMessage(warningMsg, warningsReceiver);
+				}
+			}
 
-        final String messageId = sendSMSMessage(text, message.getDestinationAddress());
+			lastSignalWarning = seconds;
+		}
 
-        if (null != messageId) {
-            message.setMessageId(messageId);
-        } else {
-            logger.fatal("SMS messageId obtained during sending process is null");
-            throw new OutboundMessageSendException(
-                    "Error during sending SMS: SMS messageId obtained during sending process is null");
-        }
-    }
+		final String messageId = sendSMSMessage(text, message
+				.getDestinationAddress());
 
-    /**
-     * Removes polish UTF character and replaces it with latin1 characters.
-     * 
-     * @param text string with UTF characters
-     * @return text without UTF characters
-     * 
-     * @throws UnsupportedEncodingException never
-     */
-    private static String removeUTFCharacters(String text) throws UnsupportedEncodingException {
-        logger.debug("Converting :" + text);
+		if (null != messageId) {
+			message.setMessageId(messageId);
+		} else {
+			logger
+					.fatal("SMS messageId obtained during sending process is null");
+			throw new OutboundMessageSendException(
+					"Error during sending SMS: SMS messageId obtained during sending process is null");
+		}
+	}
 
-        // TODO: [RM] przemyslec i zaproponowac rozwiazanie ogolne dla takiej konwersji, dla znakow
-        // diakrytycznych rowniez innych jezykow. Byc moze istnieja do tego jakies biblioteki.
-        final String result = text.replace('\u0105', 'a').replace('\u0104', 'A').replace('\u0107',
-                'c').replace('\u0105', 'C').replace('\u0119', 'e').replace('\u0118', 'E').replace(
-                '\u0142', 'l').replace('\u0141', 'L').replace('\u0144', 'n').replace('\u0143', 'N')
-                .replace('\u00f3', 'o').replace('\u00d3', 'O').replace('\u015b', 's').replace(
-                        '\u015a', 'S').replace('\u017a', 'z').replace('\u0179', 'Z').replace(
-                        '\u017c', 'z').replace('\u017b', 'z');
+	/**
+	 * Removes polish UTF character and replaces it with latin1 characters.
+	 * 
+	 * @param text
+	 *            string with UTF characters
+	 * @return text without UTF characters
+	 * 
+	 * @throws UnsupportedEncodingException
+	 *             never
+	 */
+	private String removeUTFCharacters(String text)
+			throws UnsupportedEncodingException {
+		logger.debug("Converting from: " + text);
 
-        logger.debug("Converted to :" + result);
+		// TODO: [RM] przemyslec i zaproponowac rozwiazanie ogolne dla takiej
+		// konwersji, dla znakow
+		// diakrytycznych rowniez innych jezykow. Byc moze istnieja do tego
+		// jakies biblioteki.
+		final String result = text.replace('\u0105', 'a')
+				.replace('\u0104', 'A').replace('\u0107', 'c').replace(
+						'\u0105', 'C').replace('\u0119', 'e').replace('\u0118',
+						'E').replace('\u0142', 'l').replace('\u0141', 'L')
+				.replace('\u0144', 'n').replace('\u0143', 'N').replace(
+						'\u00f3', 'o').replace('\u00d3', 'O').replace('\u015b',
+						's').replace('\u015a', 'S').replace('\u017a', 'z')
+				.replace('\u0179', 'Z').replace('\u017c', 'z').replace(
+						'\u017b', 'z');
 
-        return result;
-    }
+		logger.debug("Converted to: " + result);
 
-    /**
-     * Send SMS message.
-     * 
-     * @param text sms message to send
-     * @param phone phone address of receiver
-     * @return unique message-id of sent SMS
-     * 
-     * @throws OutboundMessageSendException when sms device failed to send message
-     */
-    private String sendSMSMessage(String text, String phone) throws OutboundMessageSendException {
+		return result;
+	}
 
-        // REFACTOR: Kod laczacy sie z modemem GSM i incujacy polaczenia
-        // nalezy przeniesc do metody #init(), a tutaj jedynie weryfikowac czy polaczenie
-        // jest nadal aktywne. Jesli nie jest aktywne to np. sprobowac 2 razy je ponownie
-        // zainicjowac - jesli sie nie uda to zrobic tak by ten SmsDevice byl nieaktywny i wrzucic
-        // stosowny fatal do logow.
+	/**
+	 * Send SMS message.
+	 * 
+	 * @param text
+	 *            sms message to send
+	 * @param phone
+	 *            phone address of receiver
+	 * @return unique message-id of sent SMS
+	 * 
+	 * @throws OutboundMessageSendException
+	 *             when sms device failed to send message
+	 */
+	private String sendSMSMessage(String text, String phone)
+			throws OutboundMessageSendException {
 
-        int messageId;
+		// REFACTOR: Kod laczacy sie z modemem GSM i incujacy polaczenia
+		// nalezy przeniesc do metody #init(), a tutaj jedynie weryfikowac czy
+		// polaczenie
+		// jest nadal aktywne. Jesli nie jest aktywne to np. sprobowac 2 razy je
+		// ponownie
+		// zainicjowac - jesli sie nie uda to zrobic tak by ten SmsDevice byl
+		// nieaktywny i wrzucic
+		// stosowny fatal do logow.
 
-        if (logger.isDebugEnabled()) {
-            logger.debug("Sending message to: " + phone);
-            logger.debug("Message text to send: " + text);
-        }
+		int messageId;
 
-        if (phone.startsWith("+")) {
-            phone = phone.substring(1);
-        }
+		if (logger.isDebugEnabled()) {
+			logger.debug("Sending message to: " + phone);
+			logger.debug("Message text to send: " + text);
+		}
 
-        // Create a COutgoingMessage object.
-        final COutgoingMessage msg = new COutgoingMessage(phone, text);
+		if (phone.startsWith("+")) {
+			phone = phone.substring(1);
+		}
 
-        // Character set is 7bit by default.
-        msg.setMessageEncoding(CMessage.MESSAGE_ENCODING_7BIT);
+		// Create a COutgoingMessage object.
+		final COutgoingMessage msg = new COutgoingMessage(phone, text);
 
-        // TODO: We are interested in status reports, so we should switch below
-        // option to 'true' state in next version of this software
-        // TODO: When message is sending we should check if in database are messages with internalId
-        // equal to uniqueId of message
-        // If they exists, we should set insternalId's of them to internalId + ':' + GUID
-        // So we will have unique internalId, and we will get status reports properly.
-        // internalId conists of refNr and destinationAddress of SMS
-        msg.setStatusReport(true);
-        msg.setFlashSms(false);
-        msg.setDate(new Date()); // current time
+		// Character set is 7bit by default.
+		msg.setMessageEncoding(CMessage.MESSAGE_ENCODING_7BIT);
 
-        // REVIEW: [RM] czy to jest poprawne miejsce do synchronizacji ? Byc moze mogli bysmy
-        // mniejsza czesc procesu wysylania SMSa zsynchronizowac, np. dopiero od wywolania metody:
-        // srv.connect() ?
+		// TODO: We are interested in status reports, so we should switch below
+		// option to 'true' state in next version of this software
+		// TODO: When message is sending we should check if in database are
+		// messages with internalId
+		// equal to uniqueId of message.
+		// If they exists, we should set insternalId's of them to internalId +
+		// ':' + GUID
+		// So we will have unique internalId, and we will get status reports
+		// properly.
+		// internalId conists of refNr and destinationAddress of SMS
+		msg.setStatusReport(true);
+		msg.setFlashSms(false);
+		msg.setDate(new Date()); // current time
 
-        // NOTE: We assume that there might be more than one object of type {@link SmsDevice}
-        // therefore we are synchronizing by class and not by object of this class.
-        synchronized (SmsDevice.class) {
-            try {
-                if (!service.getConnected()) {
-                    init(); // reconnect
-                }
+		// REVIEW: [RM] czy to jest poprawne miejsce do synchronizacji ? Byc
+		// moze mogli bysmy
+		// mniejsza czesc procesu wysylania SMSa zsynchronizowac, np. dopiero od
+		// wywolania metody:
+		// srv.connect() ?
 
-                if (!service.getConnected()) {
-                    throw new OutboundMessageSendException("Cannot connect to SmsDevie");
-                }
+		// NOTE: We assume that there might be more than one object of type
+		// {@link SmsDevice}
+		// therefore we are synchronizing by class and not by object of this
+		// class.
+		synchronized (SmsDevice.class) {
+			try {
+				if (!service.getConnected()) {
+					init(); // reconnect
+				}
 
-                service.sendMessage(msg);
+				if (!service.getConnected()) {
+					throw new OutboundMessageSendException(
+							"Cannot connect to SmsDevie");
+				}
 
-                // {@link COutgoingMessage#getRefNo()} returns the Reference Number of the
-                // message. The Reference Number is returned from the SMSC upon succesful
-                // dispatch of a message:
-                messageId = msg.getRefNo();
-            } catch (Throwable t1) {
-                logger.fatal("Exception during sending SMS", t1);
-                throw new OutboundMessageSendException("Cannot connect to SmsDevie", t1);
-            }
-        }
+				service.sendMessage(msg);
 
-        if (logger.isDebugEnabled()) {
-            logger.debug("messageId is: " + Integer.toString(messageId) + "@" + phone);
-        }
-        
-        // TODO: [RM] make it more unique:
-        if (messageId == -1) {
-        	return null;
-        }
-        else {
-        	return Integer.toString(messageId) + "@" + phone;
-        }
-    }
+				// {@link COutgoingMessage#getRefNo()} returns the Reference
+				// Number of the
+				// message. The Reference Number is returned from the SMSC upon
+				// succesful
+				// dispatch of a message:
+				messageId = msg.getRefNo();
+			} catch (Throwable t1) {
+				logger.fatal("Exception during sending SMS", t1);
+				throw new OutboundMessageSendException(
+						"Cannot connect to SmsDevie", t1);
+			}
+		}
 
-    /**
-     * Returns FormatType.SMS.
-     * 
-     * @return FormatType.SMS
-     */
-    @Override
-    public FormatType getFormatType() {
-        return FormatType.SMS;
-    }
-	
+		if (logger.isDebugEnabled()) {
+			logger.debug("messageId is: " + Integer.toString(messageId) + "@"
+					+ phone);
+		}
+
+		// TODO: [RM] make it more unique:
+		if (messageId == -1) {
+			return null;
+		} else {
+			return Integer.toString(messageId) + "@" + phone;
+		}
+	}
+
 	/**
+	 * Returns FormatType.SMS.
+	 * 
+	 * @return FormatType.SMS
+	 */
+	@Override
+	public FormatType getFormatType() {
+		return FormatType.SMS;
+	}
+
+	/**
 	 * Starts Quartz jobs to poll receive smses.
 	 * 
-	 * @throws DeviceInitializationFailedException when quarts fails
+	 * @throws DeviceInitializationFailedException
+	 *             when quarts fails
 	 */
-	protected void initNotification() throws DeviceInitializationFailedException {
-		final SchedulerFactory shedulerFactory = new org.quartz.impl.StdSchedulerFactory();  
-		final JobDetail receivePollingJobDetail = new JobDetail(getName() + "_receivePollingJobDetail", null, ReceivePollingJob.class);
+	protected void initNotification()
+			throws DeviceInitializationFailedException {
+		final SchedulerFactory shedulerFactory = new org.quartz.impl.StdSchedulerFactory();
+		final JobDetail receivePollingJobDetail = new JobDetail(getName()
+				+ "_receivePollingJobDetail", null, ReceivePollingJob.class);
 		receivePollingJobDetail.getJobDataMap().put("SmsDevice", this);
-		
+
 		final Date plus2Seconds = new Date();
 		plus2Seconds.setTime(plus2Seconds.getTime() + 2500);
-        
+
 		// fire every 5 seconds
-		final SimpleTrigger receivePollingTrigger = new SimpleTrigger(getName() + "_receivePollingTrigger", null,
-				new Date(), null, SimpleTrigger.REPEAT_INDEFINITELY, 5000);
-		
+		final SimpleTrigger receivePollingTrigger = new SimpleTrigger(getName()
+				+ "_receivePollingTrigger", null, new Date(), null,
+				SimpleTrigger.REPEAT_INDEFINITELY, 5000);
+
 		try {
 			scheduler = shedulerFactory.getScheduler();
 			scheduler.start();
-			scheduler.scheduleJob(receivePollingJobDetail, receivePollingTrigger);
+			scheduler.scheduleJob(receivePollingJobDetail,
+					receivePollingTrigger);
 		} catch (SchedulerException e) {
 			throw new DeviceInitializationFailedException(e);
 		}
 	}
-	
+
 	/**
 	 * Stops Quartz jobs to poll receive smses.
 	 * 
-	 * @throws DeviceInitializationFailedException when quarts fails
+	 * @throws DeviceInitializationFailedException
+	 *             when quarts fails
 	 */
 	protected void shutdownNotification() throws DeviceShutdownFailedException {
 		try {
@@ -536,7 +594,7 @@
 			scheduler = null;
 		}
 	}
-	
+
 	public SmsService getSmsService() {
 		return service;
 	}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
 | 
| 
     
      
      
      From: <zd...@us...> - 2006-09-23 11:37:53
      
     
   | 
Revision: 148
          http://svn.sourceforge.net/comsuite/?rev=148&view=rev
Author:   zduniak
Date:     2006-09-23 04:37:31 -0700 (Sat, 23 Sep 2006)
Log Message:
-----------
Bug connected with incorrect initializing 'acceptedMimeTypes' static variable (Rafal check it please)
Modified Paths:
--------------
    trunk/code/CSMiddleware/src/org/commsuite/devices/DeviceManager.java
    trunk/code/CSMiddleware/src/org/commsuite/devices/OutboundMessage.java
    trunk/code/CSMiddleware/src/org/commsuite/devices/fax/FaxOutboundMessage.java
    trunk/code/CSMiddleware/src/org/commsuite/devices/sms/SmsDevice.java
    trunk/code/CSMiddleware/src/org/commsuite/devices/sms/SmsOutboundMessage.java
    trunk/code/CSTests/src/org/commsuite/devices/DeviceTest.java
Modified: trunk/code/CSMiddleware/src/org/commsuite/devices/DeviceManager.java
===================================================================
--- trunk/code/CSMiddleware/src/org/commsuite/devices/DeviceManager.java	2006-09-23 11:15:06 UTC (rev 147)
+++ trunk/code/CSMiddleware/src/org/commsuite/devices/DeviceManager.java	2006-09-23 11:37:31 UTC (rev 148)
@@ -28,6 +28,8 @@
 import org.commsuite.devices.OutboundMessage.State;
 import org.commsuite.messaging.ExDevRegister;
 
+import edu.emory.mathcs.backport.java.util.Collections;
+
 /**
  * Class used to manage (initialize and shutdown) all external devices used in CS.
  * 
@@ -65,7 +67,7 @@
      */
     public List<Device> getDevices() {
         // REVIEW: [RM] is this correct to break encapsulation ?
-        // Consider changing into: return Collections.synchronizedList(devices);
+        // Consider changing into: return Collections.unmodifiableList(devices);
         return devices;
     }
 
Modified: trunk/code/CSMiddleware/src/org/commsuite/devices/OutboundMessage.java
===================================================================
--- trunk/code/CSMiddleware/src/org/commsuite/devices/OutboundMessage.java	2006-09-23 11:15:06 UTC (rev 147)
+++ trunk/code/CSMiddleware/src/org/commsuite/devices/OutboundMessage.java	2006-09-23 11:37:31 UTC (rev 148)
@@ -34,7 +34,7 @@
  * @since 1.0
  * @author Rafał Malinowski
  */
-public class OutboundMessage {
+public abstract class OutboundMessage {
 	
 	/**
 	 * States of message.
@@ -45,7 +45,7 @@
 		FAILED
 	}
 	
-	protected static List<String> acceptedMimeTypes;
+	protected abstract List<String> getAcceptedMimeTypes();
 	
 	private Device device;
 	private String messageId = null;
@@ -96,7 +96,7 @@
 		ConverterBuilder builder = (ConverterBuilder)SpringContext.getBean("converterBuilder");
 		converter = null;
 		
-		for (final String acceptedMimeType : acceptedMimeTypes) {
+		for (final String acceptedMimeType : getAcceptedMimeTypes()) {
 			try {
 				Converter newConverter = builder.getConverter(new Conversion(contentMimeType, acceptedMimeType));
 				
Modified: trunk/code/CSMiddleware/src/org/commsuite/devices/fax/FaxOutboundMessage.java
===================================================================
--- trunk/code/CSMiddleware/src/org/commsuite/devices/fax/FaxOutboundMessage.java	2006-09-23 11:15:06 UTC (rev 147)
+++ trunk/code/CSMiddleware/src/org/commsuite/devices/fax/FaxOutboundMessage.java	2006-09-23 11:37:31 UTC (rev 148)
@@ -26,6 +26,7 @@
 
 import java.io.ByteArrayInputStream;
 import java.io.IOException;
+import java.util.List;
 
 import javolution.util.FastTable;
 
@@ -49,6 +50,8 @@
 public class FaxOutboundMessage extends OutboundMessage {
 	private static final Logger logger = Logger.getLogger(FaxOutboundMessage.class);
 	
+	protected static List<String> acceptedMimeTypes;
+	
 	static {
 		acceptedMimeTypes = new FastTable<String>();
 		acceptedMimeTypes.add("application/pdf");
@@ -146,4 +149,12 @@
 		
 		logger.info("message sent");
 	}
+
+	/**
+	 * TODO: JavaDoc
+	 */
+	@Override
+	protected List<String> getAcceptedMimeTypes() {
+		return acceptedMimeTypes;
+	}
 }
Modified: trunk/code/CSMiddleware/src/org/commsuite/devices/sms/SmsDevice.java
===================================================================
--- trunk/code/CSMiddleware/src/org/commsuite/devices/sms/SmsDevice.java	2006-09-23 11:15:06 UTC (rev 147)
+++ trunk/code/CSMiddleware/src/org/commsuite/devices/sms/SmsDevice.java	2006-09-23 11:37:31 UTC (rev 148)
@@ -101,6 +101,7 @@
      * 
      * @throws DeviceInitializationFailedException when connection failed
      */
+    @Override
     public void init() throws DeviceInitializationFailedException {
         setState(Device.State.INITIALIZING);
 
@@ -157,6 +158,7 @@
      * 
      * @throws DeviceShutdownFailedException when disconnection failed
      */
+    @Override
     public void shutdown() throws DeviceShutdownFailedException {
         try {
         	shutdownNotification();
@@ -269,6 +271,7 @@
      * 
      * @return new message that can be sent using this device
      */
+    @Override
     public OutboundMessage createOutboundMessage() {
         return new SmsOutboundMessage(this);
     }
@@ -281,6 +284,7 @@
      * @throws OutboundMessageInvalidContentException message is too long
      * @throws OutboundMessageSendException an error occured
      */
+    @Override
     public void send(OutboundMessage message) throws DeviceInvalidOutboundMessageException,
             OutboundMessageInvalidContentMimeTypeException, OutboundMessageInvalidContentException,
             OutboundMessageInvalidDestinationAddressException, OutboundMessageSendException,
@@ -487,6 +491,7 @@
      * 
      * @return FormatType.SMS
      */
+    @Override
     public FormatType getFormatType() {
         return FormatType.SMS;
     }
Modified: trunk/code/CSMiddleware/src/org/commsuite/devices/sms/SmsOutboundMessage.java
===================================================================
--- trunk/code/CSMiddleware/src/org/commsuite/devices/sms/SmsOutboundMessage.java	2006-09-23 11:15:06 UTC (rev 147)
+++ trunk/code/CSMiddleware/src/org/commsuite/devices/sms/SmsOutboundMessage.java	2006-09-23 11:37:31 UTC (rev 148)
@@ -21,7 +21,10 @@
 package org.commsuite.devices.sms;
 
 import java.util.ArrayList;
+import java.util.List;
 
+import javolution.util.FastTable;
+
 import org.commsuite.devices.OutboundMessage;
 
 /**
@@ -32,9 +35,11 @@
  * @author Marcin Zduniak
  */
 public class SmsOutboundMessage extends OutboundMessage {
+	
+	protected static List<String> acceptedMimeTypes;
 
     static {
-        acceptedMimeTypes = new ArrayList<String>();
+        acceptedMimeTypes = new FastTable<String>();
         acceptedMimeTypes.add("text/plain");
     }
 
@@ -46,5 +51,13 @@
     public SmsOutboundMessage(SmsDevice device) {
         super(device);
     }
+    
+	/**
+	 * TODO: JavaDoc
+	 */
+	@Override
+	protected List<String> getAcceptedMimeTypes() {
+		return acceptedMimeTypes;
+	}
 
 }
Modified: trunk/code/CSTests/src/org/commsuite/devices/DeviceTest.java
===================================================================
--- trunk/code/CSTests/src/org/commsuite/devices/DeviceTest.java	2006-09-23 11:15:06 UTC (rev 147)
+++ trunk/code/CSTests/src/org/commsuite/devices/DeviceTest.java	2006-09-23 11:37:31 UTC (rev 148)
@@ -20,6 +20,7 @@
  */
 package org.commsuite.devices;
 
+import java.util.Arrays;
 import java.util.List;
 
 import javolution.util.FastTable;
@@ -38,30 +39,34 @@
  * @author Rafał Malinowski
  */
 public class DeviceTest extends AbstractCommunicationsSuiteTestCase {
-	
+
 	private class FakeOutboundMessage extends OutboundMessage {
-		
+
 		public FakeOutboundMessage(Device device, String messageId) {
 			super(device);
 			setMessageId(messageId);
-			
-			acceptedMimeTypes = new FastTable<String>();
-			acceptedMimeTypes.add("application/octet-stream");
 		}
-		
+
+		@Override
+		protected List<String> getAcceptedMimeTypes() {
+			return new FastTable<String>(Arrays
+					.asList(new String[] { "application/octet-stream" }));
+		}
+
 	}
 
 	private class FakeDevice extends Device {
-		
+
 		private String messageId = "";
+
 		private List<OutboundMessage> messagesSent;
-		
+
 		public FakeDevice(String name) {
 			super(name);
-			
+
 			messagesSent = new FastTable<OutboundMessage>();
 		}
-		
+
 		public List<OutboundMessage> getMessagesSent() {
 			return messagesSent;
 		}
@@ -77,65 +82,79 @@
 			return new FakeOutboundMessage(this, messageId);
 		}
 
-		public void send(OutboundMessage message) throws DeviceInvalidOutboundMessageException, OutboundMessageInvalidContentMimeTypeException, OutboundMessageInvalidContentException, OutboundMessageInvalidDestinationAddressException, OutboundMessageSendException, OutboundMessageConversionFailedException {
+		public void send(OutboundMessage message)
+				throws DeviceInvalidOutboundMessageException,
+				OutboundMessageInvalidContentMimeTypeException,
+				OutboundMessageInvalidContentException,
+				OutboundMessageInvalidDestinationAddressException,
+				OutboundMessageSendException,
+				OutboundMessageConversionFailedException {
 			messagesSent.add(message);
 		}
 
 		public FormatType getFormatType() {
 			return null;
 		}
-		
+
 	}
-	
+
 	/*
-	 * TODO: This test fails or not becouse of use Set in SentContents.
-	 * When Sets will be changed to Lists everything will works properly.
+	 * TODO: This test fails or not becouse of use Set in SentContents. When
+	 * Sets will be changed to Lists everything will works properly.
 	 */
 	public void testSend() {
-		MessageManager messageManager = SpringMiddlewareContext.getMessageManager();
-		
+		MessageManager messageManager = SpringMiddlewareContext
+				.getMessageManager();
+
 		Message message = FakeObject.makeFakeMessage();
 		Contents content1 = FakeObject.makeFakeContent();
 		Contents content2 = FakeObject.makeFakeContent();
-		
+
 		message.addContents(content1, "1");
 		message.addContents(content2, "2");
-		
+
 		message = messageManager.saveMessage(message);
-		
+
 		FakeDevice fakeDevice = new FakeDevice("fake1");
 		fakeDevice.send(message);
-		
+
 		List<OutboundMessage> messagesSent = fakeDevice.getMessagesSent();
 		assertEquals("Device should sent 2 messages", 2, messagesSent.size());
-		
+
 		FakeOutboundMessage message1 = new FakeOutboundMessage(fakeDevice, ".");
 		message1.setContent(content1.getData());
 		message1.setContentMimeType("application/octet-stream");
 		message1.setDestinationAddress("receiver");
-		
-		assertEquals("Device sent unexpected message [1]", message1, messagesSent.get(0));
-		
+
+		assertEquals("Device sent unexpected message [1]", message1,
+				messagesSent.get(0));
+
 		FakeOutboundMessage message2 = new FakeOutboundMessage(fakeDevice, "..");
 		message2.setContent(content2.getData());
 		message2.setContentMimeType("application/octet-stream");
 		message2.setDestinationAddress("receiver");
-		
+
 		message = messageManager.getMessage(message.getId().toString());
 		List<SentContent> sentContents = message.getSentContents();
-		
-		assertEquals("sentContents list should be 2 items long", 2, sentContents.size());
-		
+
+		assertEquals("sentContents list should be 2 items long", 2,
+				sentContents.size());
+
 		SentContent sentContent1 = sentContents.get(0);
 		SentContent sentContent2 = sentContents.get(1);
-		
-		assertEquals("Device sent unexpected message [2]", message2, messagesSent.get(1));
-		
-		assertEquals("SentContent1 internalId is wrong", "fake1:o:.", sentContent1.getInternalId());
-		assertEquals("SentContent1 state is wrong", State.SENT, sentContent1.getState());
-		
-		assertEquals("SentContent2 internalId is wrong", "fake1:o:..", sentContent2.getInternalId());
-		assertEquals("SentContent2 state is wrong", State.SENT, sentContent2.getState());
+
+		assertEquals("Device sent unexpected message [2]", message2,
+				messagesSent.get(1));
+
+		assertEquals("SentContent1 internalId is wrong", "fake1:o:.",
+				sentContent1.getInternalId());
+		assertEquals("SentContent1 state is wrong", State.SENT, sentContent1
+				.getState());
+
+		assertEquals("SentContent2 internalId is wrong", "fake1:o:..",
+				sentContent2.getInternalId());
+		assertEquals("SentContent2 state is wrong", State.SENT, sentContent2
+				.getState());
 	}
-	
+
 }
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
 | 
| 
     
      
      
      From: <zd...@us...> - 2006-09-23 11:15:16
      
     
   | 
Revision: 147
          http://svn.sourceforge.net/comsuite/?rev=147&view=rev
Author:   zduniak
Date:     2006-09-23 04:15:06 -0700 (Sat, 23 Sep 2006)
Log Message:
-----------
template-message-to-sap-user.vm in English
Modified Paths:
--------------
    trunk/code/CSMiddleware/src/res/template-message-to-sap-user.vm
Modified: trunk/code/CSMiddleware/src/res/template-message-to-sap-user.vm
===================================================================
--- trunk/code/CSMiddleware/src/res/template-message-to-sap-user.vm	2006-09-23 11:08:40 UTC (rev 146)
+++ trunk/code/CSMiddleware/src/res/template-message-to-sap-user.vm	2006-09-23 11:15:06 UTC (rev 147)
@@ -1,7 +1,10 @@
-Witaj,
+Hello,
 
-  Wiadomosc $messageType od $messageSender do $messageReceiver
-znajduje sie w pliku zalaczonym do tego komunikatu.
+  $messageType message from $messageSender to $messageReceiver
+is attached to this notification.
 
+ Regards,
+
 --
 Communications Suite system
+
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
 | 
| 
     
      
      
      From: <zd...@us...> - 2006-09-23 11:09:11
      
     
   | 
Revision: 146
          http://svn.sourceforge.net/comsuite/?rev=146&view=rev
Author:   zduniak
Date:     2006-09-23 04:08:40 -0700 (Sat, 23 Sep 2006)
Log Message:
-----------
- Apache Digester upgrade 1.6 -> 1.7
- Date presentation format corrected
Modified Paths:
--------------
    trunk/code/CSAdminPanel/.classpath
    trunk/code/CSAdminPanel/JavaSource/org/commsuite/web/beans/messages/SearchMessageBean.java
    trunk/code/CSAdminPanel/WebContent/WEB-INF/faces-config.xml
    trunk/code/CSAdminPanel/WebContent/pages/CSMainPanel.jsp
    trunk/code/CSAdminPanel/WebContent/pages/messages/CSMessages.jsp
    trunk/code/CSAdminPanel/WebContent/pages/messages/CSMessagesDetails.jsp
Added Paths:
-----------
    trunk/code/CSAdminPanel/WebContent/WEB-INF/lib/commons-digester-1.7.jar
Removed Paths:
-------------
    trunk/code/CSAdminPanel/WebContent/WEB-INF/lib/commons-digester-1.6.jar
Modified: trunk/code/CSAdminPanel/.classpath
===================================================================
--- trunk/code/CSAdminPanel/.classpath	2006-09-22 18:42:03 UTC (rev 145)
+++ trunk/code/CSAdminPanel/.classpath	2006-09-23 11:08:40 UTC (rev 146)
@@ -14,7 +14,6 @@
 	<classpathentry kind="lib" path="WebContent/WEB-INF/lib/tomahawk.jar"/>
 	<classpathentry kind="lib" path="/CSCommon/lib/jdom-1.0.jar"/>
 	<classpathentry kind="lib" path="WebContent/WEB-INF/lib/commons-beanutils-1.7.0.jar"/>
-	<classpathentry kind="lib" path="WebContent/WEB-INF/lib/commons-digester-1.6.jar"/>
 	<classpathentry kind="lib" path="WebContent/WEB-INF/lib/commons-el-1.0.jar"/>
 	<classpathentry kind="lib" path="WebContent/WEB-INF/lib/jstl-1.1.0.jar"/>
 	<classpathentry kind="lib" path="WebContent/WEB-INF/lib/myfaces-api-1.1.3.jar"/>
Modified: trunk/code/CSAdminPanel/JavaSource/org/commsuite/web/beans/messages/SearchMessageBean.java
===================================================================
--- trunk/code/CSAdminPanel/JavaSource/org/commsuite/web/beans/messages/SearchMessageBean.java	2006-09-22 18:42:03 UTC (rev 145)
+++ trunk/code/CSAdminPanel/JavaSource/org/commsuite/web/beans/messages/SearchMessageBean.java	2006-09-23 11:08:40 UTC (rev 146)
@@ -20,7 +20,6 @@
  */
 package org.commsuite.web.beans.messages;
 
-import java.util.ArrayList;
 import java.util.Collections;
 import java.util.Comparator;
 import java.util.List;
@@ -51,182 +50,213 @@
  */
 public class SearchMessageBean extends MessageBean {
 
-    private static final Logger logger = Logger.getLogger(SearchMessageBean.class);
-    
-    private static final String MESSAGE_ALL = "-- Wsysztkie --";
-    
-    private static final int ROWS_ON_PAGE = 5;
+	private static final Logger logger = Logger
+			.getLogger(SearchMessageBean.class);
 
+	// TODO: [SK] i18n
+	private static final String MESSAGE_ALL = "-- Wsysztkie --";
+
+	private static final int ROWS_ON_PAGE = 5;
+
 	/**
-     * this method is used to get all messages from database
-     * via webservice.
-     * 
-     * @return list of messages with contents
-     */
-    public List<WSMessage> getMessagesAvailable() {
-        try {
-            final ICommunicateWS ws = (ICommunicateWS) SpringAdminPanelContext.getCommunicateWS();
-            List<WSMessage> mes;
-            
-            if (this.searching) {
-            	SearchMessageModel message = this.createMessageFromFields();
-            	mes = this.getMessages(message, ws);
-            } else {
-            	mes = this.getMessages(null, ws);
-            }
-            
+	 * This method is used to get all messages from database via webservice.
+	 * 
+	 * @return list of messages with contents
+	 */
+	public List<WSMessage> getMessagesAvailable() {
+		try {
+			final ICommunicateWS ws = (ICommunicateWS) SpringAdminPanelContext
+					.getCommunicateWS();
+			List<WSMessage> mes;
 
-            sortMessagesList(mes);
-            return mes;
-        } catch (WebServiceException wse) {
-            logger.fatal("Exception while receiving available messages", wse);
-            LanguageSelectionBean.showMessage(BeansUtils.MESSAGE_ERROR_DATABASE, 
-            		BeansUtils.MESSAGE_MESSAGE_ERROR_FETCH, 
-            		BeansUtils.SEARCH_MESSAGES_NAVIGATION);
-            return new ArrayList<WSMessage>();
-        } catch (Throwable t) {
-            logger.fatal("Exception", t);
-            LanguageSelectionBean.showMessage(BeansUtils.MESSAGE_ERROR_GENERAL, 
-            		BeansUtils.MESSAGE_MESSAGE_ERROR_FETCH, 
-            		BeansUtils.SHOW_MESSAGES_NAVIGATION);
-            return new ArrayList<WSMessage>();
-        }
-    }
-    
-    public MessageExtended getMessageExtended() {
-    	final ICommunicateWS ws = (ICommunicateWS) SpringAdminPanelContext.getCommunicateWS();
-    	try {
-    		WSMessage message = ws.getMessageById(this.messageId);
-            final MessageExtended messageExtended = new MessageExtended();
-            messageExtended.setMessage(message);
-            final List<SentContentExtended> sentContentsExtended = new FastTable<SentContentExtended>();
-            final List<WSSentContent> sentContents = new FastTable<WSSentContent>(ws
-                    .getSentContentsByMessage(String.valueOf(message.getId())));
-            for (final WSSentContent content : sentContents) {
-                final SentContentExtended sentContentExtended = new SentContentExtended();
-                sentContentExtended.setSentContent((WSSentContent) content);
-                sentContentExtended.setContent((List<WSContents>) ws
-                        .getContentsBySentContent(String.valueOf(content.getId())));
-                sentContentsExtended.add(sentContentExtended);
-            }
-            messageExtended.setSentContents(sentContentsExtended);
-            
-            return messageExtended;
-	        
-    	} catch(WebServiceException wse) {
-            logger.fatal("Exception while receiving available messages", wse);
-            LanguageSelectionBean.showMessage(BeansUtils.MESSAGE_ERROR_DATABASE, 
-            		BeansUtils.MESSAGE_MESSAGE_ERROR_FETCH, 
-            		BeansUtils.SEARCH_MESSAGES_NAVIGATION);
-            return new MessageExtended();
-    	} catch(Throwable t) {
-            logger.fatal("Exception", t);
-            LanguageSelectionBean.showMessage(BeansUtils.MESSAGE_ERROR_GENERAL, 
-            		BeansUtils.MESSAGE_MESSAGE_ERROR_FETCH, 
-            		BeansUtils.SHOW_MESSAGES_NAVIGATION);
-            return new MessageExtended();
-    	}
-    }
-    
-    public List<SelectItem> getDirectionList() {
-    	List<SelectItem> choices = new FastTable<SelectItem>();
-    	SelectItem item = new SelectItem();
+			if (this.searching) {
+				SearchMessageModel message = this.createMessageFromFields();
+				mes = getMessages(message, ws);
+			} else {
+				mes = getMessages(null, ws);
+			}
+
+			sortMessagesList(mes);
+			return mes;
+		} catch (WebServiceException wse) {
+			logger.fatal("Exception while receiving available messages", wse);
+			LanguageSelectionBean.showMessage(
+					BeansUtils.MESSAGE_ERROR_DATABASE,
+					BeansUtils.MESSAGE_MESSAGE_ERROR_FETCH,
+					BeansUtils.SEARCH_MESSAGES_NAVIGATION);
+			return new FastTable<WSMessage>();
+		} catch (Throwable t) {
+			logger.fatal("Exception", t);
+			LanguageSelectionBean.showMessage(BeansUtils.MESSAGE_ERROR_GENERAL,
+					BeansUtils.MESSAGE_MESSAGE_ERROR_FETCH,
+					BeansUtils.SHOW_MESSAGES_NAVIGATION);
+			return new FastTable<WSMessage>();
+		}
+	}
+
+	/**
+	 * TODO: JavaDoc
+	 */
+	public MessageExtended getMessageExtended() {
+		final ICommunicateWS ws = (ICommunicateWS) SpringAdminPanelContext
+				.getCommunicateWS();
+		try {
+			WSMessage message = ws.getMessageById(this.messageId);
+			final MessageExtended messageExtended = new MessageExtended();
+			messageExtended.setMessage(message);
+			final List<SentContentExtended> sentContentsExtended = new FastTable<SentContentExtended>();
+			final List<WSSentContent> sentContents = new FastTable<WSSentContent>(
+					ws
+							.getSentContentsByMessage(String.valueOf(message
+									.getId())));
+			for (final WSSentContent content : sentContents) {
+				final SentContentExtended sentContentExtended = new SentContentExtended();
+				sentContentExtended.setSentContent((WSSentContent) content);
+				sentContentExtended.setContent((List<WSContents>) ws
+						.getContentsBySentContent(String.valueOf(content
+								.getId())));
+				sentContentsExtended.add(sentContentExtended);
+			}
+			messageExtended.setSentContents(sentContentsExtended);
+
+			return messageExtended;
+		} catch (WebServiceException wse) {
+			logger.fatal("Exception while receiving available messages", wse);
+			LanguageSelectionBean.showMessage(
+					BeansUtils.MESSAGE_ERROR_DATABASE,
+					BeansUtils.MESSAGE_MESSAGE_ERROR_FETCH,
+					BeansUtils.SEARCH_MESSAGES_NAVIGATION);
+			return new MessageExtended();
+		} catch (Throwable t) {
+			logger.fatal("Exception", t);
+			LanguageSelectionBean.showMessage(BeansUtils.MESSAGE_ERROR_GENERAL,
+					BeansUtils.MESSAGE_MESSAGE_ERROR_FETCH,
+					BeansUtils.SHOW_MESSAGES_NAVIGATION);
+			return new MessageExtended();
+		}
+	}
+
+	/**
+	 * TODO: JavaDoc
+	 */
+	public List<SelectItem> getDirectionList() {
+		List<SelectItem> choices = new FastTable<SelectItem>();
+		SelectItem item = new SelectItem();
 		item.setLabel(MESSAGE_ALL);
-	//	item.setValue(null);
+		// item.setValue(null);
 		choices.add(item);
-    	for(Direction direction : Direction.values()) {
-    		item = new SelectItem();
-    		item.setLabel(direction.toString());
-    		item.setValue(direction);
-    		choices.add(item);
-    	}
-    	return choices;
-    }
-    
-    public List<SelectItem> getPriorityList() {
-    	List<SelectItem> choices = new FastTable<SelectItem>();
-    	SelectItem item = new SelectItem();
+		for (Direction direction : Direction.values()) {
+			item = new SelectItem();
+			item.setLabel(direction.toString());
+			item.setValue(direction);
+			choices.add(item);
+		}
+		return choices;
+	}
+
+	/**
+	 * TODO: JavaDoc
+	 */
+	public List<SelectItem> getPriorityList() {
+		List<SelectItem> choices = new FastTable<SelectItem>();
+		SelectItem item = new SelectItem();
 		item.setLabel(MESSAGE_ALL);
-	//	item.setValue(null);
+		// item.setValue(null);
 		choices.add(item);
-    	for (Priority priority : Priority.values()) {
-    		item = new SelectItem();
-    		item.setLabel(priority.getLabel());
-    		item.setValue(priority);
-    		choices.add(item);
-    	}
-    	return choices;
-    }
-    
-    public List<SelectItem> getStatusList() {
-    	List<SelectItem> choices = new FastTable<SelectItem>();
-    	SelectItem item = new SelectItem();
+		for (Priority priority : Priority.values()) {
+			item = new SelectItem();
+			item.setLabel(priority.getLabel());
+			item.setValue(priority);
+			choices.add(item);
+		}
+		return choices;
+	}
+
+	/**
+	 * TODO: JavaDoc
+	 */
+	public List<SelectItem> getStatusList() {
+		List<SelectItem> choices = new FastTable<SelectItem>();
+		SelectItem item = new SelectItem();
 		item.setLabel(MESSAGE_ALL);
-	//	item.setValue(null);
+		// item.setValue(null);
 		choices.add(item);
-    	for(Status status : Status.values()) {
-    		item = new SelectItem();
-    		item.setLabel(status.toString());
-    		item.setValue(status);
-    		choices.add(item);
-    	}
-    	return choices;
-    }
-    
-    public List<SelectItem> getFormatList() {
-    	List<SelectItem> choices = new FastTable<SelectItem>();
-    	SelectItem item = new SelectItem();
+		for (Status status : Status.values()) {
+			item = new SelectItem();
+			item.setLabel(status.toString());
+			item.setValue(status);
+			choices.add(item);
+		}
+		return choices;
+	}
+
+	/**
+	 * TODO: JavaDoc
+	 */
+	public List<SelectItem> getFormatList() {
+		List<SelectItem> choices = new FastTable<SelectItem>();
+		SelectItem item = new SelectItem();
 		item.setLabel(MESSAGE_ALL);
-	//	item.setValue(null);
+		// item.setValue(null);
 		choices.add(item);
-    	for(FormatType format : FormatType.values()) {
-    		item = new SelectItem();
-    		item.setLabel(format.toString());
-    		item.setValue(format);
-    		choices.add(item);
-    	}
-    	return choices;
-    }
-    
-    public String showAll() {
-    	this.searching = false;
-    	return BeansUtils.SHOW_MESSAGES_NAVIGATION;
-    }
+		for (FormatType format : FormatType.values()) {
+			item = new SelectItem();
+			item.setLabel(format.toString());
+			item.setValue(format);
+			choices.add(item);
+		}
+		return choices;
+	}
 
-    /**
-     * @author Marcin Zduniak
-     */
-    private void sortMessagesList(final List<WSMessage> list) {
-        Collections.sort(list, new Comparator<WSMessage>() {
-            public int compare(WSMessage m1, WSMessage m2) {
-                final int comparisonByLastProcessDate = m1.getLastProcessDate()
-                        .compareTo(m2.getLastProcessDate());
-                if (0 == comparisonByLastProcessDate) {
-                    final int comparisonBySendDate = m1.getSendDate().compareTo(
-                            m2.getSendDate());
-                    return comparisonBySendDate;
-                } else {
-                    return comparisonByLastProcessDate;
-                }
-            }
-        });
-    }
-    
-    private List<WSMessage> getMessages(SearchMessageModel model, ICommunicateWS ws)
-    		throws WebServiceException{
-    	this.totalMessages = ws.getMessagesSize(model);
-        this.totalPages = ((this.totalMessages - 1) / ROWS_ON_PAGE) + 1;
-        
-        int begin = (this.actualPage - 1) * ROWS_ON_PAGE;
-        int end = (this.actualPage * ROWS_ON_PAGE) - 1;
-        if (end >= this.totalMessages) end = (this.totalMessages - 1);
-        logger.debug("begin & end: "+ begin+ " "+ end);
-        
-        if (null == model) {
-        	return (List<WSMessage>)ws.getMessagesSubset(begin, end);
-        } else {
-        	return (List<WSMessage>)ws.getSelectedMessagesSubset(model, begin, end);
-        }
-    }
+	/**
+	 * TODO: JavaDoc
+	 */
+	public String showAll() {
+		this.searching = false;
+		return BeansUtils.SHOW_MESSAGES_NAVIGATION;
+	}
 
+	/**
+	 * TODO: JavaDoc
+	 * 
+	 * @author Marcin Zduniak
+	 */
+	private void sortMessagesList(final List<WSMessage> list) {
+		Collections.sort(list, new Comparator<WSMessage>() {
+			public int compare(WSMessage m1, WSMessage m2) {
+				final int comparisonByLastProcessDate = m1.getLastProcessDate()
+						.compareTo(m2.getLastProcessDate());
+				if (0 == comparisonByLastProcessDate) {
+					final int comparisonBySendDate = m1.getSendDate()
+							.compareTo(m2.getSendDate());
+					return comparisonBySendDate;
+				} else {
+					return comparisonByLastProcessDate;
+				}
+			}
+		});
+	}
+
+	/**
+	 * TODO: JavaDoc
+	 */
+	private List<WSMessage> getMessages(SearchMessageModel model,
+			ICommunicateWS ws) throws WebServiceException {
+		this.totalMessages = ws.getMessagesSize(model);
+		this.totalPages = ((this.totalMessages - 1) / ROWS_ON_PAGE) + 1;
+
+		final int begin = (this.actualPage - 1) * ROWS_ON_PAGE;
+		int end = (this.actualPage * ROWS_ON_PAGE) - 1;
+		if (end >= this.totalMessages)
+			end = (this.totalMessages - 1);
+		logger.debug("begin & end: " + begin + " " + end);
+
+		if (null == model) {
+			return (List<WSMessage>) ws.getMessagesSubset(begin, end);
+		} else {
+			return (List<WSMessage>) ws.getSelectedMessagesSubset(model, begin,
+					end);
+		}
+	}
+
 }
Modified: trunk/code/CSAdminPanel/WebContent/WEB-INF/faces-config.xml
===================================================================
--- trunk/code/CSAdminPanel/WebContent/WEB-INF/faces-config.xml	2006-09-22 18:42:03 UTC (rev 145)
+++ trunk/code/CSAdminPanel/WebContent/WEB-INF/faces-config.xml	2006-09-23 11:08:40 UTC (rev 146)
@@ -2,674 +2,764 @@
 <!DOCTYPE faces-config PUBLIC "-//Sun Microsystems, Inc.//DTD JavaServer Faces Config 1.1//EN"
                               "http://java.sun.com/dtd/web-facesconfig_1_1.dtd">
 <faces-config>
- <converter>
-  <converter-for-class>org.commsuite.enums.Language</converter-for-class>
-  <converter-class>org.commsuite.web.converter.LanguageConverer</converter-class>
- </converter>
- <converter>
-  <converter-for-class>org.commsuite.enums.Country</converter-for-class>
-  <converter-class>org.commsuite.web.converter.CountryConverter</converter-class>
- </converter>
- <converter>
-  <converter-for-class>org.commsuite.enums.TimeZone</converter-for-class>
-  <converter-class>org.commsuite.web.converter.TimeZoneConverter</converter-class>
- </converter>
- <converter>
-  <converter-for-class>org.commsuite.enums.Priority</converter-for-class>
-  <converter-class>org.commsuite.web.converter.PriorityConverter</converter-class>
- </converter>
- <converter>
-  <converter-for-class>org.commsuite.enums.Direction</converter-for-class>
-  <converter-class>org.commsuite.web.converter.DirectionConverter</converter-class>
- </converter>
- <converter>
-  <converter-for-class>org.commsuite.enums.FormatType</converter-for-class>
-  <converter-class>org.commsuite.web.converter.FormatTypeConverter</converter-class>
- </converter>
- <converter>
-  <converter-for-class>org.commsuite.enums.Status</converter-for-class>
-  <converter-class>org.commsuite.web.converter.StatusConverter</converter-class>
- </converter>
- <converter>
-  <converter-id>emptyFieldValidatorConverter</converter-id>
-  <converter-class>org.commsuite.web.converter.EmptyFieldValidatorConverter</converter-class>
- </converter>
- <converter>
-  <converter-id>maxConnectionsConverter</converter-id>
-  <converter-class>org.commsuite.web.converter.MaxConnectionsValidatorConverter</converter-class>
- </converter>
- <managed-bean>
-  <managed-bean-name>languageSelectionBean</managed-bean-name>
-  <managed-bean-class>org.commsuite.web.beans.LanguageSelectionBean</managed-bean-class>
-  <managed-bean-scope>session</managed-bean-scope>
-  <managed-property>
-   <property-name>supportedLanguages</property-name>
-   <property-class>java.util.List</property-class>
-   <list-entries/>
-  </managed-property>
-  <managed-property>
-   <property-name>locale</property-name>
-   <property-class>java.lang.String</property-class>
-   <value/>
-  </managed-property>
- </managed-bean>
- <managed-bean>
-  <managed-bean-name>actionBean</managed-bean-name>
-  <managed-bean-class>org.commsuite.web.beans.actions.ActionBean</managed-bean-class>
-  <managed-bean-scope>request</managed-bean-scope>
-  <managed-property>
-   <property-name>description</property-name>
-   <property-class>java.lang.String</property-class>
-   <value/>
-  </managed-property>
-  <managed-property>
-   <property-name>name</property-name>
-   <property-class>java.lang.String</property-class>
-   <value/>
-  </managed-property>
- </managed-bean>
- <managed-bean>
-  <managed-bean-name>deleteUserBean</managed-bean-name>
-  <managed-bean-class>org.commsuite.web.beans.users.DeleteUserBean</managed-bean-class>
-  <managed-bean-scope>request</managed-bean-scope>
- </managed-bean>
- <managed-bean>
-  <managed-bean-name>addSapServerBean</managed-bean-name>
-  <managed-bean-class>org.commsuite.web.beans.servers.AddSapServerBean</managed-bean-class>
-  <managed-bean-scope>session</managed-bean-scope>
-  <managed-property>
-   <property-name>adminEmail</property-name>
-   <property-class>java.lang.String</property-class>
-   <value/>
-  </managed-property>
-  <managed-property>
-   <property-name>defaultInstance</property-name>
-   <property-class>boolean</property-class>
-   <value/>
-  </managed-property>
-  <managed-property>
-   <property-name>group</property-name>
-   <property-class>java.lang.String</property-class>
-   <value/>
-  </managed-property>
-  <managed-property>
-   <property-name>gwhost</property-name>
-   <property-class>java.lang.String</property-class>
-   <value/>
-  </managed-property>
-  <managed-property>
-   <property-name>gwserv</property-name>
-   <property-class>java.lang.String</property-class>
-   <value/>
-  </managed-property>
-  <managed-property>
-   <property-name>host</property-name>
-   <property-class>java.lang.String</property-class>
-   <value/>
-  </managed-property>
-  <managed-property>
-   <property-name>loadBalancing</property-name>
-   <property-class>boolean</property-class>
-   <value/>
-  </managed-property>
-  <managed-property>
-   <property-name>maxConnectionsInPool</property-name>
-   <property-class>int</property-class>
-   <value/>
-  </managed-property>
-  <managed-property>
-   <property-name>name</property-name>
-   <property-class>java.lang.String</property-class>
-   <value/>
-  </managed-property>
-  <managed-property>
-   <property-name>progid</property-name>
-   <property-class>java.lang.String</property-class>
-   <value/>
-  </managed-property>
-  <managed-property>
-   <property-name>r3name</property-name>
-   <property-class>java.lang.String</property-class>
-   <value/>
-  </managed-property>
-  <managed-property>
-   <property-name>systemNumber</property-name>
-   <property-class>java.lang.String</property-class>
-   <value/>
-  </managed-property>
-  <managed-property>
-   <property-name>unicode</property-name>
-   <property-class>boolean</property-class>
-   <value/>
-  </managed-property>
- </managed-bean>
- <managed-bean>
-  <managed-bean-name>groupBean</managed-bean-name>
-  <managed-bean-class>org.commsuite.web.beans.groups.GroupBean</managed-bean-class>
-  <managed-bean-scope>session</managed-bean-scope>
-  <managed-property>
-   <property-name>description</property-name>
-   <property-class>java.lang.String</property-class>
-   <value/>
-  </managed-property>
-  <managed-property>
-   <property-name>name</property-name>
-   <property-class>java.lang.String</property-class>
-   <value/>
-  </managed-property>
- </managed-bean>
- <managed-bean>
-  <managed-bean-name>searchGroupBean</managed-bean-name>
-  <managed-bean-class>org.commsuite.web.beans.groups.SearchGroupBean</managed-bean-class>
-  <managed-bean-scope>session</managed-bean-scope>
-  <managed-property>
-   <property-name>selectedGroup</property-name>
-   <property-class>java.util.List</property-class>
-   <value/>
-  </managed-property>
-  <managed-property>
-   <property-name>name</property-name>
-   <property-class>java.lang.String</property-class>
-   <value/>
-  </managed-property>
-  <managed-property>
-   <property-name>description</property-name>
-   <property-class>java.lang.String</property-class>
-   <value/>
-  </managed-property>
-  <managed-property>
-   <property-name>selectedRoleIds</property-name>
-   <property-class>java.util.List</property-class>
-   <value/>
-  </managed-property>
-  <managed-property>
-   <property-name>selectedUserIds</property-name>
-   <property-class>java.util.List</property-class>
-   <value/>
-  </managed-property>
- </managed-bean>
- <managed-bean>
-  <managed-bean-name>searchUserBean</managed-bean-name>
-  <managed-bean-class>org.commsuite.web.beans.users.SearchUserBean</managed-bean-class>
-  <managed-bean-scope>session</managed-bean-scope>
- </managed-bean>
- <managed-bean>
-  <managed-bean-name>searchActionBean</managed-bean-name>
-  <managed-bean-class>org.commsuite.web.beans.actions.SearchActionBean</managed-bean-class>
-  <managed-bean-scope>session</managed-bean-scope>
-  <managed-property>
-   <property-name>selectedAction</property-name>
-   <property-class>java.lang.String</property-class>
-   <value/>
-  </managed-property>
- </managed-bean>
- <managed-bean>
-  <managed-bean-name>searchRoleBean</managed-bean-name>
-  <managed-bean-class>org.commsuite.web.beans.roles.SearchRoleBean</managed-bean-class>
-  <managed-bean-scope>session</managed-bean-scope>
-  <managed-property>
-   <property-name>selectedRole</property-name>
-   <property-class>java.lang.String</property-class>
-   <value/>
-  </managed-property>
-  <managed-property>
-   <property-name>selectedActionsIds</property-name>
-   <property-class>java.util.List</property-class>
-   <value/>
-  </managed-property>
-  <managed-property>
-   <property-name>selectedUserIds</property-name>
-   <property-class>java.util.List</property-class>
-   <value/>
-  </managed-property>
- </managed-bean>
- <managed-bean>
-  <managed-bean-name>roleBean</managed-bean-name>
-  <managed-bean-class>org.commsuite.web.beans.roles.RoleBean</managed-bean-class>
-  <managed-bean-scope>session</managed-bean-scope>
-  <managed-property>
-   <property-name>assignedActions</property-name>
-   <property-class>java.util.List</property-class>
-   <value/>
-  </managed-property>
-  <managed-property>
-   <property-name>description</property-name>
-   <property-class>java.lang.String</property-class>
-   <value/>
-  </managed-property>
-  <managed-property>
-   <property-name>name</property-name>
-   <property-class>java.lang.String</property-class>
-   <value/>
-  </managed-property>
-  <managed-property>
-   <property-name>selectedActions</property-name>
-   <property-class>java.util.List</property-class>
-   <value/>
-  </managed-property>
- </managed-bean>
- <managed-bean>
-  <managed-bean-name>sessionBean</managed-bean-name>
-  <managed-bean-class>org.commsuite.web.beans.SessionBean</managed-bean-class>
-  <managed-bean-scope>application</managed-bean-scope>
- </managed-bean>
- <managed-bean>
-  <managed-bean-name>resubmitMessageBean</managed-bean-name>
-  <managed-bean-class>org.commsuite.web.beans.messages.ResubmitMessageBean</managed-bean-class>
-  <managed-bean-scope>request</managed-bean-scope>
- </managed-bean>
- <managed-bean>
-  <managed-bean-name>searchServerBean</managed-bean-name>
-  <managed-bean-class>org.commsuite.web.beans.servers.SearchServerBean</managed-bean-class>
-  <managed-bean-scope>session</managed-bean-scope>
-  <managed-property>
-   <property-name>adminEmail</property-name>
-   <property-class>java.lang.String</property-class>
-   <value/>
-  </managed-property>
-  <managed-property>
-   <property-name>client</property-name>
-   <property-class>java.lang.String</property-class>
-   <value/>
-  </managed-property>
-  <managed-property>
-   <property-name>defaultInstance</property-name>
-   <property-class>boolean</property-class>
-   <value/>
-  </managed-property>
-  <managed-property>
-   <property-name>group</property-name>
-   <property-class>java.lang.String</property-class>
-   <value/>
-  </managed-property>
-  <managed-property>
-   <property-name>gwhost</property-name>
-   <property-class>java.lang.String</property-class>
-   <value/>
-  </managed-property>
-  <managed-property>
-   <property-name>gwserv</property-name>
-   <property-class>java.lang.String</property-class>
-   <value/>
-  </managed-property>
-  <managed-property>
-   <property-name>host</property-name>
-   <property-class>java.lang.String</property-class>
-   <value/>
-  </managed-property>
-  <managed-property>
-   <property-name>loadBalancing</property-name>
-   <property-class>boolean</property-class>
-   <value/>
-  </managed-property>
-  <managed-property>
-   <property-name>maxConnectionsInPool</property-name>
-   <property-class>int</property-class>
-   <value/>
-  </managed-property>
-  <managed-property>
-   <property-name>name</property-name>
-   <property-class>java.lang.String</property-class>
-   <value/>
-  </managed-property>
-  <managed-property>
-   <property-name>password</property-name>
-   <property-class>java.lang.String</property-class>
-   <value/>
-  </managed-property>
-  <managed-property>
-   <property-name>progid</property-name>
-   <property-class>java.lang.String</property-class>
-   <value/>
-  </managed-property>
-  <managed-property>
-   <property-name>r3name</property-name>
-   <property-class>java.lang.String</property-class>
-   <value/>
-  </managed-property>
-  <managed-property>
-   <property-name>systemNumber</property-name>
-   <property-class>java.lang.String</property-class>
-   <value/>
-  </managed-property>
-  <managed-property>
-   <property-name>unicode</property-name>
-   <property-class>boolean</property-class>
-   <value/>
-  </managed-property>
-  <managed-property>
-   <property-name>user</property-name>
-   <property-class>java.lang.String</property-class>
-   <value/>
-  </managed-property>
- </managed-bean>
- <managed-bean>
-  <managed-bean-name>addUserBean</managed-bean-name>
-  <managed-bean-class>org.commsuite.web.beans.users.AddUserBean</managed-bean-class>
-  <managed-bean-scope>session</managed-bean-scope>
-  <managed-property>
-   <property-name>city</property-name>
-   <property-class>java.lang.String</property-class>
-   <value/>
-  </managed-property>
-  <managed-property>
-   <property-name>country</property-name>
-   <property-class>org.commsuite.enums.Country</property-class>
-   <value/>
-  </managed-property>
-  <managed-property>
-   <property-name>department</property-name>
-   <property-class>java.lang.String</property-class>
-   <value/>
-  </managed-property>
-  <managed-property>
-   <property-name>email</property-name>
-   <property-class>java.lang.String</property-class>
-   <value/>
-  </managed-property>
-  <managed-property>
-   <property-name>enabled</property-name>
-   <property-class>boolean</property-class>
-   <value/>
-  </managed-property>
-  <managed-property>
-   <property-name>fax</property-name>
-   <property-class>java.lang.String</property-class>
-   <value/>
-  </managed-property>
-  <managed-property>
-   <property-name>firstName</property-name>
-   <property-class>java.lang.String</property-class>
-   <value/>
-  </managed-property>
-  <managed-property>
-   <property-name>id</property-name>
-   <property-class>long</property-class>
-   <value/>
-  </managed-property>
-  <managed-property>
-   <property-name>language</property-name>
-   <property-class>org.commsuite.enums.Language</property-class>
-   <value/>
-  </managed-property>
-  <managed-property>
-   <property-name>lastName</property-name>
-   <property-class>java.lang.String</property-class>
-   <value/>
-  </managed-property>
-  <managed-property>
-   <property-name>login</property-name>
-   <property-class>java.lang.String</property-class>
-   <value/>
-  </managed-property>
-  <managed-property>
-   <property-name>mobile</property-name>
-   <property-class>java.lang.String</property-class>
-   <value/>
-  </managed-property>
-  <managed-property>
-   <property-name>password</property-name>
-   <property-class>java.lang.String</property-class>
-   <value/>
-  </managed-property>
-  <managed-property>
-   <property-name>position</property-name>
-   <property-class>java.lang.String</property-class>
-   <value/>
-  </managed-property>
-  <managed-property>
-   <property-name>postalCode</property-name>
-   <property-class>java.lang.String</property-class>
-   <value/>
-  </managed-property>
-  <managed-property>
-   <property-name>state</property-name>
-   <property-class>java.lang.String</property-class>
-   <value/>
-  </managed-property>
-  <managed-property>
-   <property-name>street</property-name>
-   <property-class>java.lang.String</property-class>
-   <value/>
-  </managed-property>
-  <managed-property>
-   <property-name>telephone</property-name>
-   <property-class>java.lang.String</property-class>
-   <value/>
-  </managed-property>
-  <managed-property>
-   <property-name>timeZone</property-name>
-   <property-class>org.commsuite.enums.TimeZone</property-class>
-   <value/>
-  </managed-property>
-  <managed-property>
-   <property-name>validFrom</property-name>
-   <property-class>java.util.Date</property-class>
-   <value/>
-  </managed-property>
-  <managed-property>
-   <property-name>validTo</property-name>
-   <property-class>java.util.Date</property-class>
-   <value/>
-  </managed-property>
- </managed-bean>
- <managed-bean>
-  <managed-bean-name>searchMessageBean</managed-bean-name>
-  <managed-bean-class>org.commsuite.web.beans.messages.SearchMessageBean</managed-bean-class>
-  <managed-bean-scope>session</managed-bean-scope>
-  <managed-property>
-   <property-name>description</property-name>
-   <property-class>java.lang.String</property-class>
-   <value/>
-  </managed-property>
-  <managed-property>
-   <property-name>direction</property-name>
-   <property-class>org.commsuite.enums.Direction</property-class>
-   <value/>
-  </managed-property>
-  <managed-property>
-   <property-name>formatType</property-name>
-   <property-class>org.commsuite.enums.FormatType</property-class>
-   <value/>
-  </managed-property>
-  <managed-property>
-   <property-name>lastProcessMessage</property-name>
-   <property-class>java.lang.String</property-class>
-   <value/>
-  </managed-property>
-  <managed-property>
-   <property-name>priority</property-name>
-   <property-class>org.commsuite.enums.Priority</property-class>
-   <value/>
-  </managed-property>
-  <managed-property>
-   <property-name>receiver</property-name>
-   <property-class>java.lang.String</property-class>
-   <value/>
-  </managed-property>
-  <managed-property>
-   <property-name>sapID</property-name>
-   <property-class>java.lang.String</property-class>
-   <value/>
-  </managed-property>
-  <managed-property>
-   <property-name>sender</property-name>
-   <property-class>java.lang.String</property-class>
-   <value/>
-  </managed-property>
-  <managed-property>
-   <property-name>sentContentsList</property-name>
-   <property-class>java.util.List</property-class>
-   <value/>
-  </managed-property>
-  <managed-property>
-   <property-name>status</property-name>
-   <property-class>org.commsuite.enums.Status</property-class>
-   <value/>
-  </managed-property>
-  <managed-property>
-   <property-name>sendDateFrom</property-name>
-   <property-class>java.util.Date</property-class>
-   <value/>
-  </managed-property>
-  <managed-property>
-   <property-name>sendDateTo</property-name>
-   <property-class>java.util.Date</property-class>
-   <value/>
-  </managed-property>
-  <managed-property>
-   <property-name>id</property-name>
-   <property-class>java.lang.Long</property-class>
-   <value/>
-  </managed-property>
- </managed-bean>
- <navigation-rule>
-  <from-view-id>/pages/*</from-view-id>
-  <navigation-case>
-   <from-outcome>addAction</from-outcome>
-   <to-view-id>/pages/actions/CSActionAdd.jsp</to-view-id>
-  </navigation-case>
-  <navigation-case>
-   <from-outcome>searchAction</from-outcome>
-   <to-view-id>/pages/actions/CSActionSearch.jsp</to-view-id>
-  </navigation-case>
-  <navigation-case>
-   <from-outcome>editAction</from-outcome>
-   <to-view-id>/pages/actions/CSActionsEdit.jsp</to-view-id>
-  </navigation-case>
-  <navigation-case>
-   <from-outcome>addGroup</from-outcome>
-   <to-view-id>/pages/groups/CSGroupAdd.jsp</to-view-id>
-  </navigation-case>
-  <navigation-case>
-   <from-outcome>searchGroup</from-outcome>
-   <to-view-id>/pages/groups/CSGroupSearch.jsp</to-view-id>
-  </navigation-case>
-  <navigation-case>
-   <from-outcome>editGroup</from-outcome>
-   <to-view-id>/pages/groups/CSGroupEdit.jsp</to-view-id>
-  </navigation-case>
-  <navigation-case>
-   <from-outcome>addRole</from-outcome>
-   <to-view-id>/pages/roles/CSRoleCreate.jsp</to-view-id>
-  </navigation-case>
-  <navigation-case>
-   <from-outcome>searchRole</from-outcome>
-   <to-view-id>/pages/roles/CSRoleSearch.jsp</to-view-id>
-  </navigation-case>
-  <navigation-case>
-   <from-outcome>editRole</from-outcome>
-   <to-view-id>/pages/roles/CSRoleEdit.jsp</to-view-id>
-  </navigation-case>
-  <navigation-case>
-   <from-outcome>addServer</from-outcome>
-   <to-view-id>/pages/servers/CSServerAdd.jsp</to-view-id>
-  </navigation-case>
-  <navigation-case>
-   <from-outcome>showServers</from-outcome>
-   <to-view-id>/pages/servers/CSSAPServers.jsp</to-view-id>
-  </navigation-case>
-  <navigation-case>
-   <from-outcome>addUser</from-outcome>
-   <to-view-id>/pages/users/CSUserAdd.jsp</to-view-id>
-  </navigation-case>
-  <navigation-case>
-   <from-outcome>searchUser</from-outcome>
-   <to-view-id>/pages/users/CSUserSearch.jsp</to-view-id>
-  </navigation-case>
-  <navigation-case>
-   <from-outcome>showUsers</from-outcome>
-   <to-view-id>/pages/users/CSUsersSearchResult.jsp</to-view-id>
-  </navigation-case>
-  <navigation-case>
-   <from-outcome>showMessages</from-outcome>
-   <to-view-id>/pages/messages/CSMessages.jsp</to-view-id>
-  </navigation-case>
-  <navigation-case>
-   <from-outcome>home</from-outcome>
-   <to-view-id>/pages/CSMainPanel.jsp</to-view-id>
-  </navigation-case>
-  <navigation-case>
-   <from-outcome>servlet</from-outcome>
-   <to-view-id>/pages/CSContentsServlet.jsp</to-view-id>
-  </navigation-case>
-  <navigation-case>
-   <from-outcome>usersToGroup</from-outcome>
-   <to-view-id>/pages/common/CSUsersToGroup.jsp</to-view-id>
-  </navigation-case>
-  <navigation-case>
-   <from-outcome>usersToRole</from-outcome>
-   <to-view-id>/pages/common/CSUsersToRole.jsp</to-view-id>
-  </navigation-case>
-  <navigation-case>
-   <from-outcome>actionsToRoles</from-outcome>
-   <to-view-id>/pages/common/CSActionsToRole.jsp</to-view-id>
-  </navigation-case>
-  <navigation-case>
-   <from-outcome>rolesToGroup</from-outcome>
-   <to-view-id>/pages/common/CSRolesToGroup.jsp</to-view-id>
-  </navigation-case>
-  <navigation-case>
-   <from-outcome>loggedOut</from-outcome>
-   <to-view-id>/CSLoginForm.jsp</to-view-id>
-   <redirect/>
-  </navigation-case>
-  <navigation-case>
-   <from-outcome>searchMessages</from-outcome>
-   <to-view-id>/pages/messages/CSMessagesSearch.jsp</to-view-id>
-  </navigation-case>
-  <navigation-case>
-   <from-outcome>editUser</from-outcome>
-   <to-view-id>/pages/users/CSUserEdit.jsp</to-view-id>
-  </navigation-case>
-  <navigation-case>
-   <from-outcome>searchServers</from-outcome>
-   <to-view-id>/pages/servers/CSServerSearch.jsp</to-view-id>
-  </navigation-case>
-  <navigation-case>
-   <from-outcome>editServer</from-outcome>
-   <to-view-id>/pages/servers/CSServerEdit.jsp</to-view-id>
-  </navigation-case>
-  <navigation-case>
-   <from-outcome>messageDetails</from-outcome>
-   <to-view-id>/pages/messages/CSMessagesDetails.jsp</to-view-id>
-  </navigation-case>
- </navigation-rule>
- <navigation-rule>
-  <from-view-id>/loginError.jsp</from-view-id>
-  <navigation-case>
-   <from-outcome>loginPage</from-outcome>
-   <to-view-id>/index.jsp</to-view-id>
-  </navigation-case>
- </navigation-rule>
- <validator>
-  <validator-id>longLenghtValidator</validator-id>
-  <validator-class>org.commsuite.web.validator.LongLenghtValidator</validator-class>
- </validator>
- <validator>
-  <validator-id>shortLenghtValidator</validator-id>
-  <validator-class>org.commsuite.web.validator.ShortLenghtValidator</validator-class>
- </validator>
- <validator>
-  <validator-id>emailAddressValidator</validator-id>
-  <validator-class>org.commsuite.web.validator.EmailAddressValidator</validator-class>
- </validator>
- <validator>
-  <validator-id>phoneNumberValidator</validator-id>
-  <validator-class>org.commsuite.web.validator.PhoneNumberValidator</validator-class>
- </validator>
- <validator>
-  <validator-id>postalCodeValidator</validator-id>
-  <validator-class>org.commsuite.web.validator.PostalCodeValidator</validator-class>
- </validator>
- <application>
-  <variable-resolver>org.springframework.web.jsf.DelegatingVariableResolver</variable-resolver>
-  <locale-config>
-   <default-locale>pl</default-locale>
-   <supported-locale>pl</supported-locale>
-  </locale-config>
-  <message-bundle>org.commsuite.web.Locale</message-bundle>
- </application>
- <lifecycle/>
- <factory/>
+	<converter>
+		<converter-for-class>
+			org.commsuite.enums.Language
+		</converter-for-class>
+		<converter-class>
+			org.commsuite.web.converter.LanguageConverer
+		</converter-class>
+	</converter>
+	<converter>
+		<converter-for-class>
+			org.commsuite.enums.Country
+		</converter-for-class>
+		<converter-class>
+			org.commsuite.web.converter.CountryConverter
+		</converter-class>
+	</converter>
+	<converter>
+		<converter-for-class>
+			org.commsuite.enums.TimeZone
+		</converter-for-class>
+		<converter-class>
+			org.commsuite.web.converter.TimeZoneConverter
+		</converter-class>
+	</converter>
+	<converter>
+		<converter-for-class>
+			org.commsuite.enums.Priority
+		</converter-for-class>
+		<converter-class>
+			org.commsuite.web.converter.PriorityConverter
+		</converter-class>
+	</converter>
+	<converter>
+		<converter-for-class>
+			org.commsuite.enums.Direction
+		</converter-for-class>
+		<converter-class>
+			org.commsuite.web.converter.DirectionConverter
+		</converter-class>
+	</converter>
+	<converter>
+		<converter-for-class>
+			org.commsuite.enums.FormatType
+		</converter-for-class>
+		<converter-class>
+			org.commsuite.web.converter.FormatTypeConverter
+		</converter-class>
+	</converter>
+	<converter>
+		<converter-for-class>
+			org.commsuite.enums.Status
+		</converter-for-class>
+		<converter-class>
+			org.commsuite.web.converter.StatusConverter
+		</converter-class>
+	</converter>
+	<converter>
+		<converter-id>emptyFieldValidatorConverter</converter-id>
+		<converter-class>
+			org.commsuite.web.converter.EmptyFieldValidatorConverter
+		</converter-class>
+	</converter>
+	<converter>
+		<converter-id>maxConnectionsConverter</converter-id>
+		<converter-class>
+			org.commsuite.web.converter.MaxConnectionsValidatorConverter
+		</converter-class>
+	</converter>
+	<managed-bean>
+		<managed-bean-name>languageSelectionBean</managed-bean-name>
+		<managed-bean-class>
+			org.commsuite.web.beans.LanguageSelectionBean
+		</managed-bean-class>
+		<managed-bean-scope>session</managed-bean-scope>
+		<managed-property>
+			<property-name>supportedLanguages</property-name>
+			<property-class>java.util.List</property-class>
+			<list-entries />
+		</managed-property>
+		<managed-property>
+			<property-name>locale</property-name>
+			<property-class>java.lang.String</property-class>
+			<value />
+		</managed-property>
+	</managed-bean>
+	<managed-bean>
+		<managed-bean-name>actionBean</managed-bean-name>
+		<managed-bean-class>
+			org.commsuite.web.beans.actions.ActionBean
+		</managed-bean-class>
+		<managed-bean-scope>request</managed-bean-scope>
+		<managed-property>
+			<property-name>description</property-name>
+			<property-class>java.lang.String</property-class>
+			<value />
+		</managed-property>
+		<managed-property>
+			<property-name>name</property-name>
+			<property-class>java.lang.String</property-class>
+			<value />
+		</managed-property>
+	</managed-bean>
+	<managed-bean>
+		<managed-bean-name>deleteUserBean</managed-bean-name>
+		<managed-bean-class>
+			org.commsuite.web.beans.users.DeleteUserBean
+		</managed-bean-class>
+		<managed-bean-scope>request</managed-bean-scope>
+	</managed-bean>
+	<managed-bean>
+		<managed-bean-name>addSapServerBean</managed-bean-name>
+		<managed-bean-class>
+			org.commsuite.web.beans.servers.AddSapServerBean
+		</managed-bean-class>
+		<managed-bean-scope>session</managed-bean-scope>
+		<managed-property>
+			<property-name>adminEmail</property-name>
+			<property-class>java.lang.String</property-class>
+			<value />
+		</managed-property>
+		<managed-property>
+			<property-name>defaultInstance</property-name>
+			<property-class>boolean</property-class>
+			<value />
+		</managed-property>
+		<managed-property>
+			<property-name>group</property-name>
+			<property-class>java.lang.String</property-class>
+			<value />
+		</managed-property>
+		<managed-property>
+			<property-name>gwhost</property-name>
+			<property-class>java.lang.String</property-class>
+			<value />
+		</managed-property>
+		<managed-property>
+			<property-name>gwserv</property-name>
+			<property-class>java.lang.String</property-class>
+			<value />
+		</managed-property>
+		<managed-property>
+			<property-name>host</property-name>
+			<property-class>java.lang.String</property-class>
+			<value />
+		</managed-property>
+		<managed-property>
+			<property-name>loadBalancing</property-name>
+			<property-class>boolean</property-class>
+			<value />
+		</managed-property>
+		<managed-property>
+			<property-name>maxConnectionsInPool</property-name>
+			<property-class>int</property-class>
+			<value />
+		</managed-property>
+		<managed-property>
+			<property-name>name</property-name>
+			<property-class>java.lang.String</property-class>
+			<value />
+		</managed-property>
+		<managed-property>
+			<property-name>progid</property-name>
+			<property-class>java.lang.String</property-class>
+			<value />
+		</managed-property>
+		<managed-property>
+			<property-name>r3name</property-name>
+			<property-class>java.lang.String</property-class>
+			<value />
+		</managed-property>
+		<managed-property>
+			<property-name>systemNumber</property-name>
+			<property-class>java.lang.String</property-class>
+			<value />
+		</managed-property>
+		<managed-property>
+			<property-name>unicode</property-name>
+			<property-class>boolean</property-class>
+			<value />
+		</managed-property>
+	</managed-bean>
+	<managed-bean>
+		<managed-bean-name>groupBean</managed-bean-name>
+		<managed-bean-class>
+			org.commsuite.web.beans.groups.GroupBean
+		</managed-bean-class>
+		<managed-bean-scope>session</managed-bean-scope>
+		<managed-property>
+			<property-name>description</property-name>
+			<property-class>java.lang.String</property-class>
+			<value />
+		</managed-property>
+		<managed-property>
+			<property-name>name</property-name>
+			<property-class>java.lang.String</property-class>
+			<value />
+		</managed-property>
+	</managed-bean>
+	<managed-bean>
+		<managed-bean-name>searchGroupBean</managed-bean-name>
+		<managed-bean-class>
+			org.commsuite.web.beans.groups.SearchGroupBean
+		</managed-bean-class>
+		<managed-bean-scope>session</managed-bean-scope>
+		<managed-property>
+			<property-name>selectedGroup</property-name>
+			<property-class>java.util.List</property-class>
+			<value />
+		</managed-property>
+		<managed-property>
+			<property-name>name</property-name>
+			<property-class>java.lang.String</property-class>
+			<value />
+		</managed-property>
+		<managed-property>
+			<property-name>description</property-name>
+			<property-class>java.lang.String</property-class>
+			<value />
+		</managed-property>
+		<managed-property>
+			<property-name>selectedRoleIds</property-name>
+			<property-class>java.util.List</property-class>
+			<value />
+		</managed-property>
+		<managed-property>
+			<property-name>selectedUserIds</property-name>
+			<property-class>java.util.List</property-class>
+			<value />
+		</managed-property>
+	</managed-bean>
+	<managed-bean>
+		<managed-bean-name>searchUserBean</managed-bean-name>
+		<managed-bean-class>
+			org.commsuite.web.beans.users.SearchUserBean
+		</managed-bean-class>
+		<managed-bean-scope>session</managed-bean-scope>
+	</managed-bean>
+	<managed-bean>
+		<managed-bean-name>searchActionBean</managed-bean-name>
+		<managed-bean-class>
+			org.commsuite.web.beans.actions.SearchActionBean
+		</managed-bean-class>
+		<managed-bean-scope>session</managed-bean-scope>
+		<managed-property>
+			<property-name>selectedAction</property-name>
+			<property-class>java.lang.String</property-class>
+			<value />
+		</managed-property>
+	</managed-bean>
+	<managed-bean>
+		<managed-bean-name>searchRoleBean</managed-bean-name>
+		<managed-bean-class>
+			org.commsuite.web.beans.roles.SearchRoleBean
+		</managed-bean-class>
+		<managed-bean-scope>session</managed-bean-scope>
+		<managed-property>
+			<property-name>selectedRole</property-name>
+			<property-class>java.lang.String</property-class>
+			<value />
+		</managed-property>
+		<managed-property>
+			<property-name>selectedActionsIds</property-name>
+			<property-class>java.util.List</property-class>
+			<value />
+		</managed-property>
+		<managed-property>
+			<property-name>selectedUserIds</property-name>
+			<property-class>java.util.List</property-class>
+			<value />
+		</managed-property>
+	</managed-bean>
+	<managed-bean>
+		<managed-bean-name>roleBean</managed-bean-name>
+		<managed-bean-class>
+			org.commsuite.web.beans.roles.RoleBean
+		</managed-bean-class>
+		<managed-bean-scope>session</managed-bean-scope>
+		<managed-property>
+			<property-name>assignedActions</property-name>
+			<property-class>java.util.List</property-class>
+			<value />
+		</managed-property>
+		<managed-property>
+			<property-name>description</property-name>
+			<property-class>java.lang.String</property-class>
+			<value />
+		</managed-property>
+		<managed-property>
+			<property-name>name</property-name>
+			<property-class>java.lang.String</property-class>
+			<value />
+		</managed-property>
+		<managed-property>
+			<property-name>selectedActions</property-name>
+			<property-class>java.util.List</property-class>
+			<value />
+		</managed-property>
+	</managed-bean>
+	<managed-bean>
+		<managed-bean-name>sessionBean</managed-bean-name>
+		<managed-bean-class>
+			org.commsuite.web.beans.SessionBean
+		</managed-bean-class>
+		<managed-bean-scope>application</managed-bean-scope>
+	</managed-bean>
+	<managed-bean>
+		<managed-bean-name>resubmitMessageBean</managed-bean-name>
+		<managed-bean-class>
+			org.commsuite.web.beans.messages.ResubmitMessageBean
+		</managed-bean-class>
+		<managed-bean-scope>request</managed-bean-scope>
+	</managed-bean>
+	<managed-bean>
+		<managed-bean-name>searchServerBean</managed-bean-name>
+		<managed-bean-class>
+			org.commsuite.web.beans.servers.SearchServerBean
+		</managed-bean-class>
+		<managed-bean-scope>session</managed-bean-scope>
+		<managed-property>
+			<property-name>adminEmail</property-name>
+			<property-class>java.lang.String</property-class>
+			<value />
+		</managed-property>
+		<managed-property>
+			<property-name>client</property-name>
+			<property-class>java.lang.String</property-class>
+			<value />
+		</managed-property>
+		<managed-property>
+			<property-name>defaultInstance</property-name>
+			<property-class>boolean</property-class>
+			<value />
+		</managed-property>
+		<managed-property>
+			<property-name>group</property-name>
+			<property-class>java.lang.String</property-class>
+			<value />
+		</managed-property>
+		<managed-property>
+			<property-name>gwhost</property-name>
+			<property-class>java.lang.String</property-class>
+			<value />
+		</managed-property>
+		<managed-property>
+			<property-name>gwserv</property-name>
+			<property-class>java.lang.String</property-class>
+			<value />
+		</managed-property>
+		<managed-property>
+			<property-name>host</property-name>
+			<property-class>java.lang.String</property-class>
+			<value />
+		</managed-property>
+		<managed-property>
+			<property-name>loadBalancing</property-name>
+			<property-class>boolean</property-class>
+			<value />
+		</managed-property>
+		<managed-property>
+			<property-name>maxConnectionsInPool</property-name>
+			<property-class>int</property-class>
+			<value />
+		</managed-property>
+		<managed-property>
+			<property-name>name</property-name>
+			<property-class>java.lang.String</property-class>
+			<value />
+		</managed-property>
+		<managed-property>
+			<property-name>password</property-name>
+			<property-class>java.lang.String</property-class>
+			<value />
+		</managed-property>
+		<managed-property>
+			<property-name>progid</property-name>
+			<property-class>java.lang.String</property-class>
+			<value />
+		</managed-property>
+		<managed-property>
+			<property-name>r3name</property-name>
+			<property-class>java.lang.String</property-class>
+			<value />
+		</managed-property>
+		<managed-property>
+			<property-name>systemNumber</property-name>
+			<property-class>java.lang.String</property-class>
+			<value />
+		</managed-property>
+		<managed-property>
+			<property-name>unicode</property-name>
+			<property-class>boolean</property-class>
+			<value />
+		</managed-property>
+		<managed-property>
+			<property-name>user</property-name>
+			<property-class>java.lang.String</property-class>
+			<value />
+		</managed-property>
+	</managed-bean>
+	<managed-bean>
+		<managed-bean-name>addUserBean</managed-bean-name>
+		<managed-bean-class>
+			org.commsuite.web.beans.users.AddUserBean
+		</managed-bean-class>
+		<managed-bean-scope>session</managed-bean-scope>
+		<managed-property>
+			<property-name>city</property-name>
+			<property-class>java.lang.String</property-class>
+			<value />
+		</managed-property>
+		<managed-property>
+			<property-name>country</property-name>
+			<property-class>org.commsuite.enums.Country</property-class>
+			<value />
+		</managed-property>
+		<managed-property>
+			<property-name>department</property-name>
+			<property-class>java.lang.String</property-class>
+			<value />
+		</managed-property>
+		<managed-property>
+			<property-name>email</property-name>
+			<property-class>java.lang.String</property-class>
+			<value />
+		</managed-property>
+		<managed-property>
+			<property-name>enabled</property-name>
+			<property-class>boolean</property-class>
+			<value />
+		</managed-property>
+		<managed-property>
+			<property-name>fax</property-name>
+			<property-class>java.lang.String</property-class>
+			<value />
+		</managed-property>
+		<managed-property>
+			<property-name>firstName</property-name>
+			<property-class>java.lang.String</property-class>
+			<value />
+		</managed-property>
+		<managed-property>
+			<property-name>id</property-name>
+			<property-class>long</property-class>
+			<value />
+		</managed-property>
+		<managed-property>
+			<property-name>language</property-name>
+			<property-class>
+				org.commsuite.enums.Language
+			</property-class>
+			<value />
+		</managed-property>
+		<managed-property>
+			<property-name>lastName</property-name>
+			<property-class>java.lang.String</property-class>
+			<value />
+		</managed-property>
+		<managed-property>
+			<property-name>login</property-name>
+			<property-class>java.lang.String</property-class>
+			<value />
+		</managed-property>
+		<managed-property>
+			<property-name>mobile</property-name>
+			<property-class>java.lang.String</property-class>
+			<value />
+		</managed-property>
+		<managed-property>
+			<property-name>password</property-name>
+			<property-class>java.lang.String</property-class>
+			<value />
+		</managed-property>
+		<managed-property>
+			<property-name>position</property-name>
+			<property-class>java.lang.String</property-class>
+			<value />
+		</managed-property>
+		<managed-property>
+			<property-name>postalCode</property-name>
+			<property-class>java.lang.String</property-class>
+			<value />
+		</managed-property>
+		<managed-property>
+			<property-name>state</property-name>
+			<property-class>java.lang.String</property-class>
+			<value />
+		</managed-property>
+		<managed-property>
+			<property-name>street</property-name>
+			<property-class>java.lang.String</property-class>
+			<value />
+		</managed-property>
+		<managed-property>
+			<property-name>telephone</property-name>
+			<property-class>java.lang.String</property-class>
+			<value />
+		</managed-property>
+		<managed-property>
+			<property-name>timeZone</property-name>
+			<property-class>
+				org.commsuite.enums.TimeZone
+			</property-class>
+			<value />
+		</managed-property>
+		<managed-property>
+			<property-name>validFrom</property-name>
+			<property-class>java.util.Date</property-class>
+			<value />
+		</managed-property>
+		<managed-property>
+			<property-name>validTo</property-name>
+			<property-class>java.util.Date</property-class>
+			<value />
+		</managed-property>
+	</managed-bean>
+	<managed-bean>
+		<managed-bean-name>searchMessageBean</managed-bean-name>
+		<managed-bean-class>
+			org.commsuite.web.beans.messages.SearchMessageBean
+		</managed-bean-class>
+		<managed-bean-scope>session</managed-bean-scope>
+		<managed-property>
+			<property-name>description</property-name>
+			<property-class>java.lang.String</property-class>
+			<value />
+		</managed-property>
+		<managed-property>
+			<property-name>direction</property-name>
+			<property-class>
+				org.commsuite.enums.Direction
+			</property-class>
+			<value />
+		</managed-property>
+		<managed-property>
+			<property-name>formatType</property-name>
+			<property-class>
+				org.commsuite.enums.FormatType
+			</property-class>
+			<value />
+		</managed-property>
+		<managed-property>
+			<property-name>lastProcessMessage</property-name>
+			<property-class>java.lang.String</property-class>
+			<value />
+		</managed-property>
+		<managed-property>
+			<property-name>priority</property-name>
+			<property-class>
+				org.commsuite.enums.Priority
+			</property-class>
+			<value />
+		</managed-property>
+		<managed-property>
+			<property-name>receiver</property-name>
+			<property-class>java.lang.String</property-class>
+			<value />
+		</managed-property>
+		<managed-property>
+			<property-name>sapID</property-name>
+			<property-class>java.lang.String</property-class>
+			<value />
+		</managed-property>
+		<managed-property>
+			<property-name>sender</property-name>
+			<property-class>java.lang.String</property-class>
+			<value />
+		</managed-property>
+		<managed-property>
+			<property-name>sentContentsList</property-name>
+			<property-class>java.util.List</property-class>
+			<value />
+		</managed-property>
+		<managed-property>
+			<property-name>status</property-name>
+			<property-class>org.commsuite.enums.Status</property-class>
+			<value />
+		</managed-property>
+		<managed-property>
+			<property-name>sendDateFrom</property-name>
+			<property-class>java.util.Date</property-class>
+			<value />
+		</managed-property>
+		<managed-property>
+			<property-name>sendDateTo</property-name>
+			<property-class>java.util.Date</property-class>
+			<value />
+		</managed-property>
+		<managed-property>
+			<property-name>id</property-name>
+			<property-class>java.lang.Long</property-class>
+			<value />
+		</managed-property>
+	</managed-bean>
+	<navigation-rule>
+		<from-view-id>/pages/*</from-view-id>
+		<navigation-case>
+			<from-outcome>addAction</from-outcome>
+			<to-view-id>/pages/actions/CSActionAdd.jsp</to-view-id>
+		</navigation-case>
+		<navigation-case>
+			<from-outcome>searchAction</from-outcome>
+			<to-view-id>/pages/actions/CSActionSearch.jsp</to-view-id>
+		</navigation-case>
+		<navigation-case>
+			<from-outcome>editAction</from-outcome>
+			<to-view-id>/pages/actions/CSActionsEdit.jsp</to-view-id>
+		</navigation-case>
+		<navigation-case>
+			<from-outcome>addGroup</from-outcome>
+			<to-view-id>/pages/groups/CSGroupAdd.jsp</to-view-id>
+		</navigation-case>
+		<navigation-case>
+			<from-outcome>searchGroup</from-outcome>
+			<to-view-id>/pages/groups/CSGroupSearch.jsp</to-view-id>
+		</navigation-case>
+		<navigation-case>
+			<from-outcome>editGroup</from-outcome>
+			<to-view-id>/pages/groups/CSGroupEdit.jsp</to-view-id>
+		</navigation-case>
+		<navigation-case>
+			<from-outcome>addRole</from-outcome>
+			<to-view-id>/pages/roles/CSRoleCreate.jsp</to-view-id>
+		</navigation-case>
+		<navigation-case>
+			<from-outcome>searchRole</from-outcome>
+			<to-view-id>/pages/roles/CSRoleSearch.jsp</to-view-id>
+		</navigation-case>
+		<navigation-case>
+			<from-outcome>editRole</from-outcome>
+			<to-view-id>/pages/roles/CSRoleEdit.jsp</to-view-id>
+		</navigation-case>
+		<navigation-case>
+			<from-outcome>addServer</from-outcome>
+			<to-view-id>/pages/servers/CSServerAdd.jsp</to-view-id>
+		</navigation-case>
+		<navigation-case>
+			<from-outcome>showServers</from-outcome>
+			<to-view-id>/pages/servers/CSSAPServers.jsp</to-view-id>
+		</navigation-case>
+		<navigation-case>
+			<from-outcome>addUser</from-outcome>
+			<to-view-id>/pages/users/CSUserAdd.jsp</to-view-id>
+		</navigation-case>
+		<navigation-case>
+			<from-outcome>searchUser</from-outcome>
+			<to-view-id>/pages/users/CSUserSearch.jsp</to-view-id>
+		</navigation-case>
+		<navigation-case>
+			<from-outcome>showUsers</from-outcome>
+			<to-view-id>
+				/pages/users/CSUsersSearchResult.jsp
+			</to-view-id>
+		</navigation-case>
+		<navigation-case>
+			<from-outcome>showMessages</from-outcome>
+			<to-view-id>/pages/messages/CSMessages.jsp</to-view-id>
+		</navigation-case>
+		<navigation-case>
+			<from-outcome>home</from-outcome>
+			<to-view-id>/pages/CSMainPanel.jsp</to-view-id>
+		</navigation-case>
+		<navigation-case>
+			<from-outcome>servlet</from-outcome>
+			<to-view-id>/pages/CSContentsServlet.jsp</to-view-id>
+		</navigation-case>
+		<navigation-case>
+			<from-outcome>usersToGroup</from-outcome>
+			<to-view-id>/pages/common/CSUsersToGroup.jsp</to-view-id>
+		</navigation-case>
+		<navigation-case>
+			<from-outcome>usersToRole</from-outcome>
+			<to-view-id>/pages/common/CSUsersToRole.jsp</to...
 
[truncated message content] |