// fill it
// first with the project info, maybe this can be done more efficiently
// because same conversions are done for every Object again
public List<DccdSB> getSearchBeans()
	{
		List<DccdSB> searchBeans = new ArrayList<DccdSB>();
		if (!hasTridas())
			return searchBeans; // just an empty list
		// get all the ObjectEntity's in the tree
		List<Entity> entities = getSubTreeAsList();
		for (Entity entity : entities)
		{
			// only objects, exclude derived series
			if (entity instanceof ObjectEntity)
			{
				// create a bean
				DccdSB searchBean = new DccdObjectSB();
				// fill it
				// first with the project info, maybe this can be done more efficiently
				// because same conversions are done for every Object again
				searchBean = fillSearchBean(searchBean);
				// then the object info
				searchBean = entity.fillSearchBean(searchBean);
				// all the ObjectEntities subentities must fill this bean as well
				// but not Objects?
				List<Entity> subentities = entity.getSubTreeAsList();
				for (Entity subentity : subentities)
				{
					searchBean = subentity.fillSearchBean(searchBean);
				}
				// Note id should be the (system) identifier in the repository (sid)
				// just hoping that is is set correctly when read from the repository!!!
				searchBean.setDatastreamId(entity.getId());// should be the repository id for this peace of info
				// add to the list
				searchBeans.add(searchBean);
			}
		}
		return searchBeans;
	}
// create a bean
DccdSB searchBean = new DccdObjectSB();
// fill it
// first with the project info, maybe this can be done more efficiently
// because same conversions are done for every Object again
searchBean = fillSearchBean(searchBean);
// then the object info
return searchBeans; // just an empty list
// get all the ObjectEntity's in the tree
List<Entity> entities = getSubTreeAsList();
for (Entity entity : entities)
{
// only objects, exclude derived series
if (entity instanceof ObjectEntity)
{
// create a bean
DccdSB searchBean = new DccdObjectSB();
// fill it
// first with the project info, maybe this can be done more efficiently
// because same conversions are done for every Object again
searchBean = fillSearchBean(searchBean);
// then the object info
searchBean = entity.fillSearchBean(searchBean);
// all the ObjectEntities subentities must fill this bean as well
// but not Objects?
List<Entity> subentities = entity.getSubTreeAsList();
for (Entity subentity : subentities)
{
searchBean = subentity.fillSearchBean(searchBean);
}
public List<DccdSB> getSearchBeans()
{
List<DccdSB> searchBeans = new ArrayList<DccdSB>();
if (!hasTridas())
return searchBeans; // just an empty list
// get all the ObjectEntity's in the tree
List<Entity> entities = getSubTreeAsList();
for (Entity entity : entities)
{
// only objects, exclude derived series
if (entity instanceof ObjectEntity)
{
// create a bean
DccdSB searchBean = new DccdObjectSB();
// fill it
// first with the project info, maybe this can be done more efficiently
// because same conversions are done for every Object again
searchBean = fillSearchBean(searchBean);
// then the object info
searchBean = entity.fillSearchBean(searchBean);
// all the ObjectEntities subentities must fill this bean as well
// but not Objects?
List<Entity> subentities = entity.getSubTreeAsList();
for (Entity subentity : subentities)
{
searchBean = subentity.fillSearchBean(searchBean);
}
// Note id should be the (system) identifier in the repository (sid)
// just hoping that is is set correctly when read from the repository!!!
searchBean.setDatastreamId(entity.getId());// should be the repository id for this peace of info
// add to the list
searchBeans.add(searchBean);
}
}
return searchBeans;
}