[ADF-] update library to use new js-api 3.0.0 (#4097)

This commit is contained in:
Eugenio Romano
2019-01-06 23:57:01 +01:00
committed by Eugenio Romano
parent 2acd1b4e26
commit 3ef7d3b7ea
430 changed files with 1966 additions and 2149 deletions

View File

@@ -15,7 +15,7 @@
* limitations under the License.
*/
import { UserRepresentation } from 'alfresco-js-api';
import { UserRepresentation } from '@alfresco/js-api';
export class BpmUserModel implements UserRepresentation {
apps: any;
@@ -39,28 +39,28 @@ export class BpmUserModel implements UserRepresentation {
tenantPictureId: number;
type: string;
constructor(obj?: any) {
if (obj) {
this.apps = obj.apps;
this.capabilities = obj.capabilities;
this.company = obj.company;
this.created = obj.created;
this.email = obj.email;
this.externalId = obj.externalId;
this.firstName = obj.firstName;
this.lastName = obj.lastName;
this.fullname = obj.fullname;
this.groups = obj.groups;
this.id = obj.id;
this.lastUpdate = obj.lastUpdate;
this.latestSyncTimeStamp = obj.latestSyncTimeStamp;
this.password = obj.password;
this.pictureId = obj.pictureId;
this.status = obj.status;
this.tenantId = obj.tenantId;
this.tenantName = obj.tenantName;
this.tenantPictureId = obj.tenantPictureId;
this.type = obj.type;
constructor(input?: any) {
if (input) {
this.apps = input.apps;
this.capabilities = input.capabilities;
this.company = input.company;
this.created = input.created;
this.email = input.email;
this.externalId = input.externalId;
this.firstName = input.firstName;
this.lastName = input.lastName;
this.fullname = input.fullname;
this.groups = input.groups;
this.id = input.id;
this.lastUpdate = input.lastUpdate;
this.latestSyncTimeStamp = input.latestSyncTimeStamp;
this.password = input.password;
this.pictureId = input.pictureId;
this.status = input.status;
this.tenantId = input.tenantId;
this.tenantName = input.tenantName;
this.tenantPictureId = input.tenantPictureId;
this.type = input.type;
}
}
}