Salome HOME
Modifications to respect PMD rules.
[tools/siman.git] / Workspace / Siman / src / org / splat / simer / MenuBarSettings.java
index 57c89b2979703485b0df15542995807f4e76522b..4956e008d10d45d81e8329a78c639b652c321cee 100644 (file)
@@ -9,6 +9,8 @@
 
 package org.splat.simer; 
 
+import org.splat.wapp.Constants;
+
 /**
  * Settings for menu bar.
  * @author Maria KRUCHININA
@@ -19,73 +21,73 @@ public class MenuBarSettings {
        /**
         * The SALOME WEB-site URL.
         */
-       private  String webSiteURL;
+       private  String _webSiteURL;
 
        /**
         * Help URL.
         */
-       private  String helpURL;
+       private  String _helpURL;
 
        //=== MENUS==========================================
        /**
         * Property, is this menu the "Create the Study" one.
         */
-       private  Boolean isMenuCreate;
+       private  Boolean _isMenuCreate;
        
        /**
         * Property, is this menu the "Open the Study" one.
         */
-       private  Boolean isMenuOpen;
+       private  Boolean _isMenuOpen;
        
        /**
         * Property, is this menu the "Display the Open Study" one.
         */
-       private  Boolean isMenuStudy;
+       private  Boolean _isMenuStudy;
        
        /**
         * Property, is this menu the "Display the Open Knowledge" one.
         */
-       private  Boolean isMenuKnowledge;
+       private  Boolean _isMenuKnowledge;
        
        /**
         * Property, is this menu the "Managing the database" one.
         */
-       private  Boolean isMenuSysAdmin;
+       private  Boolean _isMenuSysAdmin;
        
        /**
         * Property, is this menu the "Help" one.
         */
-       private  Boolean isMenuHelp;
+       private  Boolean _isMenuHelp;
        
        //=== OTHER OPERATIONS ============================
        
        /**
         * Can the given User create the given Study. 
         */
-       private  Boolean canUserCreateStudy;
+       private  Boolean _canUserCreateStudy;
        
        /**
         * Is the given Study NULL. 
         */
-       private  Boolean isStudyNull;
+       private  Boolean _isStudyNull;
        
        /**
         * Is the given Knowledge NULL. 
         */
-       private  Boolean isKnowledgeNull;
+       private  Boolean _isKnowledgeNull;
        
        /**
         * Can the given User manage the Database. 
         */
-       private  Boolean canUserManageDatabase;
+       private  Boolean _canUserManageDatabase;
        
        /**
      * Initialize the initial properties for menus.
      */  
     public void initializeInitialMenuProperties() {
        
-       webSiteURL = ApplicationSettings.getWebSiteURL();
-       helpURL =  ApplicationSettings.getHelpURL();
+       _webSiteURL = ApplicationSettings.getWebSiteURL();
+       _helpURL =  ApplicationSettings.getHelpURL();
        
     }
     
