public class LDAPSynchronizer
extends javax.servlet.http.HttpServlet
| Modifier and Type | Field and Description |
|---|---|
protected static String |
COMMAND_EXECUTE |
protected static String |
COMPONENT_CONFIGURATION_ID |
protected static String |
OPTION_BASE_DN_GROUPS |
protected static String |
OPTION_BASE_DN_PEOPLE |
protected static String |
OPTION_RUN_AS |
protected static String |
OPTION_SYNC_DIR |
protected static String |
OPTION_SYNC_KEY |
protected javax.jdo.PersistenceManagerFactory |
pmf |
protected static Map<String,Thread> |
runningSegments |
protected long |
startedAt |
protected static String |
WORKFLOW_NAME |
| Constructor and Description |
|---|
LDAPSynchronizer() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
doGet(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res) |
protected void |
doPost(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res) |
protected AccountFilterGlobal |
getAccountFilter(Segment accountSegment)
Get account filter.
|
protected String |
getDN(Contact contact,
String baseDNPeople)
Get DN for given contact.
|
protected String |
getDN(String groupName,
String baseDNGroups)
Get DN for given group.
|
protected String |
getEmployeeNumber(Contact contact)
Get employeeNumber for given contact.
|
protected String |
getUid(Contact contact)
Get uid for given contact.
|
protected String |
getUserpassword(Contact contact)
Get userpassword for given contact.
|
protected void |
handleRequest(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
Handle sync request.
|
void |
init(javax.servlet.ServletConfig config) |
protected void |
sync(String id,
String providerName,
String segmentName,
javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
Synchronize items.
|
protected void |
writeError(Contact contact,
String baseDNPeople,
Exception e,
PrintWriter pw)
Write error entry for given contact.
|
protected void |
writeError(String groupName,
String baseDNGroups,
Exception e,
PrintWriter pw)
Write error entry for given group.
|
protected void |
writeError(String groupName,
String baseDNGroups,
List<String[]> validMembers,
List<String[]> duplicateMembers,
PrintWriter pw)
Write error entry for given group.
|
protected void |
writeLdifAddEntry(Contact contact,
String baseDNPeople,
PrintWriter pw)
Write LDIF Add entry for given contact.
|
protected void |
writeLdifAddEntry(String groupName,
String baseDNGroups,
PrintWriter pw)
Write LDIF Add entry for given group.
|
protected void |
writeLdifDeleteEntry(Contact contact,
String baseDNPeople,
PrintWriter pw)
Write LDIF Delete entry for given contact.
|
protected void |
writeLdifModifyEntry(Contact contact,
String baseDNPeople,
PrintWriter pw)
Write LDIF Modify entry for given contact.
|
protected void |
writeLdifModifyEntry(String groupName,
List<String[]> members,
String baseDNGroups,
PrintWriter pw)
Write LDIF Modify entry for given group.
|
doDelete, doHead, doOptions, doPut, doTrace, getLastModified, service, serviceprotected static final String COMMAND_EXECUTE
protected static final String WORKFLOW_NAME
protected static final String COMPONENT_CONFIGURATION_ID
protected static final String OPTION_SYNC_KEY
protected static final String OPTION_SYNC_DIR
protected static final String OPTION_RUN_AS
protected static final String OPTION_BASE_DN_PEOPLE
protected static final String OPTION_BASE_DN_GROUPS
protected javax.jdo.PersistenceManagerFactory pmf
protected long startedAt
public void init(javax.servlet.ServletConfig config)
throws javax.servlet.ServletException
init in interface javax.servlet.Servletinit in class javax.servlet.GenericServletjavax.servlet.ServletExceptionprotected AccountFilterGlobal getAccountFilter(Segment accountSegment) throws org.openmdx.base.exception.ServiceException
accountSegment - org.openmdx.base.exception.ServiceExceptionprotected String getUid(Contact contact) throws org.openmdx.base.exception.ServiceException
contact - org.openmdx.base.exception.ServiceExceptionprotected String getDN(Contact contact, String baseDNPeople) throws org.openmdx.base.exception.ServiceException
contact - org.openmdx.base.exception.ServiceExceptionprotected String getUserpassword(Contact contact) throws org.openmdx.base.exception.ServiceException
contact - org.openmdx.base.exception.ServiceExceptionprotected String getEmployeeNumber(Contact contact) throws org.openmdx.base.exception.ServiceException
contact - org.openmdx.base.exception.ServiceExceptionprotected void writeLdifAddEntry(Contact contact, String baseDNPeople, PrintWriter pw) throws org.openmdx.base.exception.ServiceException
contact - pw - org.openmdx.base.exception.ServiceExceptionprotected void writeLdifModifyEntry(Contact contact, String baseDNPeople, PrintWriter pw) throws org.openmdx.base.exception.ServiceException
contact - pw - org.openmdx.base.exception.ServiceExceptionprotected void writeLdifDeleteEntry(Contact contact, String baseDNPeople, PrintWriter pw) throws org.openmdx.base.exception.ServiceException
contact - pw - org.openmdx.base.exception.ServiceExceptionprotected void writeError(Contact contact, String baseDNPeople, Exception e, PrintWriter pw) throws org.openmdx.base.exception.ServiceException
contact - e - pw - org.openmdx.base.exception.ServiceExceptionprotected String getDN(String groupName, String baseDNGroups) throws org.openmdx.base.exception.ServiceException
groupName - baseDNGroups - org.openmdx.base.exception.ServiceExceptionprotected void writeLdifAddEntry(String groupName, String baseDNGroups, PrintWriter pw) throws org.openmdx.base.exception.ServiceException
groupName - baseDNGroups - pw - org.openmdx.base.exception.ServiceExceptionprotected void writeLdifModifyEntry(String groupName, List<String[]> members, String baseDNGroups, PrintWriter pw) throws org.openmdx.base.exception.ServiceException
groupName - members - baseDNGroups - pw - org.openmdx.base.exception.ServiceExceptionprotected void writeError(String groupName, String baseDNGroups, Exception e, PrintWriter pw) throws org.openmdx.base.exception.ServiceException
groupName - baseDNGroups - e - pw - org.openmdx.base.exception.ServiceExceptionprotected void writeError(String groupName, String baseDNGroups, List<String[]> validMembers, List<String[]> duplicateMembers, PrintWriter pw) throws org.openmdx.base.exception.ServiceException
groupName - baseDNGroups - validMembers - duplicateMembers - pw - org.openmdx.base.exception.ServiceExceptionprotected void sync(String id, String providerName, String segmentName, javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res) throws IOException
id - providerName - segmentName - req - res - IOExceptionprotected void handleRequest(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
throws javax.servlet.ServletException,
IOException
req - res - javax.servlet.ServletExceptionIOExceptionprotected void doGet(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
throws javax.servlet.ServletException,
IOException
doGet in class javax.servlet.http.HttpServletjavax.servlet.ServletExceptionIOExceptionprotected void doPost(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
throws javax.servlet.ServletException,
IOException
doPost in class javax.servlet.http.HttpServletjavax.servlet.ServletExceptionIOExceptionThis software is published under the BSD license. Copyright © 2003-${build.year}, CRIXP AG, Switzerland, All rights reserved. Use is subject to license terms.