docroot/WEB-INF/src/it/infn/ct/AppPreferences.java
public void addNewInfrastructure() {
        // Set adds the new infrastructure into the InfrastructureInfo list
        setNumInfrastructures(""+(++inumInfrastructures));
        // Now setup new default values to the new infrastructure
        appInfrastructuresInfo.get(inumInfrastructures-1).setInfrastructure(
                  AppInfrastructureInfo.DEF_enableInfrastructure
                , AppInfrastructureInfo.DEF_nameInfrastructure
                , AppInfrastructureInfo.DEF_acronymInfrastructure
                , AppInfrastructureInfo.DEF_bdiiHost
                , AppInfrastructureInfo.DEF_wmsHosts
                , AppInfrastructureInfo.DEF_pxServerHost
                , AppInfrastructureInfo.DEF_pxServerPort
                , AppInfrastructureInfo.DEF_pxServerSecure
                , AppInfrastructureInfo.DEF_pxRobotId
                , AppInfrastructureInfo.DEF_pxRobotVO
                , AppInfrastructureInfo.DEF_pxRobotRole
                , AppInfrastructureInfo.DEF_pxRobotRenewalFlag
                , AppInfrastructureInfo.DEF_pxUserProxy
                , AppInfrastructureInfo.DEF_softwareTags
               );        
        // Point the current infrastructure the new-one
        currPaneInfrastucture=inumInfrastructures;        
        // Show changes if possible
        if(_log != null) 
            _log.info(LS+"Added infrastructure"
                        +LS+"-----------------"
                        +appInfrastructuresInfo.get(inumInfrastructures-1).dump()
                    );
    }
/**
     * Add a new infrastructure assigning on it default values
     * 
     * @see         AppPreferences
     * @see         AppInfrastructureInfo
     */
Add a new infrastructure assigning on it default values


Add a new infrastructure assigning on it default values
public void addNewInfrastructure() {
        setNumInfrastructures(""+(++inumInfrastructures));
        appInfrastructuresInfo.get(inumInfrastructures-1).setInfrastructure(
                  AppInfrastructureInfo.DEF_enableInfrastructure
                , AppInfrastructureInfo.DEF_nameInfrastructure
                , AppInfrastructureInfo.DEF_acronymInfrastructure
                , AppInfrastructureInfo.DEF_bdiiHost
                , AppInfrastructureInfo.DEF_wmsHosts
                , AppInfrastructureInfo.DEF_pxServerHost
                , AppInfrastructureInfo.DEF_pxServerPort
                , AppInfrastructureInfo.DEF_pxServerSecure
                , AppInfrastructureInfo.DEF_pxRobotId
                , AppInfrastructureInfo.DEF_pxRobotVO
                , AppInfrastructureInfo.DEF_pxRobotRole
                , AppInfrastructureInfo.DEF_pxRobotRenewalFlag
                , AppInfrastructureInfo.DEF_pxUserProxy
                , AppInfrastructureInfo.DEF_softwareTags
               );        
        currPaneInfrastucture=inumInfrastructures;        
        if(_log != null) 
            _log.info(LS+"Added infrastructure"
                        +LS+"-----------------"
                        +appInfrastructuresInfo.get(inumInfrastructures-1).dump()
                    );
    }
public void addNewInfrastructure ( ) { setNumInfrastructures ( "" + ( ++ inumInfrastructures ) ) ; appInfrastructuresInfo . get ( inumInfrastructures - 1 ) . setInfrastructure ( AppInfrastructureInfo . DEF_enableInfrastructure , AppInfrastructureInfo . DEF_nameInfrastructure , AppInfrastructureInfo . DEF_acronymInfrastructure , AppInfrastructureInfo . DEF_bdiiHost , AppInfrastructureInfo . DEF_wmsHosts , AppInfrastructureInfo . DEF_pxServerHost , AppInfrastructureInfo . DEF_pxServerPort , AppInfrastructureInfo . DEF_pxServerSecure , AppInfrastructureInfo . DEF_pxRobotId , AppInfrastructureInfo . DEF_pxRobotVO , AppInfrastructureInfo . DEF_pxRobotRole , AppInfrastructureInfo . DEF_pxRobotRenewalFlag , AppInfrastructureInfo . DEF_pxUserProxy , AppInfrastructureInfo . DEF_softwareTags ) ; currPaneInfrastucture = inumInfrastructures ; if ( _log != null ) _log . info ( LS + "Added infrastructure" + LS + "-----------------" + appInfrastructuresInfo . get ( inumInfrastructures - 1 ) . dump ( ) ) ; }
Add a new infrastructure assigning on it default values
Add a new infrastructure assigning on it default values
// Set adds the new infrastructure into the InfrastructureInfo list // Now setup new default values to the new infrastructure // Point the current infrastructure the new-one // Show changes if possible