BrightSide Workbench Full Report + Source Code
org.turro.elephant.security.IUser Interface Reference
Inheritance diagram for org.turro.elephant.security.IUser:

Public Member Functions

boolean validate (String login, String password)
 
boolean validate2 (String password2)
 
boolean impersonate (String login)
 
boolean impersonateByEmail (String email)
 
void reload ()
 
boolean isThisUser (String id)
 
String getProperty (String key)
 
boolean isInRole (String role)
 
boolean hasAnyRoleKey (String role)
 
boolean equals (Object obj)
 

Static Public Attributes

static final String CONNECTOR_EMAIL = "Email"
 
static final String CONNECTOR_TRADE = "TradeName"
 
static final String CONNECTOR_FISCAL = "FiscalName"
 
static final String CONNECTOR_EMAIL_LOGIN = "EmailLogin"
 
static final String ADDRESS_FISCAL = "Fiscal"
 
static final String LOGGED_USER = "xp_user"
 
static final String INTERNAL_SIGNIN = "InternalSignIn"
 

Detailed Description

IUser should be implemented by in user management implementations. IConstructor expects an IUser where to check whether a user is in role.

Author
Lluis TurrĂ³ Cutiller lluis.nosp@m.@tur.nosp@m.ro.or.nosp@m.g

Definition at line 25 of file IUser.java.

Member Function Documentation

◆ equals()

boolean org.turro.elephant.security.IUser.equals ( Object  obj)
Returns
True if object is an IUser with the same login

Implemented in org.turro.alliance.contact.AllianceContact, and org.turro.contacts.util.DefaultContact.

Here is the caller graph for this function:

◆ getProperty()

String org.turro.elephant.security.IUser.getProperty ( String  key)
Parameters
keyAttribute's key.
Returns
Attribute's value.

Implemented in org.turro.alliance.contact.AllianceContact, and org.turro.contacts.util.DefaultContact.

Here is the caller graph for this function:

◆ hasAnyRoleKey()

boolean org.turro.elephant.security.IUser.hasAnyRoleKey ( String  role)

Implemented in org.turro.alliance.contact.AllianceContact, and org.turro.contacts.util.DefaultContact.

Here is the caller graph for this function:

◆ impersonate()

boolean org.turro.elephant.security.IUser.impersonate ( String  login)
Parameters
loginUser login.
Returns
True if user was impersonated.

Implemented in org.turro.alliance.contact.AllianceContact, and org.turro.contacts.util.DefaultContact.

Here is the caller graph for this function:

◆ impersonateByEmail()

boolean org.turro.elephant.security.IUser.impersonateByEmail ( String  email)

Implemented in org.turro.alliance.contact.AllianceContact, and org.turro.contacts.util.DefaultContact.

Here is the caller graph for this function:

◆ isInRole()

boolean org.turro.elephant.security.IUser.isInRole ( String  role)

Usually this method should take this form:

 if(user.isInRole("page:edit")) {
   // edit page
 }
Parameters
roleRole to check.
Returns
True if user is in role.

Implemented in org.turro.alliance.contact.AllianceContact, and org.turro.contacts.util.DefaultContact.

Here is the caller graph for this function:

◆ isThisUser()

boolean org.turro.elephant.security.IUser.isThisUser ( String  id)

Implemented in org.turro.alliance.contact.AllianceContact, and org.turro.contacts.util.DefaultContact.

Here is the caller graph for this function:

◆ reload()

void org.turro.elephant.security.IUser.reload ( )

Implemented in org.turro.alliance.contact.AllianceContact, and org.turro.contacts.util.DefaultContact.

Here is the caller graph for this function:

◆ validate()

boolean org.turro.elephant.security.IUser.validate ( String  login,
String  password 
)
Parameters
loginUser login.
passwordUser password.
Returns
True if user was validated.

Implemented in org.turro.alliance.contact.AllianceContact, and org.turro.contacts.util.DefaultContact.

Here is the caller graph for this function:

◆ validate2()

boolean org.turro.elephant.security.IUser.validate2 ( String  password2)
Parameters
password2User password2.
Returns
True if user validates password2.

Implemented in org.turro.alliance.contact.AllianceContact, and org.turro.contacts.util.DefaultContact.

Member Data Documentation

◆ ADDRESS_FISCAL

final String org.turro.elephant.security.IUser.ADDRESS_FISCAL = "Fiscal"
static

Definition at line 31 of file IUser.java.

◆ CONNECTOR_EMAIL

final String org.turro.elephant.security.IUser.CONNECTOR_EMAIL = "Email"
static

Definition at line 27 of file IUser.java.

◆ CONNECTOR_EMAIL_LOGIN

final String org.turro.elephant.security.IUser.CONNECTOR_EMAIL_LOGIN = "EmailLogin"
static

Definition at line 30 of file IUser.java.

◆ CONNECTOR_FISCAL

final String org.turro.elephant.security.IUser.CONNECTOR_FISCAL = "FiscalName"
static

Definition at line 29 of file IUser.java.

◆ CONNECTOR_TRADE

final String org.turro.elephant.security.IUser.CONNECTOR_TRADE = "TradeName"
static

Definition at line 28 of file IUser.java.

◆ INTERNAL_SIGNIN

final String org.turro.elephant.security.IUser.INTERNAL_SIGNIN = "InternalSignIn"
static

Definition at line 33 of file IUser.java.

◆ LOGGED_USER

final String org.turro.elephant.security.IUser.LOGGED_USER = "xp_user"
static

Definition at line 32 of file IUser.java.


The documentation for this interface was generated from the following file: