.. java:import:: org.motechproject.mds.domain EntityDraft .. java:import:: org.motechproject.mds.dto AdvancedSettingsDto .. java:import:: org.motechproject.mds.dto DraftData .. java:import:: org.motechproject.mds.dto DraftResult .. java:import:: org.motechproject.mds.dto EntityDto .. java:import:: org.motechproject.mds.dto FieldDto .. java:import:: org.motechproject.mds.dto LookupDto .. java:import:: java.io IOException .. java:import:: java.util Collection .. java:import:: java.util List .. java:import:: java.util Map EntityService ============= .. java:package:: org.motechproject.mds.service :noindex: .. java:type:: public interface EntityService This interface provides methods related with executing actions on an entity. Methods ------- abandonChanges ^^^^^^^^^^^^^^ .. java:method:: void abandonChanges(Long entityId) :outertype: EntityService addDisplayedFields ^^^^^^^^^^^^^^^^^^ .. java:method:: void addDisplayedFields(EntityDto entityDto, Map positions) :outertype: EntityService addFields ^^^^^^^^^ .. java:method:: void addFields(EntityDto entity, Collection fields) :outertype: EntityService addFilterableFields ^^^^^^^^^^^^^^^^^^^ .. java:method:: void addFilterableFields(EntityDto entityDto, Collection fieldNames) :outertype: EntityService addLookups ^^^^^^^^^^ .. java:method:: void addLookups(Long entityId, Collection lookups) :outertype: EntityService commitChanges ^^^^^^^^^^^^^ .. java:method:: void commitChanges(Long entityId) :outertype: EntityService commitChanges ^^^^^^^^^^^^^ .. java:method:: void commitChanges(Long entityId, String changesOwner) :outertype: EntityService createEntity ^^^^^^^^^^^^ .. java:method:: EntityDto createEntity(EntityDto entityDto) throws IOException :outertype: EntityService deleteEntity ^^^^^^^^^^^^ .. java:method:: void deleteEntity(Long entityId) :outertype: EntityService findEntityFieldByName ^^^^^^^^^^^^^^^^^^^^^ .. java:method:: FieldDto findEntityFieldByName(Long entityId, String name) :outertype: EntityService findFieldByName ^^^^^^^^^^^^^^^ .. java:method:: FieldDto findFieldByName(Long entityId, String name) :outertype: EntityService getAdvancedSettings ^^^^^^^^^^^^^^^^^^^ .. java:method:: AdvancedSettingsDto getAdvancedSettings(Long entityId) :outertype: EntityService getAdvancedSettings ^^^^^^^^^^^^^^^^^^^ .. java:method:: AdvancedSettingsDto getAdvancedSettings(Long entityId, boolean committed) :outertype: EntityService getCurrentSchemaVersion ^^^^^^^^^^^^^^^^^^^^^^^ .. java:method:: Long getCurrentSchemaVersion(String entityClassName) :outertype: EntityService getDisplayFields ^^^^^^^^^^^^^^^^ .. java:method:: List getDisplayFields(Long entityId) :outertype: EntityService getEntitiesWithLookups ^^^^^^^^^^^^^^^^^^^^^^ .. java:method:: List getEntitiesWithLookups() :outertype: EntityService getEntity ^^^^^^^^^ .. java:method:: EntityDto getEntity(Long entityId) :outertype: EntityService getEntityByClassName ^^^^^^^^^^^^^^^^^^^^ .. java:method:: EntityDto getEntityByClassName(String className) :outertype: EntityService getEntityDraft ^^^^^^^^^^^^^^ .. java:method:: EntityDraft getEntityDraft(Long entityId) :outertype: EntityService getEntityDraft ^^^^^^^^^^^^^^ .. java:method:: EntityDraft getEntityDraft(Long entityId, String username) :outertype: EntityService getEntityFields ^^^^^^^^^^^^^^^ .. java:method:: List getEntityFields(Long entityId) :outertype: EntityService getEntityForEdit ^^^^^^^^^^^^^^^^ .. java:method:: EntityDto getEntityForEdit(Long entityId) :outertype: EntityService getEntityLookups ^^^^^^^^^^^^^^^^ .. java:method:: List getEntityLookups(Long entityId) :outertype: EntityService getFields ^^^^^^^^^ .. java:method:: List getFields(Long entityId) :outertype: EntityService getLookupByName ^^^^^^^^^^^^^^^ .. java:method:: LookupDto getLookupByName(Long entityId, String lookupName) :outertype: EntityService listEntities ^^^^^^^^^^^^ .. java:method:: List listEntities() :outertype: EntityService listEntities ^^^^^^^^^^^^ .. java:method:: List listEntities(boolean withSecurityCheck) :outertype: EntityService listWorkInProgress ^^^^^^^^^^^^^^^^^^ .. java:method:: List listWorkInProgress() :outertype: EntityService saveDraftEntityChanges ^^^^^^^^^^^^^^^^^^^^^^ .. java:method:: DraftResult saveDraftEntityChanges(Long entityId, DraftData draftData, String username) :outertype: EntityService saveDraftEntityChanges ^^^^^^^^^^^^^^^^^^^^^^ .. java:method:: DraftResult saveDraftEntityChanges(Long entityId, DraftData draftData) :outertype: EntityService updateComboboxValues ^^^^^^^^^^^^^^^^^^^^ .. java:method:: void updateComboboxValues(Long entityId, Map fieldValuesToUpdate) :outertype: EntityService updateDraft ^^^^^^^^^^^ .. java:method:: EntityDto updateDraft(Long entityId) :outertype: EntityService