Package org.silverpeas.core.admin.domain
Class AbstractDomainDriver
- java.lang.Object
- 
- org.silverpeas.core.admin.domain.AbstractDomainDriver
 
- 
- All Implemented Interfaces:
- DomainDriver
 - Direct Known Subclasses:
- DomainDriverManager,- GoogleDriver,- LDAPDriver,- SCIMDriver,- SilverpeasDriver,- SQLDriver
 
 public abstract class AbstractDomainDriver extends Object implements DomainDriver 
- 
- 
Nested Class Summary- 
Nested classes/interfaces inherited from interface org.silverpeas.core.admin.domain.DomainDriverDomainDriver.ActionConstants, DomainDriver.UserFilterManager
 
- 
 - 
Constructor SummaryConstructors Constructor Description AbstractDomainDriver()
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddPropertiesToImport(List<DomainProperty> props)voidaddPropertiesToImport(List<DomainProperty> props, Map<String,String> theDescriptions)voidbeginSynchronization()Called when Admin starts the synchronizationStringendSynchronization(boolean cancelSynchro)Called when Admin ends the synchronizationprotected intgetDomainId()longgetDriverActions()Gets all the actions this driver supports.String[]getMapParameters()Map<String,String>getPropertiesDescriptions(String language)Map<String,String>getPropertiesLabels(String language)String[]getPropertiesNames()List<DomainProperty>getPropertiesToImport(String language)DomainPropertygetProperty(String propName)protected static intidAsInt(String id)protected static StringidAsString(int id)Convert int Id to String Idvoidinit(int domainId, String initParam, String authenticationServer)Initializes the domain driver with the initialization parameter stocked in table This parameter could be a table name or a resource file name or whatever specified by the domain driver Default : resource file namevoidinitFromProperties(org.silverpeas.kernel.bundle.SettingBundle rs)Virtual method that performs extra initialization from a properties file.booleanisGroupsInheritProfiles()booleanisSynchroInProcess()booleanisSynchroOnLoginEnabled()booleanisSynchroOnLoginRecursToGroups()booleanisSynchroThreaded()booleanisX509CertificateEnabled()protected booleanisX509Enabled()booleanmustImportUsers()protected voidsetSynchroInProcess(boolean synchroInProcess)- 
Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 - 
Methods inherited from interface org.silverpeas.core.admin.domain.DomainDrivercreateGroup, createUser, deleteGroup, deleteUser, getAllGroups, getAllRootGroups, getAllUsers, getGroup, getGroupByName, getGroupMemberGroupIds, getGroups, getUser, getUserAttributes, getUserFilterManager, getUserFull, getUserMemberGroupIds, getUsersByQuery, getUsersBySpecificProperty, importGroup, importUser, listUserFulls, listUsers, removeGroup, removeUser, resetEncryptedPassword, resetPassword, synchroGroup, synchroUser, updateGroup, updateUserDetail, updateUserFull
 
- 
 
- 
- 
- 
Method Detail- 
initpublic void init(int domainId, String initParam, String authenticationServer) throws AdminExceptionInitializes the domain driver with the initialization parameter stocked in table This parameter could be a table name or a resource file name or whatever specified by the domain driver Default : resource file name- Specified by:
- initin interface- DomainDriver
- Parameters:
- domainId- id of domain
- initParam- name of resource file
- authenticationServer- name of the authentication server (no more used yet)
- Throws:
- AdminException- if the initialization fails.
 
 - 
getPropertiesNamespublic String[] getPropertiesNames() - Specified by:
- getPropertiesNamesin interface- DomainDriver
 
 - 
getPropertypublic DomainProperty getProperty(String propName) - Specified by:
- getPropertyin interface- DomainDriver
 
 - 
getMapParameterspublic String[] getMapParameters() - Specified by:
- getMapParametersin interface- DomainDriver
 
 - 
getPropertiesToImportpublic List<DomainProperty> getPropertiesToImport(String language) - Specified by:
- getPropertiesToImportin interface- DomainDriver
 
 - 
addPropertiesToImportpublic void addPropertiesToImport(List<DomainProperty> props) - Specified by:
- addPropertiesToImportin interface- DomainDriver
 
 - 
addPropertiesToImportpublic void addPropertiesToImport(List<DomainProperty> props, Map<String,String> theDescriptions) - Specified by:
- addPropertiesToImportin interface- DomainDriver
 
 - 
getPropertiesLabelspublic Map<String,String> getPropertiesLabels(String language) - Specified by:
- getPropertiesLabelsin interface- DomainDriver
 
 - 
getPropertiesDescriptionspublic Map<String,String> getPropertiesDescriptions(String language) - Specified by:
- getPropertiesDescriptionsin interface- DomainDriver
 
 - 
initFromPropertiespublic void initFromProperties(org.silverpeas.kernel.bundle.SettingBundle rs) throws AdminExceptionVirtual method that performs extra initialization from a properties file. To overload by the class who need it.- Specified by:
- initFromPropertiesin interface- DomainDriver
- Parameters:
- rs- name of resource file
- Throws:
- AdminException
 
 - 
getDriverActionspublic long getDriverActions() Gets all the actions this driver supports.- Specified by:
- getDriverActionsin interface- DomainDriver
- Returns:
- a bit mask identifying the supported actions.
 
 - 
isSynchroOnLoginEnabledpublic boolean isSynchroOnLoginEnabled() - Specified by:
- isSynchroOnLoginEnabledin interface- DomainDriver
 
 - 
isSynchroThreadedpublic boolean isSynchroThreaded() - Specified by:
- isSynchroThreadedin interface- DomainDriver
 
 - 
isSynchroOnLoginRecursToGroupspublic boolean isSynchroOnLoginRecursToGroups() - Specified by:
- isSynchroOnLoginRecursToGroupsin interface- DomainDriver
 
 - 
isGroupsInheritProfilespublic boolean isGroupsInheritProfiles() - Specified by:
- isGroupsInheritProfilesin interface- DomainDriver
 
 - 
mustImportUserspublic boolean mustImportUsers() - Specified by:
- mustImportUsersin interface- DomainDriver
 
 - 
isX509CertificateEnabledpublic boolean isX509CertificateEnabled() - Specified by:
- isX509CertificateEnabledin interface- DomainDriver
 
 - 
beginSynchronizationpublic void beginSynchronization() Called when Admin starts the synchronization- Specified by:
- beginSynchronizationin interface- DomainDriver
 
 - 
isSynchroInProcesspublic boolean isSynchroInProcess() - Specified by:
- isSynchroInProcessin interface- DomainDriver
 
 - 
endSynchronizationpublic String endSynchronization(boolean cancelSynchro) Called when Admin ends the synchronization- Specified by:
- endSynchronizationin interface- DomainDriver
- Parameters:
- cancelSynchro- true if the synchronization is cancelled, false if it ends normally
 
 - 
idAsIntprotected static int idAsInt(String id) 
 - 
idAsStringprotected static String idAsString(int id) Convert int Id to String Id- Parameters:
- id- id to convert
 
 - 
getDomainIdprotected int getDomainId() 
 - 
setSynchroInProcessprotected void setSynchroInProcess(boolean synchroInProcess) 
 - 
isX509Enabledprotected boolean isX509Enabled() 
 
- 
 
-