Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
/*
* Copyright (c) 2022 Surati
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to read
* the Software only. Permissions is hereby NOT GRANTED to use, copy, modify,
* merge, publish, distribute, sublicense, and/or sell copies of the Software.
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE.
*/
package io.surati.gap.admin.module.secure;
import io.surati.gap.admin.module.AdminModule;
import io.surati.gap.admin.base.api.Access;
import io.surati.gap.admin.base.api.Module;
/**
* Access right for a user.
*
* @since 0.3
*/
public enum AdminAccess implements Access {
VISUALISER_UTILISATEURS("Visualiser les utilisateurs", ""),
CONFIGURER_UTILISATEURS("Configurer les utilisateurs", ""),
BLOQUER_UTILISATEURS("Bloquer les utilisateurs", ""),
CHANGER_MOT_DE_PASSE_UTILISATEURS("Changer le mot de passe d'un utilisateur", ""),
VISUALISER_PROFILS("Visualiser les profils utilisateur", ""),
CONFIGURER_PROFILS("Configurer les profils utilisateur", ""),
VISUALISER_INFO_ENTREPRISE("Visualiser les informations de l'entreprise", ""),
CONFIGURER_INFO_ENTREPRISE("Configurer les informations de l'entreprise", ""),
VISUALISER_LA_JOURNALISATION("Visualiser la journalisation", "");
static {
for (Access acs : AdminAccess.values()) {
Access.VALUES.add(acs);
Access.BY_CODE.put(acs.code(), acs);
}
}
/**
* Title of access.
*/
private String title;
/**
* Description.
*/
private String description;
/**
* Ctor.
* @param title Title
* @param description Description
*/
AdminAccess(final String title, final String description) {
this.title = title;
this.description = description;
}
/**
* Get title.
* @return Title
*/
@Override
public String title() {
return this.title;
}
/**
* Get Code.
* @return Code
*/
public String code() {
return this.name();
}
/**
* Get description.
* @return Code
*/
public String description() {
return this.description;
}
/**
* Get module.
* @return Module name
*/
public Module module() {
return AdminModule.ADMIN;
}
@Override
public String toString() {
return this.title;
}
}