.. java:import:: org.motechproject.commons.date.util DateUtil .. java:import:: org.motechproject.mds.domain Entity .. java:import:: org.motechproject.mds.domain EntityDraft .. java:import:: org.motechproject.mds.domain Field .. java:import:: org.motechproject.mds.domain Lookup .. java:import:: org.springframework.stereotype Repository .. java:import:: java.util HashSet .. java:import:: java.util List AllEntityDrafts =============== .. java:package:: org.motechproject.mds.repository :noindex: .. java:type:: @Repository public class AllEntityDrafts extends MotechDataRepository This a repository for persisting entity drafts. It provides methods which created drafts, by cloning the giving entity. Constructors ------------ AllEntityDrafts ^^^^^^^^^^^^^^^ .. java:constructor:: public AllEntityDrafts() :outertype: AllEntityDrafts Methods ------- create ^^^^^^ .. java:method:: public EntityDraft create(Entity entity, String username) :outertype: AllEntityDrafts deleteAll ^^^^^^^^^ .. java:method:: public void deleteAll(Entity entity) :outertype: AllEntityDrafts retrieve ^^^^^^^^ .. java:method:: public EntityDraft retrieve(Entity entity, String username) :outertype: AllEntityDrafts retrieveAll ^^^^^^^^^^^ .. java:method:: public List retrieveAll(String username) :outertype: AllEntityDrafts retrieveAll ^^^^^^^^^^^ .. java:method:: public List retrieveAll(Entity entity) :outertype: AllEntityDrafts setProperties ^^^^^^^^^^^^^ .. java:method:: public void setProperties(EntityDraft draft, Entity entity) :outertype: AllEntityDrafts setProperties ^^^^^^^^^^^^^ .. java:method:: public void setProperties(EntityDraft draft, Entity entity, String username) :outertype: AllEntityDrafts update ^^^^^^ .. java:method:: @Override public EntityDraft update(EntityDraft draft) :outertype: AllEntityDrafts