return getAllProjects(company, user, null);
}
public List<BOProject> getAllProjects(BOCompany company, BOUser user, ProjectStatus projectStatus) {
//initCustomFields();
SessionFactory sessionFactory = null;
Session session = null;
try {
System.out.println("ProjectManagerImpl.getAllProjects() started " + user.getLoginName());
System.out.println("ProjectManagerImpl.getAllProjects() " + user.getUserType());
sessionFactory = HibernateSessionFactory.getInstance();
session = sessionFactory.openSession();
Criteria criteria = session.createCriteria(BOProject.class);
// List<BOProject> toProjectList = new ArrayList<BOProject>();
if (projectStatus != null) {