2 * Copyright (C) 2016 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;
19 import java.io.Serializable;
20 import java.util.Calendar;
21 import org.mxchange.addressbook.model.addressbook.status.AddressbokStatus;
22 import org.mxchange.jusercore.model.user.User;
25 * A POJI for addressbooks
27 * @author Roland Haeder<roland@mxchange.org>
29 public interface Addressbook extends Serializable {
32 * Getter for id number
36 Long getAddressbookId ();
39 * Setter for id number
41 * @param addressbookId Id number
43 void setAddressbookId (final Long addressbookId);
46 * Getter for addressbook creation timestamp
48 * @return Addressbook creation timestamp
50 Calendar getAddressbookCreated ();
53 * Setter for addressbook creation timestamp
55 * @param addressbookCreated Addressbook creation timestamp
57 void setAddressbookCreated (final Calendar addressbookCreated);
60 * Getter for addressbook's name
62 * @return Addressbook's name
64 String getAddressbookName ();
67 * Setter for addressbook's name
69 * @param addressbookName Addressbook's name
71 void setAddressbookName (final String addressbookName);
74 * Getter for addressbook status
76 * @return Addressbook status
78 AddressbokStatus getAddressbookStatus ();
81 * Setter for addressbook status
83 * @param addressbookStatus Addressbook status
85 void setAddressbookStatus (final AddressbokStatus addressbookStatus);
88 * Getter for addressbook's user (owner)
90 * @return Addressbook's user (owner)
92 User getAddressbookUser ();
95 * Setter for addressbook's user (owner)
97 * @param addressbookUser Addressbook's user (owner)
99 void setAddressbookUser (final User addressbookUser);
102 * Getter for last locked timestamp
104 * @return Last locked timestamp
106 Calendar getAddressbookLastLocked ();
109 * Setter for last locked timestamp
111 * @param addressbookLastLocked Last locked timestamp
113 void setAddressbookLastLocked (final Calendar addressbookLastLocked);
116 * Getter for last locked reason
118 * @return Last locked reason
120 String getAddressbookLastLockedReason ();
123 * Getter for last locked reason
125 * @param addressbookLastLockedReason Last locked reason
127 void setAddressbookLastLockedReason (final String addressbookLastLockedReason);
130 boolean equals (final Object object);