|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.atlassian.confluence.user.crowd.CachedCrowdUserDao
public class CachedCrowdUserDao
A caching decorator for an InternalUserDao.
| Constructor Summary | |
|---|---|
CachedCrowdUserDao(InternalUserDao delegate,
com.atlassian.cache.CacheFactory cacheFactory,
com.atlassian.event.api.EventPublisher eventPublisher)
|
|
| Method Summary | ||
|---|---|---|
com.atlassian.crowd.model.user.User |
add(com.atlassian.crowd.model.user.User user,
com.atlassian.crowd.embedded.api.PasswordCredential credential)
|
|
com.atlassian.crowd.util.BatchResult<com.atlassian.crowd.model.user.User> |
addAll(java.util.Set<com.atlassian.crowd.model.user.UserTemplateWithCredentialAndAttributes> users)
Removes all the adding users from the cache if they exist and delegates to the addAll method of the delegate DAO. |
|
void |
afterPropertiesSet()
|
|
com.atlassian.crowd.model.user.TimestampedUser |
findByExternalId(long directoryId,
java.lang.String externalId)
|
|
com.atlassian.crowd.model.user.TimestampedUser |
findByName(long directoryId,
java.lang.String userName)
|
|
java.util.Collection<com.atlassian.crowd.model.user.InternalUser> |
findByNames(long directoryId,
java.util.Collection<java.lang.String> userNames)
Find all users from the list of user names |
|
com.atlassian.crowd.model.user.UserWithAttributes |
findByNameWithAttributes(long directoryId,
java.lang.String userName)
|
|
com.atlassian.crowd.embedded.api.PasswordCredential |
getCredential(long directoryId,
java.lang.String userName)
|
|
java.util.List<com.atlassian.crowd.embedded.api.PasswordCredential> |
getCredentialHistory(long directoryId,
java.lang.String userName)
|
|
com.atlassian.crowd.model.user.InternalUser |
internalFindByName(long directoryId,
java.lang.String userName)
Find a persistent user object from a given directory and user name |
|
com.atlassian.crowd.model.user.InternalUser |
internalFindByUser(com.atlassian.crowd.model.user.User user)
Find the persistent user object that corresponds to the provided user. |
|
void |
remove(com.atlassian.crowd.model.user.User user)
|
|
void |
removeAllUsers(long directoryId)
Remove all users from a particular directory (used when deleting an internal directory) |
|
com.atlassian.crowd.util.BatchResult<java.lang.String> |
removeAllUsers(long directoryId,
java.util.Set<java.lang.String> userNames)
|
|
void |
removeAttribute(com.atlassian.crowd.model.user.User user,
java.lang.String attributeName)
|
|
com.atlassian.crowd.model.user.User |
rename(com.atlassian.crowd.model.user.User user,
java.lang.String newName)
|
|
|
search(long directoryId,
com.atlassian.crowd.search.query.entity.EntityQuery<T> query)
|
|
void |
storeAttributes(com.atlassian.crowd.model.user.User user,
java.util.Map<java.lang.String,java.util.Set<java.lang.String>> attributes)
|
|
com.atlassian.crowd.model.user.User |
update(com.atlassian.crowd.model.user.User user)
|
|
void |
updateCredential(com.atlassian.crowd.model.user.User user,
com.atlassian.crowd.embedded.api.PasswordCredential credential,
int maxCredentialHistory)
|
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CachedCrowdUserDao(InternalUserDao delegate,
com.atlassian.cache.CacheFactory cacheFactory,
com.atlassian.event.api.EventPublisher eventPublisher)
| Method Detail |
|---|
public void afterPropertiesSet()
throws java.lang.Exception
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBeanjava.lang.Exception
public com.atlassian.crowd.model.user.TimestampedUser findByName(long directoryId,
java.lang.String userName)
throws com.atlassian.crowd.exception.UserNotFoundException
findByName in interface com.atlassian.crowd.embedded.spi.UserDaocom.atlassian.crowd.exception.UserNotFoundException
public com.atlassian.crowd.model.user.TimestampedUser findByExternalId(long directoryId,
java.lang.String externalId)
throws com.atlassian.crowd.exception.UserNotFoundException
findByExternalId in interface com.atlassian.crowd.embedded.spi.UserDaocom.atlassian.crowd.exception.UserNotFoundException
public com.atlassian.crowd.model.user.UserWithAttributes findByNameWithAttributes(long directoryId,
java.lang.String userName)
throws com.atlassian.crowd.exception.UserNotFoundException
findByNameWithAttributes in interface com.atlassian.crowd.embedded.spi.UserDaocom.atlassian.crowd.exception.UserNotFoundException
public com.atlassian.crowd.embedded.api.PasswordCredential getCredential(long directoryId,
java.lang.String userName)
throws com.atlassian.crowd.exception.UserNotFoundException
getCredential in interface com.atlassian.crowd.embedded.spi.UserDaocom.atlassian.crowd.exception.UserNotFoundException
public java.util.List<com.atlassian.crowd.embedded.api.PasswordCredential> getCredentialHistory(long directoryId,
java.lang.String userName)
throws com.atlassian.crowd.exception.UserNotFoundException
getCredentialHistory in interface com.atlassian.crowd.embedded.spi.UserDaocom.atlassian.crowd.exception.UserNotFoundExceptionpublic com.atlassian.crowd.util.BatchResult<com.atlassian.crowd.model.user.User> addAll(java.util.Set<com.atlassian.crowd.model.user.UserTemplateWithCredentialAndAttributes> users)
add(User, PasswordCredential) because:
addAll in interface com.atlassian.crowd.embedded.spi.UserDaousers - the users to add
public com.atlassian.crowd.model.user.User add(com.atlassian.crowd.model.user.User user,
com.atlassian.crowd.embedded.api.PasswordCredential credential)
throws com.atlassian.crowd.exception.UserAlreadyExistsException,
java.lang.IllegalArgumentException,
com.atlassian.crowd.exception.DirectoryNotFoundException
add in interface com.atlassian.crowd.embedded.spi.UserDaocom.atlassian.crowd.exception.UserAlreadyExistsException
java.lang.IllegalArgumentException
com.atlassian.crowd.exception.DirectoryNotFoundException
public void storeAttributes(com.atlassian.crowd.model.user.User user,
java.util.Map<java.lang.String,java.util.Set<java.lang.String>> attributes)
throws com.atlassian.crowd.exception.UserNotFoundException
storeAttributes in interface com.atlassian.crowd.embedded.spi.UserDaocom.atlassian.crowd.exception.UserNotFoundException
public com.atlassian.crowd.model.user.User update(com.atlassian.crowd.model.user.User user)
throws com.atlassian.crowd.exception.UserNotFoundException,
java.lang.IllegalArgumentException
update in interface com.atlassian.crowd.embedded.spi.UserDaocom.atlassian.crowd.exception.UserNotFoundException
java.lang.IllegalArgumentException
public void updateCredential(com.atlassian.crowd.model.user.User user,
com.atlassian.crowd.embedded.api.PasswordCredential credential,
int maxCredentialHistory)
throws com.atlassian.crowd.exception.UserNotFoundException,
java.lang.IllegalArgumentException
updateCredential in interface com.atlassian.crowd.embedded.spi.UserDaocom.atlassian.crowd.exception.UserNotFoundException
java.lang.IllegalArgumentException
public com.atlassian.crowd.model.user.User rename(com.atlassian.crowd.model.user.User user,
java.lang.String newName)
throws com.atlassian.crowd.exception.UserNotFoundException,
com.atlassian.crowd.exception.UserAlreadyExistsException,
java.lang.IllegalArgumentException
rename in interface com.atlassian.crowd.embedded.spi.UserDaocom.atlassian.crowd.exception.UserNotFoundException
com.atlassian.crowd.exception.UserAlreadyExistsException
java.lang.IllegalArgumentException
public void removeAttribute(com.atlassian.crowd.model.user.User user,
java.lang.String attributeName)
throws com.atlassian.crowd.exception.UserNotFoundException
removeAttribute in interface com.atlassian.crowd.embedded.spi.UserDaocom.atlassian.crowd.exception.UserNotFoundException
public void remove(com.atlassian.crowd.model.user.User user)
throws com.atlassian.crowd.exception.UserNotFoundException
remove in interface com.atlassian.crowd.embedded.spi.UserDaocom.atlassian.crowd.exception.UserNotFoundException
public <T> java.util.List<T> search(long directoryId,
com.atlassian.crowd.search.query.entity.EntityQuery<T> query)
search in interface com.atlassian.crowd.embedded.spi.UserDao
public com.atlassian.crowd.model.user.InternalUser internalFindByName(long directoryId,
java.lang.String userName)
throws com.atlassian.crowd.exception.UserNotFoundException
InternalUserDao
internalFindByName in interface InternalUserDaocom.atlassian.crowd.exception.UserNotFoundException
public com.atlassian.crowd.model.user.InternalUser internalFindByUser(com.atlassian.crowd.model.user.User user)
throws com.atlassian.crowd.exception.UserNotFoundException
InternalUserDao
internalFindByUser in interface InternalUserDaocom.atlassian.crowd.exception.UserNotFoundExceptionpublic void removeAllUsers(long directoryId)
InternalUserDao
removeAllUsers in interface InternalUserDao
public java.util.Collection<com.atlassian.crowd.model.user.InternalUser> findByNames(long directoryId,
java.util.Collection<java.lang.String> userNames)
InternalUserDao
findByNames in interface InternalUserDao
public com.atlassian.crowd.util.BatchResult<java.lang.String> removeAllUsers(long directoryId,
java.util.Set<java.lang.String> userNames)
removeAllUsers in interface com.atlassian.crowd.embedded.spi.UserDao
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||