Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
Copyright (c) 2011 Michael Ruflin, Andr´┐Ż Locher, Claudia von Bastian. This file is part of Tatool. Tatool is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. Tatool is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with Tatool. If not, see <http://www.gnu.org/licenses/>. /
 
 package ch.tatool.app.data;
 
 import java.io.File;
 import java.util.Map;
 
 
Represents a user account.

Author(s):
Michael Ruflin
 
 public class UserAccountImpl implements UserAccount {

    
Id of the account - each account resides in an individual folder, we therefore only have one account entry per database, with an id generated randomly.
 
     private Long id;
     
     private String name;
     private boolean passwordProtected;
     private String password;
     private File folder;
     private BeanFactory beanFactory;
     private Map<StringStringproperties;
     private String version;
     
     public String getVersion() {
 		return ;
 	}
 
 	public void setVersion(String version) {
 		this. = version;
 	}
 
 	public UserAccountImpl() {
          = new HashMap<StringString>();
     }
     
     public String getName() {
         return ;
     }
     
     public void setName(String name) {
         this. = name;
     }
     
     public Map<StringStringgetProperties() {
         return ;
     }
 
     public void setProperties(Map<StringStringproperties) {
         this. = properties;
     }
 
     public boolean isPasswordProtected() {
         return ;
     }
 
     public void setPasswordProtected(boolean passwordProtected) {
         this. = passwordProtected;
     }
 
     public File getFolder() {
         return ;
     }
 
     public void setFolder(File folder) {
         this. = folder;
     }
    
    public Long getId() {
        return ;
    }
    public void setId(Long id) {
        this. = id;
    }
    public BeanFactory getBeanFactory() {
        return ;
    }
    public void setBeanFactory(BeanFactory beanFactory) {
        this. = beanFactory;
    }
    public UserAccountDAO getUserAccountDAO() {
        return (UserAccountDAO.getBean("userAccountDAO");
    }
    public ModuleDAO getModuleDAO() {
        return (ModuleDAO.getBean("moduleDAO");
    }
    
    	return (ModuleSessionDAO.getBean("moduleSessionDAO");
    }
    
    public TrialDAO getTrialDAO() {
    	return (TrialDAO.getBean("trialDAO");
    }
    
    public String getPassword() {
        return ;
    }
    public void setPassword(String password) {
        this. = password;
    }
        return ;
    }
    public void setTransactionTemplate(TransactionTemplate transactionTemplate) {
        this. = transactionTemplate;
    }



    
User account info object.
    public static class InfoImpl implements UserAccount.Info {
        
        private Long id;
        private String name;
        private boolean passwordProtected;
        private File folder;
        private String version;
    
        public String getName() {
            return ;
        }
    
        public boolean isPasswordProtected() {
            return ;
        }
        
        public void setName(String name) {
            this. = name;
        }
    
        public void setPasswordProtected(boolean passwordProtected) {
            this. = passwordProtected;
        }
    
        public File getFolder() {
            return ;
        }
    
        public void setFolder(File folder) {
            this. = folder;
        }
        
        public String toString() {
            return getName();
        }
        public Long getId() {
            return ;
        }
        public void setId(Long id) {
            this. = id;
        }
        
        public String getVersion() {
        	return ;
        }
        
        public void setVersion(String version) {
        	this. = version;
        }
        
    }
New to GrepCode? Check out our FAQ X