public interface DocumentDefinitionService
document definitions| Modifier and Type | Method and Description |
|---|---|
void |
checkForMandatoryConstraintViolations(DDC definition,
Map<String,com.lexmark.saperion.PropertyType> properties,
boolean isCreation)
For a given definition this method checks a given map of properties for mandatory constraint violations.
|
void |
checkForSystemFields(DDC definition,
Map<String,com.lexmark.saperion.PropertyType> indexData)
For a given definition and a map of properties this method checks whether it contains system fields.
|
QueryExpression<Boolean> |
createUniqueConstraintViolationCheck(DDC definition,
String id,
Map<String,com.lexmark.saperion.PropertyType> properties)
For a given map of fields this method checks a definition and a database row id, this method creates a query
expression that filters a corresponding datbase table so that the result contains exactly the existing entries
that would collide with the given database row.
|
QueryExpression<Boolean> |
createUniqueConstraintViolationCheck(SaFieldDescription fieldDescription,
com.lexmark.saperion.PropertyType newValue,
boolean ignoreCounters)
For a given
SaFieldDescription and a given value this method creates a QueryExpression that
checks whether the given value would violate a unique constraint. |
List<Map<String,com.lexmark.saperion.PropertyType>> |
filterSystemFields(DDC definition,
List<Map<String,com.lexmark.saperion.PropertyType>> resultMaps)
This method the system fields from a given list of result map.
|
Map<String,com.lexmark.saperion.PropertyType> |
filterSystemFields(DDC definition,
Map<String,com.lexmark.saperion.PropertyType> resultMap)
This method filters the system fields from a given result map.
|
DDC |
getDefinition(String definitionName)
This method returns the document definition object identified by the given name
|
DDC getDefinition(String definitionName) throws com.lexmark.saperion.exceptions.system.SystemException
definitionName - tha name of the definition wantedcom.lexmark.saperion.exceptions.system.SystemExceptionList<Map<String,com.lexmark.saperion.PropertyType>> filterSystemFields(DDC definition, List<Map<String,com.lexmark.saperion.PropertyType>> resultMaps)
definition - the definition from which the maps resultedresultMaps - the result map“s to filterMap<String,com.lexmark.saperion.PropertyType> filterSystemFields(DDC definition, Map<String,com.lexmark.saperion.PropertyType> resultMap)
definition - the definition from which the map resultedresultMap - the result map to filterQueryExpression<Boolean> createUniqueConstraintViolationCheck(DDC definition, String id, Map<String,com.lexmark.saperion.PropertyType> properties)
definition - the definition to check for field dataid - the id of the row given or null if the row represents a new entryproperties - the properties to check for conformanceQueryExpression<Boolean> createUniqueConstraintViolationCheck(SaFieldDescription fieldDescription, com.lexmark.saperion.PropertyType newValue, boolean ignoreCounters)
SaFieldDescription and a given value this method creates a QueryExpression that
checks whether the given value would violate a unique constraint. If the field does not define such an
constraint or the given value and field do not qualify for checking by other reasons null is returned.fieldDescription - the field to check for constraint violationnewValue - the value to check for constraint violationignoreCounters - whether counters should be ignoredQueryExpression that checks whether the given value would violate an unique constraint or
null if no suh constraint appliesvoid checkForMandatoryConstraintViolations(DDC definition, Map<String,com.lexmark.saperion.PropertyType> properties, boolean isCreation) throws com.lexmark.saperion.exceptions.runtime.MandatoryConstraintViolationException
definition - the definition that holds the constraints to check againstproperties - the properties to check for validationsisCreation - whether the properties represent a new entry or an old onecom.lexmark.saperion.exceptions.runtime.MandatoryConstraintViolationExceptionvoid checkForSystemFields(DDC definition, Map<String,com.lexmark.saperion.PropertyType> indexData) throws com.lexmark.saperion.exceptions.runtime.SystemFieldWriteException
definition - the definition defining the dataindexData - the properties to checkcom.lexmark.saperion.exceptions.runtime.SystemFieldWriteExceptionCopyright © 2020 Hyland Software Germany GmbH. All rights reserved.