From: Roland Häder Date: Thu, 2 Apr 2020 16:46:18 +0000 (+0200) Subject: Please repeat: X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=7c7a235c719aa74f7b662c1705184f9a16165bf8;p=jfinancials-war.git Please repeat: - #tpzo fixed: Viewt -> View Signed-off-by: Roland Häder --- diff --git a/src/java/org/mxchange/jfinancials/beans/business/department/FinancialsAdminDepartmentWebRequestBean.java b/src/java/org/mxchange/jfinancials/beans/business/department/FinancialsAdminDepartmentWebRequestBean.java index f4ec5365..acde45d9 100644 --- a/src/java/org/mxchange/jfinancials/beans/business/department/FinancialsAdminDepartmentWebRequestBean.java +++ b/src/java/org/mxchange/jfinancials/beans/business/department/FinancialsAdminDepartmentWebRequestBean.java @@ -33,8 +33,8 @@ import org.mxchange.jcontactsbusiness.model.department.Department; 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 @@ -92,7 +92,7 @@ public class FinancialsAdminDepartmentWebRequestBean extends BaseFinancialsBean * A general department controller (backing bean) */ @Inject - private FinancialsDepartmentListWebViewtController departmentListController; + private FinancialsDepartmentListWebViewController departmentListController; /** * Owning user instance (which this department is assigned to) diff --git a/src/java/org/mxchange/jfinancials/beans/business/department/list/FinancialsDepartmentListWebViewBean.java b/src/java/org/mxchange/jfinancials/beans/business/department/list/FinancialsDepartmentListWebViewBean.java index 37cffa55..2b40abf5 100644 --- a/src/java/org/mxchange/jfinancials/beans/business/department/list/FinancialsDepartmentListWebViewBean.java +++ b/src/java/org/mxchange/jfinancials/beans/business/department/list/FinancialsDepartmentListWebViewBean.java @@ -42,7 +42,7 @@ import org.mxchange.jfinancials.beans.BaseFinancialsBean; */ @Named ("departmentListController") @ViewScoped -public class FinancialsDepartmentListWebViewBean extends BaseFinancialsBean implements FinancialsDepartmentListWebViewtController { +public class FinancialsDepartmentListWebViewBean extends BaseFinancialsBean implements FinancialsDepartmentListWebViewController { /** * Serial number diff --git a/src/java/org/mxchange/jfinancials/beans/business/department/list/FinancialsDepartmentListWebViewController.java b/src/java/org/mxchange/jfinancials/beans/business/department/list/FinancialsDepartmentListWebViewController.java new file mode 100644 index 00000000..d6b5d29b --- /dev/null +++ b/src/java/org/mxchange/jfinancials/beans/business/department/list/FinancialsDepartmentListWebViewController.java @@ -0,0 +1,54 @@ +/* + * 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 . + */ +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 + *

+ * @author Roland Häder + */ +public interface FinancialsDepartmentListWebViewController extends Serializable { + + /** + * Retrieves a single company department entity for given id number or + * throws a proper exception if not found. + *

+ * @param departmentId Company department id to lookup + *

+ * @return Company department instance + *

+ * @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. + *

+ * @param department Department to check it's address + *

+ * @return Whether the address has been found + */ + boolean isDepartmentAlreadyAdded (final Department department); + +} diff --git a/src/java/org/mxchange/jfinancials/beans/business/department/list/FinancialsDepartmentListWebViewtController.java b/src/java/org/mxchange/jfinancials/beans/business/department/list/FinancialsDepartmentListWebViewtController.java deleted file mode 100644 index b256ae0c..00000000 --- a/src/java/org/mxchange/jfinancials/beans/business/department/list/FinancialsDepartmentListWebViewtController.java +++ /dev/null @@ -1,54 +0,0 @@ -/* - * 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 . - */ -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 - *

- * @author Roland Häder - */ -public interface FinancialsDepartmentListWebViewtController extends Serializable { - - /** - * Retrieves a single company department entity for given id number or - * throws a proper exception if not found. - *

- * @param departmentId Company department id to lookup - *

- * @return Company department instance - *

- * @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. - *

- * @param department Department to check it's address - *

- * @return Whether the address has been found - */ - boolean isDepartmentAlreadyAdded (final Department department); - -} diff --git a/src/java/org/mxchange/jfinancials/converter/business/department/FinancialsDepartmentConverter.java b/src/java/org/mxchange/jfinancials/converter/business/department/FinancialsDepartmentConverter.java index ddd779f6..e84e76cf 100644 --- a/src/java/org/mxchange/jfinancials/converter/business/department/FinancialsDepartmentConverter.java +++ b/src/java/org/mxchange/jfinancials/converter/business/department/FinancialsDepartmentConverter.java @@ -25,7 +25,7 @@ import javax.faces.convert.FacesConverter; 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 @@ -38,7 +38,7 @@ public class FinancialsDepartmentConverter implements Converter { /** * 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) {