◆ ContactToUser() [1/2]
org.turro.contacts.util.ContactToUser.ContactToUser |
( |
| ) |
|
◆ ContactToUser() [2/2]
org.turro.contacts.util.ContactToUser.ContactToUser |
( |
IConstructor |
constructor, |
|
|
Contact |
contact |
|
) |
| |
◆ doUserChanges()
void org.turro.contacts.util.ContactToUser.doUserChanges |
( |
| ) |
throws Exception |
Definition at line 72 of file ContactToUser.java.
74 if (login !=
null && login.length() > 0) {
75 IUserAdmin uAdmin = ContextFactory.getUserAdmin(constructor);
77 if (uAdmin.checkId(login)) {
78 uAdmin.setName(login, contact.
getName());
79 uAdmin.setPasswords(login, ElephantContext.decrypt(contact.
getPass1()),
80 ElephantContext.decrypt(contact.
getPass2()));
82 uAdmin.addUser(login, contact.
getName(), ElephantContext.decrypt(contact.
getPass1()),
83 ElephantContext.decrypt(contact.
getPass2()));
85 uAdmin.removeProperty(login, IUser.CONNECTOR_EMAIL);
87 if (c.getDescription().toLowerCase().equals(IUser.CONNECTOR_EMAIL.toLowerCase())) {
88 uAdmin.setProperty(login, IUser.CONNECTOR_EMAIL, c.getValue());
92 if (c.getDescription().toLowerCase().equals(IUser.CONNECTOR_EMAIL_LOGIN.toLowerCase())) {
93 uAdmin.setProperty(login, IUser.CONNECTOR_EMAIL_LOGIN, c.getValue());
96 uAdmin.cleanRoles(login);
98 uAdmin.setRole(login, r.getName());
100 }
catch (IOException ex) {
101 Logger.getLogger(
ContactToUser.class.getName()).log(Level.SEVERE, ElephantContext.logMsg(
null), ex);
◆ doUserDeletions()
void org.turro.contacts.util.ContactToUser.doUserDeletions |
( |
| ) |
|
Definition at line 106 of file ContactToUser.java.
108 if (login !=
null && login.length() > 0) {
109 IUserAdmin uAdmin = ContextFactory.getUserAdmin(constructor);
110 if (uAdmin.checkId(login)) {
112 uAdmin.removeUser(login);
113 }
catch (IOException ex) {
114 Logger.getLogger(
ContactToUser.class.getName()).log(Level.SEVERE, ElephantContext.logMsg(
null), ex);
◆ isLoginValid()
boolean org.turro.contacts.util.ContactToUser.isLoginValid |
( |
String |
value | ) |
|
Definition at line 58 of file ContactToUser.java.
60 if (login ==
null || login.length() == 0) {
61 login = (String) value;
62 if (login.length() > 0) {
63 IUserAdmin uAdmin = ContextFactory.getUserAdmin(constructor);
64 if (uAdmin.checkId(login)) {
◆ setConstructor()
void org.turro.contacts.util.ContactToUser.setConstructor |
( |
IConstructor |
constructor | ) |
|
◆ setContact()
void org.turro.contacts.util.ContactToUser.setContact |
( |
Contact |
contact | ) |
|
The documentation for this class was generated from the following file: