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 org.mxchange.addressbook.model.addressbook.Addressbook;
22 import org.mxchange.jcontacts.contact.Contact;
23 import org.mxchange.jcontactsbusiness.BusinessContact;
24 import org.mxchange.jusercore.model.user.User;
27 * A POJI for addressbook entries
29 * @author Roland Haeder
31 public interface AddressbookEntry extends Serializable {
34 * Getter for id number
38 Long getAddressbookEntryId ();
41 * Setter for id number
43 * @param addressbookEntryId Id number
45 void setAddressbookEntryId (final Long addressbookEntryId);
48 * Getter for business contact
50 * @return Business contact
52 BusinessContact getAddressbookEntryBusinessContact ();
55 * Setter for business contact
57 * @param addressbookEntryBusinessContact Business contact
59 void setAddressbookEntryBusinessContact (final BusinessContact addressbookEntryBusinessContact);
62 * Getter for entry created timestamp
64 * @return Entry created timestamp
66 Calendar getAddressbookEntryCreated ();
69 * Setter for entry created timestamp
71 * @param addressbookEntryCreated Entry created timestamp
73 void setAddressbookEntryCreated (final Calendar addressbookEntryCreated);
76 * Getter for private contact
78 * @return Private contact
80 Contact getAddressbookEntryPrivateContact ();
83 * Setter for private contact
85 * @param addressbookEntryPrivateContact Private contact
87 void setAddressbookEntryPrivateContact (final Contact addressbookEntryPrivateContact);
90 * Getter for user who has added this entry to his/her addressbook
92 * @return User who has added this entry
94 User getAddressbookEntryUserSharer ();
97 * Setter for user who has added this entry to his/her addressbook
99 * @param addressbookEntryUserAdded User who has added this entry
101 void setAddressbookEntryUserSharer (final User addressbookEntryUserAdded);
104 * Getter for user who has initially created the address book entry
106 * @return User who has created initially this address book entry
108 User getAddressbookEntryUserOwner ();
111 * Setter for user who has initially created the address book entry
113 * @param addressbookEntryUserOrigin User who has created initially this
116 void setAddressbookEntryUserOwner (final User addressbookEntryUserOrigin);
119 * Getter for address book
121 * @return Address book
123 Addressbook getAddressbookId ();
126 * Setter for address book
128 * @param addressbookId Address book
130 void setAddressbookId (final Addressbook addressbookId);
133 boolean equals (final Object object);