--- /dev/null
+/*
+ * Copyright (C) 2017 - 2020 Free Software Foundation
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ */
+package org.mxchange.jcontactsbusiness.events.branchoffice.added;
+
+import java.text.MessageFormat;
+import org.mxchange.jcontactsbusiness.model.branchoffice.BranchOffice;
+
+/**
+ * An event being fired when a branch office has been added by an administrator.
+ * <p>
+ * @author Roland Häder<roland@mxchange.org>
+ */
+public class AdminBranchOfficeAddedEvent implements ObservableAdminBranchOfficeAddedEvent {
+
+ /**
+ * Serial number
+ */
+ private static final long serialVersionUID = 572_367_561_659_109L;
+
+ /**
+ * Branch office instance being added
+ */
+ private final BranchOffice addedBranchOffice;
+
+ /**
+ * Constructor with branch office instance
+ * <p>
+ * @param addedBranchOffice Branch office instance
+ *
+ * @throws NullPointerException If the parameter is null
+ */
+ public AdminBranchOfficeAddedEvent (final BranchOffice addedBranchOffice) {
+ // Check parameter
+ if (null == addedBranchOffice) {
+ // Throw NPE
+ throw new NullPointerException("addedBranchOffice is null"); //NOI18N
+ } else if (addedBranchOffice.getBranchId() == null) {
+ // Throw NPE again
+ throw new NullPointerException("addedBranchOffice.branchId is null"); //NOI18N
+ } else if (addedBranchOffice.getBranchId() < 1) {
+ // Throw NPE again
+ throw new NullPointerException(MessageFormat.format("addedBranchOffice.branchId={0} is not valid", addedBranchOffice.getBranchId())); //NOI18N
+ }
+
+ // Set it
+ this.addedBranchOffice = addedBranchOffice;
+ }
+
+ @Override
+ public BranchOffice getAddedBranchOffice () {
+ return this.addedBranchOffice;
+ }
+
+}
+++ /dev/null
-/*
- * Copyright (C) 2017 - 2020 Free Software Foundation
- *
- * This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation, either version 3 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
- */
-package org.mxchange.jcontactsbusiness.events.branchoffice.added;
-
-import java.text.MessageFormat;
-import org.mxchange.jcontactsbusiness.model.branchoffice.BranchOffice;
-
-/**
- * An event being fired when a branch office has been added
- * <p>
- * @author Roland Häder<roland@mxchange.org>
- */
-public class BranchOfficeAddedEvent implements ObservableBranchOfficeAddedEvent {
-
- /**
- * Serial number
- */
- private static final long serialVersionUID = 572_367_561_659_109L;
-
- /**
- * Branch office instance being added
- */
- private final BranchOffice branchOffice;
-
- /**
- * Constructor with branch office instance
- * <p>
- * @param branchOffice Branch office instance
- * @throws NullPointerException If the parameter is null
- */
- public BranchOfficeAddedEvent (final BranchOffice branchOffice) {
- // Check parameter
- if (null == branchOffice) {
- // Throw NPE
- throw new NullPointerException("branchOffice is null"); //NOI18N
- } else if (branchOffice.getBranchId() == null) {
- // Throw NPE again
- throw new NullPointerException("branchOffice.branchId is null"); //NOI18N
- } else if (branchOffice.getBranchId() < 1) {
- // Throw NPE again
- throw new NullPointerException(MessageFormat.format("branchOffice.branchId={0} is not valid", branchOffice.getBranchId())); //NOI18N
- }
-
- // Set it
- this.branchOffice = branchOffice;
- }
-
- @Override
- public BranchOffice getBranchOffice () {
- return this.branchOffice;
- }
-
-}
--- /dev/null
+/*
+ * Copyright (C) 2017 - 2020 Free Software Foundation
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ */
+package org.mxchange.jcontactsbusiness.events.branchoffice.added;
+
+import java.io.Serializable;
+import org.mxchange.jcontactsbusiness.model.branchoffice.BranchOffice;
+
+/**
+ * An interface for events being fired when a branch office has been added by an
+ * administrator.
+ * <p>
+ * @author Roland Häder<roland@mxchange.org>
+ */
+public interface ObservableAdminBranchOfficeAddedEvent extends Serializable {
+
+ /**
+ * Getter for added branch office instance
+ * <p>
+ * @return Added branch office instance
+ */
+ BranchOffice getAddedBranchOffice ();
+
+}
+++ /dev/null
-/*
- * Copyright (C) 2017 - 2020 Free Software Foundation
- *
- * This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation, either version 3 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
- */
-package org.mxchange.jcontactsbusiness.events.branchoffice.added;
-
-import java.io.Serializable;
-import org.mxchange.jcontactsbusiness.model.branchoffice.BranchOffice;
-
-/**
- * An interface for events being triggered when a branch office has been added.
- * <p>
- * @author Roland Häder<roland@mxchange.org>
- */
-public interface ObservableBranchOfficeAddedEvent extends Serializable {
-
- /**
- * Getter for branch office instance
- * <p>
- * @return Branch office instance
- */
- BranchOffice getBranchOffice ();
-
-}
--- /dev/null
+/*
+ * Copyright (C) 2017 - 2020 Free Software Foundation
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ */
+package org.mxchange.jcontactsbusiness.events.branchoffice.updated;
+
+import java.text.MessageFormat;
+import org.mxchange.jcontactsbusiness.model.branchoffice.BranchOffice;
+
+/**
+ * An event being fired when a branch office has been updated by an
+ * administrator.
+ * <p>
+ * @author Roland Häder<roland@mxchange.org>
+ */
+public class AdminBranchOfficeUpdatedEvent implements ObservableAdminBranchOfficeUpdatedEvent {
+
+ /**
+ * Serial number
+ */
+ private static final long serialVersionUID = 572_367_561_659_114L;
+
+ /**
+ * Branch office instance being added
+ */
+ private final BranchOffice updatedBranchOffice;
+
+ /**
+ * Constructor with branch office instance
+ * <p>
+ * @param updatedBranchOffice Branch office instance
+ * <p>
+ * @throws NullPointerException If the parameter is null
+ */
+ public AdminBranchOfficeUpdatedEvent (final BranchOffice updatedBranchOffice) {
+ // Check parameter
+ if (null == updatedBranchOffice) {
+ // Throw NPE
+ throw new NullPointerException("updatedBranchOffice is null"); //NOI18N
+ } else if (updatedBranchOffice.getBranchId() == null) {
+ // Throw NPE again
+ throw new NullPointerException("updatedBranchOffice.branchId is null"); //NOI18N
+ } else if (updatedBranchOffice.getBranchId() < 1) {
+ // Throw NPE again
+ throw new NullPointerException(MessageFormat.format("updatedBranchOffice.branchId={0} is not valid", updatedBranchOffice.getBranchId())); //NOI18N
+ }
+
+ // Set it
+ this.updatedBranchOffice = updatedBranchOffice;
+ }
+
+ @Override
+ public BranchOffice getUpdatedBranchOffice () {
+ return this.updatedBranchOffice;
+ }
+
+}
--- /dev/null
+/*
+ * Copyright (C) 2017 - 2020 Free Software Foundation
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ */
+package org.mxchange.jcontactsbusiness.events.branchoffice.updated;
+
+import java.io.Serializable;
+import org.mxchange.jcontactsbusiness.model.branchoffice.BranchOffice;
+
+/**
+ * An interface for events being fired when an administrator has updated a
+ * branch office.
+ * <p>
+ * @author Roland Häder<roland@mxchange.org>
+ */
+public interface ObservableAdminBranchOfficeUpdatedEvent extends Serializable {
+
+ /**
+ * Getter for branch office instance
+ * <p>
+ * @return Branch office instance
+ */
+ BranchOffice getUpdatedBranchOffice ();
+
+}
/**
* Serial number
*/
- private static final long serialVersionUID = 572_367_561_659_110L;
+ private static final long serialVersionUID = 572_367_561_659_111L;
/**
* Branch office instance being added
* Constructor with department instance
* <p>
* @param department Branch office instance
+ * <p>
* @throws NullPointerException If the parameter is null
*/
public DepartmentAddedEvent (final Department department) {
import org.mxchange.jcontactsbusiness.model.department.Department;
/**
- * An interface for events being triggered when a department has been added.
+ * An interface for events being fired when a department has been added.
* <p>
* @author Roland Häder<roland@mxchange.org>
*/
import org.mxchange.jcontactsbusiness.model.employee.Employable;
/**
- * An interface for events being triggered when a employee has been added.
+ * An interface for events being fired when a employee has been added.
* <p>
* @author Roland Häder<roland@mxchange.org>
*/
import org.mxchange.jcontactsbusiness.model.headquarter.Headquarter;
/**
- * An interface for events being triggered when a headquarter has been added.
+ * An interface for events being fired when a headquarter has been added.
* <p>
* @author Roland Häder<roland@mxchange.org>
*/
import org.mxchange.jcontactsbusiness.model.opening_time.OpeningTime;
/**
- * An interface for events being triggered when a opening time has been added.
+ * An interface for events being fired when a opening time has been added.
* <p>
* @author Roland Häder<roland@mxchange.org>
*/
/**
* Serial number
*/
- private static final long serialVersionUID = 572_367_561_659_111L;
+ private static final long serialVersionUID = 572_367_561_659_113L;
/**
* Branch office instance being added
* Constructor with opening time instance
* <p>
* @param openingTime Branch office instance
+ * <p>
* @throws NullPointerException If the parameter is null
*/
public OpeningTimeAddedEvent (final OpeningTime openingTime) {