Class SQLSettings
- java.lang.Object
-
- org.silverpeas.core.admin.domain.driver.sqldriver.SQLSettings
-
- All Implemented Interfaces:
DriverSettings
public class SQLSettings extends Object implements DriverSettings
This class read the property file and keep it's values accessible via the get functions- Version:
- 1.0
- Author:
- tleroi
-
-
Field Summary
Fields Modifier and Type Field Description static int
DATABASE_TABLE_NAME_MAX_LENGTH
protected String
sqlDataSourceJNDIName
protected String
sqlGroupDescriptionColumnName
protected String
sqlGroupNameColumnName
protected String
sqlGroupParentIdColumnName
protected String
sqlGroupSpecificIdColumnName
protected String
sqlGroupTableName
protected String
sqlUserEMailColumnName
protected String
sqlUserFirstNameColumnName
protected String
sqlUserGroupGIDColumnName
protected String
sqlUserGroupTableName
protected String
sqlUserGroupUIDColumnName
protected String
sqlUserLastNameColumnName
protected String
sqlUserLoginColumnName
protected String
sqlUserPasswordColumnName
protected String
sqlUserPasswordValidColumnName
protected String
sqlUserSpecificIdColumnName
protected String
sqlUserTableName
-
Constructor Summary
Constructors Constructor Description SQLSettings()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getDataSourceJNDIName()
String
getGroupDescriptionColumnName()
String
getGroupNameColumnName()
String
getGroupParentIdColumnName()
String
getGroupSpecificIdColumnName()
String
getGroupTableName()
String
getRelGIDColumnName()
String
getRelTableName()
String
getRelUIDColumnName()
String
getUserEMailColumnName()
String
getUserFirstNameColumnName()
String
getUserLastNameColumnName()
String
getUserLoginColumnName()
String
getUserPasswordColumnName()
String
getUserPasswordValidColumnName()
String
getUserSpecificIdColumnName()
String
getUserTableName()
void
initFromProperties(org.silverpeas.kernel.bundle.SettingBundle rs)
Performs initialization from a properties file.boolean
isUserPasswordAvailable()
boolean
isUserPasswordValidAvailable()
String
trunc(String src, int max)
-
-
-
Field Detail
-
DATABASE_TABLE_NAME_MAX_LENGTH
public static final int DATABASE_TABLE_NAME_MAX_LENGTH
- See Also:
- Constant Field Values
-
sqlDataSourceJNDIName
protected String sqlDataSourceJNDIName
-
sqlUserTableName
protected String sqlUserTableName
-
sqlGroupTableName
protected String sqlGroupTableName
-
sqlUserGroupTableName
protected String sqlUserGroupTableName
-
sqlUserSpecificIdColumnName
protected String sqlUserSpecificIdColumnName
-
sqlUserLoginColumnName
protected String sqlUserLoginColumnName
-
sqlUserFirstNameColumnName
protected String sqlUserFirstNameColumnName
-
sqlUserLastNameColumnName
protected String sqlUserLastNameColumnName
-
sqlUserEMailColumnName
protected String sqlUserEMailColumnName
-
sqlUserPasswordColumnName
protected String sqlUserPasswordColumnName
-
sqlUserPasswordValidColumnName
protected String sqlUserPasswordValidColumnName
-
sqlGroupSpecificIdColumnName
protected String sqlGroupSpecificIdColumnName
-
sqlGroupNameColumnName
protected String sqlGroupNameColumnName
-
sqlGroupDescriptionColumnName
protected String sqlGroupDescriptionColumnName
-
sqlGroupParentIdColumnName
protected String sqlGroupParentIdColumnName
-
sqlUserGroupUIDColumnName
protected String sqlUserGroupUIDColumnName
-
sqlUserGroupGIDColumnName
protected String sqlUserGroupGIDColumnName
-
-
Method Detail
-
initFromProperties
public void initFromProperties(org.silverpeas.kernel.bundle.SettingBundle rs)
Performs initialization from a properties file. The optional properties are retrieve with getSureString.- Specified by:
initFromProperties
in interfaceDriverSettings
- Parameters:
rs
- Properties resource file
-
getDataSourceJNDIName
public String getDataSourceJNDIName()
-
getUserTableName
public String getUserTableName()
-
getGroupTableName
public String getGroupTableName()
-
getRelTableName
public String getRelTableName()
-
getUserSpecificIdColumnName
public String getUserSpecificIdColumnName()
-
getUserLoginColumnName
public String getUserLoginColumnName()
-
getUserFirstNameColumnName
public String getUserFirstNameColumnName()
-
getUserLastNameColumnName
public String getUserLastNameColumnName()
-
getUserEMailColumnName
public String getUserEMailColumnName()
-
getUserPasswordColumnName
public String getUserPasswordColumnName()
-
getUserPasswordValidColumnName
public String getUserPasswordValidColumnName()
-
isUserPasswordAvailable
public boolean isUserPasswordAvailable()
-
isUserPasswordValidAvailable
public boolean isUserPasswordValidAvailable()
-
getGroupSpecificIdColumnName
public String getGroupSpecificIdColumnName()
-
getGroupNameColumnName
public String getGroupNameColumnName()
-
getGroupDescriptionColumnName
public String getGroupDescriptionColumnName()
-
getGroupParentIdColumnName
public String getGroupParentIdColumnName()
-
getRelUIDColumnName
public String getRelUIDColumnName()
-
getRelGIDColumnName
public String getRelGIDColumnName()
-
-