Skip to content
Stig Norland edited this page Sep 20, 2018 · 10 revisions
{
  "id" : "5ffeddcf-821e-4ee1-aefa-b22d0115bbfc",
  "modified" : 1525120180603,
  "modifiedBy" : {... },
  "agency" : {...},
  "name" : "YTBN",
  "basedOnObject" : null,
  "basedOnRevision" : null,
  "version" : {...},
  "changeKind" : "CREATED",
  "changeComment" : "New element status",
  "comments" : [ ],
  "classKind" : "PUBLICATION",
  "purpose" : "Test package",
  "status" : {
    "id" : 15,
    "agency" : {...},
    "published" : "NOT_PUBLISHED",
    "label" : "Not Published",
    "children" : null,
    "description" : "Elements and discussion made available for ...",
    "childrenIdx" : 0
  },
  "publicationElements" : [ {
    "elementKind" : "TOPIC_GROUP",
    "elementId" : "d9f75aba-c98a-4267-92c0-447055862f74",
    "elementRevision" : 63,
    "name" : "Political Issues",
    "version" : {"major":5,"minor":0,"versionLabel":"Changes in hierarchy","revision":63 }
    "element" : {...},
  } ]
}

What is needed from the web-client: (publicationElement) id, revisionNumber & elementKind

publicationElements is an ordered list, the order you send them to the server is the order they are returend in.

element is never saved, and it is always populated when json is returned from the server.

elementkind has these valid values:

{
CONCEPT,
CONTROL_CONSTRUCT,
INSTRUMENT,
QUESTION_ITEM,
STUDY,
SURVEY_PROGRAM,
TOPIC_GROUP
}