com.atlassian.crowd.integration.service.cache
Interface UserCache

All Superinterfaces:
BasicCache
All Known Implementing Classes:
CacheImpl

public interface UserCache
extends BasicCache


Method Summary
 void addOrReplaceAllUserNames(java.util.List userNames)
          Adds a list of all users, or if one already exists, replaces it.
 void addOrReplaceUser(SOAPPrincipal user)
          Adds, or if they exist, replaces an existing user.
 java.util.List getAllUserNames()
          Returns a List with all user names, or null if none are cached.
 SOAPPrincipal getUser(java.lang.String userName)
          Returns the SOAPPrincipal representing userName, or null if it's not in the cache.
 boolean removeUser(java.lang.String userName)
          Removes the user from the cache.
 
Methods inherited from interface com.atlassian.crowd.integration.service.cache.BasicCache
flush
 

Method Detail

addOrReplaceUser

void addOrReplaceUser(SOAPPrincipal user)
Adds, or if they exist, replaces an existing user.

Parameters:
user -

removeUser

boolean removeUser(java.lang.String userName)
Removes the user from the cache.

Parameters:
userName -
Returns:
true if the user was cached, false otherwise.

getUser

SOAPPrincipal getUser(java.lang.String userName)
Returns the SOAPPrincipal representing userName, or null if it's not in the cache.

Parameters:
userName -
Returns:

getAllUserNames

java.util.List getAllUserNames()
Returns a List with all user names, or null if none are cached.

Returns:

addOrReplaceAllUserNames

void addOrReplaceAllUserNames(java.util.List userNames)
Adds a list of all users, or if one already exists, replaces it.

Parameters:
userNames -


Copyright © 2008 Atlassian Pty Ltd. All Rights Reserved.