Assigned Property

Assigned Property is a relationship between a generic property definition and a node + value(s) of the property.

assigned_property_list_types

returns list of all possible types of the property assignments for the specified node

QUERY_FUNCTION assigned_property_list_types(id: INTEGER): LIST OF STRING

Parameter:
id (optional) assigning node instance id

assigned_property_create

assigns some value(s) to node in context of specified property definition according to input

To call the query logged in user shall be associated with a person granted with editor privileges in target node (EDITOR_TYPE, ADMIN_TYPE for the person or group where the person is registered)

QUERY_FUNCTION assigned_property_create(subj: v_assigned_property): v_assigned_property

Parameter:
subj input for the assignment, see v_assigned_property
some attributes of the input are ignored, like the following:
  • subj.item.instance_id - generated
  • subj.item.cancelled - set to FALSE
  • subj.item.creator - set to logged in user
  • subj.item.last_changed - set to date/time of the call
  • subj.item.last_editor - set to logged in user
  • subj.item.comments - unset
  • subj.item.events - is populated with a creation event

Returns actual attributes of the newly created assignment (see v_assigned_property)


assigned_property_get

gets data of a property assignment specified by its instance id

To call the query logged in user shall be associated with a person granted with reader privileges over the target node (READER_TYPE, EDITOR_TYPE, ADMIN_TYPE for the person or group where the person is registered)

QUERY_FUNCTION assigned_property_get(id: INTEGER): v_assigned_property

Parameter:
id id of the assigned property instance

Returns actual data of the required assignment (see v_assigned_property)


assigned_property_list

lists data of assignments specified by list of their instance id-s. Normally source of the the list is v_node returned by node_get

To call the query logged in user shall be associated with a person granted with reader privileges in target node (READER_TYPE, EDITOR_TYPE, ADMIN_TYPE for the person or group where the person is registered)

QUERY_FUNCTION assigned_property_list(ids: LIST OF INTEGER): LIST OF v_assigned_property

Parameter:
ids list of interesting assignments instance id-s

Returns list of actual data of the required assignments (see v_assigned_property)


assigned_property_select

assigned properties search is not implemented in current realize
QUERY_FUNCTION assigned_property_select(
      node,
      property,
      creator           : INTEGER;
      before,
      after             : STRING;
      property_type,
      assignment_type   : STRING)  :  LIST OF v_assigned_property
Parameters:
node (optional) instance id of parent node
property (optional) instance id of property definition
creator (optional) instance id of simdm person who introduced the assignments
before (optional) later date/time of the assignment in format "YYYY/MM/DD hh:mm:ss"
after (optional) earlier date/time of the assignment in format "YYYY/MM/DD hh:mm:ss"
property_type (optional) type of property definition
assignment_type (optional) type of property assignment

Returns list of found assigned properties (see v_assigned_property)


assigned_property_update

updates data of assigned property. The assignment is specified by its instance id

To call the query logged in user shall be associated with a person granted with editor privileges in target node (EDITOR_TYPE, ADMIN_TYPE for the person or group where the person is registered)

QUERY_FUNCTION assigned_property_update(subject: v_assigned_property): v_assigned_property

Parameter:
subject updated data of the assignment to be updated in model (see v_assigned_property).
Target instance is specified by subject.item.instance_id

The following attributes are ignored:

  • subject.domain - is leaved in parent node
  • subject.item.introduced - is leaved as before
  • subject.item.creator - is leaved as before
  • subject.item.last_changed - set to current date/time
  • subject.item.last_editor - set to calling user
  • subject.item.comments - is leaved as before
  • subject.item.event - is added with update event

Returns actual data of the updated assigned property (see v_assigned_property)


assigned_property_delete

removes assignment specified by its instance id from the current state of pbs

To call the query logged in user shall be associated with a person granted with editor privileges in target node (EDITOR_TYPE, ADMIN_TYPE for the person or group where the person is registered)

QUERY_FUNCTION assigned_property_delete(id: INTEGER): v_assigned_property

Parameter:
id instance id of the assignment to be removed

Returns unset value if the assignment removed or attributes of virtual assignment for mandatory attributes

Back to Home page