net.stepniak.api.auth.repository.memory
Class InMemoryUserRepository

java.lang.Object
  extended by net.stepniak.api.auth.repository.memory.InMemoryUserRepository
All Implemented Interfaces:
UserRepository

public final class InMemoryUserRepository
extends Object
implements UserRepository


Constructor Summary
InMemoryUserRepository()
           
 
Method Summary
 long count()
           
 void delete(Iterable<? extends UserEntity> entities)
           
 void delete(Long id)
           
 void delete(UserEntity entity)
           
 void deleteAll()
           
 boolean exists(Long id)
           
 Iterable<UserEntity> findAll()
           
 Iterable<UserEntity> findAll(Iterable<Long> strings)
           
 UserEntity findByEmailAndUserNameAndAccountType(String email, String userName, char accountType)
           
 UserEntity findOne(Long id)
           
<Entity extends UserEntity>
Entity
save(Entity entity)
           
<Entity extends UserEntity>
Iterable<Entity>
save(Iterable<Entity> entities)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InMemoryUserRepository

public InMemoryUserRepository()
Method Detail

save

public <Entity extends UserEntity> Entity save(Entity entity)

save

public <Entity extends UserEntity> Iterable<Entity> save(Iterable<Entity> entities)

findOne

public UserEntity findOne(Long id)

exists

public boolean exists(Long id)

findAll

public Iterable<UserEntity> findAll()

findAll

public Iterable<UserEntity> findAll(Iterable<Long> strings)

count

public long count()

delete

public void delete(Long id)

delete

public void delete(UserEntity entity)

delete

public void delete(Iterable<? extends UserEntity> entities)

deleteAll

public void deleteAll()

findByEmailAndUserNameAndAccountType

public UserEntity findByEmailAndUserNameAndAccountType(@Param(value="email")
                                                       String email,
                                                       @Param(value="userName")
                                                       String userName,
                                                       @Param(value="accountType")
                                                       char accountType)
Specified by:
findByEmailAndUserNameAndAccountType in interface UserRepository


Copyright © 2013. All Rights Reserved.