[EDIT] 共通キーワードの追加
This commit is contained in:
@@ -1,18 +1,17 @@
|
|||||||
package com.example.rhizome.app.presentation.controller.pageproperty;
|
package com.example.rhizome.app.presentation.controller.pageproperty;
|
||||||
|
|
||||||
/**
|
|
||||||
* Servlet から Servlet に返却する際に使用する文字列を管理するクラス
|
|
||||||
*/
|
|
||||||
public class PageReturnAttributeKeyword {
|
public class PageReturnAttributeKeyword {
|
||||||
|
|
||||||
public static final String MESSAGE_ERROR = "messageError";
|
public static final String MESSAGE_ERROR = "messageError";
|
||||||
public static final String MESSAGE_INFO = "messageInfo";
|
public static final String MESSAGE_INFO = "messageInfo";
|
||||||
|
|
||||||
public static final String DEPARTMENT_FORM_LIST = "departmentFormList";
|
|
||||||
public static final String UPDATE_EMPLOYEE_INFO_FORM = "updateEmployeeInfoForm";
|
public static final String UPDATE_EMPLOYEE_INFO_FORM = "updateEmployeeInfoForm";
|
||||||
public static final String INSERT_EMPLOYEE_FORM = "insertEmployeeForm";
|
public static final String INSERT_EMPLOYEE_FORM = "insertEmployeeForm";
|
||||||
public static final String LOGIN_INFO_FORM = "loginInfoForm";
|
public static final String LOGIN_INFO_FORM = "loginInfoForm";
|
||||||
public static final String UPDATE_PERSONAL_EMPLOYEE_USER_FORM = "updatePersonalEmployeeUserForm";
|
public static final String UPDATE_PERSONAL_EMPLOYEE_USER_FORM = "updatePersonalEmployeeUserForm";
|
||||||
public static final String EMPLOYEE_INFO_FORM_LIST = "employeeInfoFormList";
|
public static final String EMPLOYEE_INFO_FORM_LIST = "employeeInfoFormList";
|
||||||
|
|
||||||
|
public static final String DEPARTMENT_FORM_LIST = "departmentFormList";
|
||||||
|
public static final String INSERT_DEPARTMENT_FORM = "insertDepartmentForm";
|
||||||
|
public static final String UPDATE_DEPARTMENT_FORM = "updateDepartmentForm";
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,19 +2,13 @@ package com.example.rhizome.app.presentation.controller.pageproperty;
|
|||||||
|
|
||||||
import java.util.Set;
|
import java.util.Set;
|
||||||
|
|
||||||
/**
|
|
||||||
* システムで利用しているJSPのリスト
|
|
||||||
*/
|
|
||||||
public class TransitionTargetPageNameKeyword {
|
public class TransitionTargetPageNameKeyword {
|
||||||
|
|
||||||
// 共通
|
|
||||||
public static final String LOGIN_HTML = "login";
|
public static final String LOGIN_HTML = "login";
|
||||||
|
|
||||||
// 一般向け
|
|
||||||
public static final String UPDATE_PERSONAL_EMPLOYEE_INPUT_HTML = "updatePersonalEmployeeInput";
|
public static final String UPDATE_PERSONAL_EMPLOYEE_INPUT_HTML = "updatePersonalEmployeeInput";
|
||||||
public static final String UPDATE_PERSONAL_RESULT_HTML = "updatePersonalEmployeeResult";
|
public static final String UPDATE_PERSONAL_RESULT_HTML = "updatePersonalEmployeeResult";
|
||||||
|
|
||||||
// 管理者向け
|
|
||||||
public static final String MENU_HTML = "menu";
|
public static final String MENU_HTML = "menu";
|
||||||
public static final String SELECT_EMPLOYEE_HTML = "selectEmployee";
|
public static final String SELECT_EMPLOYEE_HTML = "selectEmployee";
|
||||||
public static final String INSERT_EMPLOYEE_INPUT_HTML = "insertEmployeeInput";
|
public static final String INSERT_EMPLOYEE_INPUT_HTML = "insertEmployeeInput";
|
||||||
@@ -22,19 +16,18 @@ public class TransitionTargetPageNameKeyword {
|
|||||||
public static final String INSERT_EMPLOYEE_RESULT_HTML = "insertEmployeeResult";
|
public static final String INSERT_EMPLOYEE_RESULT_HTML = "insertEmployeeResult";
|
||||||
public static final String UPDATE_EMPLOYEE_INPUT_HTML = "updateEmployeeInput";
|
public static final String UPDATE_EMPLOYEE_INPUT_HTML = "updateEmployeeInput";
|
||||||
|
|
||||||
|
public static final String SELECT_DEPARTMENT_HTML = "selectDepartment";
|
||||||
|
|
||||||
public static final String ERROR_HTML = "error";
|
public static final String ERROR_HTML = "error";
|
||||||
|
|
||||||
// 共通(Controller)
|
|
||||||
public static final String INDEX_BLANK = "";
|
public static final String INDEX_BLANK = "";
|
||||||
public static final String INDEX_SLASH = "/";
|
public static final String INDEX_SLASH = "/";
|
||||||
public static final String INDEX_LOGIN = "/login";
|
public static final String INDEX_LOGIN = "/login";
|
||||||
public static final String LOGOUT = "/logout";
|
public static final String LOGOUT = "/logout";
|
||||||
public static final String DO_LOGIN = "/doLogin";
|
public static final String DO_LOGIN = "/doLogin";
|
||||||
|
|
||||||
// 一般向け(Controller)
|
|
||||||
public static final String PERSONAL_UPDATE_RESULT = "/updatePersonalEmployeeResult";
|
public static final String PERSONAL_UPDATE_RESULT = "/updatePersonalEmployeeResult";
|
||||||
|
|
||||||
// 管理者向け(Controller)
|
|
||||||
public static final String DELETE_EMPLOYEE = "/deleteEmployee";
|
public static final String DELETE_EMPLOYEE = "/deleteEmployee";
|
||||||
public static final String INSERT_EMPLOYEE_INPUT = "/insertEmployeeInput";
|
public static final String INSERT_EMPLOYEE_INPUT = "/insertEmployeeInput";
|
||||||
public static final String INSERT_EMPLOYEE_CONFIRM = "/insertEmployeeConfirm";
|
public static final String INSERT_EMPLOYEE_CONFIRM = "/insertEmployeeConfirm";
|
||||||
@@ -45,15 +38,21 @@ public class TransitionTargetPageNameKeyword {
|
|||||||
public static final String SHOW_UPDATE_EMPLOYEE = "/showUpdateEmployee";
|
public static final String SHOW_UPDATE_EMPLOYEE = "/showUpdateEmployee";
|
||||||
public static final String UPDATE_EMPLOYEE_RESULT = "/updateEmployeeResult";
|
public static final String UPDATE_EMPLOYEE_RESULT = "/updateEmployeeResult";
|
||||||
|
|
||||||
// Department
|
public static final String SELECT_DEPARTMENT = "/selectDepartment";
|
||||||
// HTML
|
public static final String SELECT_DEPARTMENT_INFO_FORM_EMPTY = "/selectDepartmentAll";
|
||||||
// Controller
|
public static final String INSERT_DEPARTMENT_INPUT = "/insertDepartmentInput";
|
||||||
|
public static final String INSERT_DEPARTMENT_CONFIRM = "/insertDepartmentConfirm";
|
||||||
|
public static final String INSERT_DEPARTMENT = "/insertDepartment";
|
||||||
|
public static final String DELETE_DEPARTMENT = "/deleteDepartment";
|
||||||
|
public static final String SHOW_UPDATE_DEPARTMENT = "/showUpdateDepartment";
|
||||||
|
public static final String UPDATE_DEPARTMENT_RESULT = "/updateDepartmentResult";
|
||||||
|
|
||||||
|
public static final String INSERT_DEPARTMENT_INPUT_HTML = "insertDepartmentInput";
|
||||||
|
public static final String INSERT_DEPARTMENT_CONFIRM_HTML = "insertDepartmentConfirm";
|
||||||
|
public static final String INSERT_DEPARTMENT_RESULT_HTML = "insertDepartmentResult";
|
||||||
|
|
||||||
|
public static final String UPDATE_DEPARTMENT_INPUT_HTML = "updateDepartmentInput";
|
||||||
|
|
||||||
/**
|
|
||||||
* 管理者向けのページリストを返す
|
|
||||||
*
|
|
||||||
* @return 管理者向けのページリスト
|
|
||||||
*/
|
|
||||||
public static Set<String> getAdminPageList() {
|
public static Set<String> getAdminPageList() {
|
||||||
|
|
||||||
return Set.of(
|
return Set.of(
|
||||||
@@ -70,15 +69,17 @@ public class TransitionTargetPageNameKeyword {
|
|||||||
SELECT_EMPLOYEE_INFO,
|
SELECT_EMPLOYEE_INFO,
|
||||||
SELECT_EMPLOYEE_INFO_FORM_EMPTY,
|
SELECT_EMPLOYEE_INFO_FORM_EMPTY,
|
||||||
SHOW_UPDATE_EMPLOYEE,
|
SHOW_UPDATE_EMPLOYEE,
|
||||||
UPDATE_EMPLOYEE_RESULT
|
UPDATE_EMPLOYEE_RESULT,
|
||||||
);
|
SELECT_DEPARTMENT,
|
||||||
|
SELECT_DEPARTMENT_INFO_FORM_EMPTY,
|
||||||
|
INSERT_DEPARTMENT_INPUT,
|
||||||
|
INSERT_DEPARTMENT_CONFIRM,
|
||||||
|
INSERT_DEPARTMENT,
|
||||||
|
DELETE_DEPARTMENT,
|
||||||
|
SHOW_UPDATE_DEPARTMENT,
|
||||||
|
UPDATE_DEPARTMENT_RESULT);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* 一般向けのページリストを返す
|
|
||||||
*
|
|
||||||
* @return 一般向けのページリスト
|
|
||||||
*/
|
|
||||||
public static Set<String> getUserPageList() {
|
public static Set<String> getUserPageList() {
|
||||||
return Set.of(
|
return Set.of(
|
||||||
INDEX_BLANK,
|
INDEX_BLANK,
|
||||||
@@ -86,8 +87,7 @@ public class TransitionTargetPageNameKeyword {
|
|||||||
INDEX_LOGIN,
|
INDEX_LOGIN,
|
||||||
LOGOUT,
|
LOGOUT,
|
||||||
DO_LOGIN,
|
DO_LOGIN,
|
||||||
PERSONAL_UPDATE_RESULT
|
PERSONAL_UPDATE_RESULT);
|
||||||
);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user