BrightSide Workbench Full Report + Source Code
elephant-plugins/src/main/java/org/turro/plugin/contacts/IContact.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.plugin.contacts;
19 
20 import java.io.Serializable;
21 import java.util.List;
22 import org.turro.elephant.context.Application;
23 
28 public interface IContact {
29 
30  public Object loadById(String id);
31  public Object loadByLogin(String login);
32  public Object loadLogged(Application app);
33  public void setContact(Object contact);
34  public Object getContact();
35  public String getId();
36  public String getGlobalId();
37  public String getLogin();
38  public String getName();
39  public String getConnector(String id);
40  public void setConnector(String id, String value);
41  public List<IContact> getRelations(String id);
42  public void setName(String value);
43  public void setPassword(String newValue, String repeatValue);
44  public void setApplication(Application app);
45  public void applyChanges();
46  public boolean isValid();
47  public boolean checkPassword(String password);
48  public String getCommentValue(String key);
49  public Object getObject(String key);
50  public void setObject(String key, Serializable value);
51  public boolean isWebUser();
52  public List<IContact> loadByPartialName(String name);
53  public IContact loadByName(String name);
54 
55  /* Trasient */
56  public void setAttribute(String key, Object value);
57  public Object getAttribute(String key);
58 
59 }
void setApplication(Application app)
Object loadLogged(Application app)
IContact loadByName(String name)
String getCommentValue(String key)
void setPassword(String newValue, String repeatValue)
void setAttribute(String key, Object value)
void setContact(Object contact)
void setObject(String key, Serializable value)
boolean checkPassword(String password)
List< IContact > loadByPartialName(String name)
List< IContact > getRelations(String id)
void setConnector(String id, String value)
Object loadByLogin(String login)