import org.mxchange.jcontactsbusiness.model.employee.Employable;
import org.mxchange.jcontactsbusiness.model.headquarter.Headquarter;
import org.mxchange.jfinancials.beans.BaseFinancialsBean;
-import org.mxchange.jfinancials.beans.business.department.list.FinancialsDepartmentListWebViewtController;
import org.mxchange.jusercore.model.user.User;
+import org.mxchange.jfinancials.beans.business.department.list.FinancialsDepartmentListWebViewController;
/**
* An administrative bean for departments
* A general department controller (backing bean)
*/
@Inject
- private FinancialsDepartmentListWebViewtController departmentListController;
+ private FinancialsDepartmentListWebViewController departmentListController;
/**
* Owning user instance (which this department is assigned to)
*/
@Named ("departmentListController")
@ViewScoped
-public class FinancialsDepartmentListWebViewBean extends BaseFinancialsBean implements FinancialsDepartmentListWebViewtController {
+public class FinancialsDepartmentListWebViewBean extends BaseFinancialsBean implements FinancialsDepartmentListWebViewController {
/**
* Serial number
--- /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 Affero 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 Affero General Public License for more details.
+ *
+ * You should have received a copy of the GNU Affero General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ */
+package org.mxchange.jfinancials.beans.business.department.list;
+
+import java.io.Serializable;
+import org.mxchange.jcontactsbusiness.exceptions.department.DepartmentNotFoundException;
+import org.mxchange.jcontactsbusiness.model.department.Department;
+
+/**
+ * An interface for general department controller
+ * <p>
+ * @author Roland Häder<roland@mxchange.org>
+ */
+public interface FinancialsDepartmentListWebViewController extends Serializable {
+
+ /**
+ * Retrieves a single company department entity for given id number or
+ * throws a proper exception if not found.
+ * <p>
+ * @param departmentId Company department id to lookup
+ * <p>
+ * @return Company department instance
+ * <p>
+ * @throws DepartmentNotFoundException If the id number could not be looked
+ * up and solved into an entity
+ */
+ Department findDepartmentById (final Long departmentId) throws DepartmentNotFoundException;
+
+ /**
+ * Checks whether the given department is already found in local cache.
+ * Please note that this method fully relies on the cache, so you must
+ * always fire proper events that add/update/delete entries in cache.
+ * <p>
+ * @param department Department to check it's address
+ * <p>
+ * @return Whether the address has been found
+ */
+ boolean isDepartmentAlreadyAdded (final Department department);
+
+}
+++ /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 Affero 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 Affero General Public License for more details.
- *
- * You should have received a copy of the GNU Affero General Public License
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
- */
-package org.mxchange.jfinancials.beans.business.department.list;
-
-import java.io.Serializable;
-import org.mxchange.jcontactsbusiness.exceptions.department.DepartmentNotFoundException;
-import org.mxchange.jcontactsbusiness.model.department.Department;
-
-/**
- * An interface for general department controller
- * <p>
- * @author Roland Häder<roland@mxchange.org>
- */
-public interface FinancialsDepartmentListWebViewtController extends Serializable {
-
- /**
- * Retrieves a single company department entity for given id number or
- * throws a proper exception if not found.
- * <p>
- * @param departmentId Company department id to lookup
- * <p>
- * @return Company department instance
- * <p>
- * @throws DepartmentNotFoundException If the id number could not be looked
- * up and solved into an entity
- */
- Department findDepartmentById (final Long departmentId) throws DepartmentNotFoundException;
-
- /**
- * Checks whether the given department is already found in local cache.
- * Please note that this method fully relies on the cache, so you must
- * always fire proper events that add/update/delete entries in cache.
- * <p>
- * @param department Department to check it's address
- * <p>
- * @return Whether the address has been found
- */
- boolean isDepartmentAlreadyAdded (final Department department);
-
-}
import org.mxchange.jcontactsbusiness.exceptions.department.DepartmentNotFoundException;
import org.mxchange.jcontactsbusiness.model.department.Department;
import org.mxchange.jfinancials.beans.business.department.list.FinancialsDepartmentListWebViewBean;
-import org.mxchange.jfinancials.beans.business.department.list.FinancialsDepartmentListWebViewtController;
+import org.mxchange.jfinancials.beans.business.department.list.FinancialsDepartmentListWebViewController;
/**
* Converter for company department id <-> instance
/**
* Company department EJB
*/
- private static FinancialsDepartmentListWebViewtController DEPARTMENT_LIST_CONTROLLER;
+ private static FinancialsDepartmentListWebViewController DEPARTMENT_LIST_CONTROLLER;
@Override
public Department getAsObject (final FacesContext context, final UIComponent component, final String submittedValue) {