2 * Copyright (C) 2016 - 2020 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.jcontactsbusiness.model.department;
19 import java.io.Serializable;
20 import java.util.Date;
21 import org.mxchange.jcontactsbusiness.model.basicdata.BasicData;
22 import org.mxchange.jcontactsbusiness.model.branchoffice.BranchOffice;
23 import org.mxchange.jcontactsbusiness.model.employee.Employable;
24 import org.mxchange.jcontactsbusiness.model.headquarter.Headquarter;
25 import org.mxchange.jusercore.model.user.User;
28 * A POJI for company departments
30 * @author Roland Häder<roland@mxchange.org>
32 public interface Department extends Comparable<Department>, Serializable {
35 * Getter for connection to business contact
37 * @return Connection to business contact
39 BasicData getDepartmentCompany ();
42 * Setter for connection to business contact
44 * @param departmentCompany Connection to business contact
46 void setDepartmentCompany (final BasicData departmentCompany);
49 * Getter for connection to company headquarter
51 * @return Connection to company headquarter
53 Headquarter getDepartmentHeadquarter ();
56 * Setter for connection to company headquarter
58 * @param departmentHeadquarter Connection to company headquarter
60 void setDepartmentHeadquarter (final Headquarter departmentHeadquarter);
63 * Getter for connection to company branch office
65 * @return Connection to company branch office
67 BranchOffice getDepartmentBranchOffice ();
70 * Setter for connection to company branch office
72 * @param departmentBranchOffice Connection to company branch office
74 void setDepartmentBranchOffice (final BranchOffice departmentBranchOffice);
77 * Getter for department id
79 * @return Department id
81 Long getDepartmentId ();
84 * Setter for department id
86 * @param departmentId Department id
88 void setDepartmentId (final Long departmentId);
91 * Getter for department lead employee
93 * @return Department lead employee
95 Employable getDepartmentLead ();
98 * Setter for department lead employee
100 * @param departmentLead Department lead employee
102 void setDepartmentLead (final Employable departmentLead);
105 * Getter for department i18n key
107 * @return Department i18n key
109 String getDepartmentI18nKey ();
112 * Setter for department i18n key
114 * @param departmentI18nKey Department i18n key
116 void setDepartmentI18nKey (final String departmentI18nKey);
119 * Getter for user owner instance
121 * @return User owner instance
123 User getDepartmentUserOwner ();
126 * Setter for user owner instance
128 * @param departmentUserOwner User owner instance
130 void setDepartmentUserOwner (final User departmentUserOwner);
133 * Getter for timestamp when this entry has been created
135 * @return Timestamp when this entry has been created
137 Date getDepartmentCreated ();
140 * Setter for timestamp when this entry has been created
142 * @param departmentCreated Timestamp when this entry has been created
144 void setDepartmentCreated (final Date departmentCreated);
147 boolean equals (final Object object);