Package de.hybris.platform.ldap.jalo
Class LDAPConfigProxyItem
java.lang.Object
de.hybris.platform.util.BridgeAbstraction
de.hybris.platform.jalo.Item
de.hybris.platform.jalo.config.ConfigProxyItem
de.hybris.platform.ldap.jalo.LDAPConfigProxyItem
- All Implemented Interfaces:
JaloOnlyItem,JaloOnlySingletonItem,Serializable,Comparable
A singleton used to manage the LDAP specific properties.properties settings.
Uses ConfigItem iternally to read/store config properties.
CAUTION: The configproxyitem persistence mechanism is currently not supported by the core !!! (so we are using the
project.properties settings, here)
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class de.hybris.platform.jalo.Item
Item.AttributeFilter, Item.AttributeMode, Item.CachedGetter, Item.CachedSetter, Item.ItemAttributeMap, Item.ItemConstraint, Item.ItemImpl, Item.JaloCachedComputationException -
Field Summary
FieldsFields inherited from class de.hybris.platform.jalo.Item
_CREATION_TIME_INTERNAL, _MODIFIED_TIME_INTERNAL, accessorLog, CREATION_TIME, DISABLE_ATTRIBUTE_CHECK, DISABLE_ITEMCHECK_BEFORE_REMOVABLE, EVEN, FEATURE_ACCESSMAP_QUALIFIER, HJMPTS, INITIAL_CREATION_FLAG, isJaloOnly, MODIFIED_TIME, NEGATIVE, NOT_FOUND, OWNER, PK, POSITIVE, SAVE_FROM_SERVICE_LAYER, staticTransientObjects, TYPEFields inherited from class de.hybris.platform.util.BridgeAbstraction
impl, tenant -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidchar[]intintintintintSet the current value for how many times servers will be tested (in total) before failing.intintBuild and return an array of DirContext environments.booleanbooleanbooleanvoidvoidsetCaCerts(String value) voidsetCaKeyStorePwd(String value) voidsetCaKeyStoreType(String value) voidsetClientCerts(String value) voidsetClientKeyStorePwd(String value) voidsetClientKeyStoreType(String value) voidsetCredentials(char[] value) voidsetFactory(String value) voidsetInitSize(Integer value) voidsetJNDIConnectionTimeout(Integer value) voidsetJNDIVersion(EnumerationValue value) voidsetLocalAccountsOnly(List value) voidsetLoginField(String value) voidsetMaxSize(Integer value) voidsetMinFailbackTime(Integer minFailbackTime) Set the mimumim amount of time (ms) to wait before retrying the primary server in case of a failure.voidsetPoolTimeOut(Integer value) voidsetPrefSize(Integer value) voidsetPrincipal(String value) voidsetProviderURL(List value) voidvoidsetSecurityProtocol(String value) voidsetSocketFactory(String value) voidsetUsePooling(boolean value) voidtestConnection(LDAPConfigProxyItem config) Methods inherited from class de.hybris.platform.jalo.config.ConfigProxyItem
booleanValue, createItem, doGetAttribute, doSetAttribute, getExternalQualifier, getInt, getPersistentValue, getTransientValue, getValue, getValue, integerValue, longValue, provideComposedType, provideCreationTime, provideModificationTime, providePK, removeJaloOnly, setPersistentValue, setTransientValue, setValue, setValue, storeInDatabaseMethods inherited from class de.hybris.platform.jalo.Item
addLinkedItems, addLinkedItems, addLinkedItems, addLinkedItems, addLinkedItems, addLinkedItems, addLinkedItems, addLinkedItems, addLinkedItems, addNegativePermission, addPermission, addPositivePermission, assureExtensionsLoaded, changeTypeAfterCreation, checkConstraint, checkItemPermission, checkMandatoryAttribute, checkMandatoryAttribute, checkPermission, checkPermission, checkRemovable, clearPermission, compareTo, createNonClassAccessor, ctx, doAfterRemove, doBeforeRemove, equals, getAccessorFor, getAllAttributes, getAllAttributes, getAllAttributes, getAllAttributes, getAllAttributesInternal, getAllLinkedItems, getAndCheckCacheBoundItem, getAttribute, getAttribute, getCacheBoundItem, getComposedType, getComposedTypePK, getCreationTime, getCurrentlyRemovingCount, getDefaultAttributeModes, getImplementation, getLinkedItems, getLinkedItems, getLinkedItems, getLinkedItems, getLinkedItems, getLinkedItems, getLinkedItems, getLinkedItemsCount, getLinkedItemsCount, getLinkedItemsCount, getModificationTime, getNegativePermissions, getNonInitialAttributes, getOwner, getPartOfRemovedSessionMarker, getPermissionMap, getPermissions, getPersistenceVersion, getPK, getPositivePermissions, getRelatedItems, getRelatedItems, getRestrictedPrincipals, getSession, getSyncObject, getTenant, getTransientObject, getTransientObjectMap, hashCode, hasRegisteredClassAccessorFor, internal_registerClassAccessorFor, internal_registerNonClassAccessorFor, invalidateLocalCaches, isAlive, isCacheBound, isCurrentlyRemoving, isCurrentlyRemoving, isEmptyRelationValue, isInCreate, isInstanceOf, isItemCheckBeforeRemoveableDisabled, isMarkModifiedDisabled, isRelationLocalizationFallbackEnabled, newInstance, notifyExtensionsAfterItemCreation, notifyExtensionsBeforeItemCreation, notifyItemRemoval, notifyManagerAboutItemRemoval, readResolve, registerAccessFor, registerAccessFor, registerJaloInvalidationListeners, remove, remove, removeItemCollection, removeItemCollection, removeLinkedItems, removeLinkedItems, removeLinkedItems, removeLinkedItems, removeLinks, removePartOfItems, removePartOfItems, setAllAttributes, setAllAttributes, setAllAttributesInternal, setAllLinkedItems, setAllLinkedItems, setAllLinkedItems, setAllLinkedItems, setAttribute, setAttribute, setAttributeFromString, setAttributeFromString, setCacheBound, setComposedType, setCreationTime, setImplementation, setLinkedItems, setLinkedItems, setLinkedItems, setLinkedItems, setLinkedItems, setLinkedItems, setLinkedItems, setLinkedItems, setModificationTime, setNonInitialAttributes, setOwner, setPermissionsByMap, setRelatedItems, setTransientObject, setUseTA, suppressRelation, toString, useTA, writeReplaceMethods inherited from class de.hybris.platform.util.BridgeAbstraction
setTenant
-
Field Details
-
DELIMITER
- See Also:
-
-
Constructor Details
-
LDAPConfigProxyItem
public LDAPConfigProxyItem()
-
-
Method Details
-
getProviderURLasList
-
getProviderURLasString
-
setProviderURL
-
getLocalAccountsOnlyAsList
-
getLocalAccountsOnlyAsString
-
setLocalAccountsOnly
-
isHybrisPoolingDisabled
public boolean isHybrisPoolingDisabled() -
getServerEnvironments
Build and return an array of DirContext environments.- Returns:
- An array of hashtables suitable for creating DirContext objects.
-
getMaxRetries
public int getMaxRetries()- Returns:
- the max retry count.
-
getMinFailbackTime
public int getMinFailbackTime()Set the current value for how many times servers will be tested (in total) before failing. If this method is not called, the class will default to three times the number of servers available. -
setMinFailbackTime
Set the mimumim amount of time (ms) to wait before retrying the primary server in case of a failure. Default is 15 minutes.- Parameters:
minFailbackTime- - in ms.
-
getRootDN
- Returns:
- Returns the rootDN
-
setRootDN
- Parameters:
rootDN- The rootDN to set.
-
setInitSize
-
getInitSize
public int getInitSize() -
getPoolTimeOut
public int getPoolTimeOut() -
setPoolTimeOut
-
setMaxSize
-
getMaxSize
public int getMaxSize() -
setPrefSize
-
getPrefSize
public int getPrefSize() -
setUsePooling
public void setUsePooling(boolean value) -
getUsePooling
public boolean getUsePooling() -
setAuthentication
-
getAuthentication
-
setLoginField
-
getLoginField
-
setCredentials
public void setCredentials(char[] value) -
getCredentials
public char[] getCredentials() -
setFactory
-
getTracing
public boolean getTracing() -
getFactory
-
setSocketFactory
-
getSocketFactory
-
getJNDIConnectionTimeout
public int getJNDIConnectionTimeout() -
setJNDIConnectionTimeout
-
setCaCerts
-
getCaCerts
-
setClientCerts
-
getClientCerts
-
setCaKeyStorePwd
-
getCaKeyStorePwd
-
setClientKeyStorePwd
-
getClientKeyStorePwd
-
setCaKeyStoreType
-
getCaKeyStoreType
-
setClientKeyStoreType
-
getClientKeyStoreType
-
setPrincipal
-
getPrincipal
-
setJNDIVersion
-
getJNDIVersion
-
setSecurityProtocol
-
getSecurityProtocol
-
getJNDIEnvironment
-
dumpEnvironmentValues
-
testConnection
- Throws:
LDAPUnavailableException
-