BrightSide Workbench Full Report + Source Code
IUser.java
Go to the documentation of this file.
1 /*
2  * TurrĂ³ i Cutiller Foundation. License notice.
3  * Copyright (C) 2011 Lluis TurrĂ³ Cutiller <http://www.turro.org/>
4  *
5  * This program is free software: you can redistribute it and/or modify
6  * it under the terms of the GNU Affero General Public License as published by
7  * the Free Software Foundation, either version 3 of the License, or
8  * (at your option) any later version.
9  *
10  * This program is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  * GNU Affero General Public License for more details.
14  *
15  * You should have received a copy of the GNU Affero General Public License
16  * along with this program. If not, see <http://www.gnu.org/licenses/>.
17  */
18 package org.turro.elephant.security;
19 
25 public interface IUser {
26  public static final String
27  CONNECTOR_EMAIL = "Email",
28  CONNECTOR_TRADE = "TradeName",
29  CONNECTOR_FISCAL = "FiscalName",
30  CONNECTOR_EMAIL_LOGIN = "EmailLogin",
31  ADDRESS_FISCAL = "Fiscal",
32  LOGGED_USER = "xp_user",
33  INTERNAL_SIGNIN = "InternalSignIn";
40  public boolean validate(String login, String password);
46  public boolean validate2(String password2);
52  public boolean impersonate(String login);
53  public boolean impersonateByEmail(String email);
54  public void reload();
55  public boolean isThisUser(String id);
61  public String getProperty(String key);
73  public boolean isInRole(String role);
74  public boolean hasAnyRoleKey(String role);
78  @Override
79  public boolean equals(Object obj);
80 
81 }
static final String INTERNAL_SIGNIN
Definition: IUser.java:33
static final String CONNECTOR_EMAIL
Definition: IUser.java:27
boolean impersonate(String login)
boolean isInRole(String role)
String getProperty(String key)
static final String CONNECTOR_EMAIL_LOGIN
Definition: IUser.java:30
boolean validate2(String password2)
static final String LOGGED_USER
Definition: IUser.java:32
static final String ADDRESS_FISCAL
Definition: IUser.java:31
static final String CONNECTOR_FISCAL
Definition: IUser.java:29
boolean hasAnyRoleKey(String role)
boolean impersonateByEmail(String email)
boolean validate(String login, String password)
static final String CONNECTOR_TRADE
Definition: IUser.java:28