docroot/WEB-INF/src/it/infn/ct/g_hmmer_portlet.java
@Override
    public void init() 
    throws PortletException                
    {         	
        // Load default values from WEBINF/portlet.xml     
        appInitPreferences.setGridOperationDesc (""+getInitParameter( "gridOperationDesc"));
        appInitPreferences.setPortletVersion    (""+getInitParameter(    "portletVersion"));
        appInitPreferences.setLogLevel          (""+getInitParameter(          "logLevel"));
        appInitPreferences.setNumInfrastructures(""+getInitParameter("numInfrastructures"));
        appInitPreferences.setGridOperationId   (""+getInitParameter(   "gridOperationId"));
        // Get the number of infrastructures to load
        int numInfra=appInitPreferences.getNumInfrastructures();                
        _log.info("Number of infrastructures: '"+numInfra+"'");
        // Load infrastructure settings
        for(int i=0; i<numInfra; i++) {
            int j=i+1;
            appInitPreferences.setInfrastructure(
                      i                    
                    , ""+getInitParameter(j+ "_enableInfrastructure")
                    , ""+getInitParameter(j+   "_nameInfrastructure")
                    , ""+getInitParameter(j+"_acronymInfrastructure")
                    , ""+getInitParameter(j+             "_bdiiHost")
                    , ""+getInitParameter(j+             "_wmsHosts")
                    , ""+getInitParameter(j+         "_pxServerHost")
                    , ""+getInitParameter(j+         "_pxServerPort")
                    , ""+getInitParameter(j+       "_pxServerSecure")
                    , ""+getInitParameter(j+            "_pxRobotId")
                    , ""+getInitParameter(j+            "_pxRobotVO")
                    , ""+getInitParameter(j+          "_pxRobotRole")
                    , ""+getInitParameter(j+   "_pxRobotRenewalFlag")
                    , ""+getInitParameter(j+          "_pxUserProxy")
                    , ""+getInitParameter(j+         "_softwareTags")
                   );
        } // Load infrastructure settings
        appInitPreferences.setSciGwyUserTrackingDB_Hostname(""+getInitParameter("sciGwyUserTrackingDB_Hostname"));
        appInitPreferences.setSciGwyUserTrackingDB_Username(""+getInitParameter("sciGwyUserTrackingDB_Username"));
        appInitPreferences.setSciGwyUserTrackingDB_Password(""+getInitParameter("sciGwyUserTrackingDB_Password"));
        appInitPreferences.setSciGwyUserTrackingDB_Database(""+getInitParameter("sciGwyUserTrackingDB_Database"));        
        appInitPreferences.setJobRequirements              (""+getInitParameter(              "jobRequirements"));
        appInitPreferences.setPilotScript                  (""+getInitParameter(                  "pilotScript"));                
        
        // Assigns the log level      
        _log.setLogLevel(appInitPreferences.getLogLevel());
                
        // Show loaded values into log
        _log.debug(appInitPreferences.dump());
    }
/**
     * The init method will be called when installing the portlet for the first time
     * or when restarting the portal server.
     * This is the right time to get default values from WEBINF/portlet.xml file
     * Those values will be assigned into the application preferences as default values
     * If preference values already exists for this application the default settings will
     * be overwritten
     * 
     * @see AppInfrastructureInfo
     * @see AppPreferences
     * 
     * @throws PortletException 
     */
The init method will be called when installing the portlet for the first time
or when restarting the portal server.
This is the right time to get default values from WEBINF/portlet.xml file
Those values will be assigned into the application preferences as default values
If preference values already exists for this application the default settings will
be overwritten




