Skip to content
Snippets Groups Projects
Commit b2ec5e16 authored by Carsten Karbach's avatar Carsten Karbach
Browse files

Add institutions and review category to event structure

parent cad3fd33
Branches
Tags v3.2
No related merge requests found
......@@ -104,6 +104,22 @@
"description": "Name of the trigger which is activated by this event",
"type": "string"
},
"institutions": {
"description": "Institutions, for which this event is relevant. Active institution for this event. E.g. HLRS, JSC, LRZ",
"type": "array",
"items": {
"title": "institution",
"type": "string"
}
},
"categoryid":{
"description": "This is only available for review events. ID of review category where the event took place. ",
"type": "integer"
},
"categoryname":{
"description": "This is only available for review events. Name of review category where the event took place. ",
"type": "string"
},
"project" : {
"$ref": "#/definitions/Project"
},
......
......@@ -61,6 +61,9 @@ class Event implements ArrayAccess
'source' => 'string',
'new_state' => 'string',
'trigger_type' => 'string',
'institutions' => 'string[]',
'categoryid' => 'int',
'categoryname' => 'string',
'project' => '\jards\eventsapiclient\Swagger\Client\Model\Project',
'application' => '\jards\eventsapiclient\Swagger\Client\Model\Application'
];
......@@ -77,6 +80,9 @@ class Event implements ArrayAccess
'source' => null,
'new_state' => null,
'trigger_type' => null,
'institutions' => null,
'categoryid' => null,
'categoryname' => null,
'project' => null,
'application' => null
];
......@@ -103,6 +109,9 @@ class Event implements ArrayAccess
'source' => 'source',
'new_state' => 'newState',
'trigger_type' => 'triggerType',
'institutions' => 'institutions',
'categoryid' => 'categoryid',
'categoryname' => 'categoryname',
'project' => 'project',
'application' => 'application'
];
......@@ -120,6 +129,9 @@ class Event implements ArrayAccess
'source' => 'setSource',
'new_state' => 'setNewState',
'trigger_type' => 'setTriggerType',
'institutions' => 'setInstitutions',
'categoryid' => 'setCategoryid',
'categoryname' => 'setCategoryname',
'project' => 'setProject',
'application' => 'setApplication'
];
......@@ -137,6 +149,9 @@ class Event implements ArrayAccess
'source' => 'getSource',
'new_state' => 'getNewState',
'trigger_type' => 'getTriggerType',
'institutions' => 'getInstitutions',
'categoryid' => 'getCategoryid',
'categoryname' => 'getCategoryname',
'project' => 'getProject',
'application' => 'getApplication'
];
......@@ -179,6 +194,9 @@ class Event implements ArrayAccess
$this->container['source'] = isset($data['source']) ? $data['source'] : null;
$this->container['new_state'] = isset($data['new_state']) ? $data['new_state'] : null;
$this->container['trigger_type'] = isset($data['trigger_type']) ? $data['trigger_type'] : null;
$this->container['institutions'] = isset($data['institutions']) ? $data['institutions'] : null;
$this->container['categoryid'] = isset($data['categoryid']) ? $data['categoryid'] : null;
$this->container['categoryname'] = isset($data['categoryname']) ? $data['categoryname'] : null;
$this->container['project'] = isset($data['project']) ? $data['project'] : null;
$this->container['application'] = isset($data['application']) ? $data['application'] : null;
}
......@@ -373,6 +391,69 @@ class Event implements ArrayAccess
return $this;
}
/**
* Gets institutions
* @return string[]
*/
public function getInstitutions()
{
return $this->container['institutions'];
}
/**
* Sets institutions
* @param string[] $institutions Institutions, for which this event is relevant. Active institution for this event. E.g. HLRS, JSC, LRZ
* @return $this
*/
public function setInstitutions($institutions)
{
$this->container['institutions'] = $institutions;
return $this;
}
/**
* Gets categoryid
* @return int
*/
public function getCategoryid()
{
return $this->container['categoryid'];
}
/**
* Sets categoryid
* @param int $categoryid This is only available for review events. ID of review category where the event took place.
* @return $this
*/
public function setCategoryid($categoryid)
{
$this->container['categoryid'] = $categoryid;
return $this;
}
/**
* Gets categoryname
* @return string
*/
public function getCategoryname()
{
return $this->container['categoryname'];
}
/**
* Sets categoryname
* @param string $categoryname This is only available for review events. Name of review category where the event took place.
* @return $this
*/
public function setCategoryname($categoryname)
{
$this->container['categoryname'] = $categoryname;
return $this;
}
/**
* Gets project
* @return \jards\eventsapiclient\Swagger\Client\Model\Project
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment