public class

OfBizUserDao

extends Object
implements UserDao
java.lang.Object
   ↳ com.atlassian.jira.crowd.embedded.ofbiz.OfBizUserDao

Class Overview

Implementation of the user DAO that works with OfBiz

Summary

Public Constructors
OfBizUserDao(OfBizDelegator ofBizDelegator, DirectoryDao directoryDao, InternalMembershipDao membershipDao, UserKeyStore userKeyStore, UserDeleteVeto userDeleteVeto, CacheManager cacheManager, ClusterLockService clusterLockService)
Public Methods
User add(User user, PasswordCredential credential)
@Nonnull BatchResult<User> addAll(Set<UserTemplateWithCredentialAndAttributes> users)
@Nonnull TimestampedUser findByExternalId(long directoryId, String externalId)
@Nonnull TimestampedUser findByName(long directoryId, String userName)
@Nonnull UserWithAttributes findByNameWithAttributes(long directoryId, String userName)
void flushCache()
Invoked by OfBizCacheFlushingManager to ensure caches are being flushed in the right order on XMLRestoreFinishedEvent
@Nullable PasswordCredential getCredential(long directoryId, String userName)
List<PasswordCredential> getCredentialHistory(long directoryId, String userName)
void remove(User user)
BatchResult<String> removeAllUsers(long directoryId, Set<String> userNames)
void removeAttribute(User user, String attributeName)
User rename(User oldUser, String newName)
<T> List<T> search(long directoryId, EntityQuery<T> query)
void storeAttributes(User user, Map<StringSet<String>> attributes)
User update(User user)
void updateCredential(User user, PasswordCredential credential, int credentialHistory)
Protected Methods
void updateGroupMembership(long directoryId, String oldName, String newName)
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.atlassian.crowd.embedded.spi.UserDao

Public Constructors

public OfBizUserDao (OfBizDelegator ofBizDelegator, DirectoryDao directoryDao, InternalMembershipDao membershipDao, UserKeyStore userKeyStore, UserDeleteVeto userDeleteVeto, CacheManager cacheManager, ClusterLockService clusterLockService)

Public Methods

public User add (User user, PasswordCredential credential)

Throws
UserAlreadyExistsException

@Nonnull public BatchResult<User> addAll (Set<UserTemplateWithCredentialAndAttributes> users)

@Nonnull public TimestampedUser findByExternalId (long directoryId, String externalId)

@Nonnull public TimestampedUser findByName (long directoryId, String userName)

@Nonnull public UserWithAttributes findByNameWithAttributes (long directoryId, String userName)

public void flushCache ()

Invoked by OfBizCacheFlushingManager to ensure caches are being flushed in the right order on XMLRestoreFinishedEvent

@Nullable public PasswordCredential getCredential (long directoryId, String userName)

public List<PasswordCredential> getCredentialHistory (long directoryId, String userName)

public void remove (User user)

public BatchResult<String> removeAllUsers (long directoryId, Set<String> userNames)

public void removeAttribute (User user, String attributeName)

public User rename (User oldUser, String newName)

public List<T> search (long directoryId, EntityQuery<T> query)

public void storeAttributes (User user, Map<StringSet<String>> attributes)

public User update (User user)

public void updateCredential (User user, PasswordCredential credential, int credentialHistory)

Protected Methods

protected void updateGroupMembership (long directoryId, String oldName, String newName)