Examples of UserImpl


Examples of eu.planets_project.ifr.core.security.impl.model.UserImpl

  @Resource
  EJBContext ejbcontext;

  public UserSignupBean() {
    this.user = new UserImpl("");
    this.user.setAddress(new AddressImpl());
    this.user.setAccountEnabled(false);
    password = "";
    confirmPassword = "";
  }
View Full Code Here

Examples of fr.univ.jfc.java.grp7.serveur.UserImpl

      conn = Connect.getInstance(field_url.getText(),field_user.getText(),field_mdp.getText());
     
      // Cr�ation du registre
      reg = java.rmi.registry.LocateRegistry.createRegistry(1099);
      // Cr�ation de l'objet Serveur.
      UserImpl user = new UserImpl(0, "",conn);
      // Enregistrement de l'objet dans le registre
      Naming.rebind("rmi://localhost:1099/User0", user);

      System.out.println("Serveur lanc�");
    } catch (Exception e) {
View Full Code Here

Examples of net.sf.archimede.model.user.UserImpl

            groupCollection.setParent(rootCollection);
           
            if (groupCollection.getReadUsers() == null) {
              groupCollection.setReadUsers(new ArrayList());
            }
            groupCollection.getReadUsers().add(new UserImpl("anonymous", ""));
           
            if (rootCollection.getCollections() != null) {
                rootCollection.getCollections().add(groupCollection);
            } else {
                List collections = new ArrayList();
                collections.add(groupCollection);
                rootCollection.setCollections(collections);
            }
           
            collectionDao.save(groupCollection);
        }
           
        Collection seriesCollection = getSeriesInRepository(groupCollection);
        if (seriesCollection == null) {
            CollectionDao collectionDao = CollectionDao.createInstance();
            seriesCollection = new CollectionImpl();
            seriesCollection.setName(this.oldFolder.getSeriesName());
            seriesCollection.setParent(groupCollection);
           
            if (seriesCollection.getReadUsers() == null) {
              seriesCollection.setReadUsers(new ArrayList());
            }
            seriesCollection.getReadUsers().add(new UserImpl("anonymous", ""));
           
            if (groupCollection.getCollections() != null) {
                groupCollection.getCollections().add(seriesCollection);
            } else {
                List collections = new ArrayList();
                collections.add(seriesCollection);
                groupCollection.setCollections(collections);
            }
            collectionDao.save(seriesCollection);
           
        }
        Folder folder = getFolderInRepository(seriesCollection);
        if (folder == null) {
            folder = new FolderImpl();
            folder.setName(this.oldFolder.getOiDb());
            folder.setDatestamp(new GregorianCalendar());
            folder.setParentCollection(seriesCollection);
           
            if (folder.getReadUsers() == null) {
              folder.setReadUsers(new ArrayList());
            }
            folder.getReadUsers().add(new UserImpl("anonymous", ""));
           
            if (seriesCollection.getFolders() != null) {
                seriesCollection.getFolders().add(folder);
            } else {
                List folders = new ArrayList();
View Full Code Here

Examples of net.sf.jportlet.impl.UserImpl

        String template = request.getParameter( KEY_TEMPLATE );
        if ( template == null )
        {
            if ( request.getAttribute( "user" ) == null )
            {
                UserImpl user = new UserImpl( "", "", "", "", "", request.getLocale(  ) );
                request.setAttribute( "user", user );
            }

            include( "edit.vm", request, response );
        }
View Full Code Here

Examples of net.sf.jportlet.impl.UserImpl

        PortletContext ctx = event.getPortlet(  ).getPortletConfig(  ).getPortletContext(  );
        UserService    usr = ( UserService ) ctx.getService( UserService.NAME );
        try
        {
            /* Get the user */
            UserImpl u = ( UserImpl ) usr.getUserByEmail( email );

            /* Generate the email message */
            String subject = "Password Requested";
            StringBuffer body = new StringBuffer();
            body.append( u.getFirstname(  ) + " " + u.getLastname(  ) + "\n" );
            body.append( "Here is your requested password\n" );
            body.append( " Login: " + u.getId(  ) + "\n" );
            body.append( " Password: " + u.getPassword(  ) + "\n\n" );

            /* Send the message */
            MailService mailer = ( MailService ) ctx.getService( MailService.NAME );
            mailer.send( null, new Address[] { new InternetAddress( u.getEmail(  ) ) }, subject, body.toString(), MailService.MIME_TEXT );
        }
        catch ( UserNotFoundException u )
        {
            ctx.getLog(  ).warn( email + " not found", u );
        }
View Full Code Here

Examples of net.sf.jportlet.impl.UserImpl

        {
            throw new PortletException( "Unexpected error", e );
        }

        /* Handle Errors */
        UserImpl user = new UserImpl( userId, password, email, firstname, lastname, locale );
        request.setAttribute( "user", user );
        if ( register )
        {
            doRegister( event, request );
        }
View Full Code Here

Examples of net.sf.jportlet.impl.UserImpl

    {
        boolean           debug = __log.isDebugEnabled(  );
        Connection        cnn = null;
        PreparedStatement stmt = null;
        ResultSet         rs = null;
        UserImpl          usr;
       
        try
        {
            if ( debug )
            {
                __log.debug( "executing SQL: " + _getUserSQL );
            }

            cnn  = getConnection();
            stmt = cnn.prepareStatement( _getUserSQL );
            stmt.setString( 1, userId );

            rs = stmt.executeQuery(  );

            if ( rs.next(  ) )
            {
                usr = new UserImpl(  );
                usr.setId( rs.getString( 1 ) );
                usr.setPassword( rs.getString( 2 ) );
                usr.setEmail( rs.getString( 3 ) );
                usr.setFirstname( rs.getString( 4 ) );
                usr.setLastname( rs.getString( 5 ) );
                usr.setLocale( LocaleHelper.getLocale( rs.getString( 6 ), null ) );

                return usr;
            }
            else
            {
View Full Code Here

Examples of net.sf.jportlet.impl.UserImpl

            cnn.setAutoCommit( true );
            rs = stmt.executeQuery(  );

            /* Sync the request */
            UserImpl user = new UserImpl( userId, password, email, firstname, lastname, LocaleHelper.getLocale( locale, null ) );
            ( ( PortletRequestImpl ) request ).userChanged( user );
        }
        catch ( SQLException e )
        {
            throw new UserException( e );
View Full Code Here

Examples of net.sf.jportlet.impl.UserImpl

    {
        boolean           debug = __log.isDebugEnabled(  );
        Connection        cnn = null;
        PreparedStatement stmt = null;
        ResultSet         rs = null;
        UserImpl          usr;
       
        try
        {
            if ( debug )
            {
                __log.debug( "executing SQL: " + _getUserByEmailSQL );
            }

            cnn  = getConnection();
            stmt = cnn.prepareStatement( _getUserByEmailSQL );
            stmt.setString( 1, email );

            rs = stmt.executeQuery(  );

            if ( rs.next(  ) )
            {
                usr = new UserImpl(  );
                usr.setId( rs.getString( 1 ) );
                usr.setPassword( rs.getString( 2 ) );
                usr.setEmail( rs.getString( 3 ) );
                usr.setFirstname( rs.getString( 4 ) );
                usr.setLastname( rs.getString( 5 ) );
                usr.setLocale( LocaleHelper.getLocale( rs.getString( 6 ), null ) );

                return usr;
            }
            else
            {
View Full Code Here

Examples of net.sf.pmr.core.domain.user.UserImpl

       
        calendar.set(Calendar.YEAR, 2005);
        calendar.set(Calendar.MONTH, 10);
        calendar.set(Calendar.DAY_OF_MONTH, 03);
       
        User user = new UserImpl();
        user.setPersistanceId(1);
        user.setPersistanceVersion(2);

        chargeToFind.setPersistanceId(1);
        chargeToFind.setDay(calendar.getTime());
        chargeToFind.setTimeUsedToday(1);
        chargeToFind.setDaysNeededToFinish(2);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.