|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.stratelia.webactiv.beans.admin.AbstractDomainDriver
com.stratelia.webactiv.beans.admin.DomainDriverManager
public class DomainDriverManager
Field Summary |
---|
Fields inherited from class com.stratelia.webactiv.beans.admin.AbstractDomainDriver |
---|
domainId, domainProperties, keys, m_mapParameters, m_PropertiesDescriptions, m_PropertiesLabels, m_PropertiesMultilang, synchroInProcess, 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 | |
---|---|
DomainDriverManager()
|
Method Summary | |
---|---|
Map<String,String> |
authenticate(String sKey)
|
Map<String,String> |
authenticate(String sKey,
boolean removeKey)
|
void |
beginSynchronization(String sdomainId)
Called when Admin starts the synchronization on a particular Domain |
void |
commit()
Commit transaction |
void |
commit(String domainId)
Commit transaction in specific domain driver |
String |
createDomain(Domain theDomain)
|
String |
createGroup(Group group)
|
String |
createUser(UserDetail user)
Create a new User. |
String |
createUser(UserFull user)
Create a new User. |
void |
deleteGroup(String groupId)
|
void |
deleteUser(String userId)
Delete given user from Silverpeas |
String |
endSynchronization(String sdomainId,
boolean cancelSynchro)
Called when Admin ends the synchronization |
Group[] |
getAllChangedGroups(String fromTimeStamp,
String toTimeStamp)
|
UserDetail[] |
getAllChangedUsers(String fromTimeStamp,
String toTimeStamp)
|
Domain[] |
getAllDomains()
|
GroupRow[] |
getAllGroupOfDomain(String domainId)
|
Group[] |
getAllGroups()
|
Group[] |
getAllGroups(String domainId)
|
Group[] |
getAllRootGroups()
|
Group[] |
getAllRootGroups(String domainId)
|
UserDetail[] |
getAllUsers()
|
UserDetail[] |
getAllUsers(String domainId)
|
Domain |
getDomain(String domainId)
|
long |
getDomainActions(String domainId)
|
DomainDriver |
getDomainDriver(int domainId)
|
Group |
getGroup(String groupId)
return group with given id (contains list of user ids for this group) |
Group |
getGroupByName(String groupName)
|
Group |
getGroupByNameInDomain(String groupName,
String domainId)
return group with given group name in domain |
String[] |
getGroupMemberGroupIds(String groupId)
|
String[] |
getGroupMemberGroupIds(String domainId,
String groupId)
|
Group[] |
getGroups(String groupId)
|
String |
getNextDomainId()
|
OrganizationSchema |
getOrganization()
|
void |
getOrganizationSchema()
Get an organization schema from the pool. |
UserDetail |
getUser(String userId)
|
List<String> |
getUserAttributes()
|
UserDetail |
getUserDetail(String userId)
|
UserFull |
getUserFull(String userId)
Retrieve user information from database |
String[] |
getUserIdsOfDomain(String domainId)
|
String[] |
getUserMemberGroupIds(String userId)
|
UserDetail[] |
getUsers(String[] userIds)
|
UserDetail[] |
getUsersByQuery(Map<String,String> query)
|
UserDetail[] |
getUsersBySpecificProperty(String propertyName,
String value)
|
Group |
importGroup(String groupName)
|
UserDetail |
importUser(String userLogin)
|
void |
indexAllGroups(String domainId)
Indexing all groups information of given domain |
void |
indexAllUsers(String domainId)
Indexing all users information of given domain |
void |
indexGroup(GroupRow group)
Indexing a group |
void |
indexUser(String userId)
|
void |
releaseOrganizationSchema()
Release the organization schema. |
String |
removeDomain(String domainId)
|
void |
removeGroup(String groupId)
|
void |
removeUser(String userId)
|
void |
resetEncryptedPassword(UserDetail user,
String encryptedPassword)
|
void |
resetPassword(UserDetail user,
String password)
|
void |
rollback()
Rollback transaction |
void |
rollback(String domainId)
Rollback transaction in specific domain driver |
void |
startTransaction(boolean bAutoCommit)
Start a new transaction |
void |
startTransaction(String domainId,
boolean bAutoCommit)
Start a new transaction in specific domain driver |
Group |
synchroGroup(String groupId)
|
UserDetail |
synchroUser(String userId)
|
protected String[] |
translateUserIdsToSpecificIds(int domainId,
String[] ids)
|
void |
unindexGroup(String groupId)
Unindexing a group |
void |
unindexUser(String userId)
|
String |
updateDomain(Domain theDomain)
|
void |
updateGroup(Group group)
Update given group in specific domain |
void |
updateUserDetail(UserDetail user)
|
void |
updateUserFull(UserFull user)
|
Methods inherited from class com.stratelia.webactiv.beans.admin.AbstractDomainDriver |
---|
addPropertiesToImport, addPropertiesToImport, beginSynchronization, endSynchronization, getDriverActions, getMapParameters, getPropertiesDescriptions, getPropertiesLabels, getPropertiesNames, getPropertiesToImport, getProperty, getTimeStamp, getTimeStampField, idAsInt, idAsString, init, initFromProperties, isGroupsInheritProfiles, isSynchroInProcess, isSynchroOnLoginEnabled, isSynchroOnLoginRecursToGroups, isSynchroThreaded, isX509CertificateEnabled, mustImportUsers |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DomainDriverManager()
Method Detail |
---|
public void getOrganizationSchema() throws AdminException
AdminException
public void releaseOrganizationSchema() throws AdminException
AdminException
public String createUser(UserFull user) throws Exception
user
-
Exception
public UserDetail[] getAllChangedUsers(String fromTimeStamp, String toTimeStamp) throws Exception
Exception
public Group[] getAllChangedGroups(String fromTimeStamp, String toTimeStamp) throws Exception
Exception
public UserDetail importUser(String userLogin) throws Exception
Exception
public void removeUser(String userId) throws Exception
Exception
public UserDetail synchroUser(String userId) throws Exception
Exception
public String createUser(UserDetail user) throws Exception
user
-
Exception
public void deleteUser(String userId) throws Exception
userId
- user Id
Exception
public void updateUserDetail(UserDetail user) throws Exception
user
-
Exception
public UserDetail getUser(String userId) throws Exception
Exception
public void updateUserFull(UserFull user) throws Exception
user
-
Exception
public String[] getUserIdsOfDomain(String domainId) throws Exception
Exception
public UserFull getUserFull(String userId) throws Exception
DomainDriver
userId
- The user id as stored in the database
Exception
public UserDetail getUserDetail(String userId) throws Exception
userId
-
Exception
public String[] getUserMemberGroupIds(String userId) throws Exception
Exception
public UserDetail[] getUsers(String[] userIds) throws Exception
userIds
-
Exception
public UserDetail[] getAllUsers() throws Exception
Exception
public UserDetail[] getUsersBySpecificProperty(String propertyName, String value) throws Exception
Exception
public UserDetail[] getUsersByQuery(Map<String,String> query) throws Exception
Exception
public Group importGroup(String groupName) throws Exception
Exception
public void removeGroup(String groupId) throws Exception
Exception
public Group synchroGroup(String groupId) throws Exception
Exception
public UserDetail[] getAllUsers(String domainId) throws Exception
domainId
-
Exception
public void indexAllUsers(String domainId) throws Exception
domainId
-
Exception
public void indexUser(String userId)
public void unindexUser(String userId)
public String createGroup(Group group) throws Exception
group
-
Exception
public void deleteGroup(String groupId) throws Exception
groupId
-
Exception
public void updateGroup(Group group) throws Exception
group
-
Exception
public Group getGroup(String groupId) throws Exception
groupId
-
Exception
public Group getGroupByName(String groupName) throws Exception
Exception
public Group getGroupByNameInDomain(String groupName, String domainId) throws Exception
groupName
-
Exception
public Group[] getGroups(String groupId) throws Exception
groupId
-
Exception
public Group[] getAllGroups() throws Exception
Exception
public Group[] getAllGroups(String domainId) throws Exception
domainId
-
Exception
public Group[] getAllRootGroups() throws Exception
Exception
public String[] getGroupMemberGroupIds(String groupId) throws Exception
Exception
public String[] getGroupMemberGroupIds(String domainId, String groupId) throws Exception
domainId
- groupId
-
Exception
public Group[] getAllRootGroups(String domainId) throws Exception
domainId
-
Exception
public GroupRow[] getAllGroupOfDomain(String domainId) throws Exception
Exception
public void indexAllGroups(String domainId) throws Exception
domainId
-
Exception
public void indexGroup(GroupRow group)
group
- public void unindexGroup(String groupId)
groupId
- public Map<String,String> authenticate(String sKey) throws Exception
sKey
-
Exception
public Map<String,String> authenticate(String sKey, boolean removeKey) throws Exception
sKey
- anthentication keyremoveKey
- remove after
Exception
public Domain[] getAllDomains() throws AdminException
AdminException
public long getDomainActions(String domainId) throws Exception
domainId
-
Exception
public String getNextDomainId() throws Exception
Exception
public String createDomain(Domain theDomain) throws Exception
Exception
public String updateDomain(Domain theDomain) throws Exception
Exception
public String removeDomain(String domainId) throws Exception
Exception
public Domain getDomain(String domainId) throws Exception
domainId
-
Exception
public DomainDriver getDomainDriver(int domainId) throws Exception
domainId
-
Exception
public void beginSynchronization(String sdomainId) throws Exception
Exception
public String endSynchronization(String sdomainId, boolean cancelSynchro) throws Exception
cancelSynchro
- true if the synchronization is cancelled, false if it ends normally
Exception
public void startTransaction(boolean bAutoCommit)
public void commit() throws Exception
Exception
public void rollback() throws Exception
Exception
public void startTransaction(String domainId, boolean bAutoCommit) throws Exception
Exception
public void commit(String domainId) throws Exception
Exception
public void rollback(String domainId) throws Exception
Exception
protected String[] translateUserIdsToSpecificIds(int domainId, String[] ids)
public List<String> getUserAttributes() throws Exception
Exception
public OrganizationSchema getOrganization()
public void resetPassword(UserDetail user, String password) throws Exception
Exception
public void resetEncryptedPassword(UserDetail user, String encryptedPassword) throws Exception
Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |