com.atlassian.crowd.integration.directory.cache
Class MicrosoftActiveDirectoryCache
java.lang.Object
com.atlassian.crowd.integration.directory.cache.DefaultDirectoryCache
com.atlassian.crowd.integration.directory.cache.LDAPDirectoryCache
com.atlassian.crowd.integration.directory.cache.MicrosoftActiveDirectoryCache
- All Implemented Interfaces:
- DirectoryCache, com.atlassian.event.EventListener
public class MicrosoftActiveDirectoryCache
- extends LDAPDirectoryCache
| Fields inherited from class com.atlassian.crowd.integration.directory.cache.DefaultDirectoryCache |
cacheManager, directoryId, groupCache, groupChildGroupsCache, groupGroupMembershipExistsCache, groupNamesCache, groupParentGroupsCache, groupUsersCache, logger, maxElementsInMemoryPerSubCache, userCache, userGroupMembershipExistsCache, userGroupsCache, userNamesCache |
|
Constructor Summary |
MicrosoftActiveDirectoryCache(long directoryID,
net.sf.ehcache.CacheManager ehcacheManager,
int maxElementsInMemoryPerSubCache)
|
| Methods inherited from class com.atlassian.crowd.integration.directory.cache.DefaultDirectoryCache |
addMembership, addRelationship, clear, close, createAndConfigureCache, getAllEntityNames, getAllEntityNamesAsList, getAllGroupNames, getAllUserNames, getCompleteRelationshipsAsList, getEntity, getFromCache, getGroupMembershipsOfGroup, getGroupMembershipsOfUser, getGroupMembersOfGroup, getHandledEventClasses, getKey, getKeys, getRelationships, getRelationshipsAsList, getStatistics, getUserMembersOfGroup, handleEvent, isEventForThisCache, isGroupGroupMember, isMember, isUserGroupMember, lockRead, lockWrite, removeAllRelations, removeCache, removeEntity, removeGroupAsGroupMember, removeMembership, removeRelationship, removeUserAsGroupMember, setGroupAsGroupMember, setMembershipFlag, setUserAsGroupMember, storeAllEntityNames, storeAllGroupNames, storeAllUserNames, storeEntity, storeGroupMembershipsOfGroup, storeGroupMembershipsOfUser, storeGroupMembersOfGroup, storeMembers, storeMemberships, storeUserMembersOfGroup, unlockRead, unlockWrite |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MicrosoftActiveDirectoryCache
public MicrosoftActiveDirectoryCache(long directoryID,
net.sf.ehcache.CacheManager ehcacheManager,
int maxElementsInMemoryPerSubCache)
doClear
protected void doClear()
- Overrides:
doClear in class LDAPDirectoryCache
doClose
protected void doClose()
- Overrides:
doClose in class LDAPDirectoryCache
getGuidFromEntity
protected java.lang.String getGuidFromEntity(LDAPDirectoryEntity entity)
getUsnChangedFromEntity
protected java.lang.Long getUsnChangedFromEntity(LDAPDirectoryEntity entity)
getAttributeFromEntity
protected java.lang.String getAttributeFromEntity(LDAPDirectoryEntity entity,
java.lang.String key)
isNewerThanCache
protected boolean isNewerThanCache(EntityIdentifier identifier,
java.lang.Long usnChanged)
storeUser
public void storeUser(User user)
- Description copied from interface:
DirectoryCache
- Stores a clone of the supplied user
object in the cache.
If a user with the same name already
exists in the cache, then it is silently
replaced.
- Specified by:
storeUser in interface DirectoryCache- Overrides:
storeUser in class LDAPDirectoryCache
- Parameters:
user - user to cache.
storeGroup
public void storeGroup(Group group)
- Description copied from interface:
DirectoryCache
- Stores a clone of the supplied group
object in the cache.
If a group with the same name already
exists in the cache, then it is silently
replaced.
- Specified by:
storeGroup in interface DirectoryCache- Overrides:
storeGroup in class LDAPDirectoryCache
- Parameters:
group - group to cache.
removeUser
public void removeUser(java.lang.String userName)
- Description copied from interface:
DirectoryCache
- Removes a user (if it exists in the cache), along
with any existing relationships of the user to
groups or roles.
The cache entry will be marked so that subsequent
calls to getUser(username) will throw an
ObjectNotFoundException.
- Specified by:
removeUser in interface DirectoryCache- Overrides:
removeUser in class LDAPDirectoryCache
- Parameters:
userName - name of user to remove from cache.
removeGroup
public void removeGroup(java.lang.String groupName)
- Description copied from interface:
DirectoryCache
- Removes a group (if it exists in the cache), along
with any existing relationships of the group to
users or groups.
The cache entry will be marked so that subsequent
calls to getGroup(groupName) will throw an
ObjectNotFoundException.
- Specified by:
removeGroup in interface DirectoryCache- Overrides:
removeGroup in class LDAPDirectoryCache
- Parameters:
groupName - name of group to remove from cache.
removeEntityByTombstone
public void removeEntityByTombstone(Tombstone tombstone)
removeEntityByGUID
protected void removeEntityByGUID(java.lang.String guid)
storeGUIDMapping
protected void storeGUIDMapping(java.lang.String guid,
EntityIdentifier identifier)
removeGUIDMapping
protected void removeGUIDMapping(EntityType type,
java.lang.String name)
removeGUIDMapping
protected void removeGUIDMapping(java.lang.String guid)
getGUID
protected java.lang.String getGUID(EntityIdentifier identifier)
getEntityIdentifier
protected EntityIdentifier getEntityIdentifier(java.lang.String guid)
storeUSNChanged
protected void storeUSNChanged(EntityIdentifier identifier,
java.lang.Long usnChanged)
getUSNChanged
protected java.lang.Long getUSNChanged(EntityIdentifier identifier)
doHandleEvent
protected boolean doHandleEvent(com.atlassian.event.Event evt)
- Overrides:
doHandleEvent in class DefaultDirectoryCache
Copyright © 2009 Atlassian Pty Ltd. All Rights Reserved.