congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
UserDao.find
Code IndexAdd Tabnine to your IDE (free)

How to use
find
method
in
org.kaaproject.kaa.server.common.dao.impl.UserDao

Best Java code snippets using org.kaaproject.kaa.server.common.dao.impl.UserDao.find (Showing top 3 results out of 315)

origin: kaaproject/kaa

@Override
public List<UserDto> findAllUsers() {
 return convertDtoList(userDao.find());
}
origin: stackoverflow.com

 @Component
public class AuthenticationSuccessEventListener
  implements ApplicationListener<AuthenticationSuccessEvent>{

 @Autowired
 private UserDao userDao;

 public void onApplicationEvent(AuthenticationSuccessEvent event) {

  String username = event.getAuthentication().getName();

  User user = userDao.find("name", username);
  user.reportLoginOK();
  userDao.commit();
 }
}
origin: stackoverflow.com

 @Component
public class AuthenticationFailureListener
  implements ApplicationListener<AuthenticationFailureBadCredentialsEvent> {

 @Autowired
 private UserDao userDao;

 public void onApplicationEvent(AuthenticationFailureBadCredentialsEvent ev) {

  String username = ev.getAuthentication().getName();

  User user = userDao.find("name", username);
  if (user != null) { // only for existing users
      user.reportLoginFailure();
      userDao.commit();
  }
 }
}
org.kaaproject.kaa.server.common.dao.implUserDaofind

Javadoc

Find user by external uid.

Popular methods of UserDao

  • save
  • findById
  • findByTenantIdAndAuthorities
    Find user by tenant id and authorities.
  • findByTenantIdAndAuthority
    Find user by tenant id and authority.
  • commit
  • findByExternalUid
    Find user by external uid.
  • removeById
  • removeByTenantId
    Remove user by tenant id.

Popular in Java

  • Running tasks concurrently on multiple threads
  • findViewById (Activity)
  • getSupportFragmentManager (FragmentActivity)
  • notifyDataSetChanged (ArrayAdapter)
  • System (java.lang)
    Provides access to system-related information and resources including standard input and output. Ena
  • MalformedURLException (java.net)
    This exception is thrown when a program attempts to create an URL from an incorrect specification.
  • Selector (java.nio.channels)
    A controller for the selection of SelectableChannel objects. Selectable channels can be registered w
  • Path (java.nio.file)
  • SecureRandom (java.security)
    This class generates cryptographically secure pseudo-random numbers. It is best to invoke SecureRand
  • Callable (java.util.concurrent)
    A task that returns a result and may throw an exception. Implementors define a single method with no
  • Top PhpStorm plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now