public Collection getAuthorizedPublisherIds(Admin admin){ HashSet returnval = new HashSet(); Collection result = null; boolean superadmin = false;  try { superadmin = getAuthorizationSession(admin).isAuthorized(admin,AvailableAccessRules.ROLE_SUPERADMINISTRATOR); result = this.publisherhome.findAll(); Iterator i = result.iterator(); while(i.hasNext()){ PublisherDataLocal next = (PublisherDataLocal) i.next(); BasePublisher publisher = next.getPublisher(); returnval.add(next.getId()); } } catch (AuthorizationDeniedException e1) {} catch (FinderException fe){}   if(!superadmin){ Iterator authorizedcas = this.getAuthorizationSession(admin).getAuthorizedCAIds(admin).iterator(); while(authorizedcas.hasNext()){ returnval.addAll(this.getCAAdminSession(admin).getCAInfo(admin,((Integer) authorizedcas.next()).intValue()).getCRLPublishers());
public Collection getAuthorizedPublisherIds(Admin admin) { HashSet returnval = new HashSet(); Collection result = null; boolean superadmin = false;  try { superadmin = getAuthorizationSession(admin).isAuthorized(admin, AvailableAccessRules.ROLE_SUPERADMINISTRATOR); result = this.publisherhome.findAll(); Iterator i = result.iterator(); while (i.hasNext()) { PublisherDataLocal next = (PublisherDataLocal) i.next(); BasePublisher publisher = next.getPublisher(); returnval.add(next.getId()); } } catch (AuthorizationDeniedException e1) { } catch (FinderException fe) {
	public Collection getAuthorizedPublisherIds(Admin admin){	  HashSet returnval = new HashSet();	  Collection result = null;      boolean superadmin = false;      // If superadmin return all available publishers	  try {	  	superadmin = getAuthorizationSession(admin).isAuthorized(admin,AvailableAccessRules.ROLE_SUPERADMINISTRATOR);		result = this.publisherhome.findAll();		Iterator i = result.iterator();		while(i.hasNext()){		  PublisherDataLocal next = (PublisherDataLocal) i.next();		  BasePublisher publisher = next.getPublisher();		  returnval.add(next.getId());		}	  } catch (AuthorizationDeniedException e1) {}	  	catch (FinderException fe){}             // If ca admin return	  if(!superadmin){        Iterator authorizedcas = this.getAuthorizationSession(admin).getAuthorizedCAIds(admin).iterator();        while(authorizedcas.hasNext()){          returnval.addAll(this.getCAAdminSession(admin).getCAInfo(admin,((Integer) authorizedcas.next()).intValue()).getCRLPublishers());        }	  }	  return returnval;	} // getAuthorizedPublisherIds