2 * Copyright (C) 2016, 2017 Roland Häder
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.department;
19 import java.io.Serializable;
20 import java.util.Calendar;
21 import org.mxchange.jcontactsbusiness.branch.BranchOffice;
22 import org.mxchange.jcontactsbusiness.employee.Employee;
23 import org.mxchange.jcontactsbusiness.headquarters.HeadQuartersData;
24 import org.mxchange.jusercore.model.user.User;
25 import org.mxchange.jcontactsbusiness.basicdata.BusinessBasicData;
28 * A POJI for company departments
30 * @author Roland Häder<roland@mxchange.org>
32 public interface Department extends Serializable {
35 * Getter for connection to company contact
37 * @return Connection to company contact
39 BusinessBasicData getDepartmentCompany ();
42 * Setter for connection to company contact
44 * @param departmentCompany Connection to company contact
46 void setDepartmentCompany (final BusinessBasicData departmentCompany);
49 * Getter for connection to company headquarters
51 * @return Connection to company headquarters
53 HeadQuartersData getDepartentHeadquarters ();
56 * Setter for connection to company headquarters
58 * @param departentHeadquarters Connection to company headquarters
60 void setDepartentHeadquarters (final HeadQuartersData departentHeadquarters);
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 Employee getDepartmentLead ();
98 * Setter for department lead employee
100 * @param departmentLead Department lead employee
102 void setDepartmentLead (final Employee departmentLead);
105 * Getter for department name
107 * @return Department name
109 String getDepartmentName ();
112 * Setter for department name
114 * @param departmentName Department name
116 void setDepartmentName (final String departmentName);
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 Calendar 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 Calendar departmentCreated);
147 boolean equals (final Object object);