|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.stratelia.webactiv.beans.admin.AbstractDomainDriver
public abstract class AbstractDomainDriver
| Field Summary | |
|---|---|
protected int |
domainId
|
protected List<DomainProperty> |
domainProperties
|
protected String[] |
keys
|
protected String[] |
m_mapParameters
|
protected Map<String,HashMap<String,String>> |
m_PropertiesDescriptions
|
protected Map<String,HashMap<String,String>> |
m_PropertiesLabels
|
protected String |
m_PropertiesMultilang
|
protected boolean |
synchroInProcess
|
protected boolean |
x509Enabled
|
| Fields inherited from interface com.stratelia.webactiv.beans.admin.DomainDriver |
|---|
ACTION_CREATE_GROUP, ACTION_CREATE_USER, ACTION_DELETE_GROUP, ACTION_DELETE_USER, ACTION_EDIT_USER_IN_GROUP, ACTION_IMPORT_GROUP, ACTION_IMPORT_USER, ACTION_MASK_ALL, ACTION_MASK_MIXED_GROUPS, ACTION_MASK_RO, ACTION_MASK_RW, ACTION_NONE, ACTION_READ_GROUP, ACTION_READ_USER, ACTION_REMOVE_GROUP, ACTION_REMOVE_USER, ACTION_SYNCHRO_GROUP, ACTION_SYNCHRO_USER, ACTION_UPDATE_GROUP, ACTION_UPDATE_USER, ACTION_X509_USER |
| Constructor Summary | |
|---|---|
AbstractDomainDriver()
|
|
| Method Summary | |
|---|---|
void |
addPropertiesToImport(List<DomainProperty> props)
|
void |
addPropertiesToImport(List<DomainProperty> props,
Map<String,String> theDescriptions)
|
void |
beginSynchronization()
Called when Admin starts the synchronization |
String |
endSynchronization(boolean cancelSynchro)
Called when Admin ends the synchronization |
long |
getDriverActions()
Called when Admin starts the synchronization |
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)
|
String |
getTimeStamp(String minTimeStamp)
|
String |
getTimeStampField()
|
protected static int |
idAsInt(String id)
|
protected static String |
idAsString(int id)
Convert int Id to String Id |
void |
init(int domainId,
String initParam,
String authenticationServer)
Initialize the domain driver with the initialization parameter stocked in table This parameter could be a table name or a ressource file name or whatever specified by the domain driver Default : ressource file name |
void |
initFromProperties(ResourceLocator rs)
Virtual method that performs extra initialization from a properties file. |
boolean |
isGroupsInheritProfiles()
|
boolean |
isSynchroInProcess()
|
boolean |
isSynchroOnLoginEnabled()
|
boolean |
isSynchroOnLoginRecursToGroups()
|
boolean |
isSynchroThreaded()
|
boolean |
isX509CertificateEnabled()
|
boolean |
mustImportUsers()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.stratelia.webactiv.beans.admin.DomainDriver |
|---|
commit, createGroup, createUser, deleteGroup, deleteUser, getAllChangedGroups, getAllChangedUsers, getAllGroups, getAllRootGroups, getAllUsers, getGroup, getGroupByName, getGroupMemberGroupIds, getGroups, getUser, getUserAttributes, getUserFull, getUserMemberGroupIds, getUsersByQuery, getUsersBySpecificProperty, importGroup, importUser, removeGroup, removeUser, resetEncryptedPassword, resetPassword, rollback, startTransaction, synchroGroup, synchroUser, updateGroup, updateUserDetail, updateUserFull |
| Field Detail |
|---|
protected int domainId
protected List<DomainProperty> domainProperties
protected String[] keys
protected String m_PropertiesMultilang
protected Map<String,HashMap<String,String>> m_PropertiesLabels
protected Map<String,HashMap<String,String>> m_PropertiesDescriptions
protected String[] m_mapParameters
protected boolean synchroInProcess
protected boolean x509Enabled
| Constructor Detail |
|---|
public AbstractDomainDriver()
| Method Detail |
|---|
public void init(int domainId,
String initParam,
String authenticationServer)
throws Exception
init in interface DomainDriverdomainId - id of domaininitParam - name of resource fileauthenticationServer - name of the authentication server (no more used yet)
Exceptionpublic String[] getPropertiesNames()
getPropertiesNames in interface DomainDriverpublic DomainProperty getProperty(String propName)
getProperty in interface DomainDriverpublic String[] getMapParameters()
getMapParameters in interface DomainDriverpublic List<DomainProperty> getPropertiesToImport(String language)
getPropertiesToImport in interface DomainDriverpublic void addPropertiesToImport(List<DomainProperty> props)
addPropertiesToImport in interface DomainDriver
public void addPropertiesToImport(List<DomainProperty> props,
Map<String,String> theDescriptions)
addPropertiesToImport in interface DomainDriverprops - theDescriptions - public Map<String,String> getPropertiesLabels(String language)
getPropertiesLabels in interface DomainDriverpublic Map<String,String> getPropertiesDescriptions(String language)
getPropertiesDescriptions in interface DomainDriver
public void initFromProperties(ResourceLocator rs)
throws Exception
initFromProperties in interface DomainDriverrs - name of resource file
Exceptionpublic long getDriverActions()
getDriverActions in interface DomainDriverpublic boolean isSynchroOnLoginEnabled()
isSynchroOnLoginEnabled in interface DomainDriverpublic boolean isSynchroThreaded()
isSynchroThreaded in interface DomainDriverpublic boolean isSynchroOnLoginRecursToGroups()
isSynchroOnLoginRecursToGroups in interface DomainDriverpublic boolean isGroupsInheritProfiles()
isGroupsInheritProfiles in interface DomainDriverpublic boolean mustImportUsers()
mustImportUsers in interface DomainDriver
public String getTimeStamp(String minTimeStamp)
throws Exception
getTimeStamp in interface DomainDriverException
public String getTimeStampField()
throws Exception
getTimeStampField in interface DomainDriverExceptionpublic boolean isX509CertificateEnabled()
isX509CertificateEnabled in interface DomainDriver
public void beginSynchronization()
throws Exception
beginSynchronization in interface DomainDriverException
public boolean isSynchroInProcess()
throws Exception
isSynchroInProcess in interface DomainDriverException
public String endSynchronization(boolean cancelSynchro)
throws Exception
endSynchronization in interface DomainDrivercancelSynchro - true if the synchronization is cancelled, false if it ends normally
Exceptionprotected static int idAsInt(String id)
protected static String idAsString(int id)
id - id to convert
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||