]> git.mxchange.org Git - jaddressbook-share-lib.git/blob - src/org/mxchange/addressbook/model/addressbook/Addressbook.java
Fixed getter calls, the new ones are more descriptive.
[jaddressbook-share-lib.git] / src / org / mxchange / addressbook / model / addressbook / Addressbook.java
1 /*
2  * Copyright (C) 2016 Roland Haeder
3  *
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.
8  *
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.
13  *
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/>.
16  */
17 package org.mxchange.addressbook.model.addressbook;
18
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;
23
24 /**
25  * A POJI for addressbooks
26  * <p>
27  * @author Roland Haeder<roland@mxchange.org>
28  */
29 public interface Addressbook extends Serializable {
30
31         /**
32          * Getter for id number
33          * <p>
34          * @return Id number
35          */
36         Long getAddressbookId ();
37
38         /**
39          * Setter for id number
40          * <p>
41          * @param addressbookId Id number
42          */
43         void setAddressbookId (final Long addressbookId);
44
45         /**
46          * Getter for addressbook creation timestamp
47          * <p>
48          * @return Addressbook creation timestamp
49          */
50         Calendar getAddressbookCreated ();
51
52         /**
53          * Setter for addressbook creation timestamp
54          * <p>
55          * @param addressbookCreated Addressbook creation timestamp
56          */
57         void setAddressbookCreated (final Calendar addressbookCreated);
58
59         /**
60          * Getter for addressbook's name
61          * <p>
62          * @return Addressbook's name
63          */
64         String getAddressbookName ();
65
66         /**
67          * Setter for addressbook's name
68          * <p>
69          * @param addressbookName Addressbook's name
70          */
71         void setAddressbookName (final String addressbookName);
72
73         /**
74          * Getter for addressbook status
75          * <p>
76          * @return Addressbook status
77          */
78         AddressbokStatus getAddressbookStatus ();
79
80         /**
81          * Setter for addressbook status
82          * <p>
83          * @param addressbookStatus Addressbook status
84          */
85         void setAddressbookStatus (final AddressbokStatus addressbookStatus);
86
87         /**
88          * Getter for addressbook's user (owner)
89          * <p>
90          * @return Addressbook's user (owner)
91          */
92         User getAddressbookUser ();
93
94         /**
95          * Setter for addressbook's user (owner)
96          * <p>
97          * @param addressbookUser Addressbook's user (owner)
98          */
99         void setAddressbookUser (final User addressbookUser);
100
101         /**
102          * Getter for last locked timestamp
103          * <p>
104          * @return Last locked timestamp
105          */
106         Calendar getAddressbookLastLocked ();
107
108         /**
109          * Setter for last locked timestamp
110          * <p>
111          * @param addressbookLastLocked Last locked timestamp
112          */
113         void setAddressbookLastLocked (final Calendar addressbookLastLocked);
114
115         /**
116          * Getter for last locked reason
117          * <p>
118          * @return Last locked reason
119          */
120         String getAddressbookLastLockedReason ();
121
122         /**
123          * Getter for last locked reason
124          * <p>
125          * @param addressbookLastLockedReason Last locked reason
126          */
127         void setAddressbookLastLockedReason (final String addressbookLastLockedReason);
128
129         @Override
130         boolean equals (final Object object);
131
132         @Override
133         int hashCode ();
134 }