18 package org.turro.contacts.util;
20 import java.io.IOException;
21 import java.util.logging.Level;
22 import java.util.logging.Logger;
23 import org.turro.contacts.Connector;
24 import org.turro.contacts.Contact;
25 import org.turro.contacts.Role;
26 import org.turro.elephant.context.ElephantContext;
27 import org.turro.elephant.context.IConstructor;
28 import org.turro.elephant.impl.context.ContextFactory;
29 import org.turro.elephant.security.IUser;
30 import org.turro.elephant.security.IUserAdmin;
51 this.constructor = constructor;
55 this.contact = contact;
60 if (login ==
null || login.length() == 0) {
61 login = (String) value;
62 if (login.length() > 0) {
74 if (login !=
null && login.length() > 0) {
98 uAdmin.
setRole(login, r.getName());
100 }
catch (IOException ex) {
108 if (login !=
null && login.length() > 0) {
113 }
catch (IOException ex) {
static String logMsg(String msg)
static byte[] decrypt(byte[] value)
static IUserAdmin getUserAdmin(IConstructor constructor)
void setPasswords(String id, String pass1, String pass2)
boolean checkId(String id)
void removeProperty(String id, String name)
void cleanRoles(String id)
void addUser(String id, String name, String pass1, String pass2)
void setRole(String id, String name)
void setProperty(String id, String name, String value)
void setName(String id, String name)
void removeUser(String id)
static final String CONNECTOR_EMAIL
static final String CONNECTOR_EMAIL_LOGIN