Public Member Functions | |
String | getName () |
String | getId () |
boolean | validate (String login, String password) |
boolean | validate (String key) |
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) |
Map | getByDescriptors (String value) |
boolean | hasRoleName (String role) |
List | getUsers () |
String | createTmpKey (Date valid) |
void | setConstructor (IConstructor constructor) |
Public Member Functions inherited from org.turro.contacts.util.DefaultContact | |
DefaultContact () | |
DefaultContact (Object object) | |
DefaultContact (Contact contact) | |
Object | loadById (String id) |
Object | loadByLogin (String login) |
Object | loadLogged (Application app) |
Object | getContact () |
void | setContact (Object contact) |
String | getGlobalId () |
String | getGrouping () |
String | getDeepGrouping () |
String | getLogin () |
String | getFullName () |
String | getTradeName () |
String | getEmail () |
String | getConnector (String id) |
List< String > | getConnectorList (String id) |
List< IContact > | getRelations (String id) |
List< IContact > | getRelations () |
IContact | getBusiness () |
List< IContact > | getBusinessList () |
List< IContact > | getCoworkers () |
List< IContact > | getCoworkers (IContact business) |
boolean | isInBusiness (IContact worker) |
void | setConnector (String id, String value) |
void | setName (String value) |
void | setPassword (String newValue, String repeatValue) |
void | applyChanges () |
boolean | isValid () |
boolean | checkPassword (String password) |
boolean | checkPassword2 (String password) |
String | getCommentValue (String key) |
Object | getObject (String key) |
void | setObject (String key, Serializable value) |
boolean | isWebUser () |
boolean | isWebapp () |
boolean | isUserMenu () |
boolean | isDeactivated () |
List< String > | getRoles () |
List< String > | getSyndications () |
UserProfileMap | getProfileMap () |
FlatPermissions | getPermissions () |
void | resetPermissions () |
IUser | getAsUser () |
boolean | acceptsLang (String lang) |
List< IContact > | loadByPartialName (String name) |
List< IContact > | loadByPartialName (String name, KeyValueMap kvm) |
IContact | loadByName (String name) |
IContact | loadByEmail (String email) |
void | setAttribute (String key, Object value) |
Object | getAttribute (String key) |
List< IContact > | getBySyndication (String syndication) |
List< IContact > | getByRole (String role) |
List< IContact > | getByGrouping (String grouping) |
List< IContact > | getByGrouping (List< String > groupings) |
List< IContact > | getCompanies () |
List< IContact > | getCenters () |
List< IContact > | getHHRR () |
List< IContact > | getStudents () |
void | startContactFromValues (KeyValueMap values) |
void | syndicate (String syndicationName, boolean syndicate) |
String | getFace () |
IProfile | getProfile () |
boolean | isAdmin () |
boolean | isUser () |
boolean | isCompany () |
boolean | isCenter () |
boolean | isInternal () |
boolean | isWorker () |
boolean | isStudent () |
boolean | isResponsible () |
boolean | isHHRR () |
boolean | isWorker (IContact business) |
boolean | isStudent (IContact business) |
boolean | isResponsible (IContact business) |
boolean | isHHRR (IContact business) |
boolean | isInNetworking () |
boolean | isInPremiumNetworking () |
String | getLangTranslator () |
boolean | isActor (String actor) |
boolean | isActor (Object entity, String actor) |
IContact | getLogged () |
int | hashCode () |
boolean | equals (Object obj) |
int | compareTo (IContact o) |
Public Member Functions inherited from org.turro.plugin.contacts.IContact | |
void | setApplication (Application app) |
Public Member Functions inherited from org.turro.elephant.security.IUser | |
boolean | isValid () |
boolean | equals (Object obj) |
Protected Attributes | |
IConstructor | constructor |
boolean | superUser = false |
Protected Attributes inherited from org.turro.contacts.util.DefaultContact | |
Contact | contact = null |
Additional Inherited Members | |
Static Public Member Functions inherited from org.turro.contacts.util.DefaultContact | |
static String | fullName (String contactId) |
Static Public Attributes inherited from org.turro.elephant.security.IUser | |
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" |
Definition at line 36 of file ContactAsUser.java.
String org.turro.contacts.util.ContactAsUser.createTmpKey | ( | Date | valid | ) |
Implements org.turro.elephant.security.IUser.
Definition at line 176 of file ContactAsUser.java.
Map org.turro.contacts.util.ContactAsUser.getByDescriptors | ( | String | value | ) |
Implements org.turro.elephant.security.IUser.
Definition at line 160 of file ContactAsUser.java.
String org.turro.contacts.util.ContactAsUser.getId | ( | ) |
Reimplemented from org.turro.contacts.util.DefaultContact.
Definition at line 49 of file ContactAsUser.java.
String org.turro.contacts.util.ContactAsUser.getName | ( | ) |
Reimplemented from org.turro.contacts.util.DefaultContact.
Definition at line 43 of file ContactAsUser.java.
String org.turro.contacts.util.ContactAsUser.getProperty | ( | String | key | ) |
key | Attribute's key. |
Implements org.turro.elephant.security.IUser.
Definition at line 135 of file ContactAsUser.java.
List org.turro.contacts.util.ContactAsUser.getUsers | ( | ) |
Implements org.turro.elephant.security.IUser.
Definition at line 171 of file ContactAsUser.java.
boolean org.turro.contacts.util.ContactAsUser.hasAnyRoleKey | ( | String | role | ) |
Implements org.turro.elephant.security.IUser.
Definition at line 147 of file ContactAsUser.java.
boolean org.turro.contacts.util.ContactAsUser.hasRoleName | ( | String | role | ) |
Implements org.turro.elephant.security.IUser.
Definition at line 165 of file ContactAsUser.java.
boolean org.turro.contacts.util.ContactAsUser.impersonate | ( | String | login | ) |
login | User login. |
Implements org.turro.elephant.security.IUser.
Definition at line 97 of file ContactAsUser.java.
boolean org.turro.contacts.util.ContactAsUser.impersonateByEmail | ( | String | ) |
Implements org.turro.elephant.security.IUser.
Definition at line 116 of file ContactAsUser.java.
boolean org.turro.contacts.util.ContactAsUser.isInRole | ( | String | role | ) |
Usually this method should take this form:
if(user.isInRole("page:edit")) { // edit page }
role | Role to check. |
Implements org.turro.elephant.security.IUser.
Definition at line 140 of file ContactAsUser.java.
boolean org.turro.contacts.util.ContactAsUser.isThisUser | ( | String | id | ) |
Implements org.turro.elephant.security.IUser.
Definition at line 130 of file ContactAsUser.java.
void org.turro.contacts.util.ContactAsUser.reload | ( | ) |
Implements org.turro.elephant.security.IUser.
Definition at line 121 of file ContactAsUser.java.
void org.turro.contacts.util.ContactAsUser.setConstructor | ( | IConstructor | constructor | ) |
Implements org.turro.elephant.security.IUser.
Definition at line 181 of file ContactAsUser.java.
boolean org.turro.contacts.util.ContactAsUser.validate | ( | String | key | ) |
key | Temporal key for validation. |
Implements org.turro.elephant.security.IUser.
Definition at line 87 of file ContactAsUser.java.
boolean org.turro.contacts.util.ContactAsUser.validate | ( | String | login, |
String | password | ||
) |
login | User login. |
password | User password. |
Implements org.turro.elephant.security.IUser.
Definition at line 55 of file ContactAsUser.java.
boolean org.turro.contacts.util.ContactAsUser.validate2 | ( | String | password2 | ) |
password2 | User password2. |
Implements org.turro.elephant.security.IUser.
Definition at line 92 of file ContactAsUser.java.
|
protected |
Definition at line 38 of file ContactAsUser.java.
|
protected |
Definition at line 39 of file ContactAsUser.java.