{
log.debug("Calling GroupBD.search()");
log.debug("dsName: [" + dsName + "] " + "dbType: [" + dbType + "] " + "SearchVO: [" + searchVO + "]");
ReportResultsVO groupData = new ReportResultsVO();
GroupDAO dao = (GroupDAO) DAOFactory.getInstance().getDAO("com.eteam.ems.auth.dao.GroupDAO");
groupData = dao.searchReportResult(dsName, dbType, searchVO, userId, null);
int i=1;
if(searchVO.getSearchBy().equals(IConstants.SEARCH_GROUP_BY_NAME))
{
groupData.addColumnInfo(i++, IConstants.HEADER_KEY_BLANK_SPACE, IConstants.DEFAULT_DATA_KEY_BLANKSPACE);
groupData.addColumnInfo(i++, IConstants.HEADER_KEY_GROUP, IConstants.DEFAULT_DATA_KEY_NR);
groupData.addColumnInfo(i++, IConstants.HEADER_KEY_ROLE, IConstants.DEFAULT_DATA_KEY_NR);
}
else if(searchVO.getSearchBy().equals(IConstants.SEARCH_GROUP_BY_ROLE))
{
groupData.addColumnInfo(i++, IConstants.HEADER_KEY_BLANK_SPACE, IConstants.DEFAULT_DATA_KEY_BLANKSPACE);
groupData.addColumnInfo(i++, IConstants.HEADER_KEY_ROLE, IConstants.DEFAULT_DATA_KEY_NR);
groupData.addColumnInfo(i++, IConstants.HEADER_KEY_GROUP, IConstants.DEFAULT_DATA_KEY_NR);
groupData.addColumnInfo(i++, IConstants.HEADER_KEY_BLANK_SPACE, IConstants.HEADER_KEY_BLANK_SPACE);
}
else
{
log.debug("No Search By found");
}