Each item descriptor type in the user directory has a corresponding cache component that maps repository IDs to persistent repository items. For an LDAP user directory, user and organization are the only item types stored in the LDAP repository, so these items are the only ones whose caching you must change from the default caching methods for a SQL-based user directory (see Caching and the User Directory).

For the user and organization item types, you identify the cache component to use in the Caching section of the ProfileUserDirectory.properties file. Set the userCache property to point to the LDAPUserCache component. Set the organizationCache property to point to the LDAPOrganizationCache component.

Each cache component points to a corresponding cache adapter component, which retrieves items from the repository that are not in the cache.

For more information about setting up caching for a user directory that accesses an LDAP directory rather than a SQL repository, see Configuring the LDAP Repository Components in the ATG Repository Guide.

LDAPUserCache

The /atg/userprofiling/LDAPUserCache component handles caching for the user item descriptor type in an LDAP user directory.

Set the cacheAdapter property of this component to the /atg/userprofiling/LDAPUserCacheAdapter component as shown in the following properties file:

$class=atg.service.cache.Cache

cacheAdapter=LDAPUserCacheAdapter

Note that a default instance of this component is not provided with the Personalization module. If you want to use this component, create an instance of class atg.service.cache.Cache and configure it as shown here. For information on how to set the other properties of this component, refer to the description of the UserCache component, which manages caching for user items in a SQL-based user directory. See Caching and the User Directory.

LDAPUserCacheAdapter

The /atg/userprofiling/LDAPUserCacheAdapter component handles the creation of the user objects that populate the LDAPUserCache.

Set the userDirectory property of this component to the LDAP repository holding the user directory items, as shown in the following properties file:

$class=atg.userdirectory.repository.ldap.LDAPUserCacheAdapter

userDirectory=ProfileUserDirectory
LDAPOrganizationCache

The /atg/userprofiling/LDAPOrganizationCache component handles caching for the organization item descriptor type in an LDAP user directory.

Set the cacheAdapter property of this component to the /atg/userprofiling/LDAPOrganizationCacheAdapter component, as shown in the following properties file:

$class=atg.service.cache.Cache

cacheAdapter=LDAPOrganizationCacheAdapter

Note that a default instance of this component is not provided with the Personalization module. If you want to use this component, create an instance of class atg.service.cache.Cache and configure it as shown here. For information on how to set the other properties of this component, refer to the description of the UserCache component, which manages caching for user items in a SQL-based user directory. See Caching and the User Directory.

LDAPOrganizationCacheAdapter

The /atg/userprofiling/LDAPOrganizationCacheAdapter component handles the creation of the organization objects that populate the LDAPOrganizationCache.

Set the userDirectory property of this component to the LDAP repository holding the user directory items, as shown in the following properties file:

$class=atg.userdirectory.repository.ldap.LDAPOrganizationCacheAdapter

userDirectory=ProfileUserDirectory

Copyright © 1997, 2012 Oracle and/or its affiliates. All rights reserved.

Legal Notices