public IItemCollection getRespPermissions(int idpcd, String uid) throws ISPACException { CollectionDAO coldao = PermissionsDAO.getPermissions(mDbCnt, idpcd, uid); List list = new ArrayList(); if (coldao.next()) { IResponsible resp = getResp(uid); list.add(resp); } return new ListCollection(list); }
public IItemCollection getRespPermissions(int idpcd, int codePermission) throws ISPACException { CollectionDAO coldao = PermissionsDAO.getPermissions(mDbCnt, idpcd, codePermission); List list = new ArrayList(); while (coldao.next()) { ObjectDAO dao = coldao.value(); String uid = dao.getString("UID_USR"); IResponsible resp = getResp(uid); list.add(resp); } return new ListCollection(list); }
public IItemCollection getPermissions(int idpcd, String uid) throws ISPACException { return PermissionsDAO.getPermissions(mDbCnt, idpcd, uid).disconnect(); }