src/lib/model/dms-object-history.model.ts
Representation of a history entry for a dms object
Properties |
constructor(json: any)
|
||||||||
Defined in src/lib/model/dms-object-history.model.ts:54
|
||||||||
Creates a new instance
Parameters :
|
comment |
comment:
|
Type : string
|
Defined in src/lib/model/dms-object-history.model.ts:31
|
Custom comment applied to the entry |
description |
description:
|
Type : string
|
Defined in src/lib/model/dms-object-history.model.ts:23
|
Entry's description |
group |
group:
|
Type : "PROCESS" | "MODIFICATION" | "INFORMATIONAL"
|
Defined in src/lib/model/dms-object-history.model.ts:35
|
Group of the entry |
Optional intent |
intent:
|
Type : string
|
Defined in src/lib/model/dms-object-history.model.ts:27
|
Entry's intent |
Optional parameter |
parameter:
|
Type : literal type
|
Defined in src/lib/model/dms-object-history.model.ts:43
|
Additional parameters for special (BPM related) types of entries |
time |
time:
|
Type : Date
|
Defined in src/lib/model/dms-object-history.model.ts:15
|
The time the history entry was created |
title |
title:
|
Type : string
|
Defined in src/lib/model/dms-object-history.model.ts:19
|
Entry's title |
type |
type:
|
Type : string
|
Defined in src/lib/model/dms-object-history.model.ts:39
|
History entry's type |
user |
user:
|
Type : OrgUser
|
Defined in src/lib/model/dms-object-history.model.ts:54
|
If the history entry was created from a users activity (e.g. indexdata changes), this property holds the user that caused the entry |
version |
version:
|
Type : number
|
Defined in src/lib/model/dms-object-history.model.ts:11
|
Version of the dms object at the time the history entry was created |
import {OrgUser} from './org.model';
/**
* Representation of a history entry for a dms object
*/
export class DmsObjectHistoryEntry {
/**
* Version of the dms object at the time the history entry was created
*/
version: number;
/**
* The time the history entry was created
*/
time: Date;
/**
* Entry's title
*/
title: string;
/**
* Entry's description
*/
description: string;
/**
* Entry's intent
*/
intent?: string;
/**
* Custom comment applied to the entry
*/
comment: string;
/**
* Group of the entry
*/
group: 'PROCESS' | 'MODIFICATION' | 'INFORMATIONAL';
/**
* History entry's type
*/
type: string;
/**
* Additional parameters for special (BPM related) types of entries
*/
parameter?: {
processId: string,
processName: string,
activityId?: string,
activityName?: string,
type: string
};
/**
* If the history entry was created from a users activity (e.g. indexdata changes), this property
* holds the user that caused the entry
*/
user: OrgUser;
/**
* Creates a new instance
* @param json The JSON object received from the backend. This will be used to construct the new history entry instance
*/
constructor(json: any) {
this.version = json.version;
this.time = json.time;
this.title = json.title;
this.description = json.description;
this.intent = json.intent;
this.comment = json.comment;
this.group = json.group;
this.type = json.type;
this.user = json.user;
if (json.parameter) {
this.parameter = {
...json.parameter,
processId: json.parameter.procId,
processName: json.parameter.procName,
activityId: json.parameter.actId,
activityName: json.parameter.actName
};
}
}
}