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.DomainDriver
DomainDriver.ActionConstants, DomainDriver.UserFilterManager
-
-
Constructor Summary
Constructors Constructor Description AbstractDomainDriver()
-
Method Summary
All 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.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.silverpeas.core.admin.domain.DomainDriver
createGroup, 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
-
init
public 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 interfaceDomainDriver- Parameters:
domainId- id of domaininitParam- name of resource fileauthenticationServer- name of the authentication server (no more used yet)- Throws:
AdminException- if the initialization fails.
-
getPropertiesNames
public String[] getPropertiesNames()
- Specified by:
getPropertiesNamesin interfaceDomainDriver
-
getProperty
public DomainProperty getProperty(String propName)
- Specified by:
getPropertyin interfaceDomainDriver
-
getMapParameters
public String[] getMapParameters()
- Specified by:
getMapParametersin interfaceDomainDriver
-
getPropertiesToImport
public List<DomainProperty> getPropertiesToImport(String language)
- Specified by:
getPropertiesToImportin interfaceDomainDriver
-
addPropertiesToImport
public void addPropertiesToImport(List<DomainProperty> props)
- Specified by:
addPropertiesToImportin interfaceDomainDriver
-
addPropertiesToImport
public void addPropertiesToImport(List<DomainProperty> props, Map<String,String> theDescriptions)
- Specified by:
addPropertiesToImportin interfaceDomainDriver
-
getPropertiesLabels
public Map<String,String> getPropertiesLabels(String language)
- Specified by:
getPropertiesLabelsin interfaceDomainDriver
-
getPropertiesDescriptions
public Map<String,String> getPropertiesDescriptions(String language)
- Specified by:
getPropertiesDescriptionsin interfaceDomainDriver
-
initFromProperties
public 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 interfaceDomainDriver- Parameters:
rs- name of resource file- Throws:
AdminException
-
getDriverActions
public long getDriverActions()
Gets all the actions this driver supports.- Specified by:
getDriverActionsin interfaceDomainDriver- Returns:
- a bit mask identifying the supported actions.
-
isSynchroOnLoginEnabled
public boolean isSynchroOnLoginEnabled()
- Specified by:
isSynchroOnLoginEnabledin interfaceDomainDriver
-
isSynchroThreaded
public boolean isSynchroThreaded()
- Specified by:
isSynchroThreadedin interfaceDomainDriver
-
isSynchroOnLoginRecursToGroups
public boolean isSynchroOnLoginRecursToGroups()
- Specified by:
isSynchroOnLoginRecursToGroupsin interfaceDomainDriver
-
isGroupsInheritProfiles
public boolean isGroupsInheritProfiles()
- Specified by:
isGroupsInheritProfilesin interfaceDomainDriver
-
mustImportUsers
public boolean mustImportUsers()
- Specified by:
mustImportUsersin interfaceDomainDriver
-
isX509CertificateEnabled
public boolean isX509CertificateEnabled()
- Specified by:
isX509CertificateEnabledin interfaceDomainDriver
-
beginSynchronization
public void beginSynchronization()
Called when Admin starts the synchronization- Specified by:
beginSynchronizationin interfaceDomainDriver
-
isSynchroInProcess
public boolean isSynchroInProcess()
- Specified by:
isSynchroInProcessin interfaceDomainDriver
-
endSynchronization
public String endSynchronization(boolean cancelSynchro)
Called when Admin ends the synchronization- Specified by:
endSynchronizationin interfaceDomainDriver- Parameters:
cancelSynchro- true if the synchronization is cancelled, false if it ends normally
-
idAsInt
protected static int idAsInt(String id)
-
idAsString
protected static String idAsString(int id)
Convert int Id to String Id- Parameters:
id- id to convert
-
getDomainId
protected int getDomainId()
-
setSynchroInProcess
protected void setSynchroInProcess(boolean synchroInProcess)
-
isX509Enabled
protected boolean isX509Enabled()
-
-