@@ -106,9 +108,9 @@ public class MenuBarSettings {
                setIsMenuCreate(true);
        } else if ("open".equals(menuProperty)) {
                setIsMenuOpen(true);
-       } else if ("study".equals(menuProperty)) {
+       } else if (Constants.STUDY_MENU.equals(menuProperty)) {
                setIsMenuStudy(true);
-       } else if ("knowledge".equals(menuProperty)) {
+       } else if (Constants.KNOWLEDGE_MENU.equals(menuProperty)) {
                setIsMenuKnowledge(true);
        } else if ("sysadmin".equals(menuProperty)) {
                setIsMenuSysAdmin(true);
@@ -124,7 +126,7 @@ public class MenuBarSettings {
         * @return the webSiteURL
         */
     public String getWebSiteURL() {
-               return webSiteURL;
+               return _webSiteURL;
        }
 
     /**
@@ -132,7 +134,7 @@ public class MenuBarSettings {
         * @param webSiteURL the webSiteURL to set
         */
        public void setWebSiteURL(final String webSiteURL) {
-               this.webSiteURL = webSiteURL;
+               this._webSiteURL = webSiteURL;
        }
 
        /**
@@ -140,7 +142,7 @@ public class MenuBarSettings {
         * @return the helpURL
         */
        public String getHelpURL() {
-               return helpURL;
+               return _helpURL;
        }
 
        /**
@@ -148,7 +150,7 @@ public class MenuBarSettings {
         * @param helpURL the helpURL to set
         */
        public void setHelpURL(final String helpURL) {
-               this.helpURL = helpURL;
+               this._helpURL = helpURL;
        }
 
        /**
@@ -156,7 +158,7 @@ public class MenuBarSettings {
         * @return the isMenuCreate
         */
        public Boolean getIsMenuCreate() {
-               return isMenuCreate;
+               return _isMenuCreate;
        }
 
        /**
@@ -164,7 +166,7 @@ public class MenuBarSettings {
         * @param isMenuCreate the isMenuCreate to set
         */
        public void setIsMenuCreate(final Boolean isMenuCreate) {
-               this.isMenuCreate = isMenuCreate;
+               this._isMenuCreate = isMenuCreate;
        }
 
        /**
@@ -172,7 +174,7 @@ public class MenuBarSettings {
         * @return the isMenuOpen
         */
        public Boolean getIsMenuOpen() {
-               return isMenuOpen;
+               return _isMenuOpen;
        }
 
        /**
@@ -180,7 +182,7 @@ public class MenuBarSettings {
         * @param isMenuOpen the isMenuOpen to set
         */
        public void setIsMenuOpen(final Boolean isMenuOpen) {
-               this.isMenuOpen = isMenuOpen;
+               this._isMenuOpen = isMenuOpen;
        }
 
        /**
@@ -188,7 +190,7 @@ public class MenuBarSettings {
         * @return the isMenuStudy
         */
        public Boolean getIsMenuStudy() {
-               return isMenuStudy;
+               return _isMenuStudy;
        }
 
        /**
@@ -196,7 +198,7 @@ public class MenuBarSettings {
         * @param isMenuStudy the isMenuStudy to set
         */
        public void setIsMenuStudy(final Boolean isMenuStudy) {
-               this.isMenuStudy = isMenuStudy;
+               this._isMenuStudy = isMenuStudy;
        }
 
        /**
@@ -204,7 +206,7 @@ public class MenuBarSettings {
         * @return the isMenuKnowledge
         */
        public Boolean getIsMenuKnowledge() {
-               return isMenuKnowledge;
+               return _isMenuKnowledge;
        }
 
        /**
@@ -212,7 +214,7 @@ public class MenuBarSettings {
         * @param isMenuKnowledge the isMenuKnowledge to set
         */
        public void setIsMenuKnowledge(final Boolean isMenuKnowledge) {
-               this.isMenuKnowledge = isMenuKnowledge;
+               this._isMenuKnowledge = isMenuKnowledge;
        }
 
        /**
@@ -220,7 +222,7 @@ public class MenuBarSettings {
         * @return the isMenuSysAdmin
         */
        public Boolean getIsMenuSysAdmin() {
-               return isMenuSysAdmin;
+               return _isMenuSysAdmin;
        }
 
        /**
@@ -228,7 +230,7 @@ public class MenuBarSettings {
         * @param isMenuSysAdmin the isMenuSysAdmin to set
         */
        public void setIsMenuSysAdmin(final Boolean isMenuSysAdmin) {
-               this.isMenuSysAdmin = isMenuSysAdmin;
+               this._isMenuSysAdmin = isMenuSysAdmin;
        }
 
        /**
@@ -236,7 +238,7 @@ public class MenuBarSettings {
         * @return the isMenuHelp
         */
        public Boolean getIsMenuHelp() {
-               return isMenuHelp;
+               return _isMenuHelp;
        }
 
        /**
@@ -244,7 +246,7 @@ public class MenuBarSettings {
         * @param isMenuHelp the isMenuHelp to set
         */
        public void setIsMenuHelp(final Boolean isMenuHelp) {
-               this.isMenuHelp = isMenuHelp;
+               this._isMenuHelp = isMenuHelp;
        }
 
        /**
@@ -252,7 +254,7 @@ public class MenuBarSettings {
         * @return the canUserCreateStudy
         */
        public Boolean getCanUserCreateStudy() {
-               return canUserCreateStudy;
+               return _canUserCreateStudy;
        }
 
        /**
@@ -260,7 +262,7 @@ public class MenuBarSettings {
         * @param canUserCreateStudy the canUserCreateStudy to set
         */
        public void setCanUserCreateStudy(final Boolean canUserCreateStudy) {
-               this.canUserCreateStudy = canUserCreateStudy;
+               this._canUserCreateStudy = canUserCreateStudy;
        }
 
        /**
@@ -268,7 +270,7 @@ public class MenuBarSettings {
         * @return the isStudyNull
         */
        public Boolean getIsStudyNull() {
-               return isStudyNull;
+               return _isStudyNull;
        }
 
        /**
@@ -276,7 +278,7 @@ public class MenuBarSettings {
         * @param isStudyNull the isStudyNull to set
         */
        public void setIsStudyNull(final Boolean isStudyNull) {
-               this.isStudyNull = isStudyNull;
+               this._isStudyNull = isStudyNull;
        }
 
        /**
@@ -284,7 +286,7 @@ public class MenuBarSettings {
         * @return the isKnowledgeNull
         */
        public Boolean getIsKnowledgeNull() {
-               return isKnowledgeNull;
+               return _isKnowledgeNull;
        }
 
        /**
@@ -292,7 +294,7 @@ public class MenuBarSettings {
         * @param isKnowledgeNull the isKnowledgeNull to set
         */
        public void setIsKnowledgeNull(final Boolean isKnowledgeNull) {
-               this.isKnowledgeNull = isKnowledgeNull;
+               this._isKnowledgeNull = isKnowledgeNull;
        }
 
        /**
@@ -300,7 +302,7 @@ public class MenuBarSettings {
         * @return the canUserManageDatabase
         */
        public Boolean getCanUserManageDatabase() {
-               return canUserManageDatabase;
+               return _canUserManageDatabase;
        }
 
        /**
@@ -308,7 +310,7 @@ public class MenuBarSettings {
         * @param canUserManageDatabase the canUserManageDatabase to set
         */
        public void setCanUserManageDatabase(final Boolean canUserManageDatabase) {
-               this.canUserManageDatabase = canUserManageDatabase;
+               this._canUserManageDatabase = canUserManageDatabase;
        }
        
 }