|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.crowd.integration.directory.cache.DefaultDirectoryCache com.atlassian.crowd.integration.directory.cache.LDAPDirectoryCache com.atlassian.crowd.integration.directory.cache.MicrosoftActiveDirectoryCache
public class MicrosoftActiveDirectoryCache
Field Summary |
---|
Fields inherited from class com.atlassian.crowd.integration.directory.cache.LDAPDirectoryCache |
---|
dnToEntityIdentifier, entityIdentifierToDn |
Fields inherited from class com.atlassian.crowd.integration.directory.cache.DefaultDirectoryCache |
---|
cacheManager, directoryID, groupCache, groupChildGroupsCache, groupGroupMembershipExistsCache, groupNamesCache, groupParentGroupsCache, groupPrincipalsCache, logger, maxElementsInMemoryPerSubCache, principalCache, principalGroupMembershipExistsCache, principalGroupsCache, principalNamesCache, principalRoleMembershipExistsCache, principalRolesCache, roleCache, roleNamesCache, rolePrincipalsCache |
Constructor Summary | |
---|---|
MicrosoftActiveDirectoryCache(long directoryID,
net.sf.ehcache.CacheManager ehcacheManager,
int maxElementsInMemoryPerSubCache)
|
Method Summary | |
---|---|
protected void |
doClear()
|
protected void |
doClose()
|
protected boolean |
doHandleEvent(com.atlassian.event.Event evt)
|
protected java.lang.String |
getAttributeFromEntity(DirectoryEntity entity,
java.lang.String key)
|
protected EntityIdentifier |
getEntityIdentifier(java.lang.String guid)
|
protected java.lang.String |
getGUID(EntityIdentifier identifier)
|
protected java.lang.String |
getGuidFromEntity(DirectoryEntity entity)
|
protected java.lang.Long |
getUSNChanged(EntityIdentifier identifier)
|
protected java.lang.Long |
getUsnChangedFromEntity(DirectoryEntity entity)
|
protected boolean |
isNewerThanCache(EntityIdentifier identifier,
java.lang.Long usnChanged)
|
protected void |
removeEntityByGUID(java.lang.String guid)
|
void |
removeEntityByTombstone(Tombstone tombstone)
|
void |
removeGroup(java.lang.String groupName)
Removes a group (if it exists in the cache), along with any existing relationships of the group to principals or groups. |
protected void |
removeGUIDMapping(EntityType type,
java.lang.String name)
|
protected void |
removeGUIDMapping(java.lang.String guid)
|
void |
removePrincipal(java.lang.String principalName)
Removes a principal (if it exists in the cache), along with any existing relationships of the principal to groups or roles. |
void |
removeRole(java.lang.String roleName)
Removes a role (if it exists in the cache), along with any existing relationships of the role to principals or roles. |
void |
storeGroup(RemoteGroup group)
Stores a clone of the supplied group object in the cache. |
protected void |
storeGUIDMapping(java.lang.String guid,
EntityIdentifier identifier)
|
void |
storePrincipal(RemotePrincipal principal)
Stores a clone of the supplied principal object in the cache. |
void |
storeRole(RemoteRole role)
Stores a clone of the supplied group object in the cache. |
protected void |
storeUSNChanged(EntityIdentifier identifier,
java.lang.Long usnChanged)
|
Methods inherited from class com.atlassian.crowd.integration.directory.cache.LDAPDirectoryCache |
---|
getDnForEntityIdentifier, getEntityIdentifierForDn, removeDnMapping, removeDnMapping, storeDnMapping, updateGroupMembersFromMemberDNs, updateRoleMembersFromMemberDNs |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MicrosoftActiveDirectoryCache(long directoryID, net.sf.ehcache.CacheManager ehcacheManager, int maxElementsInMemoryPerSubCache)
Method Detail |
---|
protected void doClear()
doClear
in class LDAPDirectoryCache
protected void doClose()
doClose
in class LDAPDirectoryCache
protected java.lang.String getGuidFromEntity(DirectoryEntity entity)
protected java.lang.Long getUsnChangedFromEntity(DirectoryEntity entity)
protected java.lang.String getAttributeFromEntity(DirectoryEntity entity, java.lang.String key)
protected boolean isNewerThanCache(EntityIdentifier identifier, java.lang.Long usnChanged)
public void storePrincipal(RemotePrincipal principal)
DirectoryCache
storePrincipal
in interface DirectoryCache
storePrincipal
in class LDAPDirectoryCache
principal
- principal to cache.public void storeGroup(RemoteGroup group)
DirectoryCache
storeGroup
in interface DirectoryCache
storeGroup
in class LDAPDirectoryCache
group
- group to cache.public void storeRole(RemoteRole role)
DirectoryCache
storeRole
in interface DirectoryCache
storeRole
in class LDAPDirectoryCache
public void removePrincipal(java.lang.String principalName)
DirectoryCache
removePrincipal
in interface DirectoryCache
removePrincipal
in class LDAPDirectoryCache
principalName
- name of principal to remove from cache.public void removeGroup(java.lang.String groupName)
DirectoryCache
removeGroup
in interface DirectoryCache
removeGroup
in class LDAPDirectoryCache
groupName
- name of group to remove from cache.public void removeRole(java.lang.String roleName)
DirectoryCache
removeRole
in interface DirectoryCache
removeRole
in class LDAPDirectoryCache
roleName
- name of role to remove from cache.public void removeEntityByTombstone(Tombstone tombstone)
protected void removeEntityByGUID(java.lang.String guid)
protected void storeGUIDMapping(java.lang.String guid, EntityIdentifier identifier)
protected void removeGUIDMapping(EntityType type, java.lang.String name)
protected void removeGUIDMapping(java.lang.String guid)
protected java.lang.String getGUID(EntityIdentifier identifier)
protected EntityIdentifier getEntityIdentifier(java.lang.String guid)
protected void storeUSNChanged(EntityIdentifier identifier, java.lang.Long usnChanged)
protected java.lang.Long getUSNChanged(EntityIdentifier identifier)
protected boolean doHandleEvent(com.atlassian.event.Event evt)
doHandleEvent
in class DefaultDirectoryCache
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |