{
log.debug("Calling UserBD.search()");
log.debug("dsName: [" + dsName + "] " + "dbType: [" + dbType + "] " + "SearchVO: [" + searchVO + "]");
ReportResultsVO userData = new ReportResultsVO();
try
{
UserDAO dao = (UserDAO) DAOFactory.getInstance().getDAO("com.eteam.ems.auth.dao.UserDAO");
userData = dao.searchReportResult(dsName, dbType, searchVO, userId, null);
int i=1;
if(searchVO.getSearchBy().equals(IConstants.SEARCH_USER_BY_NAME))
{
userData.addColumnInfo(i++, IConstants.HEADER_KEY_BLANK_SPACE, IConstants.DEFAULT_DATA_KEY_BLANKSPACE);
userData.addColumnInfo(i++, IConstants.HEADER_KEY_USERID, IConstants.DEFAULT_DATA_KEY_NR);
userData.addColumnInfo(i++, IConstants.HEADER_KEY_GROUP, IConstants.DEFAULT_DATA_KEY_NR);
userData.addColumnInfo(i++, IConstants.HEADER_KEY_FIRSTNAME, IConstants.DEFAULT_DATA_KEY_NR);
userData.addColumnInfo(i++, IConstants.HEADER_KEY_LASTNAME, IConstants.DEFAULT_DATA_KEY_NR);
userData.addColumnInfo(i++, IConstants.HEADER_KEY_EMAIL, IConstants.DEFAULT_DATA_KEY_NR);
}
else if(searchVO.getSearchBy().equals(IConstants.SEARCH_USER_BY_GROUP))
{
userData.addColumnInfo(i++, IConstants.HEADER_KEY_BLANK_SPACE, IConstants.DEFAULT_DATA_KEY_BLANKSPACE);
userData.addColumnInfo(i++, IConstants.HEADER_KEY_GROUP, IConstants.DEFAULT_DATA_KEY_NR);
userData.addColumnInfo(i++, IConstants.HEADER_KEY_USERID, IConstants.DEFAULT_DATA_KEY_NR);
userData.addColumnInfo(i++, IConstants.HEADER_KEY_FIRSTNAME, IConstants.DEFAULT_DATA_KEY_NR);
userData.addColumnInfo(i++, IConstants.HEADER_KEY_LASTNAME, IConstants.DEFAULT_DATA_KEY_NR);
userData.addColumnInfo(i++, IConstants.HEADER_KEY_EMAIL, IConstants.DEFAULT_DATA_KEY_NR);
}
else
{
log.debug("No Search By found");
}