congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
UserNotFoundException.<init>
Code IndexAdd Tabnine to your IDE (free)

How to use
org.apache.archiva.redback.users.UserNotFoundException
constructor

Best Java code snippets using org.apache.archiva.redback.users.UserNotFoundException.<init> (Showing top 3 results out of 315)

origin: org.apache.archiva.redback/redback-users-jdo

public User findUser( String username )
  throws UserNotFoundException, UserManagerException
{
  if ( StringUtils.isEmpty( username ) )
  {
    throw new UserNotFoundException( "User with empty username not found." );
  }
  return (User) getObjectById( username, null );
}
origin: org.apache.archiva.redback/redback-users-memory

public User findUser( String username )
  throws UserNotFoundException
{
  triggerInit();
  User user = null;
  Iterator<User> it = users.values().iterator();
  while ( it.hasNext() )
  {
    User u = it.next();
    if ( u.getUsername().equals( username ) )
    {
      user = u;
    }
  }
  if ( user == null )
  {
    throw new UserNotFoundException( "Unable to find user '" + username + "'" );
  }
  return user;
}
origin: org.apache.archiva.redback/redback-users-jdo

private Object getObjectById( String id, String fetchGroup )
  throws UserNotFoundException, UserManagerException
{
  try
  {
    return RedbackJdoUtils.getObjectById( getPersistenceManager(), JdoUser.class, id, fetchGroup );
  }
  catch ( RedbackObjectNotFoundException e )
  {
    throw new UserNotFoundException( e.getMessage() );
  }
  catch ( RedbackStoreException e )
  {
    throw new UserManagerException( "Unable to get object '" + JdoUser.class.getName() + "', id '" + id +
                      "', fetch-group '" + fetchGroup + "' from jdo store.", e );
  }
}
org.apache.archiva.redback.usersUserNotFoundException<init>

Popular methods of UserNotFoundException

  • getMessage

Popular in Java

  • Updating database using SQL prepared statement
  • putExtra (Intent)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • runOnUiThread (Activity)
  • BorderLayout (java.awt)
    A border layout lays out a container, arranging and resizing its components to fit in five regions:
  • Color (java.awt)
    The Color class is used to encapsulate colors in the default sRGB color space or colors in arbitrary
  • NumberFormat (java.text)
    The abstract base class for all number formats. This class provides the interface for formatting and
  • Deque (java.util)
    A linear collection that supports element insertion and removal at both ends. The name deque is shor
  • Scanner (java.util)
    A parser that parses a text string of primitive types and strings with the help of regular expressio
  • Table (org.hibernate.mapping)
    A relational table
  • Top Vim 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