import org.apache.log4j.Logger;
import org.splat.dal.bo.kernel.User;
-import org.splat.dal.dao.som.Database;
import org.splat.kernel.ObjectProperties;
import org.splat.kernel.InvalidPropertyException;
import org.splat.kernel.MissedPropertyException;
// --------------------------------------------------
return contex.remove(oldoc);
}
-
-/**
- * Refreshes the internal data potentially out-of-date.
- * This function needs to be called when Publication objects are added to this Project Element before being saved. The reason is,
- * as saving a persistent object changes its hashcode, hashed data need to be rebuilt after saving for making functions based
- * on this hashcode such as remove(), working.
- */
- public void refresh () {
-// -------------------------
- Publication[] curdoc = docums.toArray(new Publication[docums.size()]);
-
- folders = null; // Just in case
- docums.clear();
- for (int i=0; i<curdoc.length; i++) docums.add(curdoc[i]);
-// No need to rebuild the list of SimulationContext as it does not use hashcodes
- Database.getSession().update(this);
- }
+ /**
+ * Get the docums.
+ * @return the docums
+ */
+ public Set<Publication> getDocums() {
+ return docums;
+ }
}
\ No newline at end of file