return systemUserVO;
}
public SystemUser getSystemUser(Database db, String userName, String password) throws SystemException, Exception
{
SystemUser systemUser = null;
OQLQuery oql = db.getOQLQuery( "SELECT u FROM org.infoglue.cms.entities.management.impl.simple.SystemUserImpl u WHERE u.userName = $1 AND u.password = $2");
oql.bind(userName);
oql.bind(password);
QueryResults results = oql.execute();
this.logger.info("Fetching entity in read/write mode" + userName);
if (results.hasMore())
{
systemUser = (SystemUser)results.next();
logger.info("found one:" + systemUser.getFirstName());
}
results.close();
oql.close();