The init method will be called when installing the portlet for the first time or when restarting the portal server . This is the right time to get default values from WEBINF / portlet . xml file Those values will be assigned into the application preferences as default values If preference values already exists for this application the default settings will be overwritten
@Override
    public void init() 
    throws PortletException                
    {         	
        appInitPreferences.setGridOperationDesc (""+getInitParameter( "gridOperationDesc"));
        appInitPreferences.setPortletVersion    (""+getInitParameter(    "portletVersion"));
        appInitPreferences.setLogLevel          (""+getInitParameter(          "logLevel"));
        appInitPreferences.setNumInfrastructures(""+getInitParameter("numInfrastructures"));
        appInitPreferences.setGridOperationId   (""+getInitParameter(   "gridOperationId"));
        int numInfra=appInitPreferences.getNumInfrastructures();                
        _log.info("Number of infrastructures: '"+numInfra+"'");
        for(int i=0; i<numInfra; i++) {
            int j=i+1;
            appInitPreferences.setInfrastructure(
                      i                    
                    , ""+getInitParameter(j+ "_enableInfrastructure")
                    , ""+getInitParameter(j+   "_nameInfrastructure")
                    , ""+getInitParameter(j+"_acronymInfrastructure")
                    , ""+getInitParameter(j+             "_bdiiHost")
                    , ""+getInitParameter(j+             "_wmsHosts")
                    , ""+getInitParameter(j+         "_pxServerHost")
                    , ""+getInitParameter(j+         "_pxServerPort")
                    , ""+getInitParameter(j+       "_pxServerSecure")
                    , ""+getInitParameter(j+            "_pxRobotId")
                    , ""+getInitParameter(j+            "_pxRobotVO")
                    , ""+getInitParameter(j+          "_pxRobotRole")
                    , ""+getInitParameter(j+   "_pxRobotRenewalFlag")
                    , ""+getInitParameter(j+          "_pxUserProxy")
                    , ""+getInitParameter(j+         "_softwareTags")
                   );
        } 
        appInitPreferences.setSciGwyUserTrackingDB_Hostname(""+getInitParameter("sciGwyUserTrackingDB_Hostname"));
        appInitPreferences.setSciGwyUserTrackingDB_Username(""+getInitParameter("sciGwyUserTrackingDB_Username"));
        appInitPreferences.setSciGwyUserTrackingDB_Password(""+getInitParameter("sciGwyUserTrackingDB_Password"));
        appInitPreferences.setSciGwyUserTrackingDB_Database(""+getInitParameter("sciGwyUserTrackingDB_Database"));        
        appInitPreferences.setJobRequirements              (""+getInitParameter(              "jobRequirements"));
        appInitPreferences.setPilotScript                  (""+getInitParameter(                  "pilotScript"));                
        _log.setLogLevel(appInitPreferences.getLogLevel());
        _log.debug(appInitPreferences.dump());
    }
@ Override public void init ( ) throws PortletException { appInitPreferences . setGridOperationDesc ( "" + getInitParameter ( "gridOperationDesc" ) ) ; appInitPreferences . setPortletVersion ( "" + getInitParameter ( "portletVersion" ) ) ; appInitPreferences . setLogLevel ( "" + getInitParameter ( "logLevel" ) ) ; appInitPreferences . setNumInfrastructures ( "" + getInitParameter ( "numInfrastructures" ) ) ; appInitPreferences . setGridOperationId ( "" + getInitParameter ( "gridOperationId" ) ) ; int numInfra = appInitPreferences . getNumInfrastructures ( ) ; _log . info ( "Number of infrastructures: '" + numInfra + "'" ) ; for ( int i = 0 ; i < numInfra ; i ++ ) { int j = i + 1 ; appInitPreferences . setInfrastructure ( i , "" + getInitParameter ( j + "_enableInfrastructure" ) , "" + getInitParameter ( j + "_nameInfrastructure" ) , "" + getInitParameter ( j + "_acronymInfrastructure" ) , "" + getInitParameter ( j + "_bdiiHost" ) , "" + getInitParameter ( j + "_wmsHosts" ) , "" + getInitParameter ( j + "_pxServerHost" ) , "" + getInitParameter ( j + "_pxServerPort" ) , "" + getInitParameter ( j + "_pxServerSecure" ) , "" + getInitParameter ( j + "_pxRobotId" ) , "" + getInitParameter ( j + "_pxRobotVO" ) , "" + getInitParameter ( j + "_pxRobotRole" ) , "" + getInitParameter ( j + "_pxRobotRenewalFlag" ) , "" + getInitParameter ( j + "_pxUserProxy" ) , "" + getInitParameter ( j + "_softwareTags" ) ) ; } appInitPreferences . setSciGwyUserTrackingDB_Hostname ( "" + getInitParameter ( "sciGwyUserTrackingDB_Hostname" ) ) ; appInitPreferences . setSciGwyUserTrackingDB_Username ( "" + getInitParameter ( "sciGwyUserTrackingDB_Username" ) ) ; appInitPreferences . setSciGwyUserTrackingDB_Password ( "" + getInitParameter ( "sciGwyUserTrackingDB_Password" ) ) ; appInitPreferences . setSciGwyUserTrackingDB_Database ( "" + getInitParameter ( "sciGwyUserTrackingDB_Database" ) ) ; appInitPreferences . setJobRequirements ( "" + getInitParameter ( "jobRequirements" ) ) ; appInitPreferences . setPilotScript ( "" + getInitParameter ( "pilotScript" ) ) ; _log . setLogLevel ( appInitPreferences . getLogLevel ( ) ) ; _log . debug ( appInitPreferences . dump ( ) ) ; }
The init method will be called when installing the portlet for the first time
 or when restarting the portal server.
The init method will be called when installing the portlet for the first time or when restarting the portal server .
// Load default values from WEBINF/portlet.xml      // Get the number of infrastructures to load // Load infrastructure settings // Load infrastructure settings // Assigns the log level       // Show loaded values into log