src.app.core.model.user.model.ts Maven / Gradle / Ivy
The newest version!
/*
* SPDX-FileCopyrightText: 2017-2024 Enedis
*
* SPDX-License-Identifier: Apache-2.0
*
*/
export class User {
constructor(
public id: string,
public name?: string,
public firstname?: string,
public lastname?: string,
public mail?: string,
public authorizations?: Array,
) { }
}
export enum Authorization {
SCENARIO_READ = 'SCENARIO_READ',
SCENARIO_WRITE = 'SCENARIO_WRITE',
SCENARIO_EXECUTE = 'SCENARIO_EXECUTE',
CAMPAIGN_READ = 'CAMPAIGN_READ',
CAMPAIGN_WRITE = 'CAMPAIGN_WRITE',
CAMPAIGN_EXECUTE = 'CAMPAIGN_EXECUTE',
ENVIRONMENT_ACCESS = 'ENVIRONMENT_ACCESS',
GLOBAL_VAR_READ = 'GLOBAL_VAR_READ',
GLOBAL_VAR_WRITE = 'GLOBAL_VAR_WRITE',
DATASET_READ = 'DATASET_READ',
DATASET_WRITE = 'DATASET_WRITE',
ADMIN_ACCESS = 'ADMIN_ACCESS'
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy