Talk:Ifd:addConcepts
From dev.ifd-library.org
Pseudo code for the JAVA WSDL layer
- Decompose the array and rund one add concept query for each new concept.
- Pack each of the returned concepts in a new array keeping the same sequence.
Pseudo code for the EXPRESS layer
Check the input:
- If IfdVersionId is nothing then set IfdVersionId = 1
- If IfdVersionDate is nothing then set IfdVersionDate = todays date
- If IfdUniqueId is nothing then generate a new globally unique identifier
- If IfdObjectType is nothing or of an illegal type then return an error message and end.
Test for duplicates:
- If the IfdUniqueId is given the search for objects with identical IfdUniqueId.
- If found then return an error message and end.
- If not found create a new object"
- Create a new instance of the given IfdObjectType
- Add IfdUniqueId, IfdVersionId and IfdVersionDate
- Return success message