Package de.hybris.platform.ldap.jalo
Class LDAPManager
java.lang.Object
de.hybris.platform.jalo.Manager
de.hybris.platform.jalo.extension.Extension
de.hybris.platform.ldap.jalo.GeneratedLDAPManager
de.hybris.platform.ldap.jalo.LDAPManager
- All Implemented Interfaces:
ItemLifecycleListener,Serializable
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class de.hybris.platform.jalo.extension.Extension
Extension.RestrictedLanguagesProvider, Extension.RightsProviderNested classes/interfaces inherited from class de.hybris.platform.jalo.Manager
Manager.GenericManagerSingletonCreator, Manager.ManagerSingletonCreator -
Field Summary
Fields inherited from class de.hybris.platform.ldap.jalo.GeneratedLDAPManager
DEFAULT_INITIAL_ATTRIBUTES -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbrowseLDAP(LDAPConfigProxyItem config, String searchbase, String personObjectClass, String searchfield, String searchOperation, String searchvalue, String[] attrs) Performs a directory sub tree search (i.e.browseLDAP(String searchbase, String filter, String[] attrs) browseLDAP(String searchbase, String filter, String[] attrs, int limit) booleancheckPassword(User user, char[] plainPassword) Handles the LDAP authentification processbooleancheckPassword(String searchbase, String login, char[] plainPassword) createDefaultLDIFGroupImportCronJob(LDIFGroupImportJob ldifImportJob, boolean enableCodeExecution) createDefaultLDIFImportCronJob(boolean enableCodeExecution) Deprecated.since agescreateDefaultLDIFImportCronJob(LDIFImportJob ldifImportJob) Deprecated.since agescreateDefaultLDIFImportCronJob(LDIFImportJob ldifImportJob, boolean enableCodeExecution) voidcreateEssentialData(Map _values, JspContext jspc) createLDIFImportJob(Map attributeValues) final LDAPConfigProxyItemstatic LDAPManagerprotected final CollectionbooleanPart ofDataCreatorinterface.Methods inherited from class de.hybris.platform.ldap.jalo.GeneratedLDAPManager
createConfigurationMedia, createConfigurationMedia, createLDAPConfigProxyItem, createLDAPConfigProxyItem, createLDIFGroupImportCronJob, createLDIFGroupImportCronJob, createLDIFGroupImportJob, createLDIFGroupImportJob, createLDIFImportCronJob, createLDIFImportCronJob, createLDIFImportJob, createLDIFMedia, createLDIFMedia, getCN, getCN, getDefaultAttributeModes, getDN, getDN, getDomain, getDomain, getLdaplogin, getLdaplogin, getLdapsearchbase, getLdapsearchbase, getName, isLdapaccount, isLdapaccount, isLdapaccountAsPrimitive, isLdapaccountAsPrimitive, setCN, setCN, setDN, setDN, setDomain, setDomain, setLdapaccount, setLdapaccount, setLdapaccount, setLdapaccount, setLdaplogin, setLdaplogin, setLdapsearchbase, setLdapsearchbaseMethods inherited from class de.hybris.platform.jalo.extension.Extension
checkBeforeInitialization, checkBeforeItemRemoval, createProjectData, createSampleData, getCreatorDescription, getCreatorName, getCreatorParameterDefault, getCreatorParameterNames, getCreatorParameterPossibleValues, getRemote, notifyInitializationEnd, notifyInitializationStart, notifyItemRemoval, onFirstSessionCreation, writeReplaceMethods inherited from class de.hybris.platform.jalo.Manager
afterItemCreation, beforeItemCreation, destroy, extractNonRequiredRemoteFromItem, extractRequiredRemoteFromItem, getAllValuesSessionContext, getAttribute, getAttributeMap, getFirstItemByAttribute, getFirstItemByAttribute, getRemoteManagerClass, getSession, getSingletonManagerInstance, getTenant, getTransientObject, getTransientObjectMap, init, setAttribute, setTenant, setTransientObject, wrap
-
Constructor Details
-
LDAPManager
public LDAPManager()
-
-
Method Details
-
getInstance
-
getConfig
-
getPlatformUserLogins
-
browseLDAP
public Collection<LDAPGenericObject> browseLDAP(String searchbase, String filter, String[] attrs) throws NamingException - Throws:
NamingException
-
browseLDAP
public Collection<LDAPGenericObject> browseLDAP(String searchbase, String filter, String[] attrs, int limit) throws NamingException - Throws:
NamingException
-
browseLDAP
public Collection<LDAPGenericObject> browseLDAP(LDAPConfigProxyItem config, String searchbase, String personObjectClass, String searchfield, String searchOperation, String searchvalue, String[] attrs) throws NamingException Performs a directory sub tree search (i.e. of the next level and all subsequent levels below) by generating an search expressions with the help of the assigned parameters sample: the method callbrowseLDAP("dc=hybris,dc=de", "inetOrgPerson", "cn", "=", "*", new String[] {"cn", "sn", "modifyTimestamp", "creationTimestamp", "displayName"})will perform the search(&(objectclass=inetOrgPerson)(cn=*))- Parameters:
searchbase- the domain name (relative to initial context in ldap) to seach from.personObjectClass-searchfield-searchOperation-searchvalue-attrs- an array of strings containing the names of attributes to search. (null = all, empty array = none)- Returns:
- Collection of LDAPGenericObjects
- Throws:
NamingException
-
checkPassword
Handles the LDAP authentification processThis process passes the following steps:
1. Loading the configured LDAP searchbase (User attribute). -- This value is mandatory! 2. Loading the configured LDAP account (User attribute). -- This value is optional! Note: If this value is
, the hybris (hmc) login will be used instead! 3. Loading the configured domain (User attribute). -- This value is optional (Only usefull in an ActiveDirectory environement) 4. Calling checkPassword(final String searchbase, final String login, final char[] plainPassword ), with the submitted/acquired values- Parameters:
user- the hybris (hmc) userplainPassword- the ldap password- Returns:
- success
-
checkPassword
public boolean checkPassword(String searchbase, String login, char[] plainPassword) throws NamingException - Throws:
NamingException
-
createEssentialData
- Overrides:
createEssentialDatain classExtension- Throws:
Exception
-
createDefaultLDIFImportCronJob
@Deprecated(since="ages", forRemoval=false) public LDIFImportCronJob createDefaultLDIFImportCronJob(boolean enableCodeExecution) Deprecated.since ages -
createDefaultLDIFImportCronJob
-
createDefaultLDIFGroupImportCronJob
-
createDefaultLDIFImportCronJob
@Deprecated(since="ages", forRemoval=false) public LDIFImportCronJob createDefaultLDIFImportCronJob(LDIFImportJob ldifImportJob) Deprecated.since ages -
createDefaultLDIFImportCronJob
public LDIFImportCronJob createDefaultLDIFImportCronJob(LDIFImportJob ldifImportJob, boolean enableCodeExecution) -
createDefaultLDIFGroupImportCronJob
public LDIFGroupImportCronJob createDefaultLDIFGroupImportCronJob(LDIFGroupImportJob ldifImportJob, boolean enableCodeExecution) -
getOrCreateLDIFImportJob
-
getOrCreateLDIFGroupImportJob
-
createLDIFImportJob
- Overrides:
createLDIFImportJobin classGeneratedLDAPManager
-
isCreatorDisabled
public boolean isCreatorDisabled()Part ofDataCreatorinterface. This default implementation returnsfalse.- Overrides:
isCreatorDisabledin classExtension- Returns:
false
-
cleanse
-