/**
* Copyright (C) 2008-2010, Squale Project - http://www.squale.org
*
* This file is part of Squale.
*
* Squale is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or any later version.
*
* Squale 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 Lesser General Public License
* along with Squale. If not, see <http://www.gnu.org/licenses/>.
*/
package org.squale.squalecommon.enterpriselayer.businessobject.config;
import java.util.ArrayList;
import java.util.Collection;
/**
* La configuration de Squalix
*/
public class SqualixConfigurationBO
{
/** La liste des dates limites de lancement d'audits */
private Collection mStopTimes;
/** La liste des fr�quences max des audits en fonction du dernier acc�s utilisateur */
private Collection mFrequencies;
/** La liste des r�cup�rateurs de sources */
private Collection mSourceManagements;
/** La liste des profils */
private Collection mProfiles;
/**
* The list of a configuration parameter (adminParamsBO)
*/
private Collection<AdminParamsBO> adminParams;
/**
* Le constructeur par d�faut
*/
public SqualixConfigurationBO()
{
mStopTimes = new ArrayList();
mFrequencies = new ArrayList();
mSourceManagements = new ArrayList();
mProfiles = new ArrayList();
adminParams= new ArrayList<AdminParamsBO>();
}
/**
* M�thode d'acc�s pour mStopTimes
*
* @return les dates limites
*/
public Collection getStopTimes()
{
return mStopTimes;
}
/**
* M�thode d'acc�s pour mProfiles
*
* @return les profils
*/
public Collection getProfiles()
{
return mProfiles;
}
/**
* M�thode d'acc�s pour mSourceManagements
*
* @return les r�cup�rateurs de sources
*/
public Collection getSourceManagements()
{
return mSourceManagements;
}
/**
* Change la valeur de mStopTimes
*
* @param pStopTimes les nouvelles dates limites
*/
public void setStopTimes( Collection pStopTimes )
{
mStopTimes = pStopTimes;
}
/**
* Change la valeur de mProfiles
*
* @param pProfiles les nouveaux profils
*/
public void setProfiles( Collection pProfiles )
{
mProfiles = pProfiles;
}
/**
* Change la valeur de mSourceManagements
*
* @param pSourceManagements les nouveaux types de r�cup�ration des sources
*/
public void setSourceManagements( Collection pSourceManagements )
{
mSourceManagements = pSourceManagements;
}
/**
* Ajoute une date limite
*
* @param pStopTime la date limite � ajouter
*/
public void addStopTime( StopTimeBO pStopTime )
{
mStopTimes.add( pStopTime );
}
/**
* Ajoute un profil
*
* @param pProfile le profil � ajouter
*/
public void addProfile( ProjectProfileBO pProfile )
{
mProfiles.add( pProfile );
}
/**
* Ajoute un type de r�cup�ration des sources
*
* @param pSourceManagement une nouvelle mani�re de r�cup�rer les source
*/
public void addSourceManagement( SourceManagementBO pSourceManagement )
{
mSourceManagements.add( pSourceManagement );
}
/**
* Getter method for the frequencies Collection
*
* @return the collection of max frequencies for the audit
*/
public Collection getFrequencies()
{
return mFrequencies;
}
/**
* Setter method for the Frequencies Collection
*
* @param pCollection The new Collection of max frequencies for the audit
*/
public void setFrequencies( Collection pCollection )
{
mFrequencies = pCollection;
}
/**
* Ajoute une fr�quence max d'audit
*
* @param pFrequency la fr�quence max
*/
public void addFrequency( AuditFrequencyBO pFrequency )
{
mFrequencies.add( pFrequency );
}
/**
* Getter method for the Collection of adminParamsBO
*
* @return the adminParamsBO Collection
*/
public Collection<AdminParamsBO> getAdminParams()
{
return adminParams;
}
/**
* Setter method for the adminParams Collection
*
* @param pAdminParams the new Collection of adminParamsBO
*/
public void setAdminParams( Collection<AdminParamsBO> pAdminParams )
{
adminParams = pAdminParams;
}
/**
* Add an adminParam to the Collection of adminParams
*
* @param adminParam The adminParamsBO to add to the Collection
*/
public void addAdminParam(AdminParamsBO adminParam)
{
adminParams.add( adminParam );
}
}