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 void
addPropertiesToImport(List<DomainProperty> props)
void
addPropertiesToImport(List<DomainProperty> props, Map<String,String> theDescriptions)
void
beginSynchronization()
Called when Admin starts the synchronizationString
endSynchronization(boolean cancelSynchro)
Called when Admin ends the synchronizationprotected int
getDomainId()
long
getDriverActions()
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)
DomainProperty
getProperty(String propName)
protected static int
idAsInt(String id)
protected static String
idAsString(int id)
Convert int Id to String Idvoid
init(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 namevoid
initFromProperties(org.silverpeas.kernel.bundle.SettingBundle rs)
Virtual method that performs extra initialization from a properties file.boolean
isGroupsInheritProfiles()
boolean
isSynchroInProcess()
boolean
isSynchroOnLoginEnabled()
boolean
isSynchroOnLoginRecursToGroups()
boolean
isSynchroThreaded()
boolean
isX509CertificateEnabled()
protected boolean
isX509Enabled()
boolean
mustImportUsers()
protected void
setSynchroInProcess(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 AdminException
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 name- Specified by:
init
in 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:
getPropertiesNames
in interfaceDomainDriver
-
getProperty
public DomainProperty getProperty(String propName)
- Specified by:
getProperty
in interfaceDomainDriver
-
getMapParameters
public String[] getMapParameters()
- Specified by:
getMapParameters
in interfaceDomainDriver
-
getPropertiesToImport
public List<DomainProperty> getPropertiesToImport(String language)
- Specified by:
getPropertiesToImport
in interfaceDomainDriver
-
addPropertiesToImport
public void addPropertiesToImport(List<DomainProperty> props)
- Specified by:
addPropertiesToImport
in interfaceDomainDriver
-
addPropertiesToImport
public void addPropertiesToImport(List<DomainProperty> props, Map<String,String> theDescriptions)
- Specified by:
addPropertiesToImport
in interfaceDomainDriver
-
getPropertiesLabels
public Map<String,String> getPropertiesLabels(String language)
- Specified by:
getPropertiesLabels
in interfaceDomainDriver
-
getPropertiesDescriptions
public Map<String,String> getPropertiesDescriptions(String language)
- Specified by:
getPropertiesDescriptions
in interfaceDomainDriver
-
initFromProperties
public void initFromProperties(org.silverpeas.kernel.bundle.SettingBundle rs) throws AdminException
Virtual method that performs extra initialization from a properties file. To overload by the class who need it.- Specified by:
initFromProperties
in interfaceDomainDriver
- Parameters:
rs
- name of resource file- Throws:
AdminException
-
getDriverActions
public long getDriverActions()
Gets all the actions this driver supports.- Specified by:
getDriverActions
in interfaceDomainDriver
- Returns:
- a bit mask identifying the supported actions.
-
isSynchroOnLoginEnabled
public boolean isSynchroOnLoginEnabled()
- Specified by:
isSynchroOnLoginEnabled
in interfaceDomainDriver
-
isSynchroThreaded
public boolean isSynchroThreaded()
- Specified by:
isSynchroThreaded
in interfaceDomainDriver
-
isSynchroOnLoginRecursToGroups
public boolean isSynchroOnLoginRecursToGroups()
- Specified by:
isSynchroOnLoginRecursToGroups
in interfaceDomainDriver
-
isGroupsInheritProfiles
public boolean isGroupsInheritProfiles()
- Specified by:
isGroupsInheritProfiles
in interfaceDomainDriver
-
mustImportUsers
public boolean mustImportUsers()
- Specified by:
mustImportUsers
in interfaceDomainDriver
-
isX509CertificateEnabled
public boolean isX509CertificateEnabled()
- Specified by:
isX509CertificateEnabled
in interfaceDomainDriver
-
beginSynchronization
public void beginSynchronization()
Called when Admin starts the synchronization- Specified by:
beginSynchronization
in interfaceDomainDriver
-
isSynchroInProcess
public boolean isSynchroInProcess()
- Specified by:
isSynchroInProcess
in interfaceDomainDriver
-
endSynchronization
public String endSynchronization(boolean cancelSynchro)
Called when Admin ends the synchronization- Specified by:
endSynchronization
in 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()
-
-