docroot/WEB-INF/src/it/infn/ct/AppPreferences.java
public void updateValue(String prefItem, String prefValue ) {        
        switch(Items.valueOf(prefItem)) {
            case gridOperationDesc:
                if(   !prefValue.equals("")                  
                   && !gridOperationDesc.equals(prefValue)   
                  ) gridOperationDesc=prefValue;
                break;
            case portletVersion:
                if(   !prefValue.equals("")                  
                   && !portletVersion.equals(prefValue)   
                  ) portletVersion=prefValue;
                break;
            case logLevel:
                if(   !prefValue.equals("")               
                   && !logLevel.equals(prefValue)  
                  ) logLevel=prefValue;
                break;     
            case gridOperationId:
                if(   !prefValue.equals("")             
                   && !gridOperationId.equals(prefValue) 
                  ) gridOperationId=prefValue;
                break;    
            case numInfrastructures:
                if(   !prefValue.equals("")              
                   && !numInfrastructures.equals(prefValue)
                  ) setNumInfrastructures(prefValue);
                break;  
            case sciGwyUserTrackingDB_Hostname:
                if(   !prefValue.equals("")              
                   && !sciGwyUserTrackingDB_Hostname.equals(prefValue)
                  ) sciGwyUserTrackingDB_Hostname=prefValue;
                break;  
            case sciGwyUserTrackingDB_Username:
                if(   !prefValue.equals("")              
                   && !sciGwyUserTrackingDB_Username.equals(prefValue)
                  ) sciGwyUserTrackingDB_Username=prefValue;
                break;  
            case sciGwyUserTrackingDB_Password:
                if(   !prefValue.equals("")              
                   && !sciGwyUserTrackingDB_Password.equals(prefValue)
                  ) sciGwyUserTrackingDB_Password=prefValue;
                break;  
            case sciGwyUserTrackingDB_Database:
                if(   !prefValue.equals("")              
                   && !sciGwyUserTrackingDB_Database.equals(prefValue)
                  ) sciGwyUserTrackingDB_Database=prefValue;
                break; 
            case jobRequirements:
                if(   !prefValue.equals("")              
                   && !jobRequirements.equals(prefValue)
                  ) jobRequirements=prefValue;
                break;  
            case pilotScript:
                if(   !prefValue.equals("")              
                   && !pilotScript.equals(prefValue)
                  ) pilotScript=prefValue;
                break;  
            default:;
        }
    }
/**
     * Updates AppPreferences' value (prefValue) of a given preference item (prefItem)    
     * 
     * @param       prefItem  The preference item name
     * @param       prefValue The preference item value      
     * 
     * @see         AppPreferences.Items
     * @see         AppPreferences
     * 
     */
Updates AppPreferences' value (prefValue) of a given preference item (prefItem)

@param       prefItem  The preference item name
@param       prefValue The preference item value


Updates AppPreferences ' value ( prefValue ) of a given preference item ( prefItem ) @param prefItem The preference item name @param prefValue The preference item value
public void updateValue(String prefItem, String prefValue ) {        
        switch(Items.valueOf(prefItem)) {
            case gridOperationDesc:
                if(   !prefValue.equals("")                  
                   && !gridOperationDesc.equals(prefValue)   
                  ) gridOperationDesc=prefValue;
                break;
            case portletVersion:
                if(   !prefValue.equals("")                  
                   && !portletVersion.equals(prefValue)   
                  ) portletVersion=prefValue;
                break;
            case logLevel:
                if(   !prefValue.equals("")               
                   && !logLevel.equals(prefValue)  
                  ) logLevel=prefValue;
                break;     
            case gridOperationId:
                if(   !prefValue.equals("")             
                   && !gridOperationId.equals(prefValue) 
                  ) gridOperationId=prefValue;
                break;    
            case numInfrastructures:
                if(   !prefValue.equals("")              
                   && !numInfrastructures.equals(prefValue)
                  ) setNumInfrastructures(prefValue);
                break;  
            case sciGwyUserTrackingDB_Hostname:
                if(   !prefValue.equals("")              
                   && !sciGwyUserTrackingDB_Hostname.equals(prefValue)
                  ) sciGwyUserTrackingDB_Hostname=prefValue;
                break;  
            case sciGwyUserTrackingDB_Username:
                if(   !prefValue.equals("")              
                   && !sciGwyUserTrackingDB_Username.equals(prefValue)
                  ) sciGwyUserTrackingDB_Username=prefValue;
                break;  
            case sciGwyUserTrackingDB_Password:
                if(   !prefValue.equals("")              
                   && !sciGwyUserTrackingDB_Password.equals(prefValue)
                  ) sciGwyUserTrackingDB_Password=prefValue;
                break;  
            case sciGwyUserTrackingDB_Database:
                if(   !prefValue.equals("")              
                   && !sciGwyUserTrackingDB_Database.equals(prefValue)
                  ) sciGwyUserTrackingDB_Database=prefValue;
                break; 
            case jobRequirements:
                if(   !prefValue.equals("")              
                   && !jobRequirements.equals(prefValue)
                  ) jobRequirements=prefValue;
                break;  
            case pilotScript:
                if(   !prefValue.equals("")              
                   && !pilotScript.equals(prefValue)
                  ) pilotScript=prefValue;
                break;  
            default:;
        }
    }
public void updateValue ( String prefItem , String prefValue ) { switch ( Items . valueOf ( prefItem ) ) { case gridOperationDesc : if ( ! prefValue . equals ( "" ) && ! gridOperationDesc . equals ( prefValue ) ) gridOperationDesc = prefValue ; break ; case portletVersion : if ( ! prefValue . equals ( "" ) && ! portletVersion . equals ( prefValue ) ) portletVersion = prefValue ; break ; case logLevel : if ( ! prefValue . equals ( "" ) && ! logLevel . equals ( prefValue ) ) logLevel = prefValue ; break ; case gridOperationId : if ( ! prefValue . equals ( "" ) && ! gridOperationId . equals ( prefValue ) ) gridOperationId = prefValue ; break ; case numInfrastructures : if ( ! prefValue . equals ( "" ) && ! numInfrastructures . equals ( prefValue ) ) setNumInfrastructures ( prefValue ) ; break ; case sciGwyUserTrackingDB_Hostname : if ( ! prefValue . equals ( "" ) && ! sciGwyUserTrackingDB_Hostname . equals ( prefValue ) ) sciGwyUserTrackingDB_Hostname = prefValue ; break ; case sciGwyUserTrackingDB_Username : if ( ! prefValue . equals ( "" ) && ! sciGwyUserTrackingDB_Username . equals ( prefValue ) ) sciGwyUserTrackingDB_Username = prefValue ; break ; case sciGwyUserTrackingDB_Password : if ( ! prefValue . equals ( "" ) && ! sciGwyUserTrackingDB_Password . equals ( prefValue ) ) sciGwyUserTrackingDB_Password = prefValue ; break ; case sciGwyUserTrackingDB_Database : if ( ! prefValue . equals ( "" ) && ! sciGwyUserTrackingDB_Database . equals ( prefValue ) ) sciGwyUserTrackingDB_Database = prefValue ; break ; case jobRequirements : if ( ! prefValue . equals ( "" ) && ! jobRequirements . equals ( prefValue ) ) jobRequirements = prefValue ; break ; case pilotScript : if ( ! prefValue . equals ( "" ) && ! pilotScript . equals ( prefValue ) ) pilotScript = prefValue ; break ; default : ; } }
Updates AppPreferences' value (prefValue) of a given preference item (prefItem)
Updates AppPreferences ' value ( prefValue ) of a given preference item ( prefItem )