2 * Copyright (C) 2015 Roland Haeder
4 * This program is free software: you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation, either version 3 of the License, or
7 * (at your option) any later version.
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
14 * You should have received a copy of the GNU General Public License
15 * along with this program. If not, see <http://www.gnu.org/licenses/>.
17 package org.mxchange.addressbook.model.addressbook.entry;
19 import java.io.Serializable;
20 import java.util.Calendar;
21 import java.util.List;
22 import org.mxchange.addressbook.model.addressbook.Addressbook;
23 import org.mxchange.jcontacts.contact.Contact;
24 import org.mxchange.jcontactsbusiness.BusinessContact;
25 import org.mxchange.jusercore.model.user.User;
28 * A POJI for addressbook entries
30 * @author Roland Haeder
32 public interface AddressbookEntry extends Serializable {
35 * Getter for id number
39 public Long getAddressbookEntryId ();
42 * Setter for id number
44 * @param addressbookEntryId Id number
46 public void setAddressbookEntryId (final Long addressbookEntryId);
49 * Getter for business contact
51 * @return Business contact
53 public BusinessContact getAddressbookEntryBusinessContact ();
56 * Setter for business contact
58 * @param addressbookEntryBusinessContact Business contact
60 public void setAddressbookEntryBusinessContact (final BusinessContact addressbookEntryBusinessContact);
63 * Getter for entry created timestamp
65 * @return Entry created timestamp
67 public Calendar getAddressbookEntryCreated ();
70 * Setter for entry created timestamp
72 * @param addressbookEntryCreated Entry created timestamp
74 public void setAddressbookEntryCreated (final Calendar addressbookEntryCreated);
77 * Getter for private contact
79 * @return Private contact
81 public Contact getAddressbookEntryPrivateContact ();
84 * Setter for private contact
86 * @param addressbookEntryPrivateContact Private contact
88 public void setAddressbookEntryPrivateContact (final Contact addressbookEntryPrivateContact);
91 * Getter for user who has added this entry to his/her addressbook
93 * @return User who has added this entry
95 public List<User> getAddressbookEntryUserAddedList ();
98 * Setter for user who has added this entry to his/her addressbook
100 * @param addressbookEntryUserAdded User who has added this entry
102 public void setAddressbookEntryUserAddedList (final List<User> addressbookEntryUserAdded);
105 * Getter for user who has initially created the address book entry
107 * @return User who has created initially this address book entry
109 public List<User> getAddressbookEntryUserOriginList ();
112 * Setter for user who has initially created the address book entry
114 * @param addressbookEntryUserOrigin User who has created initially this
117 public void setAddressbookEntryUserOriginList (final List<User> addressbookEntryUserOrigin);
120 * Getter for address book
122 * @return Address book
124 public Addressbook getAddressbookId ();
127 * Setter for address book
129 * @param addressbookId Address book
131 public void setAddressbookId (final Addressbook addressbookId);