2 * Copyright (C) 2016 - 2024 Free Software Foundation
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.jaddressbook.model.addressbook.entry;
19 import java.io.Serializable;
20 import java.util.Date;
21 import org.mxchange.jaddressbook.model.addressbook.Addressbook;
22 import org.mxchange.jcontacts.model.contact.Contact;
23 import org.mxchange.jcontactsbusiness.model.basicdata.BasicData;
26 * A POJI for addressbook entries
28 * @author Roland Häder<roland@mxchange.org>
30 public interface AddressbookEntry extends Comparable<AddressbookEntry>, Serializable {
33 * Getter for id number
37 Long getAddressbookEntryId ();
40 * Setter for id number
42 * @param addressbookEntryId Id number
44 void setAddressbookEntryId (final Long addressbookEntryId);
47 * Getter for business contact
49 * @return Business contact
51 BasicData getAddressbookEntryBusinessBasicData ();
54 * Setter for business contact
56 * @param addressbookEntryBusinessContact Business contact
58 void setAddressbookEntryBusinessBasicData (final BasicData addressbookEntryBusinessContact);
61 * Getter for entry created timestamp
63 * @return Entry created timestamp
65 Date getAddressbookEntryCreated ();
68 * Setter for entry created timestamp
70 * @param addressbookEntryCreated Entry created timestamp
72 void setAddressbookEntryCreated (final Date addressbookEntryCreated);
75 * Getter for entry updated timestamp
77 * @return Entry updated timestamp
79 Date getAddressbookEntryUpdated ();
82 * Setter for entry updated timestamp
84 * @param addressbookEntryUpdated Entry updated timestamp
86 void setAddressbookEntryUpdated (final Date addressbookEntryUpdated);
89 * Getter for private contact
91 * @return Private contact
93 Contact getAddressbookEntryPrivateContact ();
96 * Setter for private contact
98 * @param addressbookEntryPrivateContact Private contact
100 void setAddressbookEntryPrivateContact (final Contact addressbookEntryPrivateContact);
103 * Getter for address book
105 * @return Address book
107 Addressbook getEntryAddressbook ();
110 * Setter for address book
112 * @param addressbookId Address book
114 void setEntryAddressbook (final Addressbook addressbookId);
117 boolean equals (final Object object);