* @return
* @throws HibernateException
*/
public static List listCatalogs(SiteBean site, SessionUserObject user, boolean maintain) {
List catalogs = new ArrayList();
catalogs.addAll(site.getCatalogs());
List perms = null;
if(user != null){
Query q = getSession().getNamedQuery("USER_PERMS");
q.setInteger(0, user.getId());
perms = q.list();