it.geosolutions.geobatch.ftpserver.ftp
Class FTPUserDAOImpl

java.lang.Object
  extended by it.geosolutions.geobatch.ftpserver.ftp.FTPUserDAOImpl
All Implemented Interfaces:
FtpUserDAO

@Transactional
public class FTPUserDAOImpl
extends java.lang.Object
implements FtpUserDAO

Merge the results from the GBUsersDAO and HibFtpPropsDAO

TODO: todo: make sure commits and rollbacks are really transactionally distributed

Author:
etj

Constructor Summary
FTPUserDAOImpl()
           
 
Method Summary
 void delete(java.lang.Long userId)
           
 boolean existsUser(java.lang.Long id)
           
 boolean existsUser(java.lang.String name)
           
 java.util.List<FtpUser> findAll()
           
 FtpUser findByUserId(java.lang.Long userId)
           
 FtpUser findByUserName(java.lang.String userName)
           
 FtpUser save(FtpUser user)
           
 void setFtpPropsDAO(FtpPropsDAO ftpPropsDAO)
           
 void setUserDAO(GBUserDAO userDAO)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FTPUserDAOImpl

public FTPUserDAOImpl()
Method Detail

existsUser

public boolean existsUser(java.lang.Long id)
                   throws DAOException
Specified by:
existsUser in interface FtpUserDAO
Throws:
DAOException

existsUser

public boolean existsUser(java.lang.String name)
                   throws DAOException
Specified by:
existsUser in interface FtpUserDAO
Throws:
DAOException

findByUserId

public FtpUser findByUserId(java.lang.Long userId)
                     throws DAOException
Specified by:
findByUserId in interface FtpUserDAO
Throws:
DAOException

findByUserName

public FtpUser findByUserName(java.lang.String userName)
                       throws DAOException
Specified by:
findByUserName in interface FtpUserDAO
Throws:
DAOException

findAll

public java.util.List<FtpUser> findAll()
                                throws DAOException
Specified by:
findAll in interface FtpUserDAO
Throws:
DAOException

save

public FtpUser save(FtpUser user)
             throws DAOException
Specified by:
save in interface FtpUserDAO
Throws:
DAOException

delete

public void delete(java.lang.Long userId)
            throws DAOException
Specified by:
delete in interface FtpUserDAO
Throws:
DAOException

setFtpPropsDAO

public void setFtpPropsDAO(FtpPropsDAO ftpPropsDAO)

setUserDAO

public void setUserDAO(GBUserDAO userDAO)


Copyright © 2008-2012 GeoSolutions. All Rights Reserved.