|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.jalios.jcms.context.JcmsContext com.jalios.jcms.context.JcmsJspContext com.jalios.jcms.handler.JcmsFormHandler com.jalios.jcms.handler.SyncLdapHandler
public class SyncLdapHandler
This form handler performs LDAP synchronization.
Field Summary | |
---|---|
static String |
LDAP_GROUP_SYNC_DONE
|
static org.apache.log4j.Logger |
logger
|
protected boolean |
op
|
protected boolean |
opSyncAll
|
protected boolean |
opSyncGroup
|
protected boolean |
opSyncLdapGroup
|
protected boolean |
opSyncOne
|
static String |
REVISION
|
static int |
SYNC_PROGRESS_GROUP_CREATED
|
static int |
SYNC_PROGRESS_GROUP_TREATED
|
static int |
SYNC_PROGRESS_GROUP_UPDATED
|
static int |
SYNC_PROGRESS_MEMBER_CREATED
|
static int |
SYNC_PROGRESS_MEMBER_TREATED
|
static int |
SYNC_PROGRESS_MEMBER_UPDATED
|
Fields inherited from class com.jalios.jcms.handler.JcmsFormHandler |
---|
contextMap, editFieldSet, noRedirect, noSendRedirect, popupEdition, redirect, redirectOnClosePopup, workspaceForced |
Fields inherited from class com.jalios.jcms.context.JcmsJspContext |
---|
AJAX_REQUEST_ATTRIBUTES, BODY_HEADER, CSS_HEADER, cssboMap, cssfoMap, CUSTOM_HEADER, editIcon, HTTPEQUIV_HEADER, httpequivMap, HTTPNAME_HEADER, httpnameMap, initEditIcon, JAVASCRIPT_CODE_SET_ATTRIBUTE, JAVASCRIPT_SET_ATTRIBUTE, JS_HEADER, jsboMap, jsboSet, jsfoMap, jsfoSet, out, pageContext, SHOW_EDIT_ICON, STYLE_HEADER |
Fields inherited from class com.jalios.jcms.context.JcmsContext |
---|
browser, caddy, channel, inFO, initDone, initWorkspace, isAdmin, isAjaxRequest, isDBMember, isDebug, isLogged, loggedMember, request, response, userLang, userLocale, workspace |
Fields inherited from interface com.jalios.util.JaliosConstants |
---|
CRLF, MILLIS_IN_ONE_DAY, MILLIS_IN_ONE_HOUR, MILLIS_IN_ONE_MINUTE, MILLIS_IN_ONE_MONTH, MILLIS_IN_ONE_SECOND, MILLIS_IN_ONE_WEEK, MILLIS_IN_ONE_YEAR |
Constructor Summary | |
---|---|
SyncLdapHandler()
|
Method Summary | |
---|---|
static void |
clearLdapGroupBeingSync(javax.servlet.http.HttpSession session)
|
static Group |
getLdapGroupBeingSync(javax.servlet.http.HttpSession session)
If LDAP synchronization was request on a LDAP group, return the LDAP Group being synchronized. |
static String |
getLdapGroupSyncProgressInformation()
Retrieve progress information of ldap group synchronization. |
void |
performSyncAll()
Synchronize all members with LDAP. |
void |
performSyncGroup()
Synchronize members of current group with LDAP. |
void |
performSyncLdapGroup()
Synchronize the LDAP group and retrieve all its member from LDAP. |
void |
performSyncOne()
Synchronize current member with LDAP. |
void |
setGid(String gid)
|
void |
setId(String id)
|
void |
setLdapGid(String gid)
|
void |
setOpSyncAll(String v)
|
void |
setOpSyncGroup(String v)
|
void |
setOpSyncLdapGroup(String v)
|
void |
setOpSyncOne(String v)
|
static void |
updateLdapGroupSyncProgressInformation(int action,
Data data)
This methods adds information regarding the current LDAP synchronization progress to the session. |
boolean |
validate()
|
boolean |
validateSyncAll()
|
boolean |
validateSyncGroup()
|
boolean |
validateSyncLdapGroup()
|
boolean |
validateSyncOne()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String REVISION
public static final org.apache.log4j.Logger logger
protected boolean op
protected boolean opSyncOne
protected boolean opSyncGroup
protected boolean opSyncLdapGroup
protected boolean opSyncAll
public static final String LDAP_GROUP_SYNC_DONE
public static final int SYNC_PROGRESS_GROUP_CREATED
public static final int SYNC_PROGRESS_GROUP_UPDATED
public static final int SYNC_PROGRESS_GROUP_TREATED
public static final int SYNC_PROGRESS_MEMBER_CREATED
public static final int SYNC_PROGRESS_MEMBER_UPDATED
public static final int SYNC_PROGRESS_MEMBER_TREATED
Constructor Detail |
---|
public SyncLdapHandler()
Method Detail |
---|
public boolean validate() throws IOException
IOException
public boolean validateSyncOne() throws IOException
IOException
public void performSyncOne()
public boolean validateSyncGroup() throws IOException
IOException
public void performSyncGroup()
public boolean validateSyncLdapGroup() throws IOException
IOException
public void performSyncLdapGroup()
public boolean validateSyncAll() throws IOException
IOException
public void performSyncAll()
public static void clearLdapGroupBeingSync(javax.servlet.http.HttpSession session)
public static Group getLdapGroupBeingSync(javax.servlet.http.HttpSession session)
session
- the current HttpSession
public static void updateLdapGroupSyncProgressInformation(int action, Data data)
getLdapGroupSyncProgressInformation()
.
action
- the value to updated, choosen from :
SYNC_PROGRESS_GROUP_CREATED
to increment nbr of group createdSYNC_PROGRESS_GROUP_UPDATED
to increment nbr of group updated}SYNC_PROGRESS_GROUP_TREATED
to increment nbr of group processed}SYNC_PROGRESS_MEMBER_CREATED
to increment nbr of member created}SYNC_PROGRESS_MEMBER_UPDATED
to increment nbr of member updated}SYNC_PROGRESS_MEMBER_TREATED
to increment nbr of member processed}data
- the Data being processed (needed to make sure a data is not being treated twice)public static String getLdapGroupSyncProgressInformation()
Channel.getCurrentServletRequest()
.public void setOpSyncOne(String v)
public void setOpSyncGroup(String v)
public void setOpSyncLdapGroup(String v)
public void setOpSyncAll(String v)
public void setId(String id)
public void setGid(String gid)
public void setLdapGid(String gid)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |