EntityService

public interface EntityService

This interface provides methods related with executing actions on an entity.

Methods

abandonChanges

void abandonChanges(Long entityId)

addDisplayedFields

void addDisplayedFields(EntityDto entityDto, Map<String, Long> positions)

addFields

void addFields(EntityDto entity, Collection<FieldDto> fields)

addFilterableFields

void addFilterableFields(EntityDto entityDto, Collection<String> fieldNames)

addLookups

void addLookups(Long entityId, Collection<LookupDto> lookups)

commitChanges

void commitChanges(Long entityId)

commitChanges

void commitChanges(Long entityId, String changesOwner)

createEntity

EntityDto createEntity(EntityDto entityDto)

deleteEntity

void deleteEntity(Long entityId)

findEntityFieldByName

FieldDto findEntityFieldByName(Long entityId, String name)

findFieldByName

FieldDto findFieldByName(Long entityId, String name)

getAdvancedSettings

AdvancedSettingsDto getAdvancedSettings(Long entityId)

getAdvancedSettings

AdvancedSettingsDto getAdvancedSettings(Long entityId, boolean committed)

getCurrentSchemaVersion

Long getCurrentSchemaVersion(String entityClassName)

getDisplayFields

List<FieldDto> getDisplayFields(Long entityId)

getEntitiesWithLookups

List<EntityDto> getEntitiesWithLookups()

getEntity

EntityDto getEntity(Long entityId)

getEntityByClassName

EntityDto getEntityByClassName(String className)

getEntityDraft

EntityDraft getEntityDraft(Long entityId)

getEntityDraft

EntityDraft getEntityDraft(Long entityId, String username)

getEntityFields

List<FieldDto> getEntityFields(Long entityId)

getEntityForEdit

EntityDto getEntityForEdit(Long entityId)

getEntityLookups

List<LookupDto> getEntityLookups(Long entityId)

getFields

List<FieldDto> getFields(Long entityId)

getLookupByName

LookupDto getLookupByName(Long entityId, String lookupName)

listEntities

List<EntityDto> listEntities()

listEntities

List<EntityDto> listEntities(boolean withSecurityCheck)

listWorkInProgress

List<EntityDto> listWorkInProgress()

saveDraftEntityChanges

DraftResult saveDraftEntityChanges(Long entityId, DraftData draftData, String username)

saveDraftEntityChanges

DraftResult saveDraftEntityChanges(Long entityId, DraftData draftData)

updateComboboxValues

void updateComboboxValues(Long entityId, Map<String, Collection> fieldValuesToUpdate)

updateDraft

EntityDto updateDraft(Long entityId)