Package org.salamanca.domain

Examples of org.salamanca.domain.User


     */
    public void execute() {
        PersistenceManager pm = BrokerServer.instance().getPMF().
                               getPersistenceManager();
       pm.currentTransaction().begin();
     User userPM=  (User)pm.getObjectById(javax.jdo.JDOHelper.getObjectId(user),true);
       pm.deletePersistent(userPM);

       pm.currentTransaction().commit();

    }
View Full Code Here


     */
    public void execute() {
        PersistenceManager pm = BrokerServer.instance().getPMF().
                                getPersistenceManager();
        pm.currentTransaction().begin();
        User userPM = (User) pm.getObjectById(javax.jdo.JDOHelper.getObjectId(
                user),true);
        userPM.setPassword(password);

        pm.currentTransaction().commit();

    }
View Full Code Here

     */
    public void execute() {
        PersistenceManager pm = BrokerServer.instance().getPMF().
                                getPersistenceManager();
        pm.currentTransaction().begin();
        User userPM=  (User)pm.getObjectById(javax.jdo.JDOHelper.getObjectId(user),true);
        userPM.setRole(role);
        pm.currentTransaction().commit();

    }
View Full Code Here

    private void logIn() {
        Vector v = org.salamanca.broker.BrokerServer.instance().query(User.class,
                "name==\"" + this.jTextFieldUsuario.getText() + "\"");

        if (v.size() > 0) {
            User usuario = (User) v.firstElement();
            String password = String.valueOf(this.jPasswordFieldPassword.
                                             getPassword());
            if (usuario.getPassword().equals(password)) {

                if (this.changePassword) {
                    changePassword(usuario);
                } else {
                    this.mainframe.login(usuario);
View Full Code Here

TOP

Related Classes of org.salamanca.domain.User

Copyright © 2018 www.massapicom. 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.