diff --git a/.github/workflows/cdb-base-mqtt.yml b/.github/workflows/cdb-base-mqtt.yml new file mode 100644 index 000000000..f05712045 --- /dev/null +++ b/.github/workflows/cdb-base-mqtt.yml @@ -0,0 +1,45 @@ +name: CDB Base MQTT + +on: + push: + paths: + - "tools/developer_tools/cdb-base-mqtt/**" + - ".github/workflows/cdb-base-mqtt.yml" + pull_request: + paths: + - "tools/developer_tools/cdb-base-mqtt/**" + - ".github/workflows/cdb-base-mqtt.yml" + workflow_dispatch: + +permissions: + contents: read + +jobs: + test: + runs-on: ubuntu-latest + defaults: + run: + working-directory: tools/developer_tools/cdb-base-mqtt + + steps: + - name: Check out repository + uses: actions/checkout@v4 + + - name: Set up Java 8 and Maven cache + uses: actions/setup-java@v4 + with: + distribution: temurin + java-version: "8" + cache: maven + cache-dependency-path: tools/developer_tools/cdb-base-mqtt/pom.xml + + - name: Run tests + run: mvn --batch-mode --no-transfer-progress verify + + - name: Publish test results + if: always() + uses: actions/upload-artifact@v4 + with: + name: cdb-base-mqtt-test-results + path: tools/developer_tools/cdb-base-mqtt/target/surefire-reports/ + if-no-files-found: warn diff --git a/.github/workflows/cdb-bely-message-broker-base.yml b/.github/workflows/cdb-bely-message-broker-base.yml new file mode 100644 index 000000000..caefd2943 --- /dev/null +++ b/.github/workflows/cdb-bely-message-broker-base.yml @@ -0,0 +1,51 @@ +name: CDB/BELY MQTT Message Broker Base + +on: + push: + paths: + - "tools/developer_tools/cdb-bely-message-broker-base/**" + - ".github/workflows/cdb-bely-message-broker-base.yml" + pull_request: + paths: + - "tools/developer_tools/cdb-bely-message-broker-base/**" + - ".github/workflows/cdb-bely-message-broker-base.yml" + workflow_dispatch: + +permissions: + contents: read + +jobs: + test: + name: Run message broker base tests + runs-on: ubuntu-latest + + defaults: + run: + working-directory: tools/developer_tools/cdb-bely-message-broker-base + + strategy: + matrix: + python-version: ["3.11", "3.12", "3.13"] + + steps: + - name: Check out repository + uses: actions/checkout@v4 + + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v5 + with: + python-version: ${{ matrix.python-version }} + + - name: Install dependencies + run: | + python -m pip install --upgrade pip + make install-dev + + - name: Lint + run: make lint + + - name: Type check + run: make type-check + + - name: Run tests with coverage + run: make test-cov diff --git a/.github/workflows/cdb-mqtt-message-broker.yml b/.github/workflows/cdb-mqtt-message-broker.yml new file mode 100644 index 000000000..9922fc424 --- /dev/null +++ b/.github/workflows/cdb-mqtt-message-broker.yml @@ -0,0 +1,57 @@ +name: CDB MQTT Message Broker + +on: + push: + paths: + - "tools/developer_tools/cdb-mqtt-message-broker/**" + - "tools/developer_tools/cdb-bely-message-broker-base/**" + - "src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/mqtt/CdbMqttTopic.java" + - "src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/mqtt/CdbMqttOperation.java" + - ".github/workflows/cdb-mqtt-message-broker.yml" + pull_request: + paths: + - "tools/developer_tools/cdb-mqtt-message-broker/**" + - "tools/developer_tools/cdb-bely-message-broker-base/**" + - "src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/mqtt/CdbMqttTopic.java" + - "src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/mqtt/CdbMqttOperation.java" + - ".github/workflows/cdb-mqtt-message-broker.yml" + workflow_dispatch: + +permissions: + contents: read + +jobs: + test: + name: Run CDB MQTT message broker tests + runs-on: ubuntu-latest + + defaults: + run: + working-directory: tools/developer_tools/cdb-mqtt-message-broker + + strategy: + matrix: + python-version: ["3.11", "3.12", "3.13"] + + steps: + - name: Check out repository + uses: actions/checkout@v4 + + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v5 + with: + python-version: ${{ matrix.python-version }} + + - name: Install dependencies (base from this checkout) + run: | + python -m pip install --upgrade pip + make install-dev + + - name: Lint + run: make lint + + - name: Type check + run: make type-check + + - name: Run tests with coverage + run: make test-cov diff --git a/.github/workflows/test-cdbportal.yml b/.github/workflows/test-cdbportal.yml index 4e341ba0f..835fa3ff7 100644 --- a/.github/workflows/test-cdbportal.yml +++ b/.github/workflows/test-cdbportal.yml @@ -4,6 +4,7 @@ on: pull_request: paths: - 'src/java/CdbWebPortal/src/java/**' + - 'src/java/CdbWebPortal/lib/**' - 'tools/developer_tools/code_testing/CdbWebPortalTest/**' - '.github/workflows/test-cdbportal.yml' workflow_dispatch: @@ -24,11 +25,11 @@ jobs: - name: Checkout code uses: actions/checkout@v4 - - name: Set up JDK 11 and Maven cache + - name: Set up JDK 25 and Maven cache uses: actions/setup-java@v4 with: distribution: temurin - java-version: '11' + java-version: '25' cache: maven cache-dependency-path: tools/developer_tools/code_testing/CdbWebPortalTest/pom.xml diff --git a/.gitignore b/.gitignore index a35762907..9033cf94d 100644 --- a/.gitignore +++ b/.gitignore @@ -12,6 +12,7 @@ tools/developer_tools/portal_testing/CdbFunctionalTester/nbproject/private/ /tools/developer_tools/code_testing/CdbWebPortalTest/target/ /tools/developer_tools/portal_testing/PythonSeleniumTest/support_bin/ /tools/developer_tools/portal_testing/PythonSeleniumTest/dw-data/ +/tools/developer_tools/portal_testing/PythonSeleniumTest/test-failures/ /tools/developer_tools/python-client/* /tools/developer_tools/python-client/**/.DS_Store !/tools/developer_tools/python-client/generatePyClient.sh diff --git a/CLAUDE.md b/CLAUDE.md index 1f2e905bf..20c3ee660 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -128,6 +128,8 @@ MariaDB 10.5. Authoritative schema is the set of `create_cdb_tables.sql`, `creat - **Generated files that look like sources** are common: `cdb.portal.properties`, `web/WEB-INF/glassfish-web.xml`, `web/WEB-INF/web.xml`, `setup/glassfish-resources.xml`, `nbproject/private/private.properties`, and everything under `tools/developer_tools/python-client/packages/api/cdbApi/`. They are produced from `*.template` files (or via openapi-generator) by `dev-config` / `configure-web-portal` / `dist` targets and are in `.gitignore`. Edit the template, regenerate, then commit only the template. - **`cdb` vs `cdb_dev`**: every db, deploy, undeploy, and backup target has a `-dev` variant that targets a separate database name and Payara domain, so a developer can run both side-by-side. When adding new admin scripts, follow the same pattern (first arg is DB name, defaulting to `cdb`). - **Single canonical version string**: run `make prepare-release` (`sbin/cdb_prepare_release.py`) to bump `etc/version`, `openapi.yaml`, the web `?v=` cache-busters, the python-client `packages/*/pyproject.toml`/conda recipes, and scaffold `docs/release-notes/.md` together. It also flags any file that drifted out of sync in a prior manual release, and refreshes `uv.lock`. +- **Release notes as a plan milestone**: when planning a feature, include updating `docs/release-notes/.md` as the final milestone. Use the in-progress version (unreleased versions may already have notes; `etc/version` lags until `make prepare-release`), and create the file if it doesn't exist. Match the style of existing notes: `#` headings per area (e.g. `# MQTT`, `# API`, `# Testing`, `# Bug Fixes`), concise user-facing `*` bullets with nested sub-bullets for detail, and no commit hashes or file lists. Only list fixes to previously released behavior under Bug Fixes. +- **Ask before a bug fix changes behavior**: when a fix (including upgrade/regression fixes) would change user-visible behavior instead of restoring the previous behavior, describe the options (restore old vs. new behavior, with tradeoffs) and ask the user which one they want before implementing. Record the choice in the plan and, if user-facing, in the release notes. - **Plugins** under `tools/developer_tools/cdb_plugins/plugins//` extend both the Java portal (deployed via `make deploy-cdb-plugin` → `update_plugin_generated_files.py`) and the Python web service. `pluginTemplates/` is the scaffold. - **REST changes touch three places**: the Java route, `openapi.yaml`, and (after `generatePyClient.sh`) the regenerated `cdbApi/` package. The Python API tests under `tools/developer_tools/python-client/test/` are the integration check. diff --git a/Makefile b/Makefile index f2daa3b76..33d369d64 100644 --- a/Makefile +++ b/Makefile @@ -9,6 +9,7 @@ TOP = . SUBDIRS = src .PHONY: support support-mysql dev-config prepare-release release-python-client +.PHONY: mqtt-configuration configure-mqtt mqtt-configuration-dev configure-mqtt-dev .PHONY: db backup db-dev deploy-web-portal undeploy-web-portal deploy-web-service undeploy-web-service .PHONY: db-dev backup-dev deploy-web-portal-dev undeploy-web-portal-dev deploy-web-service-dev undeploy-web-service-dev @@ -28,6 +29,12 @@ release-python-client: configuration: $(TOP)/sbin/cdb_create_configuration.sh +mqtt-configuration: + $(TOP)/sbin/cdb_create_mqtt_configuration.sh cdb + +configure-mqtt: + $(TOP)/sbin/cdb_configure_mqtt_service.sh cdb + support: $(TOP)/sbin/cdb_install_support.sh @@ -79,6 +86,12 @@ undeploy-web-service: configuration-dev: $(TOP)/sbin/cdb_create_configuration.sh cdb_dev +mqtt-configuration-dev: + $(TOP)/sbin/cdb_create_mqtt_configuration.sh cdb_dev + +configure-mqtt-dev: + $(TOP)/sbin/cdb_configure_mqtt_service.sh cdb_dev + db-dev: $(TOP)/sbin/cdb_create_db.sh cdb_dev diff --git a/README.md b/README.md index ea33bfed3..45b55df50 100644 --- a/README.md +++ b/README.md @@ -15,7 +15,8 @@ apt-get install wget gcc git make cmake build-essential libcurses-ocaml-dev curl ***Versions used in production*** - mariadb: 10.5.22 -- Other dependencies are automatically downloaded and installed when running `make support` command. +- Payara 7 (Jakarta EE 11) and Java 25 LTS (Eclipse Temurin) on Linux x86_64; macOS (Intel and Apple Silicon) is supported for development. +- Other dependencies are automatically downloaded and installed when running `make support` command. Their versions are set in `support/bin/versions.sh` and can be overridden from the environment, e.g. `PAYARA_VERSION=... make support`. # Deployment @@ -63,7 +64,7 @@ Managing Payara: # Navigate to the ComponentDB distribution directory. # Viewing logs -tail -f ../support-`hostname -a`/payara/linux-x86_64/glassfish/domains/production/logs/server.log +tail -f ../support-`hostname -s`/payara/$CDB_HOST_ARCH/glassfish/domains/production/logs/server.log # Restart payara server ./etc/init.d/cdb-glassfish restart @@ -90,7 +91,13 @@ Restart application to reset any caches for `item_project`. # Deployment Upgrade See [docs/update/README.md](docs/update/README.md) for the full procedure, including -how to skip multiple releases at once. Summary, upgrading to 3.18.0: +how to skip multiple releases at once. + +> **Upgrading from 3.19.x or earlier to 3.20.0 or later:** the platform moved to Payara 7 and Java 25. +> Rebuild the support software first and reconfigure the new Payara domain; see +> [Rebuilding Support Software](docs/update/README.md#rebuilding-support-software-rarely-needed). + +Summary, upgrading to 3.18.0: ```sh cd $CDB_INSTALL_DIR wget https://github.com/AdvancedPhotonSource/ComponentDB/archive/v3.18.0.tar.gz @@ -159,6 +166,8 @@ netbeans & ``` ## Preparing Netbeans +`make support-netbeans` installs NetBeans 32 and configures it to run on the support JDK (Java 25), which the project needs to compile (`--release 25`). If you use another NetBeans install, start it with `--jdkhome $desired_dev_directory/support-`hostname -s`/java/$CDB_HOST_ARCH` or set `netbeans_jdkhome` in its `etc/netbeans.conf`. Don't select a separate Java Platform in the project properties; that would break `make` builds. + Once netbeans is open a few steps need to be taken to prepare netbeans for CDB development. 1. Open CDB Project: File > Open Project 2. Navigate to $desired_dev_directory/ComponentDB/src/java @@ -167,8 +176,9 @@ Once netbeans is open a few steps need to be taken to prepare netbeans for CDB d 5. Click "Resolve Missing Server Problem" 6. Add Server -> Payara Server - Installation Location: $desired_dev_directory/support-`hostname`/netbeans/payara - - Version: 5.2022.5 + - Version: the Payara version in `support/bin/versions.sh` (currently 7.2026.11) - Use the wizard's download + - Java Platform: the default (support JDK 25) 7. Next -> Use Default Domain Location -> Finish add server instance wizard 8. Select the Newly added "Payara Server" 9. Copy over the required mysql client to new payara server. @@ -176,7 +186,28 @@ Once netbeans is open a few steps need to be taken to prepare netbeans for CDB d # cd into the $desired_dev_directory/$distribution_directory cp src/java/CdbWebPortal/lib/mariadb-java-client-3.1.0.jar ../support-`hostname`/netbeans/payara/glassfish/domains/domain1/lib/ ``` -10. Run the project +10. Increase the server heap. The NetBeans-installed domain defaults to `-Xmx512m`, which runs out of memory (`OutOfMemoryError: Java heap space`) under the parallel Selenium suite and after repeated redeploys. With the server running: +```sh +ASADMIN=../support-`hostname`/netbeans/payara/bin/asadmin +$ASADMIN list-jvm-options | grep Xm # remove every existing -Xmx/-Xms value shown +$ASADMIN delete-jvm-options -- -Xmx512m +$ASADMIN create-jvm-options -- -Xmx4g +$ASADMIN create-jvm-options -- -Xms1g +$ASADMIN list-jvm-options | grep Xm # should show only -Xmx4g and -Xms1g +$ASADMIN restart-domain +``` +11. Run the project + +> Repeated NetBeans redeploys leak memory (old application class loaders are not fully released). Restart Payara before running the test suite or when the server slows down. + +> **Optional (macOS):** Payara's Hazelcast data grid defaults to port 5900, which is also used by macOS Screen Sharing (VNC). If startup hangs and `server.log` repeats `Unknown protocol: RFB`, move Hazelcast to another port. The `make support` domain already uses 6900; the NetBeans-installed copy needs this once. Stop the server first (a running server keeps the old value and can write it back), then use the domain path shown in NetBeans under Services → Servers → Payara → Properties: +> ```sh +> DOMAIN_XML=../support-`hostname`/netbeans/payara/glassfish/domains/domain1/config/domain.xml +> # Sets or adds start-port; the element may have no attributes when Payara relies on the 5900 default. +> sed -i '' -E 's# grep hazelcast-runtime-configuration $DOMAIN_XML # should show start-port="6900" +> ``` +> If the server is running, `asadmin set-hazelcast-configuration --enabled=true --startport 6900` followed by a restart does the same. ## ~~Python Web Service Development~~ The python web service is deprecated but is still a part of the distribution for legacy integrations. @@ -194,6 +225,8 @@ source setup.sh make test ``` +The Selenium suite runs several browsers in parallel against the portal; give Payara at least a 4 GB heap (see step 10 of Preparing Netbeans) and restart it after a long redeploy session. Failure logs, screenshots, and page source are written to `tools/developer_tools/portal_testing/PythonSeleniumTest/test-failures/` (see `tools/developer_tools/portal_testing/PythonSeleniumTest/README.md`). + See the test setup in `tools/developer_tools/{python-client,portal_testing/PythonSeleniumTest}/README.md`. ## Preparing a Release diff --git a/db/sql/test/populate_allowed_property_domain.sql b/db/sql/test/populate_allowed_property_domain.sql index 7805b54be..410b9ef6c 100644 --- a/db/sql/test/populate_allowed_property_domain.sql +++ b/db/sql/test/populate_allowed_property_domain.sql @@ -1,6 +1,7 @@ LOCK TABLES `allowed_property_domain` WRITE; /*!40000 ALTER TABLE `allowed_property_domain` DISABLE KEYS */; INSERT INTO `allowed_property_domain` VALUES +(2,2), (9,7), (10,8), (11,8), @@ -12,6 +13,7 @@ INSERT INTO `allowed_property_domain` VALUES (13,6), (13,7), (13,8), -(13,9); +(13,9), +(16,2); /*!40000 ALTER TABLE `allowed_property_domain` ENABLE KEYS */; UNLOCK TABLES; diff --git a/db/sql/test/populate_property_type.sql b/db/sql/test/populate_property_type.sql index ceacbb39b..caa015e35 100644 --- a/db/sql/test/populate_property_type.sql +++ b/db/sql/test/populate_property_type.sql @@ -14,6 +14,7 @@ INSERT INTO `property_type` VALUES (12,'cable_design_internal_property_type','Cable Design Metadata',NULL,NULL,NULL,NULL,NULL,0,0,1,1,NULL), (13,'Test Property','','',1,NULL,'','',0,0,0,1,NULL), (14,'Control Interface','Describes the interface to parent in the control hierarchy.',NULL,NULL,NULL,NULL,NULL,0,0,1,1,1), -(15,'cable_end_designation_property_type','cable end designation',NULL,NULL,NULL,NULL,NULL,0,0,1,1,NULL); +(15,'cable_end_designation_property_type','cable end designation',NULL,NULL,NULL,NULL,NULL,0,0,1,1,NULL), +(16,'Markdown Document','Markdown documentation.',NULL,1,9,'','',0,0,0,1,1); /*!40000 ALTER TABLE `property_type` ENABLE KEYS */; UNLOCK TABLES; diff --git a/docs/release-notes/3.20.0.md b/docs/release-notes/3.20.0.md new file mode 100644 index 000000000..f034916fe --- /dev/null +++ b/docs/release-notes/3.20.0.md @@ -0,0 +1,91 @@ +# Platform + +* Upgraded the application server to Payara 7 (Jakarta EE 11) and Java to the Java 25 LTS (Eclipse Temurin). + * Same Payara and Java versions on Linux x86_64 and macOS (Intel and Apple Silicon); all support versions are set in `support/bin/versions.sh` and can be overridden from the environment. + * Existing installations must rebuild the support software (`make support`); see `docs/update/README.md`. + * `make support` now creates the Payara `production` domain itself and moves the Payara data grid (Hazelcast) off port 5900, which conflicts with VNC / macOS Screen Sharing. + * NetBeans 32 and Ant 1.10.18 for development; `make support-netbeans` runs NetBeans on the bundled JDK. +* Migrated the portal, REST API, plugins, and unit tests from `javax.*` to the `jakarta.*` namespace. +* Upgraded PrimeFaces to 16, OmniFaces to 5, and Apache POI to 5. + * Dialogs keep their own background and scroll when their content is taller than the window. + * List filters that offer a fixed set of choices (e.g. owner group, category, topic) use the standard drop-down. + * Upload limits (file count, size, type) are checked in the browser before uploading, with standard PrimeFaces messages. + * Login fields show their hints as placeholders. + * Refreshed loading indicator: a spinner with "Loading…" in a rounded box, with the page blurred behind it. + * The user settings table on the user edit page follows the user's items-per-page setting and keeps its filters. + * Name, alternate name, and QR id fields check their value while typing with a lighter request that no longer reloads the field. +* MQTT connector updated to `mqtt-rar` 1.0.0; re-run `make configure-mqtt` after upgrading. +* Warnings from the REST API documentation (Swagger) and the MariaDB driver now appear in the server log. + +# MQTT + +* Added MQTT integration. The portal publishes change events to an MQTT broker so external systems (e.g. BELY) can react to CDB changes. + * Shared `cdb-base-mqtt` library for MQTT connection and event serialization, used by both BELY and CDB. + * Events include the affected entity, the user who triggered the change, and details of what changed. + * Consistent operation names across events (add, update, delete, trash, restore). +* Entity events + * Item add, update, and delete. +* Property events + * Property value add, update, and delete, with the before and after values. +* Log events + * Log entry add, update, and delete, with the before and after text. + * Log attachment add. +* Machine design events + * New machine design, including ones created from a template. + * Assigned item update. + * Move within the machine hierarchy. + * Represented element update, including changes made through a template. + * Trash and restore. +* Inventory events + * Location update. + * Assembly element assignment and clearing. +* CDB MQTT message broker (`cdb-mqtt`) + * Pluggable Python framework for reacting to CDB events: drop handler classes into a directory and implement methods such as `handle_item_log_add` or `handle_machine_design_move`. + * Typed models for every CDB event, global and per-handler YAML configuration, and optional CDB API access. + * Example handlers and a systemd service template included. +* Shared MQTT message broker base (`cdb-bely-message-broker-base`) + * Generic Python framework extracted from the BELY MQTT framework; `cdb-mqtt` is built on it and BELY will migrate to it. + * Applications register their topics and event models; handlers receive typed events through matching `handle_` methods. + * Handler discovery from a directory, MQTT topic wildcard matching, and global and per-handler YAML configuration. + * Reusable CLI (`start`, `list-handlers`) with application-specific defaults and environment variables. +* Configuration + * `make mqtt-configuration` and `make configure-mqtt` (with `-dev` variants) to create and deploy the MQTT connection configuration. + +# API + +* Ability to update an existing log entry. +* Ability to delete a log entry. +* Attachments added via the API, utilities, and the portal now use the same workflow. + +# Testing + +* Unit test project builds against Jakarta EE 11 and Java 25. +* Added unit tests for all MQTT event models and change detection. +* Added an MQTT test framework that listens to the broker and verifies published events. + * Python API tests for events that can be triggered via the API. + * Selenium tests for events only available in the portal. + * MQTT tests are included in `make test`. +* CI runs the shared MQTT library tests when it changes. +* Added tests for the Python message broker base and the CDB MQTT message broker, with sample payloads for every CDB event; both run in CI. +* Documented the new tests in the python client and Selenium READMEs. +* Selenium tests updated for PrimeFaces 16 and made more reliable. + * Failed tests save a log, screenshot, and page source to `test-failures/`; timeouts report the page, visible messages, and browser console errors. + * Reruns of a failed test are labelled by attempt, so their logs and screenshots are kept separately. + * Tests wait for pending PrimeFaces requests and the loading dialog before clicking. + * Import tests check that the import succeeded instead of only finishing the wizard. + * New coverage: list Excel export, document property upload, and markdown properties with an uploaded file. + * Payara needs at least a 4 GB heap for the parallel suite (see README). + +# Bug Fixes + +* Property Types, Sources, and Registered Users list pages now apply saved display settings when the page loads. +* Destroy is now called after a successful `updateOnRemoval`, removing the need for workarounds in the log list views. +* Cable catalog import no longer fails when Procurement Status is left blank. +* An invalid LDAP login now shows "Invalid Credentials" instead of an error. +* Fixes after the Payara 7 / PrimeFaces 16 upgrade: + * Non-modal dialogs no longer block clicks on the rest of the page. + * Machine design right-click menu actions are enabled for the clicked row. + * Pages no longer redirect to the home page after navigating between views. + * Project and category selectors, machine design toggles and favorites, and field tooltips work again. + * Saving on the user edit page works again. + * Cable catalog and cable design metadata layout is restored. diff --git a/docs/update/README.md b/docs/update/README.md index 5f986f3fa..1a0b42c4f 100644 --- a/docs/update/README.md +++ b/docs/update/README.md @@ -103,3 +103,29 @@ rm -rf support-`hostname -s` mv support-`hostname -s` support-`hostname -s`- make support ~~~~ + +## Upgrading to 3.20.0 (Payara 7, Java 25) +3.20.0 moves from Payara 5 / Java 11 to Payara 7 / Java 25, so the support software +**must** be rebuilt when passing through this version. The old Payara domain is not +migrated: JDBC pool, SSL certificate, MQTT connector, and any manual domain tweaks are +set up again on the new `production` domain. +~~~~ +./etc/init.d/cdb-glassfish stop # stop the old Payara 5 domain +mv support-`hostname -s` support-`hostname -s`- # keep it until verified +make support # prompts for new master and admin passwords +source setup.sh +# ...apply SQL updates (step 2 above)... +make configure-web-portal # JDBC pool/resource on the new domain +make configure-mqtt # only if MQTT is used (deploys mqtt-rar 1.0.0) +make deploy-cdb-plugin # redeploy each plugin in use +make deploy-web-portal +# Optional: re-apply a real SSL certificate (prompts for the new master password) +# ./sbin/cdb_update_glassfish_ssl.sh KEY_FILE CRT_FILE +~~~~ +Notes: +- `make support` downloads Eclipse Temurin and Payara from the internet; versions are + set in `support/bin/versions.sh`. +- The new domain runs the Payara data grid (Hazelcast) on ports 4900 and 6900; block + them in the firewall if the host is reachable from untrusted networks. +- Keystores are now PKCS12 (`keystore.p12`, `cacerts.p12`); + `cdb_update_glassfish_ssl.sh` handles both formats. diff --git a/sbin/cdb_configure_mqtt_service.sh b/sbin/cdb_configure_mqtt_service.sh new file mode 100755 index 000000000..6bf28cc8c --- /dev/null +++ b/sbin/cdb_configure_mqtt_service.sh @@ -0,0 +1,170 @@ +#!/bin/bash + +# Copyright (c) UChicago Argonne, LLC. All rights reserved. +# See LICENSE file. + + +# +# Script used for configuring MQTT connector for CDB webapp +# Deploys MQTT Resource Adapter and creates connection pool/resource +# +# Usage: +# +# $0 [CDB_DB_NAME] [mqtt_config_file] +# +# If no config file is specified, defaults to $CDB_INSTALL_DIR/etc/.mqtt.conf +# +# Sample MQTT configuration file contents (mqtt.conf): +# MQTT_HOST=localhost # MQTT broker hostname (default: localhost) +# MQTT_PORT=1883 # MQTT broker port (default: 1883) +# MQTT_USERNAME=admin # MQTT username (optional) +# MQTT_PASSWORD=admin # MQTT password (optional) +# MQTT_CLEAN_SESSION=true # Clean session flag (optional) +# MQTT_QOS=1 # Quality of Service level (optional) +# MQTT_KEEP_ALIVE_INTERVAL=60 # Keep alive interval in seconds (optional) +# MQTT_CONNECTION_TIMEOUT=30 # Connection timeout in seconds (optional) +# MQTT_MAX_INFLIGHT=10 # Maximum number of messages in flight (optional) +# MQTT_AUTOMATIC_RECONNECT=true # Automatic reconnection on disconnect (optional) +# MQTT_FILE_PERSISTANCE=false # Enable file-based message persistence (optional) +# MQTT_PERSISTENCE_DIRECTORY=. # Directory for persistent message storage (optional) +# MQTT_TOPIC_FILTER # MQTT topic filter for subscriptions (optional) + +MY_DIR=`dirname $0` && cd $MY_DIR && MY_DIR=`pwd` +if [ -z "${CDB_ROOT_DIR}" ]; then + CDB_ROOT_DIR=$MY_DIR/.. +fi +CDB_ENV_FILE=${CDB_ROOT_DIR}/setup.sh +if [ ! -f ${CDB_ENV_FILE} ]; then + echo "Environment file ${CDB_ENV_FILE} does not exist." + exit 2 +fi +. ${CDB_ENV_FILE} > /dev/null + +# Constants +MQTT_POOL_NAME="cdb/MQTT/pool" +MQTT_RESOURCE_NAME="cdb/MQTT/resource" +MQTT_RAR_NAME="mqtt-rar-1.0.0" +MQTT_CONNECTOR_RAR_DEPLOYMENT_NAME="cdb-mqtt-rar-deployment" +MQTT_RAR_PATH=$CDB_ROOT_DIR/src/lib/${MQTT_RAR_NAME}.rar + +# Look for the deployment-specific MQTT configuration file +CDB_DB_NAME=${1:-${CDB_DB_NAME:-cdb}} +if [ ! -z "$2" ]; then + mqttConfigFile=$2 +else + mqttConfigFile=$CDB_INSTALL_DIR/etc/${CDB_DB_NAME}.mqtt.conf +fi + +if [ -f $mqttConfigFile ]; then + echo "Using MQTT config file: $mqttConfigFile" + . $mqttConfigFile +else + echo "Error: MQTT config file $mqttConfigFile not found." + echo "You can create one using cdb_create_mqtt_configuration.sh ${CDB_DB_NAME}" + exit 1 +fi + +CDB_HOST_ARCH=$(uname -sm | tr -s '[:upper:][:blank:]' '[:lower:][\-]') +GLASSFISH_DIR=$CDB_SUPPORT_DIR/payara/$CDB_HOST_ARCH + +ASADMIN_CMD=$GLASSFISH_DIR/bin/asadmin + +# MQTT Configuration defaults +MQTT_HOST=${MQTT_HOST:=localhost} +MQTT_PORT=${MQTT_PORT:=1883} + +# Build properties string for connection pool +PROPERTIES="serverURIs=tcp\\://${MQTT_HOST}\\:${MQTT_PORT}" + +if [ ! -z "$MQTT_USERNAME" ]; then + PROPERTIES="${PROPERTIES}:userName=${MQTT_USERNAME}" +fi + +if [ ! -z "$MQTT_PASSWORD" ]; then + PROPERTIES="${PROPERTIES}:password=${MQTT_PASSWORD}" +fi + +if [ ! -z "$MQTT_CLEAN_SESSION" ]; then + PROPERTIES="${PROPERTIES}:cleanSession=${MQTT_CLEAN_SESSION}" +fi + +if [ ! -z "$MQTT_KEEP_ALIVE_INTERVAL" ]; then + PROPERTIES="${PROPERTIES}:keepAliveInterval=${MQTT_KEEP_ALIVE_INTERVAL}" +fi + +if [ ! -z "$MQTT_CONNECTION_TIMEOUT" ]; then + PROPERTIES="${PROPERTIES}:connectionTimeout=${MQTT_CONNECTION_TIMEOUT}" +fi + +if [ ! -z "$MQTT_MAX_INFLIGHT" ]; then + PROPERTIES="${PROPERTIES}:maxInflight=${MQTT_MAX_INFLIGHT}" +fi + +if [ ! -z "$MQTT_AUTOMATIC_RECONNECT" ]; then + PROPERTIES="${PROPERTIES}:automaticReconnect=${MQTT_AUTOMATIC_RECONNECT}" +fi + +if [ ! -z "$MQTT_FILE_PERSISTANCE" ]; then + PROPERTIES="${PROPERTIES}:filePersistance=${MQTT_FILE_PERSISTANCE}" +fi + +if [ ! -z "$MQTT_PERSISTENCE_DIRECTORY" ]; then + PROPERTIES="${PROPERTIES}:persistenceDirectory=${MQTT_PERSISTENCE_DIRECTORY}" +fi + +if [ ! -z "$MQTT_QOS" ]; then + PROPERTIES="${PROPERTIES}:qos=${MQTT_QOS}" +fi + +if [ ! -z "$MQTT_TOPIC_FILTER" ]; then + PROPERTIES="${PROPERTIES}:topicFilter=${MQTT_TOPIC_FILTER}" +fi + +# Deploy MQTT RAR +echo "Deploying MQTT RAR" +if [ -f "$MQTT_RAR_PATH" ]; then + # Check if already deployed and undeploy if needed + $ASADMIN_CMD list-applications | grep -q ${MQTT_CONNECTOR_RAR_DEPLOYMENT_NAME} && { + echo "Undeploying existing MQTT RAR" + # Check if resource exists and delete it + $ASADMIN_CMD list-connector-resources | grep -q ${MQTT_RESOURCE_NAME} && { + echo "Deleting existing MQTT resource" + $ASADMIN_CMD delete-connector-resource ${MQTT_RESOURCE_NAME} || exit 1 + } + + # Check if connection pool exists and delete it + $ASADMIN_CMD list-connector-connection-pools | grep -q ${MQTT_POOL_NAME} && { + echo "Deleting existing MQTT connection pool" + $ASADMIN_CMD delete-connector-connection-pool ${MQTT_POOL_NAME} || exit 1 + } + + echo "Undeploying existing MQTT RAR" + $ASADMIN_CMD undeploy ${MQTT_CONNECTOR_RAR_DEPLOYMENT_NAME} || exit 1 + } + $ASADMIN_CMD deploy --name ${MQTT_CONNECTOR_RAR_DEPLOYMENT_NAME} $MQTT_RAR_PATH || exit 1 +else + echo "Warning: MQTT RAR file not found at $MQTT_RAR_PATH" + exit 1 +fi + +# Create MQTT connection pool +echo "Creating MQTT connection pool ${MQTT_POOL_NAME}" +$ASADMIN_CMD create-connector-connection-pool \ + --raname ${MQTT_CONNECTOR_RAR_DEPLOYMENT_NAME} \ + --connectiondefinition fish.payara.cloud.connectors.mqtt.api.MQTTConnectionFactory \ + --property "${PROPERTIES}" \ + ${MQTT_POOL_NAME} || exit 1 +# Create MQTT resource +echo "Creating MQTT resource ${MQTT_RESOURCE_NAME}" +$ASADMIN_CMD create-connector-resource \ + --poolname ${MQTT_POOL_NAME} \ + ${MQTT_RESOURCE_NAME} || exit 1 + +# The connector logs allocation failures with a full stack trace before returning null. +$ASADMIN_CMD set-log-levels fish.payara.cloud.connectors.mqtt.api.outbound.MQTTConnectionFactoryImpl=OFF || exit 1 + +# Test MQTT connection pool +echo "Testing MQTT connection pool" +$ASADMIN_CMD ping-connection-pool ${MQTT_POOL_NAME} || { echo "Warning: MQTT connection pool ping failed"; exit 1; } + +echo "Restart or redeploy CDB." \ No newline at end of file diff --git a/sbin/cdb_create_mqtt_configuration.sh b/sbin/cdb_create_mqtt_configuration.sh new file mode 100755 index 000000000..000b0f4fb --- /dev/null +++ b/sbin/cdb_create_mqtt_configuration.sh @@ -0,0 +1,135 @@ +#!/bin/bash + +# Script to create MQTT configuration file for CDB service +# Usage: $0 [CDB_DB_NAME] + +MY_DIR=`dirname $0` && cd $MY_DIR && MY_DIR=`pwd` +if [ -z "${CDB_ROOT_DIR}" ]; then + CDB_ROOT_DIR=$MY_DIR/.. +fi +CDB_ENV_FILE=${CDB_ROOT_DIR}/setup.sh +if [ ! -f ${CDB_ENV_FILE} ]; then + echo "Environment file ${CDB_ENV_FILE} does not exist." + exit 2 +fi +. ${CDB_ENV_FILE} > /dev/null + +# Default configuration file location +CDB_DB_NAME=${1:-${CDB_DB_NAME:-cdb}} +MQTT_CONFIG_FILE=${CDB_INSTALL_DIR}/etc/${CDB_DB_NAME}.mqtt.conf + +echo "===================================" +echo "MQTT Configuration Setup for CDB" +echo "===================================" +echo "" +echo "This script will help you create an MQTT configuration file." +echo "Configuration will be saved to: $MQTT_CONFIG_FILE" +echo "" + +# Check if config file already exists +if [ -f "$MQTT_CONFIG_FILE" ]; then + read -p "Configuration file already exists. Overwrite? (y/n): " -n 1 -r + echo + if [[ ! $REPLY =~ ^[Yy]$ ]]; then + echo "Exiting without changes." + exit 0 + fi +fi + +echo "" +echo "Configuration Details:" +echo "- cleanSession: Whether client and server should remember state across reconnects" +echo "- automaticReconnect: Whether client will automatically reconnect if connection is lost" +echo "- filePersistance: Whether to use file persistence for un-acknowledged messages" +echo "- persistenceDirectory: Directory to use for file persistence" +echo "- connectionTimeout: Connection timeout value in seconds" +echo "- maxInflight: Maximum messages that can be sent without acknowledgements" +echo "- keepAliveInterval: Keep alive interval in seconds" +echo "- userName/password: Authentication credentials" +# Disable MDB only variables. +# echo "- topicFilter: Topic Filter (For MDBs only)" +# echo "- qos: Quality of Service for the subscription (For MDBs only)" +echo "" + +# Ensure directory exists +mkdir -p $(dirname "$MQTT_CONFIG_FILE") + +# Prompt for configuration values +read -p "MQTT Host [localhost]: " MQTT_HOST +MQTT_HOST=${MQTT_HOST:-localhost} + +read -p "MQTT Port [1883]: " MQTT_PORT +MQTT_PORT=${MQTT_PORT:-1883} + +read -p "MQTT Username (leave empty for no auth): " MQTT_USERNAME + +if [ ! -z "$MQTT_USERNAME" ]; then + read -s -p "MQTT Password: " MQTT_PASSWORD + echo +fi + +read -p "Clean Session (true/false) [false]: " CLEAN_SESSION +CLEAN_SESSION=${CLEAN_SESSION:-false} + +read -p "Automatic Reconnect (true/false) [true]: " AUTOMATIC_RECONNECT +AUTOMATIC_RECONNECT=${AUTOMATIC_RECONNECT:-true} + +read -p "File Persistance (true/false) [false]: " FILE_PERSISTANCE +FILE_PERSISTANCE=${FILE_PERSISTANCE:-false} + +read -p "Persistence Directory [.]: " PERSISTENCE_DIRECTORY +PERSISTENCE_DIRECTORY=${PERSISTENCE_DIRECTORY:-.} + +read -p "Connection Timeout (seconds) [30]: " CONNECTION_TIMEOUT +CONNECTION_TIMEOUT=${CONNECTION_TIMEOUT:-30} + +read -p "Max Inflight [10]: " MAX_INFLIGHT +MAX_INFLIGHT=${MAX_INFLIGHT:-10} + +read -p "Keep Alive Interval (seconds) [60]: " KEEP_ALIVE_INTERVAL +KEEP_ALIVE_INTERVAL=${KEEP_ALIVE_INTERVAL:-60} + +# MDB only variables +# read -p "Topic Filter (leave empty if not using MDB): " TOPIC_FILTER +# read -p "QoS (0/1/2) [0]: " QOS +# QOS=${QOS:-0} + +# Write configuration file +cat > "$MQTT_CONFIG_FILE" << EOF +# MQTT Configuration for CDB Service +# Generated on $(date) + +MQTT_HOST=$MQTT_HOST +MQTT_PORT=$MQTT_PORT +EOF + +if [ ! -z "$MQTT_USERNAME" ]; then + echo "MQTT_USERNAME=$MQTT_USERNAME" >> "$MQTT_CONFIG_FILE" +fi + +if [ ! -z "$MQTT_PASSWORD" ]; then + echo "MQTT_PASSWORD=$MQTT_PASSWORD" >> "$MQTT_CONFIG_FILE" +fi + +cat >> "$MQTT_CONFIG_FILE" << EOF +MQTT_CLEAN_SESSION=$CLEAN_SESSION +MQTT_AUTOMATIC_RECONNECT=$AUTOMATIC_RECONNECT +MQTT_FILE_PERSISTANCE=$FILE_PERSISTANCE +MQTT_PERSISTENCE_DIRECTORY=$PERSISTENCE_DIRECTORY +MQTT_CONNECTION_TIMEOUT=$CONNECTION_TIMEOUT +MQTT_MAX_INFLIGHT=$MAX_INFLIGHT +MQTT_KEEP_ALIVE_INTERVAL=$KEEP_ALIVE_INTERVAL +EOF + +if [ ! -z "$TOPIC_FILTER" ]; then + echo "MQTT_TOPIC_FILTER=$TOPIC_FILTER" >> "$MQTT_CONFIG_FILE" +fi + +if [ ! -z "$QOS" ]; then + echo "MQTT_QOS=$QOS" >> "$MQTT_CONFIG_FILE" +fi + +echo "" +echo "Configuration file created successfully at: $MQTT_CONFIG_FILE" +echo "" +echo "You can now run cdb_configure_mqtt_service.sh ${CDB_DB_NAME} to apply this configuration." \ No newline at end of file diff --git a/sbin/cdb_install_support.sh b/sbin/cdb_install_support.sh index 9c923d623..d18e59fc4 100755 --- a/sbin/cdb_install_support.sh +++ b/sbin/cdb_install_support.sh @@ -36,7 +36,9 @@ execute() { echo "Creating new CDB support directory $CDB_SUPPORT_DIR." cd `dirname $CDB_SUPPORT_DIR` -execute cp -R $CDB_ROOT_DIR/support $CDB_SUPPORT_DIR +# Copy contents so re-runs refresh scripts instead of nesting a stale support/ copy. +execute mkdir -p $CDB_SUPPORT_DIR +execute cp -R $CDB_ROOT_DIR/support/. $CDB_SUPPORT_DIR cd $CDB_SUPPORT_DIR echo "Building support in $PWD" diff --git a/sbin/cdb_install_support_all.sh b/sbin/cdb_install_support_all.sh index e8048df95..9d7312f38 100755 --- a/sbin/cdb_install_support_all.sh +++ b/sbin/cdb_install_support_all.sh @@ -36,7 +36,9 @@ execute() { echo "Creating new CDB support directory $CDB_SUPPORT_DIR." cd `dirname $CDB_SUPPORT_DIR` -execute cp -R $CDB_ROOT_DIR/support $CDB_SUPPORT_DIR +# Copy contents so re-runs refresh scripts instead of nesting a stale support/ copy. +execute mkdir -p $CDB_SUPPORT_DIR +execute cp -R $CDB_ROOT_DIR/support/. $CDB_SUPPORT_DIR cd $CDB_SUPPORT_DIR echo "Building support in $PWD" diff --git a/sbin/cdb_install_support_portal.sh b/sbin/cdb_install_support_portal.sh index 0d5a3ec65..9f3fefa23 100755 --- a/sbin/cdb_install_support_portal.sh +++ b/sbin/cdb_install_support_portal.sh @@ -36,7 +36,9 @@ execute() { echo "Creating new CDB support directory $CDB_SUPPORT_DIR." cd `dirname $CDB_SUPPORT_DIR` -execute cp -R $CDB_ROOT_DIR/support $CDB_SUPPORT_DIR +# Copy contents so re-runs refresh scripts instead of nesting a stale support/ copy. +execute mkdir -p $CDB_SUPPORT_DIR +execute cp -R $CDB_ROOT_DIR/support/. $CDB_SUPPORT_DIR cd $CDB_SUPPORT_DIR echo "Building support in $PWD" diff --git a/sbin/cdb_mqtt_test.sh b/sbin/cdb_mqtt_test.sh new file mode 100755 index 000000000..2faca4c26 --- /dev/null +++ b/sbin/cdb_mqtt_test.sh @@ -0,0 +1,88 @@ +#!/bin/bash + +# Copyright (c) UChicago Argonne, LLC. All rights reserved. +# See LICENSE file. + +# +# Runs the MQTT integration tests against a deployed portal and a running broker. +# +# Prerequisites (not handled by this script): +# - an MQTT broker reachable by both Payara and this shell +# - Payara connector resource cdb/MQTT/resource configured +# (sbin/cdb_create_mqtt_configuration.sh, sbin/cdb_configure_mqtt_service.sh) +# - portal deployed at http://localhost:8080/cdb using the test database +# - a Python environment with paho-mqtt (v2), pytest, the generated cdbApi +# client and, for the UI tests, selenium +# +# This script never provisions a broker, reconfigures Payara, replaces the +# database, builds, deploys or restarts services. +# +# Environment: +# CDB_TEST_MQTT=false skip all MQTT tests +# CDB_TEST_MQTT_HOST broker host (default localhost) +# CDB_TEST_MQTT_PORT broker port (default 1883) +# CDB_TEST_MQTT_USERNAME optional broker username +# CDB_TEST_MQTT_PASSWORD optional broker password +# CDB_TEST_MQTT_TIMEOUT seconds to wait for connect/messages (default 10) +# CDB_TEST_MQTT_SKIP_SELENIUM=true run only the API MQTT tests +# +# Usage: +# +# $0 [extra pytest args] +# + +MY_DIR=`dirname $0` && cd $MY_DIR && MY_DIR=`pwd` +CDB_DIST_DIR=`cd $MY_DIR/.. && pwd` + +if [ -z "${CDB_ROOT_DIR}" ]; then + if [ ! -f $CDB_DIST_DIR/setup.sh ]; then + echo "Environment file $CDB_DIST_DIR/setup.sh does not exist." + exit 2 + fi + . $CDB_DIST_DIR/setup.sh > /dev/null +fi + +API_CLIENT_PATH=$CDB_DIST_DIR/tools/developer_tools/python-client +SELENIUM_PATH=$CDB_DIST_DIR/tools/developer_tools/portal_testing/PythonSeleniumTest +BROKER_PATH=$CDB_DIST_DIR/tools/developer_tools/cdb-mqtt-message-broker +BROKER_BASE_PATH=$CDB_DIST_DIR/tools/developer_tools/cdb-bely-message-broker-base + +# Shared helper (mqtt_test_support) lives in the API test directory. +export PYTHONPATH="$BROKER_PATH/src:$BROKER_BASE_PATH/src:$API_CLIENT_PATH/packages/api:$API_CLIENT_PATH/packages/cli:$API_CLIENT_PATH/test${PYTHONPATH:+:$PYTHONPATH}" + +if ! command -v pytest > /dev/null; then + echo "pytest is not on PATH; activate the test environment first." + exit 2 +fi + +PYTHON_CMD=`command -v python || command -v python3` +if ! $PYTHON_CMD -c "import paho.mqtt" > /dev/null 2>&1; then + echo "Warning: paho-mqtt is not importable; MQTT tests will be skipped." +fi + +HEADER_TEXT='****************' +PRINTF_HEADER="\n\n$HEADER_TEXT Starting %s $HEADER_TEXT\n\n\n" + +result=0 + +printf "$PRINTF_HEADER" "API MQTT Tests" +cd $API_CLIENT_PATH +pytest test/mqtt_test.py -rs "$@" || result=1 + +skip_selenium=`echo "$CDB_TEST_MQTT_SKIP_SELENIUM" | tr "[:upper:]" "[:lower:]"` +if [[ "$skip_selenium" == "true" ]]; then + printf "\nSkipping Selenium MQTT tests (CDB_TEST_MQTT_SKIP_SELENIUM=true).\n" +elif ls $SELENIUM_PATH/tests/test_mqtt_*.py > /dev/null 2>&1; then + printf "$PRINTF_HEADER" "Selenium MQTT Tests" + cd $SELENIUM_PATH + # Serial on purpose: the UI test mutates shared machine-design state. + pytest tests/ -m mqtt -p no:xdist -rs "$@" || result=1 +fi + +if [ -f $BROKER_PATH/tests/test_acceptance.py ]; then + printf "$PRINTF_HEADER" "CDB MQTT Message Broker Acceptance Tests" + cd $BROKER_PATH + pytest tests/test_acceptance.py -m acceptance -p no:xdist -rs "$@" || result=1 +fi + +exit $result diff --git a/sbin/cdb_test.sh b/sbin/cdb_test.sh index b64aad8b0..6ee4ffc53 100755 --- a/sbin/cdb_test.sh +++ b/sbin/cdb_test.sh @@ -61,7 +61,13 @@ printf "$PRINTF_HEADER" "Selenium" cd $CDB_DIST_DIR/tools/developer_tools/portal_testing/PythonSeleniumTest # Selenium Manager resolves and downloads a compatible driver when Chrome starts. -pytest tests/ -n auto --dist loadfile --reruns 1 --reruns-delay 1 -rR +# MQTT UI tests mutate shared state, so they are excluded here and run serially below. +pytest tests/ -n auto --dist loadfile --reruns 1 --reruns-delay 1 -rR -m "not mqtt" + +# API MQTT tests already ran with the API suite; both skip when CDB_TEST_MQTT=false +# or the broker is unreachable. +printf "$PRINTF_HEADER" "Selenium MQTT" +pytest tests/ -m mqtt -p no:xdist -rsR if [[ $backup_database == 1 ]]; then printf "\n\nRestore the original database from the backup? [Y/n] " diff --git a/sbin/cdb_update_glassfish_ssl.sh b/sbin/cdb_update_glassfish_ssl.sh index 6fdb388aa..484d8e158 100755 --- a/sbin/cdb_update_glassfish_ssl.sh +++ b/sbin/cdb_update_glassfish_ssl.sh @@ -49,7 +49,15 @@ if [ -z $masterPassword ]; then fi CDB_DOMAIN_NAME=production -GLASSFISH_KEYSTORE_PATH=$CDB_GLASSFISH_DIR/glassfish/domains/$CDB_DOMAIN_NAME/config/keystore.jks +GLASSFISH_CONFIG_DIR=$CDB_GLASSFISH_DIR/glassfish/domains/$CDB_DOMAIN_NAME/config +# Payara 6+ uses a PKCS12 keystore; Payara 5 used JKS. +if [ -f $GLASSFISH_CONFIG_DIR/keystore.p12 ]; then + GLASSFISH_KEYSTORE_PATH=$GLASSFISH_CONFIG_DIR/keystore.p12 + GLASSFISH_KEYSTORE_TYPE=pkcs12 +else + GLASSFISH_KEYSTORE_PATH=$GLASSFISH_CONFIG_DIR/keystore.jks + GLASSFISH_KEYSTORE_TYPE=jks +fi # Test entered password failed=0 @@ -72,7 +80,7 @@ keytool -importkeystore \ -srckeystore $PKCS12_CERT_STORE \ -srcstoretype pkcs12 \ -srcstorepass $masterPassword \ --deststoretype jks \ +-deststoretype $GLASSFISH_KEYSTORE_TYPE \ -destkeystore $GLASSFISH_KEYSTORE_PATH \ -deststorepass $masterPassword diff --git a/src/java/CdbWebPortal/Makefile b/src/java/CdbWebPortal/Makefile index fdc36cc94..9435df323 100644 --- a/src/java/CdbWebPortal/Makefile +++ b/src/java/CdbWebPortal/Makefile @@ -21,9 +21,12 @@ ant-clean: .PHONY: dist dist: python3 $(TOP)/tools/developer_tools/cdb_plugins/update_plugin_generated_files.py cdb 0 - if [ -f $(BUILD_PROPERTIES_FILE) ]; then mv $(BUILD_PROPERTIES_FILE) $(BUILD_PROPERTIES_FILE).orig; fi + # Dev-config generated files are swapped for build placeholders and restored afterwards. + for f in $(BUILD_PROPERTIES_FILE) $(GLASSFISH_WEB_XML_FILE) $(CDB_PORTAL_PROPERTIES_FILE); do if [ -f $$f ]; then mv $$f $$f.orig; fi; done cmd="cat $(GENERIC_BUILD_PROPERTIES_FILE) | sed 's?CDB_GLASSFISH_DIR?$${CDB_GLASSFISH_DIR}?g' > $(BUILD_PROPERTIES_FILE)" && eval $$cmd cmd="cat $(GLASSFISH_WEB_XML_FILE).template | sed 's?CDB_DATA_DIR?/cdb?g' > $(GLASSFISH_WEB_XML_FILE)" && eval $$cmd cmd="cat $(CDB_PORTAL_PROPERTIES_FILE).template | sed 's?CDB_DATA_DIR?/cdb?g' > $(CDB_PORTAL_PROPERTIES_FILE)" && eval $$cmd - $(ANT) $(ANT_ARGS) dist - if [ -f $(BUILD_PROPERTIES_FILE).orig ]; then mv $(BUILD_PROPERTIES_FILE).orig $(BUILD_PROPERTIES_FILE); fi + # Restore even if the build fails; a later run would otherwise overwrite the .orig copies. + $(ANT) $(ANT_ARGS) dist; rc=$$?; \ + for f in $(BUILD_PROPERTIES_FILE) $(GLASSFISH_WEB_XML_FILE) $(CDB_PORTAL_PROPERTIES_FILE); do if [ -f $$f.orig ]; then mv $$f.orig $$f; fi; done; \ + exit $$rc diff --git a/src/java/CdbWebPortal/lib/SparseBitSet-1.3.jar b/src/java/CdbWebPortal/lib/SparseBitSet-1.3.jar new file mode 100644 index 000000000..5a4354414 Binary files /dev/null and b/src/java/CdbWebPortal/lib/SparseBitSet-1.3.jar differ diff --git a/src/java/CdbWebPortal/lib/cdb-base-mqtt-1.0.0.jar b/src/java/CdbWebPortal/lib/cdb-base-mqtt-1.0.0.jar new file mode 100644 index 000000000..04b3e761a Binary files /dev/null and b/src/java/CdbWebPortal/lib/cdb-base-mqtt-1.0.0.jar differ diff --git a/src/java/CdbWebPortal/lib/commons-codec-1.20.0.jar b/src/java/CdbWebPortal/lib/commons-codec-1.20.0.jar new file mode 100644 index 000000000..78d105d53 Binary files /dev/null and b/src/java/CdbWebPortal/lib/commons-codec-1.20.0.jar differ diff --git a/src/java/CdbWebPortal/lib/commons-collections4-4.2.jar b/src/java/CdbWebPortal/lib/commons-collections4-4.2.jar deleted file mode 100644 index 73a4f3f2e..000000000 Binary files a/src/java/CdbWebPortal/lib/commons-collections4-4.2.jar and /dev/null differ diff --git a/src/java/CdbWebPortal/lib/commons-collections4-4.5.0.jar b/src/java/CdbWebPortal/lib/commons-collections4-4.5.0.jar new file mode 100644 index 000000000..aa1c4ef2b Binary files /dev/null and b/src/java/CdbWebPortal/lib/commons-collections4-4.5.0.jar differ diff --git a/src/java/CdbWebPortal/lib/commons-compress-1.18.jar b/src/java/CdbWebPortal/lib/commons-compress-1.18.jar deleted file mode 100644 index e401046b5..000000000 Binary files a/src/java/CdbWebPortal/lib/commons-compress-1.18.jar and /dev/null differ diff --git a/src/java/CdbWebPortal/lib/commons-compress-1.28.0.jar b/src/java/CdbWebPortal/lib/commons-compress-1.28.0.jar new file mode 100644 index 000000000..ff7e6aad0 Binary files /dev/null and b/src/java/CdbWebPortal/lib/commons-compress-1.28.0.jar differ diff --git a/src/java/CdbWebPortal/lib/commons-io-2.21.0.jar b/src/java/CdbWebPortal/lib/commons-io-2.21.0.jar new file mode 100644 index 000000000..7f1688194 Binary files /dev/null and b/src/java/CdbWebPortal/lib/commons-io-2.21.0.jar differ diff --git a/src/java/CdbWebPortal/lib/commons-lang3-3.11.jar b/src/java/CdbWebPortal/lib/commons-lang3-3.11.jar deleted file mode 100644 index bbaa8a61c..000000000 Binary files a/src/java/CdbWebPortal/lib/commons-lang3-3.11.jar and /dev/null differ diff --git a/src/java/CdbWebPortal/lib/commons-lang3-3.18.0.jar b/src/java/CdbWebPortal/lib/commons-lang3-3.18.0.jar new file mode 100644 index 000000000..9359e524a Binary files /dev/null and b/src/java/CdbWebPortal/lib/commons-lang3-3.18.0.jar differ diff --git a/src/java/CdbWebPortal/lib/commons-math3-3.6.1.jar b/src/java/CdbWebPortal/lib/commons-math3-3.6.1.jar new file mode 100644 index 000000000..0ff582cfc Binary files /dev/null and b/src/java/CdbWebPortal/lib/commons-math3-3.6.1.jar differ diff --git a/src/java/CdbWebPortal/lib/curvesapi-1.08.jar b/src/java/CdbWebPortal/lib/curvesapi-1.08.jar new file mode 100644 index 000000000..18fb71b14 Binary files /dev/null and b/src/java/CdbWebPortal/lib/curvesapi-1.08.jar differ diff --git a/src/java/CdbWebPortal/lib/ejb-api-3.0.jar b/src/java/CdbWebPortal/lib/ejb-api-3.0.jar deleted file mode 100644 index e9a86d1ae..000000000 Binary files a/src/java/CdbWebPortal/lib/ejb-api-3.0.jar and /dev/null differ diff --git a/src/java/CdbWebPortal/lib/jackson-datatype-jsr310-2.13.4.jar b/src/java/CdbWebPortal/lib/jackson-datatype-jsr310-2.13.4.jar deleted file mode 100644 index 102cf1267..000000000 Binary files a/src/java/CdbWebPortal/lib/jackson-datatype-jsr310-2.13.4.jar and /dev/null differ diff --git a/src/java/CdbWebPortal/lib/jackson-datatype-jsr310-2.19.4.jar b/src/java/CdbWebPortal/lib/jackson-datatype-jsr310-2.19.4.jar new file mode 100644 index 000000000..cd50568e4 Binary files /dev/null and b/src/java/CdbWebPortal/lib/jackson-datatype-jsr310-2.19.4.jar differ diff --git a/src/java/CdbWebPortal/lib/jackson-jakarta-rs-base-2.19.4.jar b/src/java/CdbWebPortal/lib/jackson-jakarta-rs-base-2.19.4.jar new file mode 100644 index 000000000..f492c2027 Binary files /dev/null and b/src/java/CdbWebPortal/lib/jackson-jakarta-rs-base-2.19.4.jar differ diff --git a/src/java/CdbWebPortal/lib/jackson-jakarta-rs-json-provider-2.19.4.jar b/src/java/CdbWebPortal/lib/jackson-jakarta-rs-json-provider-2.19.4.jar new file mode 100644 index 000000000..845092ba2 Binary files /dev/null and b/src/java/CdbWebPortal/lib/jackson-jakarta-rs-json-provider-2.19.4.jar differ diff --git a/src/java/CdbWebPortal/lib/jackson-jaxrs-base-2.19.4.jar b/src/java/CdbWebPortal/lib/jackson-jaxrs-base-2.19.4.jar deleted file mode 100644 index 924773b87..000000000 Binary files a/src/java/CdbWebPortal/lib/jackson-jaxrs-base-2.19.4.jar and /dev/null differ diff --git a/src/java/CdbWebPortal/lib/jackson-jaxrs-json-provider-2.19.4.jar b/src/java/CdbWebPortal/lib/jackson-jaxrs-json-provider-2.19.4.jar deleted file mode 100644 index f5c4d7983..000000000 Binary files a/src/java/CdbWebPortal/lib/jackson-jaxrs-json-provider-2.19.4.jar and /dev/null differ diff --git a/src/java/CdbWebPortal/lib/javaee-web-api-8.0.1.jar b/src/java/CdbWebPortal/lib/javaee-web-api-8.0.1.jar deleted file mode 100644 index cad858c1b..000000000 Binary files a/src/java/CdbWebPortal/lib/javaee-web-api-8.0.1.jar and /dev/null differ diff --git a/src/java/CdbWebPortal/lib/javax.faces-api-2.1.jar b/src/java/CdbWebPortal/lib/javax.faces-api-2.1.jar deleted file mode 100644 index 8a3061f5d..000000000 Binary files a/src/java/CdbWebPortal/lib/javax.faces-api-2.1.jar and /dev/null differ diff --git a/src/java/CdbWebPortal/lib/javax.inject-1.jar b/src/java/CdbWebPortal/lib/javax.inject-1.jar deleted file mode 100644 index b2a9d0bf7..000000000 Binary files a/src/java/CdbWebPortal/lib/javax.inject-1.jar and /dev/null differ diff --git a/src/java/CdbWebPortal/lib/javax.servlet-api-4.0.1.jar b/src/java/CdbWebPortal/lib/javax.servlet-api-4.0.1.jar deleted file mode 100644 index 844ec7f17..000000000 Binary files a/src/java/CdbWebPortal/lib/javax.servlet-api-4.0.1.jar and /dev/null differ diff --git a/src/java/CdbWebPortal/lib/javax.xml.soap-api-1.4.0.jar b/src/java/CdbWebPortal/lib/javax.xml.soap-api-1.4.0.jar deleted file mode 100644 index c47a3b0c4..000000000 Binary files a/src/java/CdbWebPortal/lib/javax.xml.soap-api-1.4.0.jar and /dev/null differ diff --git a/src/java/CdbWebPortal/lib/jaxb-api-2.3.1.jar b/src/java/CdbWebPortal/lib/jaxb-api-2.3.1.jar new file mode 100644 index 000000000..456586547 Binary files /dev/null and b/src/java/CdbWebPortal/lib/jaxb-api-2.3.1.jar differ diff --git a/src/java/CdbWebPortal/lib/jersey-media-json-jackson-2.28.jar b/src/java/CdbWebPortal/lib/jersey-media-json-jackson-2.28.jar deleted file mode 100644 index 64b46e17a..000000000 Binary files a/src/java/CdbWebPortal/lib/jersey-media-json-jackson-2.28.jar and /dev/null differ diff --git a/src/java/CdbWebPortal/lib/log4j-slf4j-impl-2.26.0.jar b/src/java/CdbWebPortal/lib/log4j-slf4j-impl-2.26.0.jar new file mode 100644 index 000000000..aa6d55001 Binary files /dev/null and b/src/java/CdbWebPortal/lib/log4j-slf4j-impl-2.26.0.jar differ diff --git a/src/java/CdbWebPortal/lib/mqtt-jca-api-1.0.0.jar b/src/java/CdbWebPortal/lib/mqtt-jca-api-1.0.0.jar new file mode 100644 index 000000000..fa423699f Binary files /dev/null and b/src/java/CdbWebPortal/lib/mqtt-jca-api-1.0.0.jar differ diff --git a/src/java/CdbWebPortal/lib/omnifaces-3.10.1.jar b/src/java/CdbWebPortal/lib/omnifaces-3.10.1.jar deleted file mode 100644 index dedb567ba..000000000 Binary files a/src/java/CdbWebPortal/lib/omnifaces-3.10.1.jar and /dev/null differ diff --git a/src/java/CdbWebPortal/lib/omnifaces-5.5.7.jar b/src/java/CdbWebPortal/lib/omnifaces-5.5.7.jar new file mode 100644 index 000000000..36bd7f7d8 Binary files /dev/null and b/src/java/CdbWebPortal/lib/omnifaces-5.5.7.jar differ diff --git a/src/java/CdbWebPortal/lib/poi-4.0.1.jar b/src/java/CdbWebPortal/lib/poi-4.0.1.jar deleted file mode 100644 index be092979b..000000000 Binary files a/src/java/CdbWebPortal/lib/poi-4.0.1.jar and /dev/null differ diff --git a/src/java/CdbWebPortal/lib/poi-5.5.1.jar b/src/java/CdbWebPortal/lib/poi-5.5.1.jar new file mode 100644 index 000000000..702effe8c Binary files /dev/null and b/src/java/CdbWebPortal/lib/poi-5.5.1.jar differ diff --git a/src/java/CdbWebPortal/lib/poi-ooxml-4.0.1.jar b/src/java/CdbWebPortal/lib/poi-ooxml-4.0.1.jar deleted file mode 100644 index 282a1a52d..000000000 Binary files a/src/java/CdbWebPortal/lib/poi-ooxml-4.0.1.jar and /dev/null differ diff --git a/src/java/CdbWebPortal/lib/poi-ooxml-5.5.1.jar b/src/java/CdbWebPortal/lib/poi-ooxml-5.5.1.jar new file mode 100644 index 000000000..dcf1044b3 Binary files /dev/null and b/src/java/CdbWebPortal/lib/poi-ooxml-5.5.1.jar differ diff --git a/src/java/CdbWebPortal/lib/poi-ooxml-lite-5.5.1.jar b/src/java/CdbWebPortal/lib/poi-ooxml-lite-5.5.1.jar new file mode 100644 index 000000000..a9d53b76f Binary files /dev/null and b/src/java/CdbWebPortal/lib/poi-ooxml-lite-5.5.1.jar differ diff --git a/src/java/CdbWebPortal/lib/poi-ooxml-schemas-4.0.1.jar b/src/java/CdbWebPortal/lib/poi-ooxml-schemas-4.0.1.jar deleted file mode 100644 index 49509b287..000000000 Binary files a/src/java/CdbWebPortal/lib/poi-ooxml-schemas-4.0.1.jar and /dev/null differ diff --git a/src/java/CdbWebPortal/lib/primefaces-11.0.0.jar b/src/java/CdbWebPortal/lib/primefaces-11.0.0.jar deleted file mode 100644 index 003efe955..000000000 Binary files a/src/java/CdbWebPortal/lib/primefaces-11.0.0.jar and /dev/null differ diff --git a/src/java/CdbWebPortal/lib/primefaces-16.0.2.jar b/src/java/CdbWebPortal/lib/primefaces-16.0.2.jar new file mode 100644 index 000000000..5831e9cd2 Binary files /dev/null and b/src/java/CdbWebPortal/lib/primefaces-16.0.2.jar differ diff --git a/src/java/CdbWebPortal/lib/primefaces-extensions-11.0.0.jar b/src/java/CdbWebPortal/lib/primefaces-extensions-11.0.0.jar deleted file mode 100644 index 7717be168..000000000 Binary files a/src/java/CdbWebPortal/lib/primefaces-extensions-11.0.0.jar and /dev/null differ diff --git a/src/java/CdbWebPortal/lib/primefaces-extensions-16.0.2.jar b/src/java/CdbWebPortal/lib/primefaces-extensions-16.0.2.jar new file mode 100644 index 000000000..40d48230b Binary files /dev/null and b/src/java/CdbWebPortal/lib/primefaces-extensions-16.0.2.jar differ diff --git a/src/java/CdbWebPortal/lib/swagger-annotations-2.2.52.jar b/src/java/CdbWebPortal/lib/swagger-annotations-2.2.52.jar deleted file mode 100644 index 1181edc6e..000000000 Binary files a/src/java/CdbWebPortal/lib/swagger-annotations-2.2.52.jar and /dev/null differ diff --git a/src/java/CdbWebPortal/lib/swagger-annotations-jakarta-2.2.52.jar b/src/java/CdbWebPortal/lib/swagger-annotations-jakarta-2.2.52.jar new file mode 100644 index 000000000..2ad5e7789 Binary files /dev/null and b/src/java/CdbWebPortal/lib/swagger-annotations-jakarta-2.2.52.jar differ diff --git a/src/java/CdbWebPortal/lib/swagger-core-2.2.52.jar b/src/java/CdbWebPortal/lib/swagger-core-jakarta-2.2.52.jar similarity index 51% rename from src/java/CdbWebPortal/lib/swagger-core-2.2.52.jar rename to src/java/CdbWebPortal/lib/swagger-core-jakarta-2.2.52.jar index 06379814a..eaa2f1a4d 100644 Binary files a/src/java/CdbWebPortal/lib/swagger-core-2.2.52.jar and b/src/java/CdbWebPortal/lib/swagger-core-jakarta-2.2.52.jar differ diff --git a/src/java/CdbWebPortal/lib/swagger-integration-2.2.52.jar b/src/java/CdbWebPortal/lib/swagger-integration-jakarta-2.2.52.jar similarity index 57% rename from src/java/CdbWebPortal/lib/swagger-integration-2.2.52.jar rename to src/java/CdbWebPortal/lib/swagger-integration-jakarta-2.2.52.jar index 3f7fa6d47..e9b7d291a 100644 Binary files a/src/java/CdbWebPortal/lib/swagger-integration-2.2.52.jar and b/src/java/CdbWebPortal/lib/swagger-integration-jakarta-2.2.52.jar differ diff --git a/src/java/CdbWebPortal/lib/swagger-jaxrs2-2.2.52.jar b/src/java/CdbWebPortal/lib/swagger-jaxrs2-2.2.52.jar deleted file mode 100644 index b95c2e0e7..000000000 Binary files a/src/java/CdbWebPortal/lib/swagger-jaxrs2-2.2.52.jar and /dev/null differ diff --git a/src/java/CdbWebPortal/lib/swagger-jaxrs2-jakarta-2.2.52.jar b/src/java/CdbWebPortal/lib/swagger-jaxrs2-jakarta-2.2.52.jar new file mode 100644 index 000000000..a38229908 Binary files /dev/null and b/src/java/CdbWebPortal/lib/swagger-jaxrs2-jakarta-2.2.52.jar differ diff --git a/src/java/CdbWebPortal/lib/swagger-models-2.2.52.jar b/src/java/CdbWebPortal/lib/swagger-models-jakarta-2.2.52.jar similarity index 73% rename from src/java/CdbWebPortal/lib/swagger-models-2.2.52.jar rename to src/java/CdbWebPortal/lib/swagger-models-jakarta-2.2.52.jar index 3f798d7d1..1e6be776c 100644 Binary files a/src/java/CdbWebPortal/lib/swagger-models-2.2.52.jar and b/src/java/CdbWebPortal/lib/swagger-models-jakarta-2.2.52.jar differ diff --git a/src/java/CdbWebPortal/lib/xmlbeans-3.0.2.jar b/src/java/CdbWebPortal/lib/xmlbeans-3.0.2.jar deleted file mode 100644 index f371911ef..000000000 Binary files a/src/java/CdbWebPortal/lib/xmlbeans-3.0.2.jar and /dev/null differ diff --git a/src/java/CdbWebPortal/lib/xmlbeans-5.3.0.jar b/src/java/CdbWebPortal/lib/xmlbeans-5.3.0.jar new file mode 100644 index 000000000..2ba57e55b Binary files /dev/null and b/src/java/CdbWebPortal/lib/xmlbeans-5.3.0.jar differ diff --git a/src/java/CdbWebPortal/nbproject/build-impl.xml b/src/java/CdbWebPortal/nbproject/build-impl.xml index 2c394668c..de3b34f26 100644 --- a/src/java/CdbWebPortal/nbproject/build-impl.xml +++ b/src/java/CdbWebPortal/nbproject/build-impl.xml @@ -984,52 +984,52 @@ exists or setup the property manually. For example like this: - - + + - - + + - - - - - - + + + + + + + + + + + - + - - + + - - - - - - - - - - - + + + + + - + + @@ -1041,58 +1041,60 @@ exists or setup the property manually. For example like this: + + - - + + - - + + - - - - - - + + + + + + + + + + + - + - - + + - - - - - - - - - - - + + + + + - + + @@ -1104,6 +1106,8 @@ exists or setup the property manually. For example like this: + + diff --git a/src/java/CdbWebPortal/nbproject/build-impl.xml~ b/src/java/CdbWebPortal/nbproject/build-impl.xml~ index 706a9fa53..a6649903f 100644 --- a/src/java/CdbWebPortal/nbproject/build-impl.xml~ +++ b/src/java/CdbWebPortal/nbproject/build-impl.xml~ @@ -984,104 +984,128 @@ exists or setup the property manually. For example like this: - - + + - - - + + + - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - + + + + + + - - - - + + + + + + + + + + + + + + + + + - - + + - - - + + + - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - + + + + + + - - - - + + + + + + + + + + + + + + + + + @@ -1486,6 +1510,7 @@ exists or setup the property manually. For example like this: + diff --git a/src/java/CdbWebPortal/nbproject/genfiles.properties b/src/java/CdbWebPortal/nbproject/genfiles.properties index f3a7e4c63..3bbcfb48f 100644 --- a/src/java/CdbWebPortal/nbproject/genfiles.properties +++ b/src/java/CdbWebPortal/nbproject/genfiles.properties @@ -1,11 +1,11 @@ -build.xml.data.CRC32=d5de4743 +build.xml.data.CRC32=dbf316cc build.xml.script.CRC32=67492cbd -build.xml.stylesheet.CRC32=1707db4f@1.94.0.1 +build.xml.stylesheet.CRC32=1707db4f@1.108.0.1 # This file is used by a NetBeans-based IDE to track changes in generated files such as build-impl.xml. # Do not edit this file. You may delete it but then the IDE will never regenerate such files for you. -nbproject/build-impl.xml.data.CRC32=d5de4743 -nbproject/build-impl.xml.script.CRC32=8f60c160 -nbproject/build-impl.xml.stylesheet.CRC32=334708a0@1.94.0.1 +nbproject/build-impl.xml.data.CRC32=dbf316cc +nbproject/build-impl.xml.script.CRC32=aaafa6c5 +nbproject/build-impl.xml.stylesheet.CRC32=334708a0@1.108.0.1 nbproject/rest-build.xml.data.CRC32=83e13ee9 nbproject/rest-build.xml.script.CRC32=0d1fb1b4 nbproject/rest-build.xml.stylesheet.CRC32=0cfeebcc@1.31.1 diff --git a/src/java/CdbWebPortal/nbproject/project.properties b/src/java/CdbWebPortal/nbproject/project.properties index 4206c7f64..810840cd0 100644 --- a/src/java/CdbWebPortal/nbproject/project.properties +++ b/src/java/CdbWebPortal/nbproject/project.properties @@ -35,18 +35,18 @@ dist.dir=dist dist.ear.war=${dist.dir}/${war.ear.name} dist.javadoc.dir=${dist.dir}/javadoc dist.war=${dist.dir}/${war.name} -endorsed.classpath=\ - ${libs.javaee-endorsed-api-7.0.classpath} +# -Xbootclasspath/p (endorsed) is not allowed when compiling for Java 9+. +endorsed.classpath= excludes= file.reference.bcmail-jdk14-1.38.jar=lib/bcmail-jdk14-1.38.jar file.reference.bcprov-jdk14-1.38.jar=lib/bcprov-jdk14-1.38.jar file.reference.bctsp-jdk14-1.38.jar=lib/bctsp-jdk14-1.38.jar file.reference.classgraph-4.8.31.jar=lib/classgraph-4.8.31.jar -file.reference.commons-lang3-3.11.jar=lib/commons-lang3-3.11.jar +file.reference.cdb-base-mqtt-1.0.0.jar=lib/cdb-base-mqtt-1.0.0.jar +file.reference.commons-lang3-3.18.0.jar=lib/commons-lang3-3.18.0.jar file.reference.commons-logging-1.2.jar=lib/commons-logging-1.2.jar file.reference.dm-api-3.3.1.jar=lib/dm-api-3.3.1.jar file.reference.dm-base-3.3.1.jar=lib/dm-base-3.3.1.jar -file.reference.ejb-api-3.0.jar=lib/ejb-api-3.0.jar file.reference.flexmark-0.64.8.jar=lib/flexmark-0.64.8.jar file.reference.flexmark-util-ast-0.64.8.jar=lib/flexmark-util-ast-0.64.8.jar file.reference.flexmark-util-builder-0.64.8.jar=lib/flexmark-util-builder-0.64.8.jar @@ -62,47 +62,50 @@ file.reference.font-awesome-4.7.0.jar=lib/font-awesome-4.7.0.jar file.reference.fontbox-2.0.24.jar=lib/fontbox-2.0.24.jar file.reference.gson-2.10.1.jar=lib/gson-2.10.1.jar file.reference.itextpdf-5.5.13.1.jar=lib/itextpdf-5.5.13.1.jar +# Legacy javax.xml.bind (DatatypeConverter) for dm-base ArgumentUtility; Payara 7 only ships jakarta.xml.bind. +file.reference.jaxb-api-2.3.1.jar=lib/jaxb-api-2.3.1.jar file.reference.jackson-annotations-2.19.4.jar=lib/jackson-annotations-2.19.4.jar file.reference.jackson-core-2.19.4.jar=lib/jackson-core-2.19.4.jar file.reference.jackson-databind-2.19.4.jar=lib/jackson-databind-2.19.4.jar file.reference.jackson-dataformat-yaml-2.19.4.jar=lib/jackson-dataformat-yaml-2.19.4.jar -file.reference.jackson-datatype-jsr310-2.13.4.jar=lib/jackson-datatype-jsr310-2.13.4.jar -file.reference.jackson-jaxrs-base-2.19.4.jar=lib/jackson-jaxrs-base-2.19.4.jar -file.reference.jackson-jaxrs-json-provider-2.19.4.jar=lib/jackson-jaxrs-json-provider-2.19.4.jar -file.reference.javaee-web-api-8.0.1.jar=lib/javaee-web-api-8.0.1.jar -file.reference.javax.faces-api-2.1.jar=lib/javax.faces-api-2.1.jar -file.reference.javax.inject-1.jar=lib/javax.inject-1.jar -file.reference.javax.servlet-api-4.0.1.jar=lib/javax.servlet-api-4.0.1.jar -file.reference.javax.xml.soap-api-1.4.0.jar=lib/javax.xml.soap-api-1.4.0.jar -file.reference.jersey-media-json-jackson-2.28.jar=lib/jersey-media-json-jackson-2.28.jar +file.reference.jackson-datatype-jsr310-2.19.4.jar=lib/jackson-datatype-jsr310-2.19.4.jar +file.reference.jackson-jakarta-rs-base-2.19.4.jar=lib/jackson-jakarta-rs-base-2.19.4.jar +file.reference.jackson-jakarta-rs-json-provider-2.19.4.jar=lib/jackson-jakarta-rs-json-provider-2.19.4.jar file.reference.libphonenumber-8.12.3.jar=lib/libphonenumber-8.12.3.jar file.reference.log4j-api-2.26.0.jar=lib/log4j-api-2.26.0.jar file.reference.log4j-core-2.26.0.jar=lib/log4j-core-2.26.0.jar +file.reference.log4j-slf4j-impl-2.26.0.jar=lib/log4j-slf4j-impl-2.26.0.jar file.reference.metadata-extractor-2.17.0.jar=lib/metadata-extractor-2.17.0.jar -file.reference.omnifaces-3.10.1.jar-1=lib/omnifaces-3.10.1.jar +file.reference.mqtt-jca-api-1.0.0.jar=lib/mqtt-jca-api-1.0.0.jar +file.reference.omnifaces-5.5.7.jar=lib/omnifaces-5.5.7.jar file.reference.pdfbox-2.0.24.jar=lib/pdfbox-2.0.24.jar -file.reference.poi-4.0.1.jar=lib/poi-4.0.1.jar -file.reference.poi-ooxml-4.0.1.jar=lib/poi-ooxml-4.0.1.jar -file.reference.poi-ooxml-schemas-4.0.1.jar=lib/poi-ooxml-schemas-4.0.1.jar -file.reference.primefaces-11.0.0.jar=lib/primefaces-11.0.0.jar -file.reference.primefaces-extensions-11.0.0.jar=lib/primefaces-extensions-11.0.0.jar +file.reference.poi-5.5.1.jar=lib/poi-5.5.1.jar +file.reference.poi-ooxml-5.5.1.jar=lib/poi-ooxml-5.5.1.jar +file.reference.poi-ooxml-lite-5.5.1.jar=lib/poi-ooxml-lite-5.5.1.jar +file.reference.primefaces-16.0.2.jar=lib/primefaces-16.0.2.jar +file.reference.primefaces-extensions-16.0.2.jar=lib/primefaces-extensions-16.0.2.jar file.reference.snakeyaml-2.6.jar=lib/snakeyaml-2.6.jar -file.reference.swagger-annotations-2.2.52.jar=lib/swagger-annotations-2.2.52.jar -file.reference.swagger-core-2.2.52.jar=lib/swagger-core-2.2.52.jar -file.reference.swagger-integration-2.2.52.jar=lib/swagger-integration-2.2.52.jar -file.reference.swagger-jaxrs2-2.2.52.jar=lib/swagger-jaxrs2-2.2.52.jar -file.reference.swagger-models-2.2.52.jar=lib/swagger-models-2.2.52.jar -file.reference.xmlbeans-3.0.2.jar=lib/xmlbeans-3.0.2.jar -file.reference.commons-collections4-4.2.jar=lib/commons-collections4-4.2.jar -file.reference.commons-compress-1.18.jar=lib/commons-compress-1.18.jar +file.reference.swagger-annotations-jakarta-2.2.52.jar=lib/swagger-annotations-jakarta-2.2.52.jar +file.reference.swagger-core-jakarta-2.2.52.jar=lib/swagger-core-jakarta-2.2.52.jar +file.reference.swagger-integration-jakarta-2.2.52.jar=lib/swagger-integration-jakarta-2.2.52.jar +file.reference.swagger-jaxrs2-jakarta-2.2.52.jar=lib/swagger-jaxrs2-jakarta-2.2.52.jar +file.reference.swagger-models-jakarta-2.2.52.jar=lib/swagger-models-jakarta-2.2.52.jar +file.reference.xmlbeans-5.3.0.jar=lib/xmlbeans-5.3.0.jar +file.reference.commons-collections4-4.5.0.jar=lib/commons-collections4-4.5.0.jar +file.reference.commons-compress-1.28.0.jar=lib/commons-compress-1.28.0.jar +file.reference.curvesapi-1.08.jar=lib/curvesapi-1.08.jar +file.reference.SparseBitSet-1.3.jar=lib/SparseBitSet-1.3.jar +file.reference.commons-math3-3.6.1.jar=lib/commons-math3-3.6.1.jar +file.reference.commons-codec-1.20.0.jar=lib/commons-codec-1.20.0.jar +file.reference.commons-io-2.21.0.jar=lib/commons-io-2.21.0.jar file.reference.slf4j-api-1.7.26.jar=lib/slf4j-api-1.7.26.jar file.reference.xmpcore-6.1.10.jar=lib/xmpcore-6.1.10.jar includes=** j2ee.compile.on.save=false j2ee.copy.static.files.on.save=true j2ee.deploy.on.save=false -j2ee.platform=1.7-web -j2ee.platform.classpath=${j2ee.server.home}/modules/hibernate-validator.jar:${j2ee.server.home}/modules/jakarta.activation-api.jar:${j2ee.server.home}/modules/jakarta.activation.jar:${j2ee.server.home}/modules/jakarta.annotation-api.jar:${j2ee.server.home}/modules/jakarta.batch-api.jar:${j2ee.server.home}/modules/jakarta.ejb-api.jar:${j2ee.server.home}/modules/jakarta.el.jar:${j2ee.server.home}/modules/jakarta.enterprise.cdi-api.jar:${j2ee.server.home}/modules/jakarta.enterprise.concurrent-api.jar:${j2ee.server.home}/modules/jakarta.enterprise.deploy-api.jar:${j2ee.server.home}/modules/jakarta.faces.jar:${j2ee.server.home}/modules/jakarta.inject.jar:${j2ee.server.home}/modules/jakarta.interceptor-api.jar:${j2ee.server.home}/modules/jakarta.jms-api.jar:${j2ee.server.home}/modules/jakarta.json.bind-api.jar:${j2ee.server.home}/modules/jakarta.json.jar:${j2ee.server.home}/modules/jakarta.jws-api.jar:${j2ee.server.home}/modules/jakarta.mail.jar:${j2ee.server.home}/modules/jakarta.management.j2ee-api.jar:${j2ee.server.home}/modules/jakarta.persistence.jar:${j2ee.server.home}/modules/jakarta.resource-api.jar:${j2ee.server.home}/modules/jakarta.security.auth.message-api.jar:${j2ee.server.home}/modules/jakarta.security.enterprise-api.jar:${j2ee.server.home}/modules/jakarta.security.jacc-api.jar:${j2ee.server.home}/modules/jakarta.servlet-api.jar:${j2ee.server.home}/modules/jakarta.servlet.jsp-api.jar:${j2ee.server.home}/modules/jakarta.servlet.jsp.jstl-api.jar:${j2ee.server.home}/modules/jakarta.transaction-api.jar:${j2ee.server.home}/modules/jakarta.validation-api.jar:${j2ee.server.home}/modules/jakarta.websocket-api.jar:${j2ee.server.home}/modules/jakarta.ws.rs-api.jar:${j2ee.server.home}/modules/jakarta.xml.bind-api.jar:${j2ee.server.home}/modules/jakarta.xml.registry-api.jar:${j2ee.server.home}/modules/jakarta.xml.rpc-api.jar:${j2ee.server.home}/modules/jakarta.xml.ws-api.jar:${j2ee.server.home}/modules/javax.enterprise.concurrent.jar:${j2ee.server.home}/modules/javax.security.enterprise.jar:${j2ee.server.home}/modules/javax.servlet.jsp.jar:${j2ee.server.home}/modules/javax.servlet.jsp.jstl.jar:${j2ee.server.home}/modules/jaxb-osgi.jar:${j2ee.server.home}/modules/webservices-osgi.jar:${j2ee.server.home}/modules/weld-osgi-bundle.jar:${j2ee.server.middleware}/mq/lib/jaxm-api.jar +j2ee.platform=11-web +j2ee.platform.classpath= j2ee.platform.embeddableejb.classpath=${j2ee.server.home}/lib/embedded/glassfish-embedded-static-shell.jar j2ee.platform.wscompile.classpath=${j2ee.server.home}/modules/webservices-osgi.jar j2ee.platform.wsgen.classpath=${j2ee.server.home}/modules/webservices-osgi.jar:${j2ee.server.home}/modules/webservices-api-osgi.jar:${j2ee.server.home}/modules/jaxb-osgi.jar @@ -110,55 +113,103 @@ j2ee.platform.wsimport.classpath=${j2ee.server.home}/modules/webservices-osgi.ja j2ee.platform.wsit.classpath= j2ee.server.type=pfv5ee8 jar.compress=false +# Jakarta EE APIs provided by Payara 7 (compile only, not packaged). Kept separate because +# NetBeans 32 rewrites j2ee.platform.classpath and leaves it empty for Payara 7. +cdb.server.api.classpath=\ + ${j2ee.server.home}/modules/jakarta.activation-api.jar:\ + ${j2ee.server.home}/modules/jakarta.agentic-ai-api.jar:\ + ${j2ee.server.home}/modules/jakarta.annotation-api.jar:\ + ${j2ee.server.home}/modules/jakarta.authentication-api.jar:\ + ${j2ee.server.home}/modules/jakarta.authorization-api.jar:\ + ${j2ee.server.home}/modules/jakarta.batch-api.jar:\ + ${j2ee.server.home}/modules/jakarta.data-api.jar:\ + ${j2ee.server.home}/modules/jakarta.ejb-api.jar:\ + ${j2ee.server.home}/modules/jakarta.el-api.jar:\ + ${j2ee.server.home}/modules/jakarta.enterprise.cdi-api.jar:\ + ${j2ee.server.home}/modules/jakarta.enterprise.cdi-el-api.jar:\ + ${j2ee.server.home}/modules/jakarta.enterprise.concurrent-api.jar:\ + ${j2ee.server.home}/modules/jakarta.enterprise.deploy-api.jar:\ + ${j2ee.server.home}/modules/jakarta.enterprise.lang-model.jar:\ + ${j2ee.server.home}/modules/jakarta.faces.jar:\ + ${j2ee.server.home}/modules/jakarta.inject-api.jar:\ + ${j2ee.server.home}/modules/jakarta.interceptor-api.jar:\ + ${j2ee.server.home}/modules/jakarta.jms-api.jar:\ + ${j2ee.server.home}/modules/jakarta.json.bind-api.jar:\ + ${j2ee.server.home}/modules/jakarta.json.jar:\ + ${j2ee.server.home}/modules/jakarta.jws-api.jar:\ + ${j2ee.server.home}/modules/jakarta.mail-api.jar:\ + ${j2ee.server.home}/modules/jakarta.mvc-api.jar:\ + ${j2ee.server.home}/modules/jakarta.persistence-api.jar:\ + ${j2ee.server.home}/modules/jakarta.resource-api.jar:\ + ${j2ee.server.home}/modules/jakarta.security.enterprise-api.jar:\ + ${j2ee.server.home}/modules/jakarta.servlet-api.jar:\ + ${j2ee.server.home}/modules/jakarta.servlet.jsp-api.jar:\ + ${j2ee.server.home}/modules/jakarta.servlet.jsp.jstl-api.jar:\ + ${j2ee.server.home}/modules/jakarta.transaction-api.jar:\ + ${j2ee.server.home}/modules/jakarta.validation-api.jar:\ + ${j2ee.server.home}/modules/jakarta.websocket-api.jar:\ + ${j2ee.server.home}/modules/jakarta.websocket-client-api.jar:\ + ${j2ee.server.home}/modules/jakarta.ws.rs-api.jar:\ + ${j2ee.server.home}/modules/jakarta.xml.bind-api.jar:\ + ${j2ee.server.home}/modules/jakarta.xml.ws-api.jar:\ + ${j2ee.server.home}/modules/webservices-api-osgi.jar:\ + ${j2ee.server.home}/modules/hibernate-validator.jar:\ + ${j2ee.server.home}/modules/jaxb-osgi.jar:\ + ${j2ee.server.home}/modules/webservices-osgi.jar:\ + ${j2ee.server.home}/modules/weld-osgi-bundle.jar:\ + ${j2ee.server.home}/modules/jersey-common.jar:\ + ${j2ee.server.home}/modules/jersey-server.jar:\ + ${j2ee.server.home}/modules/jersey-media-json-jackson.jar javac.classpath=\ + ${cdb.server.api.classpath}:\ ${file.reference.pdfbox-2.0.24.jar}:\ ${file.reference.font-awesome-4.7.0.jar}:\ - ${file.reference.primefaces-11.0.0.jar}:\ - ${file.reference.primefaces-extensions-11.0.0.jar}:\ + ${file.reference.primefaces-16.0.2.jar}:\ + ${file.reference.primefaces-extensions-16.0.2.jar}:\ ${file.reference.libphonenumber-8.12.3.jar}:\ ${file.reference.commons-logging-1.2.jar}:\ - ${file.reference.omnifaces-3.10.1.jar-1}:\ - ${file.reference.commons-lang3-3.11.jar}:\ + ${file.reference.omnifaces-5.5.7.jar}:\ + ${file.reference.commons-lang3-3.18.0.jar}:\ ${file.reference.gson-2.10.1.jar}:\ ${file.reference.bcmail-jdk14-1.38.jar}:\ ${file.reference.itextpdf-5.5.13.1.jar}:\ ${file.reference.bcprov-jdk14-1.38.jar}:\ ${file.reference.bctsp-jdk14-1.38.jar}:\ ${file.reference.fontbox-2.0.24.jar}:\ - ${file.reference.poi-4.0.1.jar}:\ - ${file.reference.poi-ooxml-4.0.1.jar}:\ - ${file.reference.poi-ooxml-schemas-4.0.1.jar}:\ - ${file.reference.xmlbeans-3.0.2.jar}:\ - ${file.reference.commons-collections4-4.2.jar}:\ - ${file.reference.commons-compress-1.18.jar}:\ + ${file.reference.poi-5.5.1.jar}:\ + ${file.reference.poi-ooxml-5.5.1.jar}:\ + ${file.reference.poi-ooxml-lite-5.5.1.jar}:\ + ${file.reference.xmlbeans-5.3.0.jar}:\ + ${file.reference.commons-collections4-4.5.0.jar}:\ + ${file.reference.commons-compress-1.28.0.jar}:\ + ${file.reference.curvesapi-1.08.jar}:\ + ${file.reference.SparseBitSet-1.3.jar}:\ + ${file.reference.commons-math3-3.6.1.jar}:\ + ${file.reference.commons-codec-1.20.0.jar}:\ + ${file.reference.commons-io-2.21.0.jar}:\ ${file.reference.jackson-core-2.19.4.jar}:\ - ${file.reference.jackson-datatype-jsr310-2.13.4.jar}:\ + ${file.reference.jackson-datatype-jsr310-2.19.4.jar}:\ ${file.reference.jackson-databind-2.19.4.jar}:\ ${file.reference.jackson-annotations-2.19.4.jar}:\ - ${file.reference.jackson-jaxrs-base-2.19.4.jar}:\ - ${file.reference.jackson-jaxrs-json-provider-2.19.4.jar}:\ + ${file.reference.jackson-jakarta-rs-base-2.19.4.jar}:\ + ${file.reference.jackson-jakarta-rs-json-provider-2.19.4.jar}:\ ${file.reference.jackson-dataformat-yaml-2.19.4.jar}:\ - ${file.reference.jersey-media-json-jackson-2.28.jar}:\ ${file.reference.slf4j-api-1.7.26.jar}:\ ${file.reference.classgraph-4.8.31.jar}:\ ${file.reference.snakeyaml-2.6.jar}:\ - ${file.reference.swagger-annotations-2.2.52.jar}:\ - ${file.reference.swagger-core-2.2.52.jar}:\ - ${file.reference.swagger-jaxrs2-2.2.52.jar}:\ - ${file.reference.swagger-models-2.2.52.jar}:\ - ${file.reference.swagger-integration-2.2.52.jar}:\ - ${file.reference.ejb-api-3.0.jar}:\ - ${file.reference.javaee-web-api-8.0.1.jar}:\ - ${file.reference.javax.faces-api-2.1.jar}:\ - ${file.reference.javax.inject-1.jar}:\ - ${file.reference.javax.servlet-api-4.0.1.jar}:\ + ${file.reference.swagger-annotations-jakarta-2.2.52.jar}:\ + ${file.reference.swagger-core-jakarta-2.2.52.jar}:\ + ${file.reference.swagger-jaxrs2-jakarta-2.2.52.jar}:\ + ${file.reference.swagger-models-jakarta-2.2.52.jar}:\ + ${file.reference.swagger-integration-jakarta-2.2.52.jar}:\ ${file.reference.xmpcore-6.1.10.jar}:\ ${file.reference.metadata-extractor-2.17.0.jar}:\ - ${file.reference.javax.xml.soap-api-1.4.0.jar}:\ ${file.reference.log4j-api-2.26.0.jar}:\ ${file.reference.log4j-core-2.26.0.jar}:\ + ${file.reference.log4j-slf4j-impl-2.26.0.jar}:\ ${file.reference.dm-api-3.3.1.jar}:\ ${file.reference.dm-base-3.3.1.jar}:\ + ${file.reference.jaxb-api-2.3.1.jar}:\ ${file.reference.flexmark-0.64.8.jar}:\ ${file.reference.flexmark-util-ast-0.64.8.jar}:\ ${file.reference.flexmark-util-builder-0.64.8.jar}:\ @@ -169,7 +220,9 @@ javac.classpath=\ ${file.reference.flexmark-util-html-0.64.8.jar}:\ ${file.reference.flexmark-util-misc-0.64.8.jar}:\ ${file.reference.flexmark-util-sequence-0.64.8.jar}:\ - ${file.reference.flexmark-util-visitor-0.64.8.jar} + ${file.reference.flexmark-util-visitor-0.64.8.jar}:\ + ${file.reference.cdb-base-mqtt-1.0.0.jar}:\ + ${file.reference.mqtt-jca-api-1.0.0.jar} # Space-separated list of extra javac options javac.compilerargs= javac.debug=true @@ -178,8 +231,8 @@ javac.processorpath=\ ${javac.classpath}:\ ${libs.eclipselink.classpath}:\ ${libs.eclipselinkmodelgen.classpath} -javac.source=1.8 -javac.target=1.8 +javac.source=25 +javac.target=25 javac.test.classpath=\ ${javac.classpath}:\ ${build.classes.dir} diff --git a/src/java/CdbWebPortal/nbproject/project.xml b/src/java/CdbWebPortal/nbproject/project.xml index fe2ceeb99..9d02af179 100644 --- a/src/java/CdbWebPortal/nbproject/project.xml +++ b/src/java/CdbWebPortal/nbproject/project.xml @@ -6,6 +6,9 @@ CdbWebPortal 1.6.5 + + ${cdb.server.api.classpath} + ${file.reference.pdfbox-2.0.24.jar} WEB-INF/lib @@ -15,11 +18,11 @@ WEB-INF/lib - ${file.reference.primefaces-11.0.0.jar} + ${file.reference.primefaces-16.0.2.jar} WEB-INF/lib - ${file.reference.primefaces-extensions-11.0.0.jar} + ${file.reference.primefaces-extensions-16.0.2.jar} WEB-INF/lib @@ -31,11 +34,11 @@ WEB-INF/lib - ${file.reference.omnifaces-3.10.1.jar-1} + ${file.reference.omnifaces-5.5.7.jar} WEB-INF/lib - ${file.reference.commons-lang3-3.11.jar} + ${file.reference.commons-lang3-3.18.0.jar} WEB-INF/lib @@ -63,111 +66,107 @@ WEB-INF/lib - ${file.reference.poi-4.0.1.jar} - WEB-INF/lib - - - ${file.reference.poi-ooxml-4.0.1.jar} + ${file.reference.poi-5.5.1.jar} WEB-INF/lib - ${file.reference.poi-ooxml-schemas-4.0.1.jar} + ${file.reference.poi-ooxml-5.5.1.jar} WEB-INF/lib - ${file.reference.xmlbeans-3.0.2.jar} + ${file.reference.poi-ooxml-lite-5.5.1.jar} WEB-INF/lib - ${file.reference.commons-collections4-4.2.jar} + ${file.reference.xmlbeans-5.3.0.jar} WEB-INF/lib - ${file.reference.commons-compress-1.18.jar} + ${file.reference.commons-collections4-4.5.0.jar} WEB-INF/lib - ${file.reference.jackson-core-2.19.4.jar} + ${file.reference.commons-compress-1.28.0.jar} WEB-INF/lib - ${file.reference.jackson-datatype-jsr310-2.13.4.jar} + ${file.reference.curvesapi-1.08.jar} WEB-INF/lib - ${file.reference.jackson-databind-2.19.4.jar} + ${file.reference.SparseBitSet-1.3.jar} WEB-INF/lib - ${file.reference.jackson-annotations-2.19.4.jar} + ${file.reference.commons-math3-3.6.1.jar} WEB-INF/lib - ${file.reference.jackson-jaxrs-base-2.19.4.jar} + ${file.reference.commons-codec-1.20.0.jar} WEB-INF/lib - ${file.reference.jackson-jaxrs-json-provider-2.19.4.jar} + ${file.reference.commons-io-2.21.0.jar} WEB-INF/lib - ${file.reference.jackson-dataformat-yaml-2.19.4.jar} + ${file.reference.jackson-core-2.19.4.jar} WEB-INF/lib - ${file.reference.jersey-media-json-jackson-2.28.jar} + ${file.reference.jackson-datatype-jsr310-2.19.4.jar} WEB-INF/lib - ${file.reference.slf4j-api-1.7.26.jar} + ${file.reference.jackson-databind-2.19.4.jar} WEB-INF/lib - ${file.reference.classgraph-4.8.31.jar} + ${file.reference.jackson-annotations-2.19.4.jar} WEB-INF/lib - ${file.reference.snakeyaml-2.6.jar} + ${file.reference.jackson-jakarta-rs-base-2.19.4.jar} WEB-INF/lib - ${file.reference.swagger-annotations-2.2.52.jar} + ${file.reference.jackson-jakarta-rs-json-provider-2.19.4.jar} WEB-INF/lib - ${file.reference.swagger-core-2.2.52.jar} + ${file.reference.jackson-dataformat-yaml-2.19.4.jar} WEB-INF/lib - ${file.reference.swagger-jaxrs2-2.2.52.jar} + ${file.reference.slf4j-api-1.7.26.jar} WEB-INF/lib - ${file.reference.swagger-models-2.2.52.jar} + ${file.reference.classgraph-4.8.31.jar} WEB-INF/lib - ${file.reference.swagger-integration-2.2.52.jar} + ${file.reference.snakeyaml-2.6.jar} WEB-INF/lib - ${file.reference.ejb-api-3.0.jar} + ${file.reference.swagger-annotations-jakarta-2.2.52.jar} WEB-INF/lib - ${file.reference.javaee-web-api-8.0.1.jar} + ${file.reference.swagger-core-jakarta-2.2.52.jar} WEB-INF/lib - ${file.reference.javax.faces-api-2.1.jar} + ${file.reference.swagger-jaxrs2-jakarta-2.2.52.jar} WEB-INF/lib - ${file.reference.javax.inject-1.jar} + ${file.reference.swagger-models-jakarta-2.2.52.jar} WEB-INF/lib - ${file.reference.javax.servlet-api-4.0.1.jar} + ${file.reference.swagger-integration-jakarta-2.2.52.jar} WEB-INF/lib @@ -179,15 +178,15 @@ WEB-INF/lib - ${file.reference.javax.xml.soap-api-1.4.0.jar} + ${file.reference.log4j-api-2.26.0.jar} WEB-INF/lib - ${file.reference.log4j-api-2.26.0.jar} + ${file.reference.log4j-core-2.26.0.jar} WEB-INF/lib - ${file.reference.log4j-core-2.26.0.jar} + ${file.reference.log4j-slf4j-impl-2.26.0.jar} WEB-INF/lib @@ -198,6 +197,10 @@ ${file.reference.dm-base-3.3.1.jar} WEB-INF/lib + + ${file.reference.jaxb-api-2.3.1.jar} + WEB-INF/lib + ${file.reference.flexmark-0.64.8.jar} WEB-INF/lib @@ -242,6 +245,14 @@ ${file.reference.flexmark-util-visitor-0.64.8.jar} WEB-INF/lib + + ${file.reference.cdb-base-mqtt-1.0.0.jar} + WEB-INF/lib + + + ${file.reference.mqtt-jca-api-1.0.0.jar} + WEB-INF/lib + diff --git a/src/java/CdbWebPortal/src/conf/persistence.xml b/src/java/CdbWebPortal/src/conf/persistence.xml index bce8fa11a..b37873471 100644 --- a/src/java/CdbWebPortal/src/conf/persistence.xml +++ b/src/java/CdbWebPortal/src/conf/persistence.xml @@ -1,5 +1,5 @@ - + CdbDataSource false diff --git a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/common/utilities/ArgumentUtility.java b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/common/utilities/ArgumentUtility.java index cdd73195e..605acb188 100644 --- a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/common/utilities/ArgumentUtility.java +++ b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/common/utilities/ArgumentUtility.java @@ -7,7 +7,7 @@ import gov.anl.aps.cdb.common.exceptions.InvalidArgument; import gov.anl.aps.cdb.common.exceptions.CdbException; import java.util.Map; -import javax.xml.bind.DatatypeConverter; +import jakarta.xml.bind.DatatypeConverter; /** * Utility class for processing and checking function arguments. diff --git a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/common/utilities/CollectionUtility.java b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/common/utilities/CollectionUtility.java index ed054d07b..296ecb5cc 100644 --- a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/common/utilities/CollectionUtility.java +++ b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/common/utilities/CollectionUtility.java @@ -7,7 +7,7 @@ import java.util.ArrayList; import java.util.List; import java.util.ListIterator; -import javax.faces.model.SelectItem; +import jakarta.faces.model.SelectItem; /** * Utility class for manipulating collections. diff --git a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/common/utilities/ImageUtility.java b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/common/utilities/ImageUtility.java index 11b4090ff..3416f9451 100644 --- a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/common/utilities/ImageUtility.java +++ b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/common/utilities/ImageUtility.java @@ -108,6 +108,10 @@ private static byte[] rotateImageUsingMetadataIfNeeded(byte[] imageData, String ByteArrayInputStream data = new ByteArrayInputStream(imageData); Metadata metadata = ImageMetadataReader.readMetadata(data); Directory exifD0 = metadata.getFirstDirectoryOfType(ExifIFD0Directory.class); + // No EXIF orientation (e.g. most PNGs): nothing to rotate. + if (exifD0 == null || !exifD0.containsTag(ExifIFD0Directory.TAG_ORIENTATION)) { + return imageData; + } orientation = exifD0.getInt(ExifIFD0Directory.TAG_ORIENTATION); } catch (Exception ex) { logger.error(ex); diff --git a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/common/utilities/LdapUtility.java b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/common/utilities/LdapUtility.java index f6820a6ff..e09ba9181 100644 --- a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/common/utilities/LdapUtility.java +++ b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/common/utilities/LdapUtility.java @@ -108,6 +108,11 @@ private static String getDn(String username) { bind = bindToLdap(ldapLookupDn, ldapLookupDnBindPassword); } + if (bind == null) { + logger.error("LDAP lookup bind failed; cannot resolve dn for user: " + username); + return dn; + } + String filter = ldapLookupDnUsernamefilter.replace("%s", username); SearchControls search = new SearchControls(); diff --git a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/mqtt/CdbAttachmentSnapshot.java b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/mqtt/CdbAttachmentSnapshot.java new file mode 100644 index 000000000..a6bf9eaf0 --- /dev/null +++ b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/mqtt/CdbAttachmentSnapshot.java @@ -0,0 +1,25 @@ +/* + * Copyright (c) UChicago Argonne, LLC. All rights reserved. + * See LICENSE file. + */ +package gov.anl.aps.cdb.mqtt; + +import gov.anl.aps.cdb.portal.model.db.entities.Attachment; + +/** + * Scalar attachment metadata; file contents are never included. Identified by its unique + * stored name, which exists before the attachment row is saved (unlike its DB ID). + */ +public final class CdbAttachmentSnapshot { + + private final String name; + private final String originalFilename; + + public CdbAttachmentSnapshot(Attachment attachment) { + name = attachment.getName(); + originalFilename = attachment.getOriginalFilename(); + } + + public String getName() { return name; } + public String getOriginalFilename() { return originalFilename; } +} diff --git a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/mqtt/CdbEntityEvent.java b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/mqtt/CdbEntityEvent.java new file mode 100644 index 000000000..f206c9582 --- /dev/null +++ b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/mqtt/CdbEntityEvent.java @@ -0,0 +1,45 @@ +/* + * Copyright (c) UChicago Argonne, LLC. All rights reserved. + * See LICENSE file. + */ +package gov.anl.aps.cdb.mqtt; + +import gov.anl.aps.cdb.portal.model.db.entities.CdbEntity; +import gov.anl.aps.cdb.portal.model.db.entities.UserInfo; + +/** Scalar snapshot of a completed entity operation. */ +public class CdbEntityEvent extends CdbMqttEvent { + + private final CdbMqttOperation operation; + private final String entityId; + private final String entityType; + private final String entityDescription; + + public CdbEntityEvent(CdbMqttTopic topic, CdbEntity entity, UserInfo triggeredByUser) { + super(topic, triggeredByUser); + if (entity == null) { + throw new IllegalArgumentException("entity is required"); + } + this.operation = CdbMqttOperation.valueOf(topic.name()); + Object id = entity.getId(); + this.entityId = id == null ? null : id.toString(); + this.entityType = entity.getClass().getSimpleName(); + this.entityDescription = entity.getSystemLogString(); + } + + public CdbMqttOperation getOperation() { + return operation; + } + + public String getEntityId() { + return entityId; + } + + public String getEntityType() { + return entityType; + } + + public String getEntityDescription() { + return entityDescription; + } +} diff --git a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/mqtt/CdbEntityTypeSnapshot.java b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/mqtt/CdbEntityTypeSnapshot.java new file mode 100644 index 000000000..ac4d9d523 --- /dev/null +++ b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/mqtt/CdbEntityTypeSnapshot.java @@ -0,0 +1,25 @@ +/* + * Copyright (c) UChicago Argonne, LLC. All rights reserved. + * See LICENSE file. + */ +package gov.anl.aps.cdb.mqtt; + +import gov.anl.aps.cdb.portal.model.db.entities.EntityType; + +/** Scalar entity-type reference for event payloads. */ +public final class CdbEntityTypeSnapshot { + + private final Integer id; + private final String name; + + public CdbEntityTypeSnapshot(EntityType entityType) { + if (entityType == null) { + throw new IllegalArgumentException("entity type is required"); + } + id = entityType.getId(); + name = entityType.getName(); + } + + public Integer getId() { return id; } + public String getName() { return name; } +} diff --git a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/mqtt/CdbInventoryAssemblyElementEvent.java b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/mqtt/CdbInventoryAssemblyElementEvent.java new file mode 100644 index 000000000..0fc86c8a2 --- /dev/null +++ b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/mqtt/CdbInventoryAssemblyElementEvent.java @@ -0,0 +1,43 @@ +/* + * Copyright (c) UChicago Argonne, LLC. All rights reserved. + * See LICENSE file. + */ +package gov.anl.aps.cdb.mqtt; + +import gov.anl.aps.cdb.portal.model.db.entities.Item; +import gov.anl.aps.cdb.portal.model.db.entities.ItemDomainInventoryBase; +import gov.anl.aps.cdb.portal.model.db.entities.ItemElement; +import gov.anl.aps.cdb.portal.model.db.entities.UserInfo; + +/** Scalar snapshot of a completed inventory assembly-element assignment. */ +public final class CdbInventoryAssemblyElementEvent extends CdbMqttEvent { + + private final CdbItemSnapshot inventoryAssembly; + private final CdbItemElementSnapshot assemblyElement; + private final CdbItemElementSnapshot catalogElement; + private final CdbItemSnapshot oldAssignedInventoryItem; + private final CdbItemSnapshot newAssignedInventoryItem; + + public CdbInventoryAssemblyElementEvent(ItemDomainInventoryBase inventoryAssembly, + ItemElement assemblyElement, Item oldAssignedInventoryItem, + Item newAssignedInventoryItem, UserInfo user) { + super(CdbMqttTopic.INVENTORY_ASSEMBLY_ELEMENT_UPDATE, user); + if (inventoryAssembly == null || assemblyElement == null) { + throw new IllegalArgumentException("inventory assembly and element are required"); + } + this.inventoryAssembly = new CdbItemSnapshot(inventoryAssembly); + this.assemblyElement = new CdbItemElementSnapshot(assemblyElement); + ItemElement sourceElement = assemblyElement.getDerivedFromItemElement(); + catalogElement = sourceElement == null ? null : new CdbItemElementSnapshot(sourceElement); + this.oldAssignedInventoryItem = oldAssignedInventoryItem == null + ? null : new CdbItemSnapshot(oldAssignedInventoryItem); + this.newAssignedInventoryItem = newAssignedInventoryItem == null + ? null : new CdbItemSnapshot(newAssignedInventoryItem); + } + + public CdbItemSnapshot getInventoryAssembly() { return inventoryAssembly; } + public CdbItemElementSnapshot getAssemblyElement() { return assemblyElement; } + public CdbItemElementSnapshot getCatalogElement() { return catalogElement; } + public CdbItemSnapshot getOldAssignedInventoryItem() { return oldAssignedInventoryItem; } + public CdbItemSnapshot getNewAssignedInventoryItem() { return newAssignedInventoryItem; } +} diff --git a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/mqtt/CdbItemElementSnapshot.java b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/mqtt/CdbItemElementSnapshot.java new file mode 100644 index 000000000..4562ee78e --- /dev/null +++ b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/mqtt/CdbItemElementSnapshot.java @@ -0,0 +1,34 @@ +/* + * Copyright (c) UChicago Argonne, LLC. All rights reserved. + * See LICENSE file. + */ +package gov.anl.aps.cdb.mqtt; + +import gov.anl.aps.cdb.portal.model.db.entities.ItemElement; + +/** Scalar item-element reference for event payloads. */ +public final class CdbItemElementSnapshot { + + private final String id; + private final String name; + private final CdbItemSnapshot parentItem; + private final CdbItemSnapshot containedItem; + + public CdbItemElementSnapshot(ItemElement element) { + if (element == null) { + throw new IllegalArgumentException("element is required"); + } + Object elementId = element.getId(); + id = elementId == null ? null : elementId.toString(); + name = element.getName(); + parentItem = element.getParentItem() == null + ? null : new CdbItemSnapshot(element.getParentItem()); + containedItem = element.getContainedItem() == null + ? null : new CdbItemSnapshot(element.getContainedItem()); + } + + public String getId() { return id; } + public String getName() { return name; } + public CdbItemSnapshot getParentItem() { return parentItem; } + public CdbItemSnapshot getContainedItem() { return containedItem; } +} diff --git a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/mqtt/CdbItemLocationEvent.java b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/mqtt/CdbItemLocationEvent.java new file mode 100644 index 000000000..d13ff52cd --- /dev/null +++ b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/mqtt/CdbItemLocationEvent.java @@ -0,0 +1,39 @@ +/* + * Copyright (c) UChicago Argonne, LLC. All rights reserved. + * See LICENSE file. + */ +package gov.anl.aps.cdb.mqtt; + +import gov.anl.aps.cdb.portal.model.db.entities.Item; +import gov.anl.aps.cdb.portal.model.db.entities.LocatableItem; +import gov.anl.aps.cdb.portal.model.db.entities.UserInfo; + +/** Scalar snapshot of a completed item-location change. */ +public final class CdbItemLocationEvent extends CdbMqttEvent { + + private final CdbItemSnapshot item; + private final CdbItemSnapshot oldLocation; + private final CdbItemSnapshot newLocation; + private final String oldLocationDetails; + private final String newLocationDetails; + + public CdbItemLocationEvent(LocatableItem item, + Item oldLocation, Item newLocation, + String oldLocationDetails, String newLocationDetails, UserInfo user) { + super(CdbMqttTopic.ITEM_LOCATION_UPDATE, user); + if (item == null) { + throw new IllegalArgumentException("item is required"); + } + this.item = new CdbItemSnapshot(item); + this.oldLocation = oldLocation == null ? null : new CdbItemSnapshot(oldLocation); + this.newLocation = newLocation == null ? null : new CdbItemSnapshot(newLocation); + this.oldLocationDetails = oldLocationDetails; + this.newLocationDetails = newLocationDetails; + } + + public CdbItemSnapshot getItem() { return item; } + public CdbItemSnapshot getOldLocation() { return oldLocation; } + public CdbItemSnapshot getNewLocation() { return newLocation; } + public String getOldLocationDetails() { return oldLocationDetails; } + public String getNewLocationDetails() { return newLocationDetails; } +} diff --git a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/mqtt/CdbItemLogAttachmentEvent.java b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/mqtt/CdbItemLogAttachmentEvent.java new file mode 100644 index 000000000..f27e2ff5d --- /dev/null +++ b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/mqtt/CdbItemLogAttachmentEvent.java @@ -0,0 +1,41 @@ +/* + * Copyright (c) UChicago Argonne, LLC. All rights reserved. + * See LICENSE file. + */ +package gov.anl.aps.cdb.mqtt; + +import gov.anl.aps.cdb.portal.model.db.entities.Attachment; +import gov.anl.aps.cdb.portal.model.db.entities.Item; +import gov.anl.aps.cdb.portal.model.db.entities.Log; +import gov.anl.aps.cdb.portal.model.db.entities.UserInfo; + +/** Attachment newly associated with an item log entry. */ +public final class CdbItemLogAttachmentEvent extends CdbMqttEvent { + + private final CdbMqttOperation operation = CdbMqttOperation.ADD; + private final String itemId; + private final String itemType; + private final String itemDescription; + private final String logId; + private final CdbAttachmentSnapshot attachment; + + public CdbItemLogAttachmentEvent(Item item, Log log, Attachment attachment, UserInfo user) { + super(CdbMqttTopic.ITEM_LOG_ATTACHMENT_ADD, user); + if (item == null || log == null || attachment == null) { + throw new IllegalArgumentException("item, log and attachment are required"); + } + Object id = item.getId(); + itemId = id == null ? null : id.toString(); + itemType = item.getClass().getSimpleName(); + itemDescription = item.getSystemLogString(); + logId = log.getId() == null ? null : log.getId().toString(); + this.attachment = new CdbAttachmentSnapshot(attachment); + } + + public CdbMqttOperation getOperation() { return operation; } + public String getItemId() { return itemId; } + public String getItemType() { return itemType; } + public String getItemDescription() { return itemDescription; } + public String getLogId() { return logId; } + public CdbAttachmentSnapshot getAttachment() { return attachment; } +} diff --git a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/mqtt/CdbItemLogEvent.java b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/mqtt/CdbItemLogEvent.java new file mode 100644 index 000000000..80fa55890 --- /dev/null +++ b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/mqtt/CdbItemLogEvent.java @@ -0,0 +1,90 @@ +/* + * Copyright (c) UChicago Argonne, LLC. All rights reserved. + * See LICENSE file. + */ +package gov.anl.aps.cdb.mqtt; + +import gov.anl.aps.cdb.mqtt.utilities.CdbMqttTextUtility; +import gov.anl.aps.cdb.portal.model.db.entities.Item; +import gov.anl.aps.cdb.portal.model.db.entities.Log; +import gov.anl.aps.cdb.portal.model.db.entities.UserInfo; +import java.util.Objects; + +/** + * Scalar snapshot of a completed item log-entry change. Uses CdbMqttTextUtility + * conventions: add/delete carry text bounded at MAX_TEXT_LENGTH; updates carry a + * bounded line diff (null when the text is unchanged) and omit full text. + */ +public final class CdbItemLogEvent extends CdbMqttEvent { + + public static final int MAX_TEXT_LENGTH = CdbMqttTextUtility.MAX_TEXT_LENGTH; + + private final CdbMqttOperation operation; + private final String itemId; + private final String itemType; + private final String itemDescription; + private final CdbLogSnapshot oldLog; + private final CdbLogSnapshot newLog; + private final String textDiff; + private final boolean diffTruncated; + + private CdbItemLogEvent(CdbMqttTopic topic, CdbMqttOperation operation, Item item, + Log oldLog, Log newLog, UserInfo user) { + super(topic, user); + if (item == null || (oldLog == null && newLog == null)) { + throw new IllegalArgumentException("item and a log entry are required"); + } + this.operation = operation; + Object id = item.getId(); + itemId = id == null ? null : id.toString(); + itemType = item.getClass().getSimpleName(); + itemDescription = item.getSystemLogString(); + + String oldText = oldLog == null ? null : oldLog.getText(); + String newText = newLog == null ? null : newLog.getText(); + if (oldLog != null && newLog != null) { + if (Objects.equals(oldText, newText)) { + textDiff = null; + diffTruncated = false; + } else { + String diff = CdbMqttTextUtility.createLineDiff(oldText, newText); + diffTruncated = CdbMqttTextUtility.exceedsLimit(diff); + textDiff = CdbMqttTextUtility.truncate(diff); + } + this.oldLog = new CdbLogSnapshot(oldLog, null, true); + this.newLog = new CdbLogSnapshot(newLog, null, true); + } else { + textDiff = null; + diffTruncated = CdbMqttTextUtility.exceedsLimit(oldText) + || CdbMqttTextUtility.exceedsLimit(newText); + this.oldLog = oldLog == null ? null + : new CdbLogSnapshot(oldLog, CdbMqttTextUtility.truncate(oldText), false); + this.newLog = newLog == null ? null + : new CdbLogSnapshot(newLog, CdbMqttTextUtility.truncate(newText), false); + } + } + + public static CdbItemLogEvent added(Item item, Log log, UserInfo user) { + return new CdbItemLogEvent(CdbMqttTopic.ITEM_LOG_ADD, CdbMqttOperation.ADD, + item, null, log, user); + } + + public static CdbItemLogEvent updated(Item item, Log oldLog, Log newLog, UserInfo user) { + return new CdbItemLogEvent(CdbMqttTopic.ITEM_LOG_UPDATE, CdbMqttOperation.UPDATE, + item, oldLog, newLog, user); + } + + public static CdbItemLogEvent deleted(Item item, Log log, UserInfo user) { + return new CdbItemLogEvent(CdbMqttTopic.ITEM_LOG_DELETE, CdbMqttOperation.DELETE, + item, log, null, user); + } + + public CdbMqttOperation getOperation() { return operation; } + public String getItemId() { return itemId; } + public String getItemType() { return itemType; } + public String getItemDescription() { return itemDescription; } + public CdbLogSnapshot getOldLog() { return oldLog; } + public CdbLogSnapshot getNewLog() { return newLog; } + public String getTextDiff() { return textDiff; } + public boolean isDiffTruncated() { return diffTruncated; } +} diff --git a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/mqtt/CdbItemPropertyEvent.java b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/mqtt/CdbItemPropertyEvent.java new file mode 100644 index 000000000..120dd7f68 --- /dev/null +++ b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/mqtt/CdbItemPropertyEvent.java @@ -0,0 +1,92 @@ +/* + * Copyright (c) UChicago Argonne, LLC. All rights reserved. + * See LICENSE file. + */ +package gov.anl.aps.cdb.mqtt; + +import gov.anl.aps.cdb.mqtt.utilities.CdbMqttTextUtility; +import gov.anl.aps.cdb.portal.model.db.entities.Item; +import gov.anl.aps.cdb.portal.model.db.entities.PropertyValue; +import gov.anl.aps.cdb.portal.model.db.entities.UserInfo; + +/** Scalar snapshot of a completed item-property change. */ +public final class CdbItemPropertyEvent extends CdbMqttEvent { + + public static final int MAX_TEXT_LENGTH = CdbMqttTextUtility.MAX_TEXT_LENGTH; + + private final CdbMqttOperation operation; + private final String itemId; + private final String itemType; + private final String itemDescription; + private final CdbPropertySnapshot oldProperty; + private final CdbPropertySnapshot newProperty; + private final String textDiff; + private final boolean diffTruncated; + + private CdbItemPropertyEvent(CdbMqttTopic topic, Item item, + PropertyValue oldProperty, PropertyValue newProperty, UserInfo user) { + super(topic, user); + if (item == null || (oldProperty == null && newProperty == null)) { + throw new IllegalArgumentException("item and a property value are required"); + } + operation = operationFor(topic); + Object id = item.getId(); + itemId = id == null ? null : id.toString(); + itemType = item.getClass().getSimpleName(); + itemDescription = item.getSystemLogString(); + + boolean longText = (oldProperty != null && CdbPropertySnapshot.isLongText(oldProperty)) + || (newProperty != null && CdbPropertySnapshot.isLongText(newProperty)); + String oldText = oldProperty == null ? null : oldProperty.getText(); + String newText = newProperty == null ? null : newProperty.getText(); + if (longText && oldProperty != null && newProperty != null) { + String diff = CdbMqttTextUtility.createLineDiff(oldText, newText); + diffTruncated = CdbMqttTextUtility.exceedsLimit(diff); + textDiff = CdbMqttTextUtility.truncate(diff); + this.oldProperty = new CdbPropertySnapshot(oldProperty, null, true); + this.newProperty = new CdbPropertySnapshot(newProperty, null, true); + } else { + String boundedOldText = CdbMqttTextUtility.truncate(oldText); + String boundedNewText = CdbMqttTextUtility.truncate(newText); + diffTruncated = CdbMqttTextUtility.exceedsLimit(oldText) + || CdbMqttTextUtility.exceedsLimit(newText); + textDiff = null; + this.oldProperty = oldProperty == null ? null + : new CdbPropertySnapshot(oldProperty, boundedOldText, false); + this.newProperty = newProperty == null ? null + : new CdbPropertySnapshot(newProperty, boundedNewText, false); + } + } + + public static CdbItemPropertyEvent added(Item item, PropertyValue property, UserInfo user) { + return new CdbItemPropertyEvent(CdbMqttTopic.ITEM_PROPERTY_ADD, item, null, property, user); + } + + public static CdbItemPropertyEvent updated(Item item, PropertyValue oldProperty, + PropertyValue newProperty, UserInfo user) { + return new CdbItemPropertyEvent(CdbMqttTopic.ITEM_PROPERTY_UPDATE, + item, oldProperty, newProperty, user); + } + + public static CdbItemPropertyEvent deleted(Item item, PropertyValue property, UserInfo user) { + return new CdbItemPropertyEvent(CdbMqttTopic.ITEM_PROPERTY_DELETE, item, property, null, user); + } + + private static CdbMqttOperation operationFor(CdbMqttTopic topic) { + switch (topic) { + case ITEM_PROPERTY_ADD: return CdbMqttOperation.ADD; + case ITEM_PROPERTY_UPDATE: return CdbMqttOperation.UPDATE; + case ITEM_PROPERTY_DELETE: return CdbMqttOperation.DELETE; + default: throw new IllegalArgumentException("Invalid property event topic"); + } + } + + public CdbMqttOperation getOperation() { return operation; } + public String getItemId() { return itemId; } + public String getItemType() { return itemType; } + public String getItemDescription() { return itemDescription; } + public CdbPropertySnapshot getOldProperty() { return oldProperty; } + public CdbPropertySnapshot getNewProperty() { return newProperty; } + public String getTextDiff() { return textDiff; } + public boolean isDiffTruncated() { return diffTruncated; } +} diff --git a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/mqtt/CdbItemSnapshot.java b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/mqtt/CdbItemSnapshot.java new file mode 100644 index 000000000..5f30a0d1a --- /dev/null +++ b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/mqtt/CdbItemSnapshot.java @@ -0,0 +1,49 @@ +/* + * Copyright (c) UChicago Argonne, LLC. All rights reserved. + * See LICENSE file. + */ +package gov.anl.aps.cdb.mqtt; + +import gov.anl.aps.cdb.portal.model.db.entities.EntityType; +import gov.anl.aps.cdb.portal.model.db.entities.Item; +import java.util.ArrayList; +import java.util.Collections; +import java.util.Comparator; +import java.util.List; + +/** Scalar item reference for event payloads. */ +public final class CdbItemSnapshot { + + private final String id; + private final String domain; + private final Integer domainId; + private final String description; + private final List entityTypes; + + public CdbItemSnapshot(Item item) { + if (item == null) { + throw new IllegalArgumentException("item is required"); + } + Object itemId = item.getId(); + id = itemId == null ? null : itemId.toString(); + domain = item.getDomain() == null ? null : item.getDomain().getName(); + domainId = item.getDomain() == null ? null : item.getDomain().getId(); + description = item.getSystemLogString(); + List snapshots = new ArrayList<>(); + if (item.getEntityTypeList() != null) { + List entityTypes = new ArrayList<>(item.getEntityTypeList()); + entityTypes.sort(Comparator.comparing(EntityType::getId, + Comparator.nullsLast(Comparator.naturalOrder()))); + for (EntityType entityType : entityTypes) { + snapshots.add(new CdbEntityTypeSnapshot(entityType)); + } + } + entityTypes = Collections.unmodifiableList(snapshots); + } + + public String getId() { return id; } + public String getDomain() { return domain; } + public Integer getDomainId() { return domainId; } + public String getDescription() { return description; } + public List getEntityTypes() { return entityTypes; } +} diff --git a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/mqtt/CdbLogSnapshot.java b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/mqtt/CdbLogSnapshot.java new file mode 100644 index 000000000..525f365a9 --- /dev/null +++ b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/mqtt/CdbLogSnapshot.java @@ -0,0 +1,57 @@ +/* + * Copyright (c) UChicago Argonne, LLC. All rights reserved. + * See LICENSE file. + */ +package gov.anl.aps.cdb.mqtt; + +import com.fasterxml.jackson.annotation.JsonFormat; +import gov.anl.aps.cdb.portal.model.db.entities.Log; +import gov.anl.aps.cdb.portal.model.db.entities.LogTopic; +import gov.anl.aps.cdb.portal.model.db.entities.UserInfo; +import java.util.Date; + +/** Scalar snapshot of an item log entry; attachments are never included. */ +public final class CdbLogSnapshot { + + private final String logId; + private final String text; + private final boolean textOmitted; + private final Date enteredOnDateTime; + private final Date effectiveFromDateTime; + private final Date effectiveToDateTime; + private final String enteredByUsername; + private final String logTopicId; + private final String logTopicName; + + public CdbLogSnapshot(Log log, String text, boolean textOmitted) { + Object id = log.getId(); + logId = id == null ? null : id.toString(); + this.text = text; + this.textOmitted = textOmitted; + enteredOnDateTime = copy(log.getEnteredOnDateTime()); + effectiveFromDateTime = copy(log.getEffectiveFromDateTime()); + effectiveToDateTime = copy(log.getEffectiveToDateTime()); + UserInfo enteredBy = log.getEnteredByUser(); + enteredByUsername = enteredBy == null ? null : enteredBy.getUsername(); + LogTopic topic = log.getLogTopic(); + logTopicId = topic == null || topic.getId() == null ? null : topic.getId().toString(); + logTopicName = topic == null ? null : topic.getName(); + } + + private static Date copy(Date value) { + return value == null ? null : new Date(value.getTime()); + } + + public String getLogId() { return logId; } + public String getText() { return text; } + public boolean isTextOmitted() { return textOmitted; } + @JsonFormat(shape = JsonFormat.Shape.STRING) + public Date getEnteredOnDateTime() { return copy(enteredOnDateTime); } + @JsonFormat(shape = JsonFormat.Shape.STRING) + public Date getEffectiveFromDateTime() { return copy(effectiveFromDateTime); } + @JsonFormat(shape = JsonFormat.Shape.STRING) + public Date getEffectiveToDateTime() { return copy(effectiveToDateTime); } + public String getEnteredByUsername() { return enteredByUsername; } + public String getLogTopicId() { return logTopicId; } + public String getLogTopicName() { return logTopicName; } +} diff --git a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/mqtt/CdbMachineAddEvent.java b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/mqtt/CdbMachineAddEvent.java new file mode 100644 index 000000000..9ac9fa695 --- /dev/null +++ b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/mqtt/CdbMachineAddEvent.java @@ -0,0 +1,55 @@ +/* + * Copyright (c) UChicago Argonne, LLC. All rights reserved. + * See LICENSE file. + */ +package gov.anl.aps.cdb.mqtt; + +import com.fasterxml.jackson.annotation.JsonInclude; +import gov.anl.aps.cdb.mqtt.metadata.MachineAddChange; +import gov.anl.aps.cdb.portal.model.db.entities.ItemDomainMachineDesign; +import gov.anl.aps.cdb.portal.model.db.entities.UserInfo; + +/** + * Scalar snapshot of a newly persisted machine-design node. Template fields are + * omitted unless the node was cloned from a template. + */ +public final class CdbMachineAddEvent extends CdbMqttEvent { + + private final CdbItemSnapshot machine; + private final CdbItemSnapshot parent; + @JsonInclude(JsonInclude.Include.NON_NULL) + private final CdbItemSnapshot sourceTemplate; + // New top node of the instantiation, or an existing machine a template was assigned to. + @JsonInclude(JsonInclude.Include.NON_NULL) + private final CdbItemSnapshot templateAppliedToMachine; + // Add events published for the same template application. + @JsonInclude(JsonInclude.Include.NON_NULL) + private final Integer templateCreatedMachineCount; + + public CdbMachineAddEvent(ItemDomainMachineDesign machine, + ItemDomainMachineDesign parent, UserInfo user) { + this(new MachineAddChange(machine, parent), user); + } + + public CdbMachineAddEvent(MachineAddChange change, UserInfo user) { + super(CdbMqttTopic.MACHINE_DESIGN_ADD, user); + if (change == null || change.getMachine() == null) { + throw new IllegalArgumentException("machine is required"); + } + this.machine = new CdbItemSnapshot(change.getMachine()); + this.parent = snapshot(change.getParent()); + this.sourceTemplate = snapshot(change.getSourceTemplate()); + this.templateAppliedToMachine = snapshot(change.getTemplateAppliedToMachine()); + this.templateCreatedMachineCount = change.getTemplateCreatedMachineCount(); + } + + private static CdbItemSnapshot snapshot(ItemDomainMachineDesign item) { + return item == null ? null : new CdbItemSnapshot(item); + } + + public CdbItemSnapshot getMachine() { return machine; } + public CdbItemSnapshot getParent() { return parent; } + public CdbItemSnapshot getSourceTemplate() { return sourceTemplate; } + public CdbItemSnapshot getTemplateAppliedToMachine() { return templateAppliedToMachine; } + public Integer getTemplateCreatedMachineCount() { return templateCreatedMachineCount; } +} diff --git a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/mqtt/CdbMachineAssignedItemEvent.java b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/mqtt/CdbMachineAssignedItemEvent.java new file mode 100644 index 000000000..ce0cae98c --- /dev/null +++ b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/mqtt/CdbMachineAssignedItemEvent.java @@ -0,0 +1,39 @@ +/* + * Copyright (c) UChicago Argonne, LLC. All rights reserved. + * See LICENSE file. + */ +package gov.anl.aps.cdb.mqtt; + +import gov.anl.aps.cdb.portal.model.db.entities.Item; +import gov.anl.aps.cdb.portal.model.db.entities.ItemDomainMachineDesign; +import gov.anl.aps.cdb.portal.model.db.entities.UserInfo; + +/** Scalar snapshot of a completed machine assigned-item change. */ +public final class CdbMachineAssignedItemEvent extends CdbMqttEvent { + + private final CdbItemSnapshot machine; + private final CdbItemSnapshot oldAssignedItem; + private final CdbItemSnapshot newAssignedItem; + private final boolean oldInstalled; + private final boolean newInstalled; + + public CdbMachineAssignedItemEvent(ItemDomainMachineDesign machine, + Item oldAssignedItem, Item newAssignedItem, + boolean oldInstalled, boolean newInstalled, UserInfo user) { + super(CdbMqttTopic.MACHINE_DESIGN_ASSIGNED_ITEM_UPDATE, user); + if (machine == null) { + throw new IllegalArgumentException("machine is required"); + } + this.machine = new CdbItemSnapshot(machine); + this.oldAssignedItem = oldAssignedItem == null ? null : new CdbItemSnapshot(oldAssignedItem); + this.newAssignedItem = newAssignedItem == null ? null : new CdbItemSnapshot(newAssignedItem); + this.oldInstalled = oldInstalled; + this.newInstalled = newInstalled; + } + + public CdbItemSnapshot getMachine() { return machine; } + public CdbItemSnapshot getOldAssignedItem() { return oldAssignedItem; } + public CdbItemSnapshot getNewAssignedItem() { return newAssignedItem; } + public boolean isOldInstalled() { return oldInstalled; } + public boolean isNewInstalled() { return newInstalled; } +} diff --git a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/mqtt/CdbMachineMoveEvent.java b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/mqtt/CdbMachineMoveEvent.java new file mode 100644 index 000000000..65fed6523 --- /dev/null +++ b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/mqtt/CdbMachineMoveEvent.java @@ -0,0 +1,32 @@ +/* + * Copyright (c) UChicago Argonne, LLC. All rights reserved. + * See LICENSE file. + */ +package gov.anl.aps.cdb.mqtt; + +import gov.anl.aps.cdb.portal.model.db.entities.ItemDomainMachineDesign; +import gov.anl.aps.cdb.portal.model.db.entities.UserInfo; + +/** Scalar snapshot of a completed machine move. */ +public final class CdbMachineMoveEvent extends CdbMqttEvent { + + private final CdbItemSnapshot machine; + private final CdbItemSnapshot oldParent; + private final CdbItemSnapshot newParent; + + public CdbMachineMoveEvent(ItemDomainMachineDesign machine, + ItemDomainMachineDesign oldParent, ItemDomainMachineDesign newParent, + UserInfo user) { + super(CdbMqttTopic.MACHINE_DESIGN_MOVE, user); + if (machine == null || newParent == null) { + throw new IllegalArgumentException("machine and new parent are required"); + } + this.machine = new CdbItemSnapshot(machine); + this.oldParent = oldParent == null ? null : new CdbItemSnapshot(oldParent); + this.newParent = new CdbItemSnapshot(newParent); + } + + public CdbItemSnapshot getMachine() { return machine; } + public CdbItemSnapshot getOldParent() { return oldParent; } + public CdbItemSnapshot getNewParent() { return newParent; } +} diff --git a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/mqtt/CdbMachineRepresentedElementEvent.java b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/mqtt/CdbMachineRepresentedElementEvent.java new file mode 100644 index 000000000..086926b93 --- /dev/null +++ b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/mqtt/CdbMachineRepresentedElementEvent.java @@ -0,0 +1,44 @@ +/* + * Copyright (c) UChicago Argonne, LLC. All rights reserved. + * See LICENSE file. + */ +package gov.anl.aps.cdb.mqtt; + +import gov.anl.aps.cdb.portal.model.db.entities.ItemDomainMachineDesign; +import gov.anl.aps.cdb.portal.model.db.entities.ItemElement; +import gov.anl.aps.cdb.portal.model.db.entities.UserInfo; + +/** Scalar snapshot of a completed represented-element change. */ +public final class CdbMachineRepresentedElementEvent extends CdbMqttEvent { + + private final CdbItemSnapshot machine; + private final CdbItemElementSnapshot oldRepresentedElement; + private final CdbItemElementSnapshot newRepresentedElement; + private final CdbItemSnapshot sourceTemplate; + + public CdbMachineRepresentedElementEvent(ItemDomainMachineDesign machine, + ItemElement oldRepresentedElement, ItemElement newRepresentedElement, + UserInfo user) { + this(machine, oldRepresentedElement, newRepresentedElement, null, user); + } + + public CdbMachineRepresentedElementEvent(ItemDomainMachineDesign machine, + ItemElement oldRepresentedElement, ItemElement newRepresentedElement, + ItemDomainMachineDesign sourceTemplate, UserInfo user) { + super(CdbMqttTopic.MACHINE_DESIGN_REPRESENTED_ELEMENT_UPDATE, user); + if (machine == null) { + throw new IllegalArgumentException("machine is required"); + } + this.machine = new CdbItemSnapshot(machine); + this.oldRepresentedElement = oldRepresentedElement == null + ? null : new CdbItemElementSnapshot(oldRepresentedElement); + this.newRepresentedElement = newRepresentedElement == null + ? null : new CdbItemElementSnapshot(newRepresentedElement); + this.sourceTemplate = sourceTemplate == null ? null : new CdbItemSnapshot(sourceTemplate); + } + + public CdbItemSnapshot getMachine() { return machine; } + public CdbItemElementSnapshot getOldRepresentedElement() { return oldRepresentedElement; } + public CdbItemElementSnapshot getNewRepresentedElement() { return newRepresentedElement; } + public CdbItemSnapshot getSourceTemplate() { return sourceTemplate; } +} diff --git a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/mqtt/CdbMachineTrashEvent.java b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/mqtt/CdbMachineTrashEvent.java new file mode 100644 index 000000000..bf5be2225 --- /dev/null +++ b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/mqtt/CdbMachineTrashEvent.java @@ -0,0 +1,39 @@ +/* + * Copyright (c) UChicago Argonne, LLC. All rights reserved. + * See LICENSE file. + */ +package gov.anl.aps.cdb.mqtt; + +import gov.anl.aps.cdb.portal.model.db.entities.ItemDomainMachineDesign; +import gov.anl.aps.cdb.portal.model.db.entities.UserInfo; + +/** Scalar snapshot of a completed machine trash or restore operation. */ +public final class CdbMachineTrashEvent extends CdbMqttEvent { + + private final CdbMqttOperation operation; + private final CdbItemSnapshot affectedMachine; + private final CdbItemSnapshot requestedHierarchyRoot; + private final int affectedMachineCount; + + public CdbMachineTrashEvent(CdbMqttTopic topic, ItemDomainMachineDesign machine, + ItemDomainMachineDesign requestedRoot, int affectedCount, UserInfo user) { + super(topic, user); + if (topic != CdbMqttTopic.MACHINE_DESIGN_TRASH + && topic != CdbMqttTopic.MACHINE_DESIGN_RESTORE) { + throw new IllegalArgumentException("trash or restore topic is required"); + } + if (machine == null || requestedRoot == null || affectedCount < 1) { + throw new IllegalArgumentException("machine, root, and affected count are required"); + } + operation = topic == CdbMqttTopic.MACHINE_DESIGN_TRASH + ? CdbMqttOperation.TRASH : CdbMqttOperation.RESTORE; + this.affectedMachine = new CdbItemSnapshot(machine); + this.requestedHierarchyRoot = new CdbItemSnapshot(requestedRoot); + this.affectedMachineCount = affectedCount; + } + + public CdbMqttOperation getOperation() { return operation; } + public CdbItemSnapshot getAffectedMachine() { return affectedMachine; } + public CdbItemSnapshot getRequestedHierarchyRoot() { return requestedHierarchyRoot; } + public int getAffectedMachineCount() { return affectedMachineCount; } +} diff --git a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/mqtt/CdbMqttEvent.java b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/mqtt/CdbMqttEvent.java new file mode 100644 index 000000000..9e7d3fa34 --- /dev/null +++ b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/mqtt/CdbMqttEvent.java @@ -0,0 +1,32 @@ +/* + * Copyright (c) UChicago Argonne, LLC. All rights reserved. + * See LICENSE file. + */ +package gov.anl.aps.cdb.mqtt; + +import gov.anl.aps.cdb.base.mqtt.MqttEvent; +import gov.anl.aps.cdb.portal.model.db.entities.UserInfo; + +/** Base for CDB MQTT events with common routing and actor context. */ +public abstract class CdbMqttEvent extends MqttEvent { + + private final String topic; + private final String triggeredByUsername; + + protected CdbMqttEvent(CdbMqttTopic topic, UserInfo triggeredByUser) { + if (topic == null) { + throw new IllegalArgumentException("topic is required"); + } + this.topic = topic.getValue(); + triggeredByUsername = triggeredByUser == null ? null : triggeredByUser.getUsername(); + } + + @Override + public final String getTopic() { + return topic; + } + + public final String getTriggeredByUsername() { + return triggeredByUsername; + } +} diff --git a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/mqtt/CdbMqttOperation.java b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/mqtt/CdbMqttOperation.java new file mode 100644 index 000000000..bf4246645 --- /dev/null +++ b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/mqtt/CdbMqttOperation.java @@ -0,0 +1,27 @@ +/* + * Copyright (c) UChicago Argonne, LLC. All rights reserved. + * See LICENSE file. + */ +package gov.anl.aps.cdb.mqtt; + +import com.fasterxml.jackson.annotation.JsonValue; + +/** Operation represented by a CDB MQTT event. */ +public enum CdbMqttOperation { + ADD("add"), + UPDATE("update"), + DELETE("delete"), + TRASH("trash"), + RESTORE("restore"); + + private final String value; + + CdbMqttOperation(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } +} diff --git a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/mqtt/CdbMqttPublisher.java b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/mqtt/CdbMqttPublisher.java new file mode 100644 index 000000000..f2bd5f135 --- /dev/null +++ b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/mqtt/CdbMqttPublisher.java @@ -0,0 +1,50 @@ +/* + * Copyright (c) UChicago Argonne, LLC. All rights reserved. + * See LICENSE file. + */ +package gov.anl.aps.cdb.mqtt; + +import com.fasterxml.jackson.databind.ObjectMapper; +import gov.anl.aps.cdb.base.mqtt.MqttEvent; +import gov.anl.aps.cdb.base.mqtt.MqttPublisher; +import gov.anl.aps.cdb.base.mqtt.exception.MqttException; +import gov.anl.aps.cdb.base.mqtt.exception.MqttNotConfiguredException; +import gov.anl.aps.cdb.base.mqtt.exception.MqttPublishException; +import gov.anl.aps.cdb.base.mqtt.jca.JcaMqttPublisher; +import gov.anl.aps.cdb.base.mqtt.jca.JndiMqttConnectionProvider; +import org.apache.logging.log4j.LogManager; +import org.apache.logging.log4j.Logger; + +/** Application adapter that makes MQTT publishing best effort. */ +public final class CdbMqttPublisher { + + public static final String JNDI_RESOURCE_NAME = "cdb/MQTT/resource"; + private static final Logger LOGGER = LogManager.getLogger(CdbMqttPublisher.class.getName()); + private static final MqttPublisher PUBLISHER = new JcaMqttPublisher( + new JndiMqttConnectionProvider(JNDI_RESOURCE_NAME), new ObjectMapper()); + + private CdbMqttPublisher() { + } + + public static void publish(MqttEvent event) { + try { + PUBLISHER.publish(event); + } catch (MqttNotConfiguredException ex) { + LOGGER.warn("MQTT is unavailable; skipped event for " + event.getTopic() + + ". " + ex.getMessage()); + } catch (MqttPublishException ex) { + LOGGER.warn("MQTT broker is unavailable or disconnected; skipped event for " + + event.getTopic() + ". " + getRootCauseMessage(ex)); + } catch (MqttException | RuntimeException ex) { + LOGGER.error("Failed to prepare MQTT event for " + event.getTopic(), ex); + } + } + + private static String getRootCauseMessage(Throwable error) { + Throwable cause = error; + while (cause.getCause() != null && cause.getCause() != cause) { + cause = cause.getCause(); + } + return cause.getMessage() == null ? cause.getClass().getSimpleName() : cause.getMessage(); + } +} diff --git a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/mqtt/CdbMqttTopic.java b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/mqtt/CdbMqttTopic.java new file mode 100644 index 000000000..067fbb707 --- /dev/null +++ b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/mqtt/CdbMqttTopic.java @@ -0,0 +1,36 @@ +/* + * Copyright (c) UChicago Argonne, LLC. All rights reserved. + * See LICENSE file. + */ +package gov.anl.aps.cdb.mqtt; + +public enum CdbMqttTopic { + ADD("cdb/entity/add"), + UPDATE("cdb/entity/update"), + DELETE("cdb/entity/delete"), + ITEM_PROPERTY_ADD("cdb/item/property/add"), + ITEM_PROPERTY_UPDATE("cdb/item/property/update"), + ITEM_PROPERTY_DELETE("cdb/item/property/delete"), + ITEM_LOG_ADD("cdb/item/log/add"), + ITEM_LOG_UPDATE("cdb/item/log/update"), + ITEM_LOG_DELETE("cdb/item/log/delete"), + ITEM_LOG_ATTACHMENT_ADD("cdb/item/log/attachment/add"), + MACHINE_DESIGN_ADD("cdb/machine-design/add"), + MACHINE_DESIGN_ASSIGNED_ITEM_UPDATE("cdb/machine-design/assigned-item/update"), + MACHINE_DESIGN_MOVE("cdb/machine-design/move"), + MACHINE_DESIGN_REPRESENTED_ELEMENT_UPDATE("cdb/machine-design/represented-element/update"), + MACHINE_DESIGN_TRASH("cdb/machine-design/trash"), + MACHINE_DESIGN_RESTORE("cdb/machine-design/restore"), + ITEM_LOCATION_UPDATE("cdb/item/location/update"), + INVENTORY_ASSEMBLY_ELEMENT_UPDATE("cdb/inventory/assembly-element/update"); + + private final String value; + + CdbMqttTopic(String value) { + this.value = value; + } + + public String getValue() { + return value; + } +} diff --git a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/mqtt/CdbPropertySnapshot.java b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/mqtt/CdbPropertySnapshot.java new file mode 100644 index 000000000..4a7c08c06 --- /dev/null +++ b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/mqtt/CdbPropertySnapshot.java @@ -0,0 +1,76 @@ +/* + * Copyright (c) UChicago Argonne, LLC. All rights reserved. + * See LICENSE file. + */ +package gov.anl.aps.cdb.mqtt; + +import gov.anl.aps.cdb.portal.model.db.entities.PropertyMetadata; +import gov.anl.aps.cdb.portal.model.db.entities.PropertyType; +import gov.anl.aps.cdb.portal.model.db.entities.PropertyTypeHandler; +import gov.anl.aps.cdb.portal.model.db.entities.PropertyValue; +import gov.anl.aps.cdb.portal.model.jsf.handlers.MarkdownPropertyTypeHandler; +import java.util.Collections; +import java.util.Map; +import java.util.TreeMap; + +/** Scalar snapshot of a property value. */ +public final class CdbPropertySnapshot { + + private final String propertyValueId; + private final String propertyTypeId; + private final String propertyTypeName; + private final String tag; + private final String value; + private final String text; + private final String units; + private final String description; + private final Map metadata; + private final boolean textOmitted; + + public CdbPropertySnapshot(PropertyValue propertyValue, String text, boolean textOmitted) { + Object id = propertyValue.getId(); + propertyValueId = id == null ? null : id.toString(); + PropertyType propertyType = propertyValue.getPropertyType(); + propertyTypeId = propertyType == null || propertyType.getId() == null + ? null : propertyType.getId().toString(); + propertyTypeName = propertyType == null ? null : propertyType.getName(); + tag = propertyValue.getTag(); + value = propertyValue.getValue(); + this.text = text; + units = propertyValue.getUnits(); + description = propertyValue.getDescription(); + metadata = snapshotMetadata(propertyValue); + this.textOmitted = textOmitted; + } + + public static boolean isLongText(PropertyValue propertyValue) { + if (propertyValue.getText() != null) { + return true; + } + PropertyType propertyType = propertyValue.getPropertyType(); + PropertyTypeHandler handler = propertyType == null + ? null : propertyType.getPropertyTypeHandler(); + return handler != null && MarkdownPropertyTypeHandler.HANDLER_NAME.equals(handler.getName()); + } + + private static Map snapshotMetadata(PropertyValue propertyValue) { + Map result = new TreeMap<>(); + if (propertyValue.getPropertyMetadataList() != null) { + for (PropertyMetadata propertyMetadata : propertyValue.getPropertyMetadataList()) { + result.put(propertyMetadata.getMetadataKey(), propertyMetadata.getMetadataValue()); + } + } + return Collections.unmodifiableMap(result); + } + + public String getPropertyValueId() { return propertyValueId; } + public String getPropertyTypeId() { return propertyTypeId; } + public String getPropertyTypeName() { return propertyTypeName; } + public String getTag() { return tag; } + public String getValue() { return value; } + public String getText() { return text; } + public String getUnits() { return units; } + public String getDescription() { return description; } + public Map getMetadata() { return metadata; } + public boolean isTextOmitted() { return textOmitted; } +} diff --git a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/mqtt/metadata/InventoryAssemblyElementChange.java b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/mqtt/metadata/InventoryAssemblyElementChange.java new file mode 100644 index 000000000..face2d4d3 --- /dev/null +++ b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/mqtt/metadata/InventoryAssemblyElementChange.java @@ -0,0 +1,27 @@ +/* + * Copyright (c) UChicago Argonne, LLC. All rights reserved. + * See LICENSE file. + */ +package gov.anl.aps.cdb.mqtt.metadata; + +import gov.anl.aps.cdb.portal.model.db.entities.Item; +import gov.anl.aps.cdb.portal.model.db.entities.ItemElement; + +/** Pending pre-update state for an inventory assembly-element assignment. */ +public final class InventoryAssemblyElementChange { + + private final ItemElement assemblyElement; + private final Item oldAssignedInventoryItem; + private final Item newAssignedInventoryItem; + + public InventoryAssemblyElementChange(ItemElement assemblyElement, + Item oldAssignedInventoryItem, Item newAssignedInventoryItem) { + this.assemblyElement = assemblyElement; + this.oldAssignedInventoryItem = oldAssignedInventoryItem; + this.newAssignedInventoryItem = newAssignedInventoryItem; + } + + public ItemElement getAssemblyElement() { return assemblyElement; } + public Item getOldAssignedInventoryItem() { return oldAssignedInventoryItem; } + public Item getNewAssignedInventoryItem() { return newAssignedInventoryItem; } +} diff --git a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/mqtt/metadata/ItemLocationChange.java b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/mqtt/metadata/ItemLocationChange.java new file mode 100644 index 000000000..2cef9b216 --- /dev/null +++ b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/mqtt/metadata/ItemLocationChange.java @@ -0,0 +1,29 @@ +/* + * Copyright (c) UChicago Argonne, LLC. All rights reserved. + * See LICENSE file. + */ +package gov.anl.aps.cdb.mqtt.metadata; + +import gov.anl.aps.cdb.portal.model.db.entities.Item; + +/** Pending pre-update state for an item-location change. */ +public final class ItemLocationChange { + + private final Item oldLocation; + private final String oldLocationDetails; + private final Item newLocation; + private final String newLocationDetails; + + public ItemLocationChange(Item oldLocation, String oldLocationDetails, + Item newLocation, String newLocationDetails) { + this.oldLocation = oldLocation; + this.oldLocationDetails = oldLocationDetails; + this.newLocation = newLocation; + this.newLocationDetails = newLocationDetails; + } + + public Item getOldLocation() { return oldLocation; } + public String getOldLocationDetails() { return oldLocationDetails; } + public Item getNewLocation() { return newLocation; } + public String getNewLocationDetails() { return newLocationDetails; } +} diff --git a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/mqtt/metadata/ItemLogChange.java b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/mqtt/metadata/ItemLogChange.java new file mode 100644 index 000000000..64f99c642 --- /dev/null +++ b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/mqtt/metadata/ItemLogChange.java @@ -0,0 +1,35 @@ +/* + * Copyright (c) UChicago Argonne, LLC. All rights reserved. + * See LICENSE file. + */ +package gov.anl.aps.cdb.mqtt.metadata; + +import gov.anl.aps.cdb.portal.model.db.entities.Log; + +/** Pending pre-update state for an item log-entry update or delete. */ +public final class ItemLogChange { + + public enum Type { UPDATE, DELETE } + + private final Type type; + private final Log oldLog; + private final Log newLog; + + private ItemLogChange(Type type, Log oldLog, Log newLog) { + this.type = type; + this.oldLog = oldLog; + this.newLog = newLog; + } + + public static ItemLogChange updated(Log oldLog, Log newLog) { + return new ItemLogChange(Type.UPDATE, oldLog, newLog); + } + + public static ItemLogChange deleted(Log oldLog) { + return new ItemLogChange(Type.DELETE, oldLog, null); + } + + public Type getType() { return type; } + public Log getOldLog() { return oldLog; } + public Log getNewLog() { return newLog; } +} diff --git a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/mqtt/metadata/LogAttachmentChange.java b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/mqtt/metadata/LogAttachmentChange.java new file mode 100644 index 000000000..58387cdd3 --- /dev/null +++ b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/mqtt/metadata/LogAttachmentChange.java @@ -0,0 +1,23 @@ +/* + * Copyright (c) UChicago Argonne, LLC. All rights reserved. + * See LICENSE file. + */ +package gov.anl.aps.cdb.mqtt.metadata; + +import gov.anl.aps.cdb.portal.model.db.entities.Attachment; +import gov.anl.aps.cdb.portal.model.db.entities.Log; + +/** Pending attachment newly associated with an item log; IDs may be assigned on save. */ +public final class LogAttachmentChange { + + private final Log log; + private final Attachment attachment; + + public LogAttachmentChange(Log log, Attachment attachment) { + this.log = log; + this.attachment = attachment; + } + + public Log getLog() { return log; } + public Attachment getAttachment() { return attachment; } +} diff --git a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/mqtt/metadata/MachineAddChange.java b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/mqtt/metadata/MachineAddChange.java new file mode 100644 index 000000000..4b289afdb --- /dev/null +++ b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/mqtt/metadata/MachineAddChange.java @@ -0,0 +1,38 @@ +/* + * Copyright (c) UChicago Argonne, LLC. All rights reserved. + * See LICENSE file. + */ +package gov.anl.aps.cdb.mqtt.metadata; + +import gov.anl.aps.cdb.portal.model.db.entities.ItemDomainMachineDesign; + +/** Pending pre-persistence context for a machine node that does not yet exist in the DB. */ +public final class MachineAddChange { + + private final ItemDomainMachineDesign machine; + private final ItemDomainMachineDesign parent; + private final ItemDomainMachineDesign sourceTemplate; + private final ItemDomainMachineDesign templateAppliedToMachine; + private final Integer templateCreatedMachineCount; + + public MachineAddChange(ItemDomainMachineDesign machine, ItemDomainMachineDesign parent) { + this(machine, parent, null, null, null); + } + + public MachineAddChange(ItemDomainMachineDesign machine, ItemDomainMachineDesign parent, + ItemDomainMachineDesign sourceTemplate, + ItemDomainMachineDesign templateAppliedToMachine, + Integer templateCreatedMachineCount) { + this.machine = machine; + this.parent = parent; + this.sourceTemplate = sourceTemplate; + this.templateAppliedToMachine = templateAppliedToMachine; + this.templateCreatedMachineCount = templateCreatedMachineCount; + } + + public ItemDomainMachineDesign getMachine() { return machine; } + public ItemDomainMachineDesign getParent() { return parent; } + public ItemDomainMachineDesign getSourceTemplate() { return sourceTemplate; } + public ItemDomainMachineDesign getTemplateAppliedToMachine() { return templateAppliedToMachine; } + public Integer getTemplateCreatedMachineCount() { return templateCreatedMachineCount; } +} diff --git a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/mqtt/metadata/MachineAssignedItemChange.java b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/mqtt/metadata/MachineAssignedItemChange.java new file mode 100644 index 000000000..12fc30228 --- /dev/null +++ b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/mqtt/metadata/MachineAssignedItemChange.java @@ -0,0 +1,22 @@ +/* + * Copyright (c) UChicago Argonne, LLC. All rights reserved. + * See LICENSE file. + */ +package gov.anl.aps.cdb.mqtt.metadata; + +import gov.anl.aps.cdb.portal.model.db.entities.Item; + +/** Pending pre-update state for a machine assigned-item change. */ +public final class MachineAssignedItemChange { + + private final Item oldAssignedItem; + private final boolean oldInstalled; + + public MachineAssignedItemChange(Item oldAssignedItem, boolean oldInstalled) { + this.oldAssignedItem = oldAssignedItem; + this.oldInstalled = oldInstalled; + } + + public Item getOldAssignedItem() { return oldAssignedItem; } + public boolean isOldInstalled() { return oldInstalled; } +} diff --git a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/mqtt/metadata/MachineRepresentedElementChange.java b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/mqtt/metadata/MachineRepresentedElementChange.java new file mode 100644 index 000000000..e5453b478 --- /dev/null +++ b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/mqtt/metadata/MachineRepresentedElementChange.java @@ -0,0 +1,28 @@ +/* + * Copyright (c) UChicago Argonne, LLC. All rights reserved. + * See LICENSE file. + */ +package gov.anl.aps.cdb.mqtt.metadata; + +import gov.anl.aps.cdb.portal.model.db.entities.ItemDomainMachineDesign; +import gov.anl.aps.cdb.portal.model.db.entities.ItemElement; + +/** Pending pre-update state for a machine represented-element change. */ +public final class MachineRepresentedElementChange { + + private final ItemElement oldRepresentedElement; + private final ItemDomainMachineDesign sourceTemplate; + + public MachineRepresentedElementChange(ItemElement oldRepresentedElement) { + this(oldRepresentedElement, null); + } + + public MachineRepresentedElementChange(ItemElement oldRepresentedElement, + ItemDomainMachineDesign sourceTemplate) { + this.oldRepresentedElement = oldRepresentedElement; + this.sourceTemplate = sourceTemplate; + } + + public ItemElement getOldRepresentedElement() { return oldRepresentedElement; } + public ItemDomainMachineDesign getSourceTemplate() { return sourceTemplate; } +} diff --git a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/mqtt/metadata/MachineTrashChange.java b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/mqtt/metadata/MachineTrashChange.java new file mode 100644 index 000000000..9754dcb6b --- /dev/null +++ b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/mqtt/metadata/MachineTrashChange.java @@ -0,0 +1,27 @@ +/* + * Copyright (c) UChicago Argonne, LLC. All rights reserved. + * See LICENSE file. + */ +package gov.anl.aps.cdb.mqtt.metadata; + +import gov.anl.aps.cdb.mqtt.CdbMqttTopic; +import gov.anl.aps.cdb.portal.model.db.entities.ItemDomainMachineDesign; + +/** Pending context for a machine trash or restore event. */ +public final class MachineTrashChange { + + private final CdbMqttTopic topic; + private final ItemDomainMachineDesign requestedHierarchyRoot; + private final int affectedMachineCount; + + public MachineTrashChange(CdbMqttTopic topic, + ItemDomainMachineDesign requestedRoot, int affectedCount) { + this.topic = topic; + this.requestedHierarchyRoot = requestedRoot; + this.affectedMachineCount = affectedCount; + } + + public CdbMqttTopic getTopic() { return topic; } + public ItemDomainMachineDesign getRequestedHierarchyRoot() { return requestedHierarchyRoot; } + public int getAffectedMachineCount() { return affectedMachineCount; } +} diff --git a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/mqtt/metadata/PropertyValueChange.java b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/mqtt/metadata/PropertyValueChange.java new file mode 100644 index 000000000..511dd46ac --- /dev/null +++ b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/mqtt/metadata/PropertyValueChange.java @@ -0,0 +1,39 @@ +/* + * Copyright (c) UChicago Argonne, LLC. All rights reserved. + * See LICENSE file. + */ +package gov.anl.aps.cdb.mqtt.metadata; + +import gov.anl.aps.cdb.portal.model.db.entities.PropertyValue; + +/** Pending pre-update state for a property-value change. */ +public final class PropertyValueChange { + + public enum Type { ADD, UPDATE, DELETE } + + private final Type type; + private final PropertyValue oldValue; + private final PropertyValue newValue; + + private PropertyValueChange(Type type, PropertyValue oldValue, PropertyValue newValue) { + this.type = type; + this.oldValue = oldValue; + this.newValue = newValue; + } + + public static PropertyValueChange added(PropertyValue value) { + return new PropertyValueChange(Type.ADD, null, value); + } + + public static PropertyValueChange updated(PropertyValue oldValue, PropertyValue newValue) { + return new PropertyValueChange(Type.UPDATE, oldValue, newValue); + } + + public static PropertyValueChange deleted(PropertyValue value) { + return new PropertyValueChange(Type.DELETE, value, null); + } + + public Type getType() { return type; } + public PropertyValue getOldValue() { return oldValue; } + public PropertyValue getNewValue() { return newValue; } +} diff --git a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/mqtt/utilities/CdbMqttTextUtility.java b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/mqtt/utilities/CdbMqttTextUtility.java new file mode 100644 index 000000000..243601ed6 --- /dev/null +++ b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/mqtt/utilities/CdbMqttTextUtility.java @@ -0,0 +1,56 @@ +/* + * Copyright (c) UChicago Argonne, LLC. All rights reserved. + * See LICENSE file. + */ +package gov.anl.aps.cdb.mqtt.utilities; + +/** Text bounding and line-diff helpers shared by MQTT events that carry free text. */ +public final class CdbMqttTextUtility { + + public static final int MAX_TEXT_LENGTH = 16 * 1024; + + private CdbMqttTextUtility() { + } + + /** Line diff of the changed middle section: removed lines as '-', added lines as '+'. */ + public static String createLineDiff(String oldText, String newText) { + String[] oldLines = lines(oldText); + String[] newLines = lines(newText); + int prefix = 0; + while (prefix < oldLines.length && prefix < newLines.length + && oldLines[prefix].equals(newLines[prefix])) { + prefix++; + } + int suffix = 0; + while (suffix < oldLines.length - prefix && suffix < newLines.length - prefix + && oldLines[oldLines.length - suffix - 1] + .equals(newLines[newLines.length - suffix - 1])) { + suffix++; + } + + StringBuilder result = new StringBuilder(); + for (int i = prefix; i < oldLines.length - suffix; i++) { + result.append('-').append(oldLines[i]).append('\n'); + } + for (int i = prefix; i < newLines.length - suffix; i++) { + result.append('+').append(newLines[i]).append('\n'); + } + return result.toString(); + } + + public static int length(String value) { + return value == null ? 0 : value.length(); + } + + public static boolean exceedsLimit(String value) { + return length(value) > MAX_TEXT_LENGTH; + } + + public static String truncate(String value) { + return exceedsLimit(value) ? value.substring(0, MAX_TEXT_LENGTH) : value; + } + + private static String[] lines(String value) { + return value == null || value.isEmpty() ? new String[0] : value.split("\\R", -1); + } +} diff --git a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/AllowedPropertyValueController.java b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/AllowedPropertyValueController.java index 335459829..30c0ad35b 100644 --- a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/AllowedPropertyValueController.java +++ b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/AllowedPropertyValueController.java @@ -10,15 +10,15 @@ import gov.anl.aps.cdb.portal.model.db.entities.AllowedPropertyValue; import java.io.Serializable; import java.util.List; -import javax.ejb.EJB; -import javax.inject.Named; -import javax.enterprise.context.SessionScoped; -import javax.faces.component.UIComponent; -import javax.faces.context.FacesContext; -import javax.faces.convert.Converter; -import javax.faces.convert.FacesConverter; -import javax.faces.model.DataModel; -import javax.faces.model.ListDataModel; +import jakarta.ejb.EJB; +import jakarta.inject.Named; +import jakarta.enterprise.context.SessionScoped; +import jakarta.faces.component.UIComponent; +import jakarta.faces.context.FacesContext; +import jakarta.faces.convert.Converter; +import jakarta.faces.convert.FacesConverter; +import jakarta.faces.model.DataModel; +import jakarta.faces.model.ListDataModel; import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.Logger; diff --git a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/AttachmentController.java b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/AttachmentController.java index 3a0e24ca6..10fa58b37 100644 --- a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/AttachmentController.java +++ b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/AttachmentController.java @@ -11,16 +11,16 @@ import java.io.Serializable; import java.util.ResourceBundle; -import javax.ejb.EJB; -import javax.inject.Named; -import javax.enterprise.context.SessionScoped; -import javax.faces.component.UIComponent; -import javax.faces.context.FacesContext; -import javax.faces.convert.Converter; -import javax.faces.convert.FacesConverter; -import javax.faces.model.DataModel; -import javax.faces.model.ListDataModel; -import javax.faces.model.SelectItem; +import jakarta.ejb.EJB; +import jakarta.inject.Named; +import jakarta.enterprise.context.SessionScoped; +import jakarta.faces.component.UIComponent; +import jakarta.faces.context.FacesContext; +import jakarta.faces.convert.Converter; +import jakarta.faces.convert.FacesConverter; +import jakarta.faces.model.DataModel; +import jakarta.faces.model.ListDataModel; +import jakarta.faces.model.SelectItem; @Named("attachmentController") @SessionScoped diff --git a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/CdbDomainEntityController.java b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/CdbDomainEntityController.java index a024a7904..e59edfa54 100644 --- a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/CdbDomainEntityController.java +++ b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/CdbDomainEntityController.java @@ -29,8 +29,8 @@ import java.util.Iterator; import java.util.List; import java.util.Objects; -import javax.ejb.EJB; -import javax.faces.model.DataModel; +import jakarta.ejb.EJB; +import jakarta.faces.model.DataModel; import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.Logger; import org.primefaces.event.RowEditEvent; @@ -557,7 +557,10 @@ public void deleteLog(Log cdbDomainEntityLog) { EntityType cdbDomainEntity = getCurrent(); List cdbDomainEntityLogList = cdbDomainEntity.getLogList(); cdbDomainEntityLogList.remove(cdbDomainEntityLog); - updateOnRemoval(); + // Unlink via the owner update first (its log diff still sees the row), then delete the log. + if (updateOnRemoval() != null) { + LogController.getInstance().destroy(cdbDomainEntityLog); + } } public List getFilteredPropertyValueList() { diff --git a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/CdbEntityController.java b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/CdbEntityController.java index c2f222a5b..ea4c796f4 100644 --- a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/CdbEntityController.java +++ b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/CdbEntityController.java @@ -39,12 +39,12 @@ import java.util.List; import java.util.Map; import java.util.Set; -import javax.annotation.PostConstruct; -import javax.ejb.EJB; -import javax.faces.event.ActionEvent; -import javax.faces.model.DataModel; -import javax.faces.model.ListDataModel; -import javax.faces.model.SelectItem; +import jakarta.annotation.PostConstruct; +import jakarta.ejb.EJB; +import jakarta.faces.event.ActionEvent; +import jakarta.faces.model.DataModel; +import jakarta.faces.model.ListDataModel; +import jakarta.faces.model.SelectItem; import org.apache.commons.lang3.exception.ExceptionUtils; import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.Logger; diff --git a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/ClientViewManagerController.java b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/ClientViewManagerController.java index fa7494528..54bf174cc 100644 --- a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/ClientViewManagerController.java +++ b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/ClientViewManagerController.java @@ -12,8 +12,8 @@ import java.util.List; import java.util.Map; import java.util.UUID; -import javax.enterprise.context.SessionScoped; -import javax.inject.Named; +import jakarta.enterprise.context.SessionScoped; +import jakarta.inject.Named; @Named(ClientViewManagerController.controllerNamed) @SessionScoped diff --git a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/ConnectorController.java b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/ConnectorController.java index cfc2905ee..fdf6438ce 100644 --- a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/ConnectorController.java +++ b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/ConnectorController.java @@ -11,13 +11,13 @@ import gov.anl.aps.cdb.portal.utilities.SessionUtility; import java.io.Serializable; -import javax.ejb.EJB; -import javax.inject.Named; -import javax.enterprise.context.SessionScoped; -import javax.faces.component.UIComponent; -import javax.faces.context.FacesContext; -import javax.faces.convert.Converter; -import javax.faces.convert.FacesConverter; +import jakarta.ejb.EJB; +import jakarta.inject.Named; +import jakarta.enterprise.context.SessionScoped; +import jakarta.faces.component.UIComponent; +import jakarta.faces.context.FacesContext; +import jakarta.faces.convert.Converter; +import jakarta.faces.convert.FacesConverter; @Named("connectorController") @SessionScoped diff --git a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/ConnectorTypeController.java b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/ConnectorTypeController.java index 4dd4cf6d0..bcf37d7c1 100644 --- a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/ConnectorTypeController.java +++ b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/ConnectorTypeController.java @@ -16,13 +16,13 @@ import java.io.Serializable; import java.util.ArrayList; import java.util.List; -import javax.ejb.EJB; -import javax.inject.Named; -import javax.enterprise.context.SessionScoped; -import javax.faces.component.UIComponent; -import javax.faces.context.FacesContext; -import javax.faces.convert.Converter; -import javax.faces.convert.FacesConverter; +import jakarta.ejb.EJB; +import jakarta.inject.Named; +import jakarta.enterprise.context.SessionScoped; +import jakarta.faces.component.UIComponent; +import jakarta.faces.context.FacesContext; +import jakarta.faces.convert.Converter; +import jakarta.faces.convert.FacesConverter; @Named("connectorTypeController") @SessionScoped diff --git a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/DomainController.java b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/DomainController.java index bba21ec2d..a585e3395 100644 --- a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/DomainController.java +++ b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/DomainController.java @@ -11,13 +11,13 @@ import gov.anl.aps.cdb.portal.utilities.SessionUtility; import java.io.Serializable; -import javax.ejb.EJB; -import javax.inject.Named; -import javax.enterprise.context.SessionScoped; -import javax.faces.component.UIComponent; -import javax.faces.context.FacesContext; -import javax.faces.convert.Converter; -import javax.faces.convert.FacesConverter; +import jakarta.ejb.EJB; +import jakarta.inject.Named; +import jakarta.enterprise.context.SessionScoped; +import jakarta.faces.component.UIComponent; +import jakarta.faces.context.FacesContext; +import jakarta.faces.convert.Converter; +import jakarta.faces.convert.FacesConverter; @Named(DomainController.CONTROLLER_NAMED) @SessionScoped diff --git a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/EntityInfoController.java b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/EntityInfoController.java index 1f3665d7f..0dab4dad4 100644 --- a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/EntityInfoController.java +++ b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/EntityInfoController.java @@ -11,16 +11,16 @@ import java.io.Serializable; import java.util.ResourceBundle; -import javax.ejb.EJB; -import javax.inject.Named; -import javax.enterprise.context.SessionScoped; -import javax.faces.component.UIComponent; -import javax.faces.context.FacesContext; -import javax.faces.convert.Converter; -import javax.faces.convert.FacesConverter; -import javax.faces.model.DataModel; -import javax.faces.model.ListDataModel; -import javax.faces.model.SelectItem; +import jakarta.ejb.EJB; +import jakarta.inject.Named; +import jakarta.enterprise.context.SessionScoped; +import jakarta.faces.component.UIComponent; +import jakarta.faces.context.FacesContext; +import jakarta.faces.convert.Converter; +import jakarta.faces.convert.FacesConverter; +import jakarta.faces.model.DataModel; +import jakarta.faces.model.ListDataModel; +import jakarta.faces.model.SelectItem; @Named("entityInfoController") @SessionScoped diff --git a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/EntityTypeController.java b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/EntityTypeController.java index 076c20ea3..8834fd34e 100644 --- a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/EntityTypeController.java +++ b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/EntityTypeController.java @@ -11,13 +11,13 @@ import gov.anl.aps.cdb.portal.utilities.SessionUtility; import java.io.Serializable; -import javax.ejb.EJB; -import javax.inject.Named; -import javax.enterprise.context.SessionScoped; -import javax.faces.component.UIComponent; -import javax.faces.context.FacesContext; -import javax.faces.convert.Converter; -import javax.faces.convert.FacesConverter; +import jakarta.ejb.EJB; +import jakarta.inject.Named; +import jakarta.enterprise.context.SessionScoped; +import jakarta.faces.component.UIComponent; +import jakarta.faces.context.FacesContext; +import jakarta.faces.convert.Converter; +import jakarta.faces.convert.FacesConverter; @Named("entityTypeController") @SessionScoped diff --git a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/IItemController.java b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/IItemController.java index 3a2e1cb8f..82369b6cf 100644 --- a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/IItemController.java +++ b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/IItemController.java @@ -12,8 +12,8 @@ import gov.anl.aps.cdb.portal.model.db.entities.ItemType; import gov.anl.aps.cdb.portal.model.db.entities.PropertyValue; import java.util.List; -import javax.faces.model.DataModel; -import javax.faces.model.SelectItem; +import jakarta.faces.model.DataModel; +import jakarta.faces.model.SelectItem; import org.primefaces.event.ToggleEvent; /** diff --git a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/ImportExportInfoController.java b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/ImportExportInfoController.java index 73305ef09..2154ea96f 100644 --- a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/ImportExportInfoController.java +++ b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/ImportExportInfoController.java @@ -13,9 +13,9 @@ import java.util.List; import java.util.Map; import java.util.Set; -import javax.annotation.PostConstruct; -import javax.enterprise.context.ApplicationScoped; -import javax.inject.Named; +import jakarta.annotation.PostConstruct; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.inject.Named; import org.primefaces.model.StreamedContent; /** diff --git a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/ItemCategoryController.java b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/ItemCategoryController.java index 3a00701f9..9190d6c12 100644 --- a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/ItemCategoryController.java +++ b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/ItemCategoryController.java @@ -16,13 +16,13 @@ import java.io.Serializable; import java.util.ArrayList; import java.util.List; -import javax.ejb.EJB; -import javax.inject.Named; -import javax.enterprise.context.SessionScoped; -import javax.faces.component.UIComponent; -import javax.faces.context.FacesContext; -import javax.faces.convert.Converter; -import javax.faces.convert.FacesConverter; +import jakarta.ejb.EJB; +import jakarta.inject.Named; +import jakarta.enterprise.context.SessionScoped; +import jakarta.faces.component.UIComponent; +import jakarta.faces.context.FacesContext; +import jakarta.faces.convert.Converter; +import jakarta.faces.convert.FacesConverter; import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.Logger; diff --git a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/ItemConnectorController.java b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/ItemConnectorController.java index a9ad3be3b..9159d845d 100644 --- a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/ItemConnectorController.java +++ b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/ItemConnectorController.java @@ -16,13 +16,13 @@ import java.io.Serializable; import java.util.List; -import javax.ejb.EJB; -import javax.inject.Named; -import javax.enterprise.context.SessionScoped; -import javax.faces.component.UIComponent; -import javax.faces.context.FacesContext; -import javax.faces.convert.Converter; -import javax.faces.convert.FacesConverter; +import jakarta.ejb.EJB; +import jakarta.inject.Named; +import jakarta.enterprise.context.SessionScoped; +import jakarta.faces.component.UIComponent; +import jakarta.faces.context.FacesContext; +import jakarta.faces.convert.Converter; +import jakarta.faces.convert.FacesConverter; @Named("itemConnectorController") @SessionScoped diff --git a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/ItemController.java b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/ItemController.java index cfb685a00..f4c07739e 100644 --- a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/ItemController.java +++ b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/ItemController.java @@ -68,14 +68,14 @@ import java.util.Date; import java.util.List; import java.util.Map; -import javax.ejb.EJB; -import javax.faces.component.UIComponent; -import javax.faces.context.FacesContext; -import javax.faces.convert.Converter; -import javax.faces.convert.FacesConverter; -import javax.faces.model.DataModel; -import javax.faces.model.ListDataModel; -import javax.faces.model.SelectItem; +import jakarta.ejb.EJB; +import jakarta.faces.component.UIComponent; +import jakarta.faces.context.FacesContext; +import jakarta.faces.convert.Converter; +import jakarta.faces.convert.FacesConverter; +import jakarta.faces.model.DataModel; +import jakarta.faces.model.ListDataModel; +import jakarta.faces.model.SelectItem; import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.Logger; import org.primefaces.event.RowEditEvent; @@ -358,7 +358,7 @@ protected ItemProject getCurrentItemProject() { return itemProjectController.getCurrentItemProject(); } - LOGGER.warn("Item project controller was not set properly."); + LOGGER.debug("Item project controller was not set properly."); return null; } diff --git a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/ItemControllerExtensionHelper.java b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/ItemControllerExtensionHelper.java index 7256bfa48..75b05f815 100644 --- a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/ItemControllerExtensionHelper.java +++ b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/ItemControllerExtensionHelper.java @@ -16,8 +16,8 @@ import gov.anl.aps.cdb.portal.model.db.entities.PropertyTypeCategory; import gov.anl.aps.cdb.portal.model.db.entities.PropertyValue; import gov.anl.aps.cdb.portal.model.db.entities.PropertyValueBase; -import javax.faces.model.DataModel; -import javax.faces.model.SelectItem; +import jakarta.faces.model.DataModel; +import jakarta.faces.model.SelectItem; import org.primefaces.event.ToggleEvent; /** diff --git a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/ItemDomainAppController.java b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/ItemDomainAppController.java index 548828aca..e211c9718 100644 --- a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/ItemDomainAppController.java +++ b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/ItemDomainAppController.java @@ -10,9 +10,9 @@ import gov.anl.aps.cdb.portal.model.db.beans.ItemDomainAppFacade; import gov.anl.aps.cdb.portal.model.db.entities.ItemDomainApp; import gov.anl.aps.cdb.portal.utilities.SessionUtility; -import javax.ejb.EJB; -import javax.enterprise.context.SessionScoped; -import javax.inject.Named; +import jakarta.ejb.EJB; +import jakarta.enterprise.context.SessionScoped; +import jakarta.inject.Named; /** * diff --git a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/ItemDomainAppDeploymentController.java b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/ItemDomainAppDeploymentController.java index e280815b1..3801ca6b0 100644 --- a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/ItemDomainAppDeploymentController.java +++ b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/ItemDomainAppDeploymentController.java @@ -13,9 +13,9 @@ import gov.anl.aps.cdb.portal.model.db.entities.ItemDomainAppDeployment; import gov.anl.aps.cdb.portal.utilities.SessionUtility; import java.io.IOException; -import javax.ejb.EJB; -import javax.enterprise.context.SessionScoped; -import javax.inject.Named; +import jakarta.ejb.EJB; +import jakarta.enterprise.context.SessionScoped; +import jakarta.inject.Named; /** * diff --git a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/ItemDomainCableCatalogController.java b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/ItemDomainCableCatalogController.java index 64adfc6f9..e54c213df 100644 --- a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/ItemDomainCableCatalogController.java +++ b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/ItemDomainCableCatalogController.java @@ -22,9 +22,9 @@ import gov.anl.aps.cdb.portal.view.objects.ImportExportFormatInfo; import java.util.ArrayList; import java.util.List; -import javax.ejb.EJB; -import javax.enterprise.context.SessionScoped; -import javax.inject.Named; +import jakarta.ejb.EJB; +import jakarta.enterprise.context.SessionScoped; +import jakarta.inject.Named; /** * diff --git a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/ItemDomainCableDesignController.java b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/ItemDomainCableDesignController.java index 31dd2425b..4c46700ea 100644 --- a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/ItemDomainCableDesignController.java +++ b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/ItemDomainCableDesignController.java @@ -40,12 +40,12 @@ import java.util.List; import java.util.Map; import java.util.stream.Collectors; -import javax.ejb.EJB; -import javax.enterprise.context.SessionScoped; -import javax.faces.event.AjaxBehaviorEvent; -import javax.faces.model.DataModel; -import javax.faces.model.ListDataModel; -import javax.inject.Named; +import jakarta.ejb.EJB; +import jakarta.enterprise.context.SessionScoped; +import jakarta.faces.event.AjaxBehaviorEvent; +import jakarta.faces.model.DataModel; +import jakarta.faces.model.ListDataModel; +import jakarta.inject.Named; import org.primefaces.event.NodeSelectEvent; import org.primefaces.event.NodeUnselectEvent; import org.primefaces.event.SelectEvent; diff --git a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/ItemDomainCableInventoryController.java b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/ItemDomainCableInventoryController.java index f011174c7..92ca98dde 100644 --- a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/ItemDomainCableInventoryController.java +++ b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/ItemDomainCableInventoryController.java @@ -23,9 +23,9 @@ import gov.anl.aps.cdb.portal.view.objects.ImportExportFormatInfo; import java.util.ArrayList; import java.util.List; -import javax.ejb.EJB; -import javax.enterprise.context.SessionScoped; -import javax.inject.Named; +import jakarta.ejb.EJB; +import jakarta.enterprise.context.SessionScoped; +import jakarta.inject.Named; /** * diff --git a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/ItemDomainCatalogController.java b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/ItemDomainCatalogController.java index e6dd0c784..c3dc23494 100644 --- a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/ItemDomainCatalogController.java +++ b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/ItemDomainCatalogController.java @@ -20,9 +20,9 @@ import gov.anl.aps.cdb.portal.view.objects.ImportExportFormatInfo; import java.util.ArrayList; import java.util.List; -import javax.ejb.EJB; -import javax.enterprise.context.SessionScoped; -import javax.inject.Named; +import jakarta.ejb.EJB; +import jakarta.enterprise.context.SessionScoped; +import jakarta.inject.Named; import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.Logger; diff --git a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/ItemDomainInventoryController.java b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/ItemDomainInventoryController.java index 7a9e94f29..9c690e8c7 100644 --- a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/ItemDomainInventoryController.java +++ b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/ItemDomainInventoryController.java @@ -41,9 +41,9 @@ import java.util.List; import java.util.Set; import java.util.regex.Pattern; -import javax.ejb.EJB; -import javax.enterprise.context.SessionScoped; -import javax.inject.Named; +import jakarta.ejb.EJB; +import jakarta.enterprise.context.SessionScoped; +import jakarta.inject.Named; import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.Logger; diff --git a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/ItemDomainLocationController.java b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/ItemDomainLocationController.java index 160a8f1cb..7cc89d9d3 100644 --- a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/ItemDomainLocationController.java +++ b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/ItemDomainLocationController.java @@ -29,9 +29,9 @@ import gov.anl.aps.cdb.portal.view.objects.ItemHierarchyCache; import java.util.ArrayList; import java.util.List; -import javax.ejb.EJB; -import javax.enterprise.context.SessionScoped; -import javax.inject.Named; +import jakarta.ejb.EJB; +import jakarta.enterprise.context.SessionScoped; +import jakarta.inject.Named; import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.Logger; import org.primefaces.model.TreeNode; diff --git a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/ItemDomainMAARCController.java b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/ItemDomainMAARCController.java index 6d4f17207..644b4925c 100644 --- a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/ItemDomainMAARCController.java +++ b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/ItemDomainMAARCController.java @@ -36,9 +36,9 @@ import java.util.List; import java.util.UUID; import java.util.function.Supplier; -import javax.ejb.EJB; -import javax.enterprise.context.SessionScoped; -import javax.inject.Named; +import jakarta.ejb.EJB; +import jakarta.enterprise.context.SessionScoped; +import jakarta.inject.Named; import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.Logger; import org.apache.pdfbox.io.IOUtils; diff --git a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/ItemDomainMachineDesignBaseController.java b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/ItemDomainMachineDesignBaseController.java index 30c55152b..e7d10b48d 100644 --- a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/ItemDomainMachineDesignBaseController.java +++ b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/ItemDomainMachineDesignBaseController.java @@ -7,6 +7,8 @@ import gov.anl.aps.cdb.common.constants.CdbRole; import gov.anl.aps.cdb.portal.controllers.extensions.CableWizard; import gov.anl.aps.cdb.common.exceptions.CdbException; +import gov.anl.aps.cdb.mqtt.CdbMqttTopic; +import gov.anl.aps.cdb.mqtt.metadata.MachineTrashChange; import gov.anl.aps.cdb.portal.constants.EntityTypeName; import gov.anl.aps.cdb.portal.constants.ItemDomainName; import gov.anl.aps.cdb.portal.constants.ItemElementRelationshipTypeNames; @@ -52,9 +54,9 @@ import java.util.Stack; import java.util.regex.Pattern; import java.util.stream.Collectors; -import javax.ejb.EJB; -import javax.faces.model.DataModel; -import javax.faces.model.ListDataModel; +import jakarta.ejb.EJB; +import jakarta.faces.model.DataModel; +import jakarta.faces.model.ListDataModel; import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.Logger; import org.primefaces.event.DragDropEvent; @@ -3332,6 +3334,8 @@ public void moveToTrash() { ItemDomainMachineDesign current = getCurrent(); ItemDomainMachineDesign parentMachineDesign = current.getParentMachineDesign(); + prepareTrashChanges(moveToTrashItemsToUpdate, rootItemToDelete, + CdbMqttTopic.MACHINE_DESIGN_TRASH, false); // mark items moving to trash as deleted and remove relationship between root item and its parent ValidInfo moveValidInfo = handleMoveToTrash(moveToTrashItemsToUpdate, moveToTrashElementsToDelete); if (!moveValidInfo.isValid()) { @@ -3370,6 +3374,24 @@ protected void performMoveToTrashOperationsForItem(ItemDomainMachineDesign item) item.setIsDeleted(); } + protected void prepareTrashChanges(List items, + ItemDomainMachineDesign requestedRoot, CdbMqttTopic topic, + boolean expectedDeletedState) { + List changedItems = new ArrayList<>(); + for (ItemDomainMachineDesign item : items) { + ItemDomainMachineDesign originalItem = findById(item.getId()); + if (originalItem != null + && originalItem.getIsItemDeleted() == expectedDeletedState) { + changedItems.add(item); + } + } + int affectedCount = changedItems.size(); + for (ItemDomainMachineDesign item : changedItems) { + item.setPendingTrashChange( + new MachineTrashChange(topic, requestedRoot, affectedCount)); + } + } + // // public EntityInfo getEntityInfoBranchUpdate() { diff --git a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/ItemDomainMachineDesignControlController.java b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/ItemDomainMachineDesignControlController.java index 064ab0755..3ed915d64 100644 --- a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/ItemDomainMachineDesignControlController.java +++ b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/ItemDomainMachineDesignControlController.java @@ -21,11 +21,11 @@ import gov.anl.aps.cdb.portal.utilities.SessionUtility; import java.util.List; import java.util.Objects; -import javax.ejb.EJB; -import javax.enterprise.context.SessionScoped; -import javax.faces.model.DataModel; -import javax.faces.model.ListDataModel; -import javax.inject.Named; +import jakarta.ejb.EJB; +import jakarta.enterprise.context.SessionScoped; +import jakarta.faces.model.DataModel; +import jakarta.faces.model.ListDataModel; +import jakarta.inject.Named; import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.Logger; diff --git a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/ItemDomainMachineDesignController.java b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/ItemDomainMachineDesignController.java index 08451ae74..d48684da2 100644 --- a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/ItemDomainMachineDesignController.java +++ b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/ItemDomainMachineDesignController.java @@ -17,8 +17,8 @@ import gov.anl.aps.cdb.portal.model.db.entities.UserInfo; import gov.anl.aps.cdb.portal.utilities.SessionUtility; import java.util.List; -import javax.enterprise.context.SessionScoped; -import javax.inject.Named; +import jakarta.enterprise.context.SessionScoped; +import jakarta.inject.Named; import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.Logger; import gov.anl.aps.cdb.portal.controllers.extensions.CableWizardClient; diff --git a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/ItemDomainMachineDesignDeletedItemsController.java b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/ItemDomainMachineDesignDeletedItemsController.java index 91e694bdc..b3b06c610 100644 --- a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/ItemDomainMachineDesignDeletedItemsController.java +++ b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/ItemDomainMachineDesignDeletedItemsController.java @@ -5,6 +5,7 @@ package gov.anl.aps.cdb.portal.controllers; import gov.anl.aps.cdb.common.constants.CdbRole; +import gov.anl.aps.cdb.mqtt.CdbMqttTopic; import gov.anl.aps.cdb.common.exceptions.CdbException; import gov.anl.aps.cdb.portal.constants.EntityTypeName; import gov.anl.aps.cdb.portal.controllers.settings.ItemDomainMachineDesignDeletedItemSettings; @@ -20,9 +21,9 @@ import gov.anl.aps.cdb.portal.utilities.SessionUtility; import java.util.ArrayList; import java.util.List; -import javax.enterprise.context.SessionScoped; -import javax.faces.model.ListDataModel; -import javax.inject.Named; +import jakarta.enterprise.context.SessionScoped; +import jakarta.faces.model.ListDataModel; +import jakarta.inject.Named; import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.Logger; import org.primefaces.model.DefaultTreeNode; @@ -196,6 +197,8 @@ public void restoreDeletedItem() { } } + prepareTrashChanges(itemsToRestore, itemToRestore, + CdbMqttTopic.MACHINE_DESIGN_RESTORE, true); // remove 'deleted' entity type for all items for (ItemDomainMachineDesign item : itemsToRestore) { item.unsetIsDeleted(); diff --git a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/ItemDomainMachineDesignIOCController.java b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/ItemDomainMachineDesignIOCController.java index 4bdd144a9..9aa9d6aae 100644 --- a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/ItemDomainMachineDesignIOCController.java +++ b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/ItemDomainMachineDesignIOCController.java @@ -16,8 +16,8 @@ import gov.anl.aps.cdb.portal.model.db.entities.UserInfo; import gov.anl.aps.cdb.portal.utilities.SessionUtility; import java.util.List; -import javax.enterprise.context.SessionScoped; -import javax.inject.Named; +import jakarta.enterprise.context.SessionScoped; +import jakarta.inject.Named; import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.Logger; diff --git a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/ItemDomainMachineDesignInventoryController.java b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/ItemDomainMachineDesignInventoryController.java index bdf03c1bf..135673d6c 100644 --- a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/ItemDomainMachineDesignInventoryController.java +++ b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/ItemDomainMachineDesignInventoryController.java @@ -30,10 +30,10 @@ import gov.anl.aps.cdb.portal.view.objects.KeyValueObject; import java.util.ArrayList; import java.util.List; -import javax.enterprise.context.SessionScoped; -import javax.faces.model.DataModel; -import javax.faces.model.ListDataModel; -import javax.inject.Named; +import jakarta.enterprise.context.SessionScoped; +import jakarta.faces.model.DataModel; +import jakarta.faces.model.ListDataModel; +import jakarta.inject.Named; import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.Logger; import org.primefaces.event.NodeSelectEvent; diff --git a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/ItemDomainMachineDesignPowerController.java b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/ItemDomainMachineDesignPowerController.java index e0fe21368..6d487fe3b 100644 --- a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/ItemDomainMachineDesignPowerController.java +++ b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/ItemDomainMachineDesignPowerController.java @@ -10,10 +10,10 @@ import gov.anl.aps.cdb.portal.model.db.entities.ItemDomainMachineDesign; import gov.anl.aps.cdb.portal.utilities.SessionUtility; import java.util.List; -import javax.enterprise.context.SessionScoped; -import javax.faces.model.DataModel; -import javax.faces.model.ListDataModel; -import javax.inject.Named; +import jakarta.enterprise.context.SessionScoped; +import jakarta.faces.model.DataModel; +import jakarta.faces.model.ListDataModel; +import jakarta.inject.Named; import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.Logger; diff --git a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/ItemElementController.java b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/ItemElementController.java index 22158167d..db39466c9 100644 --- a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/ItemElementController.java +++ b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/ItemElementController.java @@ -27,14 +27,14 @@ import java.util.Collections; import java.util.Comparator; import java.util.List; -import javax.ejb.EJB; -import javax.inject.Named; -import javax.enterprise.context.SessionScoped; -import javax.faces.component.UIComponent; -import javax.faces.context.FacesContext; -import javax.faces.convert.Converter; -import javax.faces.convert.FacesConverter; -import javax.faces.event.ValueChangeEvent; +import jakarta.ejb.EJB; +import jakarta.inject.Named; +import jakarta.enterprise.context.SessionScoped; +import jakarta.faces.component.UIComponent; +import jakarta.faces.context.FacesContext; +import jakarta.faces.convert.Converter; +import jakarta.faces.convert.FacesConverter; +import jakarta.faces.event.ValueChangeEvent; import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.Logger; import org.primefaces.component.datatable.DataTable; diff --git a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/ItemElementRelationshipController.java b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/ItemElementRelationshipController.java index e79ffb7a6..ab9c2f6af 100644 --- a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/ItemElementRelationshipController.java +++ b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/ItemElementRelationshipController.java @@ -11,13 +11,13 @@ import gov.anl.aps.cdb.portal.utilities.SessionUtility; import java.io.Serializable; -import javax.ejb.EJB; -import javax.inject.Named; -import javax.enterprise.context.SessionScoped; -import javax.faces.component.UIComponent; -import javax.faces.context.FacesContext; -import javax.faces.convert.Converter; -import javax.faces.convert.FacesConverter; +import jakarta.ejb.EJB; +import jakarta.inject.Named; +import jakarta.enterprise.context.SessionScoped; +import jakarta.faces.component.UIComponent; +import jakarta.faces.context.FacesContext; +import jakarta.faces.convert.Converter; +import jakarta.faces.convert.FacesConverter; @Named(ItemElementRelationshipController.controllerNamed) @SessionScoped diff --git a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/ItemElementRelationshipHistoryController.java b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/ItemElementRelationshipHistoryController.java index fcb3c2adb..fec39b353 100644 --- a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/ItemElementRelationshipHistoryController.java +++ b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/ItemElementRelationshipHistoryController.java @@ -11,16 +11,16 @@ import java.io.Serializable; import java.util.ResourceBundle; -import javax.ejb.EJB; -import javax.inject.Named; -import javax.enterprise.context.SessionScoped; -import javax.faces.component.UIComponent; -import javax.faces.context.FacesContext; -import javax.faces.convert.Converter; -import javax.faces.convert.FacesConverter; -import javax.faces.model.DataModel; -import javax.faces.model.ListDataModel; -import javax.faces.model.SelectItem; +import jakarta.ejb.EJB; +import jakarta.inject.Named; +import jakarta.enterprise.context.SessionScoped; +import jakarta.faces.component.UIComponent; +import jakarta.faces.context.FacesContext; +import jakarta.faces.convert.Converter; +import jakarta.faces.convert.FacesConverter; +import jakarta.faces.model.DataModel; +import jakarta.faces.model.ListDataModel; +import jakarta.faces.model.SelectItem; @Named("itemElementRelationshipHistoryController") @SessionScoped diff --git a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/ItemGenericViewController.java b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/ItemGenericViewController.java index b79fb2388..b80c3fb1f 100644 --- a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/ItemGenericViewController.java +++ b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/ItemGenericViewController.java @@ -14,9 +14,9 @@ import gov.anl.aps.cdb.portal.model.db.entities.EntityType; import gov.anl.aps.cdb.portal.model.db.entities.Item; import java.util.List; -import javax.ejb.EJB; -import javax.enterprise.context.SessionScoped; -import javax.inject.Named; +import jakarta.ejb.EJB; +import jakarta.enterprise.context.SessionScoped; +import jakarta.inject.Named; /** * diff --git a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/ItemMemberViewController.java b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/ItemMemberViewController.java index 13a96789f..723d81d8d 100644 --- a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/ItemMemberViewController.java +++ b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/ItemMemberViewController.java @@ -10,9 +10,9 @@ import gov.anl.aps.cdb.portal.model.db.beans.ItemFacade; import gov.anl.aps.cdb.portal.model.db.entities.Domain; import gov.anl.aps.cdb.portal.model.db.entities.Item; -import javax.ejb.EJB; -import javax.enterprise.context.SessionScoped; -import javax.inject.Named; +import jakarta.ejb.EJB; +import jakarta.enterprise.context.SessionScoped; +import jakarta.inject.Named; /** * Controller used to manage settings for the item member view for the Item Entity. diff --git a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/ItemProjectController.java b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/ItemProjectController.java index 734c350ce..18f8963d9 100644 --- a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/ItemProjectController.java +++ b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/ItemProjectController.java @@ -14,13 +14,13 @@ import java.util.HashSet; import java.util.Objects; import java.util.Set; -import javax.ejb.EJB; -import javax.inject.Named; -import javax.enterprise.context.SessionScoped; -import javax.faces.component.UIComponent; -import javax.faces.context.FacesContext; -import javax.faces.convert.Converter; -import javax.faces.convert.FacesConverter; +import jakarta.ejb.EJB; +import jakarta.inject.Named; +import jakarta.enterprise.context.SessionScoped; +import jakarta.faces.component.UIComponent; +import jakarta.faces.context.FacesContext; +import jakarta.faces.convert.Converter; +import jakarta.faces.convert.FacesConverter; import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.Logger; diff --git a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/ItemResourceController.java b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/ItemResourceController.java index 5fa06a261..feb571d72 100644 --- a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/ItemResourceController.java +++ b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/ItemResourceController.java @@ -11,16 +11,16 @@ import java.io.Serializable; import java.util.ResourceBundle; -import javax.ejb.EJB; -import javax.inject.Named; -import javax.enterprise.context.SessionScoped; -import javax.faces.component.UIComponent; -import javax.faces.context.FacesContext; -import javax.faces.convert.Converter; -import javax.faces.convert.FacesConverter; -import javax.faces.model.DataModel; -import javax.faces.model.ListDataModel; -import javax.faces.model.SelectItem; +import jakarta.ejb.EJB; +import jakarta.inject.Named; +import jakarta.enterprise.context.SessionScoped; +import jakarta.faces.component.UIComponent; +import jakarta.faces.context.FacesContext; +import jakarta.faces.convert.Converter; +import jakarta.faces.convert.FacesConverter; +import jakarta.faces.model.DataModel; +import jakarta.faces.model.ListDataModel; +import jakarta.faces.model.SelectItem; @Named("itemResourceController") @SessionScoped diff --git a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/ItemSourceController.java b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/ItemSourceController.java index 244d36a2e..5deb3587e 100644 --- a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/ItemSourceController.java +++ b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/ItemSourceController.java @@ -10,13 +10,13 @@ import gov.anl.aps.cdb.portal.model.db.beans.ItemSourceFacade; import java.io.Serializable; -import javax.ejb.EJB; -import javax.inject.Named; -import javax.enterprise.context.SessionScoped; -import javax.faces.component.UIComponent; -import javax.faces.context.FacesContext; -import javax.faces.convert.Converter; -import javax.faces.convert.FacesConverter; +import jakarta.ejb.EJB; +import jakarta.inject.Named; +import jakarta.enterprise.context.SessionScoped; +import jakarta.faces.component.UIComponent; +import jakarta.faces.context.FacesContext; +import jakarta.faces.convert.Converter; +import jakarta.faces.convert.FacesConverter; import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.Logger; diff --git a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/ItemTypeCategoryController.java b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/ItemTypeCategoryController.java index a8a9529e3..f5debe8b2 100644 --- a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/ItemTypeCategoryController.java +++ b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/ItemTypeCategoryController.java @@ -13,8 +13,8 @@ import gov.anl.aps.cdb.portal.model.db.entities.UserInfo; import gov.anl.aps.cdb.portal.utilities.SessionUtility; import java.util.List; -import javax.faces.model.DataModel; -import javax.faces.model.ListDataModel; +import jakarta.faces.model.DataModel; +import jakarta.faces.model.ListDataModel; public abstract class ItemTypeCategoryController, EntityType extends ItemTypeCategoryEntity, FacadeType extends CdbEntityFacade, SettingObject extends CdbEntitySettingsBase> extends CdbEntityController { diff --git a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/ItemTypeController.java b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/ItemTypeController.java index fe553c9fe..e9bdab9a1 100644 --- a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/ItemTypeController.java +++ b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/ItemTypeController.java @@ -16,13 +16,13 @@ import java.io.Serializable; import java.util.ArrayList; import java.util.List; -import javax.ejb.EJB; -import javax.inject.Named; -import javax.enterprise.context.SessionScoped; -import javax.faces.component.UIComponent; -import javax.faces.context.FacesContext; -import javax.faces.convert.Converter; -import javax.faces.convert.FacesConverter; +import jakarta.ejb.EJB; +import jakarta.inject.Named; +import jakarta.enterprise.context.SessionScoped; +import jakarta.faces.component.UIComponent; +import jakarta.faces.context.FacesContext; +import jakarta.faces.convert.Converter; +import jakarta.faces.convert.FacesConverter; import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.Logger; diff --git a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/ListController.java b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/ListController.java index 1dfe8a520..d71477dba 100644 --- a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/ListController.java +++ b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/ListController.java @@ -11,16 +11,16 @@ import java.io.Serializable; import java.util.ResourceBundle; -import javax.ejb.EJB; -import javax.inject.Named; -import javax.enterprise.context.SessionScoped; -import javax.faces.component.UIComponent; -import javax.faces.context.FacesContext; -import javax.faces.convert.Converter; -import javax.faces.convert.FacesConverter; -import javax.faces.model.DataModel; -import javax.faces.model.ListDataModel; -import javax.faces.model.SelectItem; +import jakarta.ejb.EJB; +import jakarta.inject.Named; +import jakarta.enterprise.context.SessionScoped; +import jakarta.faces.component.UIComponent; +import jakarta.faces.context.FacesContext; +import jakarta.faces.convert.Converter; +import jakarta.faces.convert.FacesConverter; +import jakarta.faces.model.DataModel; +import jakarta.faces.model.ListDataModel; +import jakarta.faces.model.SelectItem; @Named("listController") @SessionScoped diff --git a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/LocatableItemController.java b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/LocatableItemController.java index cab450cce..adc761b02 100644 --- a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/LocatableItemController.java +++ b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/LocatableItemController.java @@ -8,6 +8,7 @@ import gov.anl.aps.cdb.common.exceptions.InvalidRequest; import gov.anl.aps.cdb.portal.constants.ItemDomainName; import gov.anl.aps.cdb.portal.constants.ItemElementRelationshipTypeNames; +import gov.anl.aps.cdb.mqtt.metadata.ItemLocationChange; import gov.anl.aps.cdb.portal.model.db.beans.ItemElementRelationshipFacade; import gov.anl.aps.cdb.portal.model.db.beans.ItemFacade; import gov.anl.aps.cdb.portal.model.db.beans.RelationshipTypeFacade; @@ -35,9 +36,9 @@ import java.util.Date; import java.util.List; import java.util.Objects; -import javax.ejb.EJB; -import javax.enterprise.context.SessionScoped; -import javax.inject.Named; +import jakarta.ejb.EJB; +import jakarta.enterprise.context.SessionScoped; +import jakarta.inject.Named; import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.Logger; import org.primefaces.model.DefaultTreeNode; @@ -1005,6 +1006,10 @@ public void updateItemLocation(LocatableItem item, UserInfo updateUser) throws I } if (newItemWithNewLocation || locationDifferentOnCurrentItem) { + Item oldLocation = existingItem == null ? null : existingItem.getLocationItem(); + String oldLocationDetails = existingItem == null + ? null : normalizeLocationDetails(existingItem.getLocationDetails()); + String newLocationDetails = normalizeLocationDetails(item.getLocationDetails()); // Verify that the location can be changed. if ((existingItem != null) && (locationEditable(existingItem)) == false) { Item location = existingItem.getActiveLocation(); @@ -1064,6 +1069,8 @@ public void updateItemLocation(LocatableItem item, UserInfo updateUser) throws I } ierhList.add(ierh); + item.setPendingLocationChange(new ItemLocationChange( + oldLocation, oldLocationDetails, item.getLocationItem(), newLocationDetails)); } else { logger.error("updateItemLocation(): item location relationship unexpectedly null for item: " + item.toString()); @@ -1071,6 +1078,10 @@ public void updateItemLocation(LocatableItem item, UserInfo updateUser) throws I } } + private static String normalizeLocationDetails(String details) { + return details == null || details.isEmpty() ? null : details; + } + private RelationshipType getLocationRelationshipType() { return relationshipTypeFacade.findByName(ItemElementRelationshipTypeNames.itemLocation.getValue()); } diff --git a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/LogController.java b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/LogController.java index d8e1ae982..3b271bf66 100644 --- a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/LogController.java +++ b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/LogController.java @@ -14,13 +14,13 @@ import java.io.Serializable; import java.util.List; -import javax.ejb.EJB; -import javax.inject.Named; -import javax.enterprise.context.SessionScoped; -import javax.faces.component.UIComponent; -import javax.faces.context.FacesContext; -import javax.faces.convert.Converter; -import javax.faces.convert.FacesConverter; +import jakarta.ejb.EJB; +import jakarta.inject.Named; +import jakarta.enterprise.context.SessionScoped; +import jakarta.faces.component.UIComponent; +import jakarta.faces.context.FacesContext; +import jakarta.faces.convert.Converter; +import jakarta.faces.convert.FacesConverter; import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.Logger; diff --git a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/LogLevelController.java b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/LogLevelController.java index 33a2a4871..c34dbff6f 100644 --- a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/LogLevelController.java +++ b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/LogLevelController.java @@ -11,14 +11,14 @@ import gov.anl.aps.cdb.portal.model.db.beans.LogLevelFacade; import java.io.Serializable; -import javax.ejb.EJB; -import javax.inject.Named; -import javax.enterprise.context.SessionScoped; -import javax.faces.component.UIComponent; -import javax.faces.context.FacesContext; -import javax.faces.convert.Converter; -import javax.faces.convert.FacesConverter; -import javax.faces.model.DataModel; +import jakarta.ejb.EJB; +import jakarta.inject.Named; +import jakarta.enterprise.context.SessionScoped; +import jakarta.faces.component.UIComponent; +import jakarta.faces.context.FacesContext; +import jakarta.faces.convert.Converter; +import jakarta.faces.convert.FacesConverter; +import jakarta.faces.model.DataModel; @Named("logLevelController") @SessionScoped diff --git a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/LogTopicController.java b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/LogTopicController.java index 823926c19..98267cf95 100644 --- a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/LogTopicController.java +++ b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/LogTopicController.java @@ -11,13 +11,13 @@ import java.io.Serializable; import java.util.List; -import javax.ejb.EJB; -import javax.inject.Named; -import javax.enterprise.context.SessionScoped; -import javax.faces.component.UIComponent; -import javax.faces.context.FacesContext; -import javax.faces.convert.Converter; -import javax.faces.convert.FacesConverter; +import jakarta.ejb.EJB; +import jakarta.inject.Named; +import jakarta.enterprise.context.SessionScoped; +import jakarta.faces.component.UIComponent; +import jakarta.faces.context.FacesContext; +import jakarta.faces.convert.Converter; +import jakarta.faces.convert.FacesConverter; import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.Logger; diff --git a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/LoginController.java b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/LoginController.java index 46ccc5aa4..a1a69d4a8 100644 --- a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/LoginController.java +++ b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/LoginController.java @@ -17,10 +17,10 @@ import gov.anl.aps.cdb.portal.model.db.utilities.LogUtility; import java.io.Serializable; import java.util.List; -import javax.ejb.EJB; -import javax.enterprise.context.SessionScoped; -import javax.inject.Named; -import javax.servlet.http.HttpSession; +import jakarta.ejb.EJB; +import jakarta.enterprise.context.SessionScoped; +import jakarta.inject.Named; +import jakarta.servlet.http.HttpSession; import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.Logger; diff --git a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/PropertyMetadataController.java b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/PropertyMetadataController.java index 6b159b589..5bf8aa6ed 100644 --- a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/PropertyMetadataController.java +++ b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/PropertyMetadataController.java @@ -11,9 +11,9 @@ import gov.anl.aps.cdb.portal.model.db.entities.PropertyValueBase; import java.io.Serializable; -import javax.ejb.EJB; -import javax.inject.Named; -import javax.enterprise.context.SessionScoped; +import jakarta.ejb.EJB; +import jakarta.inject.Named; +import jakarta.enterprise.context.SessionScoped; @Named("propertyMetadataController") @SessionScoped diff --git a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/PropertyTypeCategoryController.java b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/PropertyTypeCategoryController.java index 0f96e04c8..50d9297c9 100644 --- a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/PropertyTypeCategoryController.java +++ b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/PropertyTypeCategoryController.java @@ -12,13 +12,13 @@ import gov.anl.aps.cdb.portal.utilities.SessionUtility; import java.io.Serializable; import java.util.List; -import javax.ejb.EJB; -import javax.inject.Named; -import javax.enterprise.context.SessionScoped; -import javax.faces.component.UIComponent; -import javax.faces.context.FacesContext; -import javax.faces.convert.Converter; -import javax.faces.convert.FacesConverter; +import jakarta.ejb.EJB; +import jakarta.inject.Named; +import jakarta.enterprise.context.SessionScoped; +import jakarta.faces.component.UIComponent; +import jakarta.faces.context.FacesContext; +import jakarta.faces.convert.Converter; +import jakarta.faces.convert.FacesConverter; import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.Logger; @@ -104,7 +104,8 @@ String getStringKey(Integer value) { @Override public String getAsString(FacesContext facesContext, UIComponent component, Object object) { if (object == null) { - return null; + // "" (not null) so a "Select" option renders value="" instead of submitting its label. + return ""; } if (object instanceof PropertyTypeCategory) { PropertyTypeCategory o = (PropertyTypeCategory) object; diff --git a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/PropertyTypeController.java b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/PropertyTypeController.java index 2062bfe3a..cdd51d2a2 100644 --- a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/PropertyTypeController.java +++ b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/PropertyTypeController.java @@ -22,15 +22,15 @@ import java.util.ArrayList; import java.util.List; import java.util.Objects; -import javax.ejb.EJB; -import javax.inject.Named; -import javax.enterprise.context.SessionScoped; -import javax.faces.component.UIComponent; -import javax.faces.context.FacesContext; -import javax.faces.convert.Converter; -import javax.faces.convert.FacesConverter; -import javax.faces.model.DataModel; -import javax.faces.model.ListDataModel; +import jakarta.ejb.EJB; +import jakarta.inject.Named; +import jakarta.enterprise.context.SessionScoped; +import jakarta.faces.component.UIComponent; +import jakarta.faces.context.FacesContext; +import jakarta.faces.convert.Converter; +import jakarta.faces.convert.FacesConverter; +import jakarta.faces.model.DataModel; +import jakarta.faces.model.ListDataModel; import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.Logger; diff --git a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/PropertyTypeHandlerController.java b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/PropertyTypeHandlerController.java index 4970f5288..4d0d5df26 100644 --- a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/PropertyTypeHandlerController.java +++ b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/PropertyTypeHandlerController.java @@ -12,13 +12,13 @@ import java.io.Serializable; import java.util.List; -import javax.ejb.EJB; -import javax.inject.Named; -import javax.enterprise.context.SessionScoped; -import javax.faces.component.UIComponent; -import javax.faces.context.FacesContext; -import javax.faces.convert.Converter; -import javax.faces.convert.FacesConverter; +import jakarta.ejb.EJB; +import jakarta.inject.Named; +import jakarta.enterprise.context.SessionScoped; +import jakarta.faces.component.UIComponent; +import jakarta.faces.context.FacesContext; +import jakarta.faces.convert.Converter; +import jakarta.faces.convert.FacesConverter; import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.Logger; @@ -141,7 +141,8 @@ String getStringKey(Integer value) { @Override public String getAsString(FacesContext facesContext, UIComponent component, Object object) { if (object == null) { - return null; + // "" (not null) so a "Select" option renders value="" instead of submitting its label. + return ""; } if (object instanceof PropertyTypeHandler) { PropertyTypeHandler o = (PropertyTypeHandler) object; diff --git a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/PropertyValueController.java b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/PropertyValueController.java index 32a6f5f5f..2c4cbd722 100644 --- a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/PropertyValueController.java +++ b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/PropertyValueController.java @@ -30,13 +30,13 @@ import java.io.Serializable; import java.util.List; import java.util.function.Supplier; -import javax.ejb.EJB; -import javax.inject.Named; -import javax.enterprise.context.SessionScoped; -import javax.faces.component.UIComponent; -import javax.faces.context.FacesContext; -import javax.faces.convert.Converter; -import javax.faces.convert.FacesConverter; +import jakarta.ejb.EJB; +import jakarta.inject.Named; +import jakarta.enterprise.context.SessionScoped; +import jakarta.faces.component.UIComponent; +import jakarta.faces.context.FacesContext; +import jakarta.faces.convert.Converter; +import jakarta.faces.convert.FacesConverter; import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.Logger; import org.primefaces.event.TabChangeEvent; diff --git a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/PropertyValueHistoryController.java b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/PropertyValueHistoryController.java index 9ed6a05d9..58e0b4efc 100644 --- a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/PropertyValueHistoryController.java +++ b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/PropertyValueHistoryController.java @@ -19,13 +19,13 @@ import java.util.ArrayList; import java.util.Collections; import java.util.List; -import javax.ejb.EJB; -import javax.inject.Named; -import javax.enterprise.context.SessionScoped; -import javax.faces.component.UIComponent; -import javax.faces.context.FacesContext; -import javax.faces.convert.Converter; -import javax.faces.convert.FacesConverter; +import jakarta.ejb.EJB; +import jakarta.inject.Named; +import jakarta.enterprise.context.SessionScoped; +import jakarta.faces.component.UIComponent; +import jakarta.faces.context.FacesContext; +import jakarta.faces.convert.Converter; +import jakarta.faces.convert.FacesConverter; import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.Logger; diff --git a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/RelationshipTypeController.java b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/RelationshipTypeController.java index 747338037..b54b674ad 100644 --- a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/RelationshipTypeController.java +++ b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/RelationshipTypeController.java @@ -11,13 +11,13 @@ import gov.anl.aps.cdb.portal.utilities.SessionUtility; import java.io.Serializable; -import javax.ejb.EJB; -import javax.inject.Named; -import javax.enterprise.context.SessionScoped; -import javax.faces.component.UIComponent; -import javax.faces.context.FacesContext; -import javax.faces.convert.Converter; -import javax.faces.convert.FacesConverter; +import jakarta.ejb.EJB; +import jakarta.inject.Named; +import jakarta.enterprise.context.SessionScoped; +import jakarta.faces.component.UIComponent; +import jakarta.faces.context.FacesContext; +import jakarta.faces.convert.Converter; +import jakarta.faces.convert.FacesConverter; @Named("relationshipTypeController") @SessionScoped diff --git a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/RelationshipTypeHandlerController.java b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/RelationshipTypeHandlerController.java index 19b4b5f38..c2d71c077 100644 --- a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/RelationshipTypeHandlerController.java +++ b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/RelationshipTypeHandlerController.java @@ -11,16 +11,16 @@ import java.io.Serializable; import java.util.ResourceBundle; -import javax.ejb.EJB; -import javax.inject.Named; -import javax.enterprise.context.SessionScoped; -import javax.faces.component.UIComponent; -import javax.faces.context.FacesContext; -import javax.faces.convert.Converter; -import javax.faces.convert.FacesConverter; -import javax.faces.model.DataModel; -import javax.faces.model.ListDataModel; -import javax.faces.model.SelectItem; +import jakarta.ejb.EJB; +import jakarta.inject.Named; +import jakarta.enterprise.context.SessionScoped; +import jakarta.faces.component.UIComponent; +import jakarta.faces.context.FacesContext; +import jakarta.faces.convert.Converter; +import jakarta.faces.convert.FacesConverter; +import jakarta.faces.model.DataModel; +import jakarta.faces.model.ListDataModel; +import jakarta.faces.model.SelectItem; @Named("relationshipTypeHandlerController") @SessionScoped diff --git a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/ResourceTypeCategoryController.java b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/ResourceTypeCategoryController.java index 1ce99f862..73849ef0f 100644 --- a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/ResourceTypeCategoryController.java +++ b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/ResourceTypeCategoryController.java @@ -11,16 +11,16 @@ import java.io.Serializable; import java.util.ResourceBundle; -import javax.ejb.EJB; -import javax.inject.Named; -import javax.enterprise.context.SessionScoped; -import javax.faces.component.UIComponent; -import javax.faces.context.FacesContext; -import javax.faces.convert.Converter; -import javax.faces.convert.FacesConverter; -import javax.faces.model.DataModel; -import javax.faces.model.ListDataModel; -import javax.faces.model.SelectItem; +import jakarta.ejb.EJB; +import jakarta.inject.Named; +import jakarta.enterprise.context.SessionScoped; +import jakarta.faces.component.UIComponent; +import jakarta.faces.context.FacesContext; +import jakarta.faces.convert.Converter; +import jakarta.faces.convert.FacesConverter; +import jakarta.faces.model.DataModel; +import jakarta.faces.model.ListDataModel; +import jakarta.faces.model.SelectItem; @Named("resourceTypeCategoryController") @SessionScoped diff --git a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/ResourceTypeController.java b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/ResourceTypeController.java index ecf8f5c67..5e5f1b4fe 100644 --- a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/ResourceTypeController.java +++ b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/ResourceTypeController.java @@ -11,16 +11,16 @@ import java.io.Serializable; import java.util.ResourceBundle; -import javax.ejb.EJB; -import javax.inject.Named; -import javax.enterprise.context.SessionScoped; -import javax.faces.component.UIComponent; -import javax.faces.context.FacesContext; -import javax.faces.convert.Converter; -import javax.faces.convert.FacesConverter; -import javax.faces.model.DataModel; -import javax.faces.model.ListDataModel; -import javax.faces.model.SelectItem; +import jakarta.ejb.EJB; +import jakarta.inject.Named; +import jakarta.enterprise.context.SessionScoped; +import jakarta.faces.component.UIComponent; +import jakarta.faces.context.FacesContext; +import jakarta.faces.convert.Converter; +import jakarta.faces.convert.FacesConverter; +import jakarta.faces.model.DataModel; +import jakarta.faces.model.ListDataModel; +import jakarta.faces.model.SelectItem; @Named("resourceTypeController") @SessionScoped diff --git a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/RoleTypeController.java b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/RoleTypeController.java index f56e7863e..ca63ae0cb 100644 --- a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/RoleTypeController.java +++ b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/RoleTypeController.java @@ -10,13 +10,13 @@ import gov.anl.aps.cdb.portal.model.db.beans.RoleTypeFacade; import java.io.Serializable; -import javax.ejb.EJB; -import javax.inject.Named; -import javax.enterprise.context.SessionScoped; -import javax.faces.component.UIComponent; -import javax.faces.context.FacesContext; -import javax.faces.convert.Converter; -import javax.faces.convert.FacesConverter; +import jakarta.ejb.EJB; +import jakarta.inject.Named; +import jakarta.enterprise.context.SessionScoped; +import jakarta.faces.component.UIComponent; +import jakarta.faces.context.FacesContext; +import jakarta.faces.convert.Converter; +import jakarta.faces.convert.FacesConverter; @Named("roleTypeController") @SessionScoped diff --git a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/SearchController.java b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/SearchController.java index 466e18cf7..5177c73c3 100644 --- a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/SearchController.java +++ b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/SearchController.java @@ -10,10 +10,10 @@ import java.io.Serializable; import java.util.HashSet; import java.util.Set; -import javax.annotation.PostConstruct; -import javax.enterprise.context.SessionScoped; -import javax.faces.context.FacesContext; -import javax.inject.Named; +import jakarta.annotation.PostConstruct; +import jakarta.enterprise.context.SessionScoped; +import jakarta.faces.context.FacesContext; +import jakarta.inject.Named; import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.Logger; diff --git a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/SessionController.java b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/SessionController.java index 79d6f97f2..bacf697b3 100644 --- a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/SessionController.java +++ b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/SessionController.java @@ -13,14 +13,14 @@ import java.util.HashSet; import java.util.List; import java.util.Set; -import javax.annotation.PostConstruct; -import javax.enterprise.context.ApplicationScoped; -import javax.inject.Named; -import javax.persistence.Cache; -import javax.persistence.EntityManager; -import javax.persistence.EntityManagerFactory; -import javax.persistence.PersistenceContext; -import javax.servlet.http.HttpSession; +import jakarta.annotation.PostConstruct; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.inject.Named; +import jakarta.persistence.Cache; +import jakarta.persistence.EntityManager; +import jakarta.persistence.EntityManagerFactory; +import jakarta.persistence.PersistenceContext; +import jakarta.servlet.http.HttpSession; @Named(SessionController.controllerNamed) @ApplicationScoped diff --git a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/SettingController.java b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/SettingController.java index 095f53df4..894d3b08f 100644 --- a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/SettingController.java +++ b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/SettingController.java @@ -19,12 +19,12 @@ import java.util.Date; import java.util.List; import java.util.Objects; -import javax.ejb.EJB; -import javax.enterprise.context.SessionScoped; -import javax.faces.context.ExternalContext; -import javax.faces.context.FacesContext; -import javax.inject.Named; -import javax.servlet.http.HttpServletRequest; +import jakarta.ejb.EJB; +import jakarta.enterprise.context.SessionScoped; +import jakarta.faces.context.ExternalContext; +import jakarta.faces.context.FacesContext; +import jakarta.inject.Named; +import jakarta.servlet.http.HttpServletRequest; import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.Logger; diff --git a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/SettingTypeController.java b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/SettingTypeController.java index 5744e457b..1f0e4e16b 100644 --- a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/SettingTypeController.java +++ b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/SettingTypeController.java @@ -11,16 +11,16 @@ import java.io.Serializable; import java.util.ResourceBundle; -import javax.ejb.EJB; -import javax.inject.Named; -import javax.enterprise.context.SessionScoped; -import javax.faces.component.UIComponent; -import javax.faces.context.FacesContext; -import javax.faces.convert.Converter; -import javax.faces.convert.FacesConverter; -import javax.faces.model.DataModel; -import javax.faces.model.ListDataModel; -import javax.faces.model.SelectItem; +import jakarta.ejb.EJB; +import jakarta.inject.Named; +import jakarta.enterprise.context.SessionScoped; +import jakarta.faces.component.UIComponent; +import jakarta.faces.context.FacesContext; +import jakarta.faces.convert.Converter; +import jakarta.faces.convert.FacesConverter; +import jakarta.faces.model.DataModel; +import jakarta.faces.model.ListDataModel; +import jakarta.faces.model.SelectItem; @Named("settingTypeController") @SessionScoped diff --git a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/SourceController.java b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/SourceController.java index a44f8698d..f786b36b4 100644 --- a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/SourceController.java +++ b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/SourceController.java @@ -19,13 +19,13 @@ import java.util.ArrayList; import java.util.List; import java.util.Objects; -import javax.ejb.EJB; -import javax.inject.Named; -import javax.enterprise.context.SessionScoped; -import javax.faces.component.UIComponent; -import javax.faces.context.FacesContext; -import javax.faces.convert.Converter; -import javax.faces.convert.FacesConverter; +import jakarta.ejb.EJB; +import jakarta.inject.Named; +import jakarta.enterprise.context.SessionScoped; +import jakarta.faces.component.UIComponent; +import jakarta.faces.context.FacesContext; +import jakarta.faces.convert.Converter; +import jakarta.faces.convert.FacesConverter; import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.Logger; diff --git a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/UserGroupController.java b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/UserGroupController.java index b7c549973..f1620436d 100644 --- a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/UserGroupController.java +++ b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/UserGroupController.java @@ -16,13 +16,13 @@ import java.io.Serializable; import java.util.ArrayList; import java.util.List; -import javax.ejb.EJB; -import javax.inject.Named; -import javax.enterprise.context.SessionScoped; -import javax.faces.component.UIComponent; -import javax.faces.context.FacesContext; -import javax.faces.convert.Converter; -import javax.faces.convert.FacesConverter; +import jakarta.ejb.EJB; +import jakarta.inject.Named; +import jakarta.enterprise.context.SessionScoped; +import jakarta.faces.component.UIComponent; +import jakarta.faces.context.FacesContext; +import jakarta.faces.convert.Converter; +import jakarta.faces.convert.FacesConverter; import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.Logger; @@ -103,7 +103,8 @@ String getStringKey(Integer value) { @Override public String getAsString(FacesContext facesContext, UIComponent component, Object object) { if (object == null) { - return null; + // "" (not null) so a "Select" option renders value="" instead of submitting its label. + return ""; } if (object instanceof UserGroup) { UserGroup o = (UserGroup) object; diff --git a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/UserGroupSettingController.java b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/UserGroupSettingController.java index 09ef76069..a994ca0b1 100644 --- a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/UserGroupSettingController.java +++ b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/UserGroupSettingController.java @@ -11,16 +11,16 @@ import java.io.Serializable; import java.util.ResourceBundle; -import javax.ejb.EJB; -import javax.inject.Named; -import javax.enterprise.context.SessionScoped; -import javax.faces.component.UIComponent; -import javax.faces.context.FacesContext; -import javax.faces.convert.Converter; -import javax.faces.convert.FacesConverter; -import javax.faces.model.DataModel; -import javax.faces.model.ListDataModel; -import javax.faces.model.SelectItem; +import jakarta.ejb.EJB; +import jakarta.inject.Named; +import jakarta.enterprise.context.SessionScoped; +import jakarta.faces.component.UIComponent; +import jakarta.faces.context.FacesContext; +import jakarta.faces.convert.Converter; +import jakarta.faces.convert.FacesConverter; +import jakarta.faces.model.DataModel; +import jakarta.faces.model.ListDataModel; +import jakarta.faces.model.SelectItem; @Named("userGroupSettingController") @SessionScoped diff --git a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/UserInfoController.java b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/UserInfoController.java index 6dc83740c..1ec92f033 100644 --- a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/UserInfoController.java +++ b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/UserInfoController.java @@ -21,14 +21,14 @@ import java.util.ArrayList; import java.util.Iterator; import java.util.List; -import javax.ejb.EJB; -import javax.inject.Named; -import javax.enterprise.context.SessionScoped; -import javax.faces.component.UIComponent; -import javax.faces.context.FacesContext; -import javax.faces.convert.Converter; -import javax.faces.convert.FacesConverter; -import javax.faces.model.DataModel; +import jakarta.ejb.EJB; +import jakarta.inject.Named; +import jakarta.enterprise.context.SessionScoped; +import jakarta.faces.component.UIComponent; +import jakarta.faces.context.FacesContext; +import jakarta.faces.convert.Converter; +import jakarta.faces.convert.FacesConverter; +import jakarta.faces.model.DataModel; import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.Logger; @@ -270,7 +270,8 @@ String getStringKey(Integer value) { @Override public String getAsString(FacesContext facesContext, UIComponent component, Object object) { if (object == null) { - return null; + // "" (not null) so a "Select" option renders value="" instead of submitting its label. + return ""; } if (object instanceof UserInfo) { UserInfo o = (UserInfo) object; diff --git a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/UserRoleController.java b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/UserRoleController.java index 4204815a4..734c196d0 100644 --- a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/UserRoleController.java +++ b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/UserRoleController.java @@ -11,13 +11,13 @@ import gov.anl.aps.cdb.portal.model.db.entities.UserInfo; import java.io.Serializable; -import javax.ejb.EJB; -import javax.inject.Named; -import javax.enterprise.context.SessionScoped; -import javax.faces.component.UIComponent; -import javax.faces.context.FacesContext; -import javax.faces.convert.Converter; -import javax.faces.convert.FacesConverter; +import jakarta.ejb.EJB; +import jakarta.inject.Named; +import jakarta.enterprise.context.SessionScoped; +import jakarta.faces.component.UIComponent; +import jakarta.faces.context.FacesContext; +import jakarta.faces.convert.Converter; +import jakarta.faces.convert.FacesConverter; @Named("userRoleController") @SessionScoped diff --git a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/UserSettingController.java b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/UserSettingController.java index 0db9b54dc..9d27b97d0 100644 --- a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/UserSettingController.java +++ b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/UserSettingController.java @@ -11,13 +11,13 @@ import java.io.Serializable; import java.util.List; -import javax.ejb.EJB; -import javax.inject.Named; -import javax.enterprise.context.SessionScoped; -import javax.faces.component.UIComponent; -import javax.faces.context.FacesContext; -import javax.faces.convert.Converter; -import javax.faces.convert.FacesConverter; +import jakarta.ejb.EJB; +import jakarta.inject.Named; +import jakarta.enterprise.context.SessionScoped; +import jakarta.faces.component.UIComponent; +import jakarta.faces.context.FacesContext; +import jakarta.faces.convert.Converter; +import jakarta.faces.convert.FacesConverter; import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.Logger; diff --git a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/ViewScopedCompanionController.java b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/ViewScopedCompanionController.java index 305007496..8343f9347 100644 --- a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/ViewScopedCompanionController.java +++ b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/ViewScopedCompanionController.java @@ -8,9 +8,9 @@ import java.io.Serializable; import java.util.HashMap; import java.util.Map; -import javax.annotation.PreDestroy; -import javax.inject.Named; -import org.omnifaces.cdi.ViewScoped; +import jakarta.annotation.PreDestroy; +import jakarta.faces.view.ViewScoped; +import jakarta.inject.Named; /** * diff --git a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/extensions/CableWizard.java b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/extensions/CableWizard.java index ca4bec302..f3e4729bb 100644 --- a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/extensions/CableWizard.java +++ b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/extensions/CableWizard.java @@ -27,8 +27,8 @@ import java.util.HashMap; import java.util.List; import java.util.Map; -import javax.enterprise.context.SessionScoped; -import javax.inject.Named; +import jakarta.enterprise.context.SessionScoped; +import jakarta.inject.Named; import org.primefaces.event.FlowEvent; import org.primefaces.event.NodeSelectEvent; import org.primefaces.event.NodeUnselectEvent; diff --git a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/extensions/ItemCreateWizardDomainCableInventoryController.java b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/extensions/ItemCreateWizardDomainCableInventoryController.java index 74cb07263..9c6ce7e33 100644 --- a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/extensions/ItemCreateWizardDomainCableInventoryController.java +++ b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/extensions/ItemCreateWizardDomainCableInventoryController.java @@ -8,8 +8,8 @@ import gov.anl.aps.cdb.portal.controllers.ItemDomainCableInventoryController; import gov.anl.aps.cdb.portal.utilities.SessionUtility; import java.io.Serializable; -import javax.enterprise.context.SessionScoped; -import javax.inject.Named; +import jakarta.enterprise.context.SessionScoped; +import jakarta.inject.Named; import org.primefaces.event.FlowEvent; import org.primefaces.model.menu.DefaultMenuItem; import org.primefaces.model.menu.MenuModel; diff --git a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/extensions/ItemCreateWizardDomainCatalogController.java b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/extensions/ItemCreateWizardDomainCatalogController.java index 2274a594f..fcf848ba4 100644 --- a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/extensions/ItemCreateWizardDomainCatalogController.java +++ b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/extensions/ItemCreateWizardDomainCatalogController.java @@ -11,8 +11,8 @@ import gov.anl.aps.cdb.portal.utilities.SessionUtility; import java.io.Serializable; import java.util.List; -import javax.enterprise.context.SessionScoped; -import javax.inject.Named; +import jakarta.enterprise.context.SessionScoped; +import jakarta.inject.Named; import org.primefaces.event.FlowEvent; /** diff --git a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/extensions/ItemCreateWizardDomainInventoryController.java b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/extensions/ItemCreateWizardDomainInventoryController.java index 4f3e517f8..78a27fcb8 100644 --- a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/extensions/ItemCreateWizardDomainInventoryController.java +++ b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/extensions/ItemCreateWizardDomainInventoryController.java @@ -8,8 +8,8 @@ import gov.anl.aps.cdb.portal.controllers.ItemDomainInventoryController; import gov.anl.aps.cdb.portal.utilities.SessionUtility; import java.io.Serializable; -import javax.enterprise.context.SessionScoped; -import javax.inject.Named; +import jakarta.enterprise.context.SessionScoped; +import jakarta.inject.Named; import org.primefaces.event.FlowEvent; import org.primefaces.model.menu.DefaultMenuItem; import org.primefaces.model.menu.MenuModel; diff --git a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/extensions/ItemEnforcedPropertiesController.java b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/extensions/ItemEnforcedPropertiesController.java index 735b6e18a..0ce050e56 100644 --- a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/extensions/ItemEnforcedPropertiesController.java +++ b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/extensions/ItemEnforcedPropertiesController.java @@ -18,8 +18,8 @@ import gov.anl.aps.cdb.portal.model.db.entities.PropertyValue; import java.util.ArrayList; import java.util.List; -import javax.annotation.PostConstruct; -import javax.ejb.EJB; +import jakarta.annotation.PostConstruct; +import jakarta.ejb.EJB; /** * diff --git a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/extensions/ItemEnforcedPropertiesDomainCableInventoryController.java b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/extensions/ItemEnforcedPropertiesDomainCableInventoryController.java index de05b7756..69aeb65fc 100644 --- a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/extensions/ItemEnforcedPropertiesDomainCableInventoryController.java +++ b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/extensions/ItemEnforcedPropertiesDomainCableInventoryController.java @@ -11,8 +11,8 @@ import gov.anl.aps.cdb.portal.utilities.SessionUtility; import java.io.Serializable; import java.util.List; -import javax.enterprise.context.SessionScoped; -import javax.inject.Named; +import jakarta.enterprise.context.SessionScoped; +import jakarta.inject.Named; /** * diff --git a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/extensions/ItemEnforcedPropertiesDomainCatalogController.java b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/extensions/ItemEnforcedPropertiesDomainCatalogController.java index 40774174e..37d78115b 100644 --- a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/extensions/ItemEnforcedPropertiesDomainCatalogController.java +++ b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/extensions/ItemEnforcedPropertiesDomainCatalogController.java @@ -12,8 +12,8 @@ import gov.anl.aps.cdb.portal.model.db.entities.ItemDomainInventory; import gov.anl.aps.cdb.portal.utilities.SessionUtility; import java.io.Serializable; -import javax.enterprise.context.SessionScoped; -import javax.inject.Named; +import jakarta.enterprise.context.SessionScoped; +import jakarta.inject.Named; /** * diff --git a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/extensions/ItemEnforcedPropertiesDomainInventoryController.java b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/extensions/ItemEnforcedPropertiesDomainInventoryController.java index cade2b661..eaa05b09d 100644 --- a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/extensions/ItemEnforcedPropertiesDomainInventoryController.java +++ b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/extensions/ItemEnforcedPropertiesDomainInventoryController.java @@ -11,8 +11,8 @@ import gov.anl.aps.cdb.portal.utilities.SessionUtility; import java.io.Serializable; import java.util.List; -import javax.enterprise.context.SessionScoped; -import javax.inject.Named; +import jakarta.enterprise.context.SessionScoped; +import jakarta.inject.Named; /** * diff --git a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/extensions/ItemFilterViewController.java b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/extensions/ItemFilterViewController.java index ab0634c98..26ff9dbb5 100644 --- a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/extensions/ItemFilterViewController.java +++ b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/extensions/ItemFilterViewController.java @@ -19,7 +19,7 @@ import java.util.ArrayList; import java.util.Comparator; import java.util.List; -import javax.faces.model.ListDataModel; +import jakarta.faces.model.ListDataModel; import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.Logger; import org.primefaces.model.TreeNode; diff --git a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/extensions/ItemFilterViewDomainAppController.java b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/extensions/ItemFilterViewDomainAppController.java index 5d08013ab..427627a8e 100644 --- a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/extensions/ItemFilterViewDomainAppController.java +++ b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/extensions/ItemFilterViewDomainAppController.java @@ -7,8 +7,8 @@ import gov.anl.aps.cdb.portal.controllers.ItemController; import gov.anl.aps.cdb.portal.controllers.ItemDomainAppController; import java.io.Serializable; -import javax.enterprise.context.SessionScoped; -import javax.inject.Named; +import jakarta.enterprise.context.SessionScoped; +import jakarta.inject.Named; /** * diff --git a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/extensions/ItemFilterViewDomainCatalogController.java b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/extensions/ItemFilterViewDomainCatalogController.java index e2bce9edc..b3db23091 100644 --- a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/extensions/ItemFilterViewDomainCatalogController.java +++ b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/extensions/ItemFilterViewDomainCatalogController.java @@ -7,8 +7,8 @@ import gov.anl.aps.cdb.portal.controllers.ItemController; import gov.anl.aps.cdb.portal.controllers.ItemDomainCatalogController; import java.io.Serializable; -import javax.enterprise.context.SessionScoped; -import javax.inject.Named; +import jakarta.enterprise.context.SessionScoped; +import jakarta.inject.Named; /** * diff --git a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/extensions/ItemFilterViewDomainInventoryController.java b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/extensions/ItemFilterViewDomainInventoryController.java index f84ca283a..1e301c601 100644 --- a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/extensions/ItemFilterViewDomainInventoryController.java +++ b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/extensions/ItemFilterViewDomainInventoryController.java @@ -17,10 +17,10 @@ import java.io.Serializable; import java.util.ArrayList; import java.util.List; -import javax.ejb.EJB; -import javax.enterprise.context.SessionScoped; -import javax.faces.model.ListDataModel; -import javax.inject.Named; +import jakarta.ejb.EJB; +import jakarta.enterprise.context.SessionScoped; +import jakarta.faces.model.ListDataModel; +import jakarta.inject.Named; import org.primefaces.model.TreeNode; /** diff --git a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/extensions/ItemMultiEditController.java b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/extensions/ItemMultiEditController.java index 96c3b786c..59972a8c6 100644 --- a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/extensions/ItemMultiEditController.java +++ b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/extensions/ItemMultiEditController.java @@ -36,9 +36,9 @@ import java.util.Map; import java.util.Set; import java.util.UUID; -import javax.ejb.EJB; -import javax.faces.event.AjaxBehaviorEvent; -import javax.faces.model.ListDataModel; +import jakarta.ejb.EJB; +import jakarta.faces.event.AjaxBehaviorEvent; +import jakarta.faces.model.ListDataModel; import org.apache.commons.lang3.exception.ExceptionUtils; import org.primefaces.model.menu.DefaultMenuItem; import org.primefaces.model.menu.DefaultMenuModel; diff --git a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/extensions/ItemMultiEditDomainCableCatalogController.java b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/extensions/ItemMultiEditDomainCableCatalogController.java index 14fc81cb9..1531bf072 100644 --- a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/extensions/ItemMultiEditDomainCableCatalogController.java +++ b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/extensions/ItemMultiEditDomainCableCatalogController.java @@ -8,8 +8,8 @@ import gov.anl.aps.cdb.portal.controllers.ItemDomainCableCatalogController; import gov.anl.aps.cdb.portal.utilities.SessionUtility; import java.io.Serializable; -import javax.enterprise.context.SessionScoped; -import javax.inject.Named; +import jakarta.enterprise.context.SessionScoped; +import jakarta.inject.Named; /** * diff --git a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/extensions/ItemMultiEditDomainCableInventoryController.java b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/extensions/ItemMultiEditDomainCableInventoryController.java index fc0c855ff..bed93ee57 100644 --- a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/extensions/ItemMultiEditDomainCableInventoryController.java +++ b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/extensions/ItemMultiEditDomainCableInventoryController.java @@ -8,8 +8,8 @@ import gov.anl.aps.cdb.portal.model.db.entities.ItemDomainCableInventory; import gov.anl.aps.cdb.portal.utilities.SessionUtility; import java.io.Serializable; -import javax.enterprise.context.SessionScoped; -import javax.inject.Named; +import jakarta.enterprise.context.SessionScoped; +import jakarta.inject.Named; /** * diff --git a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/extensions/ItemMultiEditDomainCatalogController.java b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/extensions/ItemMultiEditDomainCatalogController.java index 243c47d59..2628eee6f 100644 --- a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/extensions/ItemMultiEditDomainCatalogController.java +++ b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/extensions/ItemMultiEditDomainCatalogController.java @@ -8,8 +8,8 @@ import gov.anl.aps.cdb.portal.controllers.ItemDomainCatalogController; import gov.anl.aps.cdb.portal.utilities.SessionUtility; import java.io.Serializable; -import javax.enterprise.context.SessionScoped; -import javax.inject.Named; +import jakarta.enterprise.context.SessionScoped; +import jakarta.inject.Named; /** * diff --git a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/extensions/ItemMultiEditDomainInventoryController.java b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/extensions/ItemMultiEditDomainInventoryController.java index f1d4ab36d..6bb16306d 100644 --- a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/extensions/ItemMultiEditDomainInventoryController.java +++ b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/extensions/ItemMultiEditDomainInventoryController.java @@ -8,8 +8,8 @@ import gov.anl.aps.cdb.portal.model.db.entities.ItemDomainInventory; import gov.anl.aps.cdb.portal.utilities.SessionUtility; import java.io.Serializable; -import javax.enterprise.context.SessionScoped; -import javax.inject.Named; +import jakarta.enterprise.context.SessionScoped; +import jakarta.inject.Named; /** * diff --git a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/extensions/ItemMultiEditDomainMachineDesignController.java b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/extensions/ItemMultiEditDomainMachineDesignController.java index bf8b9cac2..b10b3ffdf 100644 --- a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/extensions/ItemMultiEditDomainMachineDesignController.java +++ b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/extensions/ItemMultiEditDomainMachineDesignController.java @@ -24,8 +24,8 @@ import java.util.List; import java.util.regex.Matcher; import java.util.regex.Pattern; -import javax.enterprise.context.SessionScoped; -import javax.inject.Named; +import jakarta.enterprise.context.SessionScoped; +import jakarta.inject.Named; import org.primefaces.model.TreeNode; /** diff --git a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/extensions/ItemMultiEditDomainMachineDesignInventoryController.java b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/extensions/ItemMultiEditDomainMachineDesignInventoryController.java index 438c879e9..d585dd38c 100644 --- a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/extensions/ItemMultiEditDomainMachineDesignInventoryController.java +++ b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/extensions/ItemMultiEditDomainMachineDesignInventoryController.java @@ -18,8 +18,8 @@ import java.io.Serializable; import java.util.ArrayList; import java.util.List; -import javax.enterprise.context.SessionScoped; -import javax.inject.Named; +import jakarta.enterprise.context.SessionScoped; +import jakarta.inject.Named; import org.primefaces.event.NodeSelectEvent; import org.primefaces.model.TreeNode; diff --git a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/settings/CdbDomainEntitySettings.java b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/settings/CdbDomainEntitySettings.java index 45f78ef17..4d3ffadb3 100644 --- a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/settings/CdbDomainEntitySettings.java +++ b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/settings/CdbDomainEntitySettings.java @@ -8,7 +8,7 @@ import gov.anl.aps.cdb.portal.model.db.entities.SettingEntity; import gov.anl.aps.cdb.portal.model.db.entities.SettingType; import java.util.Map; -import javax.faces.event.ActionEvent; +import jakarta.faces.event.ActionEvent; import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.Logger; diff --git a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/settings/EmptySettingsBase.java b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/settings/EmptySettingsBase.java index ce35fd579..637fce371 100644 --- a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/settings/EmptySettingsBase.java +++ b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/settings/EmptySettingsBase.java @@ -4,7 +4,7 @@ */ package gov.anl.aps.cdb.portal.controllers.settings; -import javax.faces.event.ActionEvent; +import jakarta.faces.event.ActionEvent; import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.Logger; import org.primefaces.component.datatable.DataTable; @@ -49,7 +49,7 @@ public void clearSelectFilters() { } private void logNoSettingsMessage(String loadingMessage) { - logger.warn("Attempting to load: " + loadingMessage + ". No settings for " + this.getClass().getSimpleName()); + logger.debug("Attempting to load: " + loadingMessage + ". No settings for " + this.getClass().getSimpleName()); } } diff --git a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/settings/ICdbSettings.java b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/settings/ICdbSettings.java index ce0f8e25a..5079b3572 100644 --- a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/settings/ICdbSettings.java +++ b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/settings/ICdbSettings.java @@ -4,7 +4,7 @@ */ package gov.anl.aps.cdb.portal.controllers.settings; -import javax.faces.event.ActionEvent; +import jakarta.faces.event.ActionEvent; import org.primefaces.component.datatable.DataTable; public interface ICdbSettings { diff --git a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/settings/SettingBase.java b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/settings/SettingBase.java index 4d11e9191..12254676a 100644 --- a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/settings/SettingBase.java +++ b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/settings/SettingBase.java @@ -14,7 +14,7 @@ import java.util.HashMap; import java.util.List; import java.util.Map; -import javax.faces.event.ActionEvent; +import jakarta.faces.event.ActionEvent; import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.Logger; diff --git a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/settings/UserRoleSettings.java b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/settings/UserRoleSettings.java index ccf13ec5d..d2afa0be5 100644 --- a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/settings/UserRoleSettings.java +++ b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/settings/UserRoleSettings.java @@ -22,17 +22,17 @@ public UserRoleSettings(UserRoleController parentController) { @Override protected void updateSettingsFromSettingTypeDefaults(Map settingTypeMap) { - throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates. + // No user role settings to load or save. } @Override protected void updateSettingsFromSessionSettingEntity(SettingEntity settingEntity) { - throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates. + // No user role settings to load or save. } @Override protected void saveSettingsForSessionSettingEntity(SettingEntity settingEntity) { - throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates. + // No user role settings to load or save. } diff --git a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/util/JsfUtil.java b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/util/JsfUtil.java index fcac39d26..666ca3e16 100644 --- a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/util/JsfUtil.java +++ b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/util/JsfUtil.java @@ -5,11 +5,11 @@ package gov.anl.aps.cdb.portal.controllers.util; import java.util.List; -import javax.faces.application.FacesMessage; -import javax.faces.component.UIComponent; -import javax.faces.context.FacesContext; -import javax.faces.convert.Converter; -import javax.faces.model.SelectItem; +import jakarta.faces.application.FacesMessage; +import jakarta.faces.component.UIComponent; +import jakarta.faces.context.FacesContext; +import jakarta.faces.convert.Converter; +import jakarta.faces.model.SelectItem; public class JsfUtil { diff --git a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/util/PaginationHelper.java b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/util/PaginationHelper.java index 4c3a627ef..2fbeb036b 100644 --- a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/util/PaginationHelper.java +++ b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/util/PaginationHelper.java @@ -4,7 +4,7 @@ */ package gov.anl.aps.cdb.portal.controllers.util; -import javax.faces.model.DataModel; +import jakarta.faces.model.DataModel; public abstract class PaginationHelper { diff --git a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/utilities/CdbEntityControllerUtility.java b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/utilities/CdbEntityControllerUtility.java index 21c171c37..ed91c0a51 100644 --- a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/utilities/CdbEntityControllerUtility.java +++ b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/utilities/CdbEntityControllerUtility.java @@ -5,6 +5,10 @@ package gov.anl.aps.cdb.portal.controllers.utilities; import gov.anl.aps.cdb.common.exceptions.CdbException; +import gov.anl.aps.cdb.base.mqtt.MqttEvent; +import gov.anl.aps.cdb.mqtt.CdbEntityEvent; +import gov.anl.aps.cdb.mqtt.CdbMqttPublisher; +import gov.anl.aps.cdb.mqtt.CdbMqttTopic; import gov.anl.aps.cdb.common.utilities.StringUtility; import gov.anl.aps.cdb.portal.constants.SystemLogLevel; import gov.anl.aps.cdb.portal.model.db.beans.CdbEntityFacade; @@ -14,6 +18,8 @@ import gov.anl.aps.cdb.portal.model.db.entities.UserInfo; import gov.anl.aps.cdb.portal.utilities.SearchResult; import gov.anl.aps.cdb.portal.utilities.SessionUtility; +import java.util.ArrayList; +import java.util.Collections; import java.util.Date; import java.util.LinkedList; import java.util.List; @@ -51,10 +57,14 @@ public abstract class CdbEntityControllerUtility persisted = Collections.singletonList(entity); + prepareSpecializedCreateEvents(persisted, createdByUserInfo); getEntityDbFacade().create(entity); addCreatedSystemLog(entity, createdByUserInfo); entity.setPersitanceErrorMessage(null); + publishMqttEvent(CdbMqttTopic.ADD, entity, createdByUserInfo); + publishMqttEvents(createSpecializedCreateEvents(persisted, createdByUserInfo)); clearCaches(); return entity; @@ -77,9 +87,14 @@ public void createList(List entities, UserInfo createdByUserInfo) th for (EntityType entity : entities) { prepareEntityInsert(entity, createdByUserInfo); } + prepareSpecializedCreateEvents(entities, createdByUserInfo); getEntityDbFacade().create(entities); - addCdbEntitySystemLog(SystemLogLevel.entityInfo, "Created " + entities.size() + " entities.", createdByUserInfo); + addCdbEntitySystemLog(SystemLogLevel.entityInfo, "Created " + entities.size() + " entities.", createdByUserInfo); + for (EntityType entity : entities) { + publishMqttEvent(CdbMqttTopic.ADD, entity, createdByUserInfo); + } + publishMqttEvents(createSpecializedCreateEvents(entities, createdByUserInfo)); setPersistenceErrorMessageForList(entities, null); clearCaches(); } catch (CdbException ex) { @@ -100,9 +115,15 @@ public EntityType update(EntityType entity, UserInfo updatedByUserInfo) throws C try { logger.debug("Updating " + getDisplayEntityTypeName() + " " + getEntityInstanceName(entity)); prepareEntityUpdate(entity, updatedByUserInfo); + List specializedUpdateEvents = prepareSpecializedUpdateEvents(entity, updatedByUserInfo); + List persisted = Collections.singletonList(entity); + prepareSpecializedCreateEvents(persisted, updatedByUserInfo); EntityType updatedEntity = getEntityDbFacade().edit(entity); addCdbEntitySystemLog(SystemLogLevel.entityInfo, "Updated: " + entity.getSystemLogString(), updatedByUserInfo); entity.setPersitanceErrorMessage(null); + publishMqttEvent(CdbMqttTopic.UPDATE, updatedEntity, updatedByUserInfo); + publishMqttEvents(specializedUpdateEvents); + publishMqttEvents(createSpecializedCreateEvents(persisted, updatedByUserInfo)); clearCaches(); return updatedEntity; @@ -126,7 +147,13 @@ public EntityType updateOnRemoval(EntityType entity, UserInfo updatedByUserInfo) try { logger.debug("Updating " + getDisplayEntityTypeName() + " " + getEntityInstanceName(entity)); prepareEntityUpdateOnRemoval(entity); + List specializedUpdateEvents = prepareSpecializedUpdateEvents(entity, updatedByUserInfo); + List persisted = Collections.singletonList(entity); + prepareSpecializedCreateEvents(persisted, updatedByUserInfo); EntityType updatedEntity = getEntityDbFacade().edit(entity); + publishMqttEvent(CdbMqttTopic.UPDATE, updatedEntity, updatedByUserInfo); + publishMqttEvents(specializedUpdateEvents); + publishMqttEvents(createSpecializedCreateEvents(persisted, updatedByUserInfo)); clearCaches(); return updatedEntity; @@ -148,15 +175,21 @@ public EntityType updateOnRemoval(EntityType entity, UserInfo updatedByUserInfo) public void updateList(List entities, UserInfo updatedByUserInfo) throws CdbException, RuntimeException { try { + List specializedUpdateEvents = new ArrayList<>(); for (EntityType entity : entities) { logger.debug("Updating " + getDisplayEntityTypeName() + " " + getEntityInstanceName(entity)); prepareEntityUpdate(entity, updatedByUserInfo); + specializedUpdateEvents.addAll(prepareSpecializedUpdateEvents(entity, updatedByUserInfo)); } + prepareSpecializedCreateEvents(entities, updatedByUserInfo); getEntityDbFacade().edit(entities); for (EntityType entity : entities) { entity.setPersitanceErrorMessage(null); addCdbEntitySystemLog(SystemLogLevel.entityInfo, "Updated: " + entity.getSystemLogString(), updatedByUserInfo); + publishMqttEvent(CdbMqttTopic.UPDATE, entity, updatedByUserInfo); } + publishMqttEvents(specializedUpdateEvents); + publishMqttEvents(createSpecializedCreateEvents(entities, updatedByUserInfo)); clearCaches(); } catch (CdbException ex) { logger.error("Could not update " + getDisplayEntityTypeName() + " entities: " + ex.getMessage()); @@ -177,7 +210,8 @@ public void destroy(EntityType entity, UserInfo destroyedByUserInfo) throws CdbE prepareEntityDestroy(entity, destroyedByUserInfo); getEntityDbFacade().remove(entity); - addCdbEntitySystemLog(SystemLogLevel.entityInfo, "Deleted: " + entity.getSystemLogString(), destroyedByUserInfo); + addCdbEntitySystemLog(SystemLogLevel.entityInfo, "Deleted: " + entity.getSystemLogString(), destroyedByUserInfo); + publishMqttEvent(CdbMqttTopic.DELETE, entity, destroyedByUserInfo); clearCaches(); } catch (CdbException ex) { entity.setPersitanceErrorMessage(ex.getMessage()); @@ -214,6 +248,14 @@ public void destroyList( getEntityDbFacade().remove(entities, updateEntity); addCdbEntitySystemLog(SystemLogLevel.entityInfo, "Deleted: " + entities.size() + " entities.", destroyedByUserInfo); + for (EntityType entity : entities) { + if (entity != null) { + publishMqttEvent(CdbMqttTopic.DELETE, entity, destroyedByUserInfo); + } + } + if (updateEntity != null) { + publishMqttEvent(CdbMqttTopic.UPDATE, updateEntity, destroyedByUserInfo); + } setPersistenceErrorMessageForList(entities, null); clearCaches(); } catch (CdbException ex) { @@ -229,6 +271,44 @@ public void destroyList( } } + protected List prepareSpecializedUpdateEvents( + EntityType entity, UserInfo userInfo) throws CdbException { + return Collections.emptyList(); + } + + /** + * Captures entities about to be newly persisted (directly or nested); runs before every + * create and update facade call since updates can cascade new children. Events are built + * by createSpecializedCreateEvents once DB-assigned IDs exist. + */ + protected void prepareSpecializedCreateEvents( + List entities, UserInfo userInfo) throws CdbException { + } + + /** Builds create events from state captured by prepareSpecializedCreateEvents after a successful facade call. */ + protected List createSpecializedCreateEvents( + List entities, UserInfo userInfo) { + return Collections.emptyList(); + } + + protected void publishMqttEvents(List events) { + for (MqttEvent event : events) { + publishMqttEvent(event); + } + } + + protected void publishMqttEvent(CdbMqttTopic topic, EntityType entity, UserInfo userInfo) { + try { + publishMqttEvent(new CdbEntityEvent(topic, entity, userInfo)); + } catch (RuntimeException ex) { + logger.error("Failed to create MQTT event for " + getDisplayEntityTypeName(), ex); + } + } + + protected void publishMqttEvent(MqttEvent event) { + CdbMqttPublisher.publish(event); + } + /** * On database operation clear cache of related cached entity when needed. */ diff --git a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/utilities/ItemControllerUtility.java b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/utilities/ItemControllerUtility.java index ac9b4ed6b..1445301a6 100644 --- a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/utilities/ItemControllerUtility.java +++ b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/utilities/ItemControllerUtility.java @@ -4,12 +4,29 @@ */ package gov.anl.aps.cdb.portal.controllers.utilities; +import gov.anl.aps.cdb.base.mqtt.MqttEvent; import gov.anl.aps.cdb.common.exceptions.CdbException; import gov.anl.aps.cdb.common.exceptions.InvalidRequest; import gov.anl.aps.cdb.common.exceptions.ObjectAlreadyExists; +import gov.anl.aps.cdb.mqtt.CdbInventoryAssemblyElementEvent; +import gov.anl.aps.cdb.mqtt.CdbItemLogEvent; +import gov.anl.aps.cdb.mqtt.CdbItemLogAttachmentEvent; +import gov.anl.aps.cdb.mqtt.CdbItemLocationEvent; +import gov.anl.aps.cdb.mqtt.CdbItemPropertyEvent; +import gov.anl.aps.cdb.mqtt.CdbMachineAssignedItemEvent; +import gov.anl.aps.cdb.mqtt.CdbMachineRepresentedElementEvent; +import gov.anl.aps.cdb.mqtt.CdbMachineTrashEvent; import gov.anl.aps.cdb.portal.constants.ItemElementRelationshipTypeNames; import gov.anl.aps.cdb.portal.constants.ListName; import gov.anl.aps.cdb.portal.controllers.PropertyTypeController; +import gov.anl.aps.cdb.mqtt.metadata.InventoryAssemblyElementChange; +import gov.anl.aps.cdb.mqtt.metadata.ItemLocationChange; +import gov.anl.aps.cdb.mqtt.metadata.ItemLogChange; +import gov.anl.aps.cdb.mqtt.metadata.LogAttachmentChange; +import gov.anl.aps.cdb.mqtt.metadata.MachineAssignedItemChange; +import gov.anl.aps.cdb.mqtt.metadata.MachineRepresentedElementChange; +import gov.anl.aps.cdb.mqtt.metadata.MachineTrashChange; +import gov.anl.aps.cdb.mqtt.metadata.PropertyValueChange; import gov.anl.aps.cdb.portal.model.db.beans.AllowedPropertyMetadataValueFacade; import gov.anl.aps.cdb.portal.model.db.beans.DomainFacade; import gov.anl.aps.cdb.portal.model.db.beans.ItemFacadeBase; @@ -18,14 +35,18 @@ import gov.anl.aps.cdb.portal.model.db.beans.RelationshipTypeFacade; import gov.anl.aps.cdb.portal.model.db.entities.AllowedPropertyMetadataValue; import gov.anl.aps.cdb.portal.model.db.entities.Domain; +import gov.anl.aps.cdb.portal.model.db.entities.Attachment; import gov.anl.aps.cdb.portal.model.db.entities.EntityInfo; import gov.anl.aps.cdb.portal.model.db.entities.Item; import gov.anl.aps.cdb.portal.model.db.entities.ItemConnector; +import gov.anl.aps.cdb.portal.model.db.entities.ItemDomainInventoryBase; +import gov.anl.aps.cdb.portal.model.db.entities.ItemDomainMachineDesign; import gov.anl.aps.cdb.portal.model.db.entities.ItemElement; import gov.anl.aps.cdb.portal.model.db.entities.ItemElementRelationship; import gov.anl.aps.cdb.portal.model.db.entities.ItemSource; import gov.anl.aps.cdb.portal.model.db.entities.ListTbl; import gov.anl.aps.cdb.portal.model.db.entities.LocatableItem; +import gov.anl.aps.cdb.portal.model.db.entities.Log; import gov.anl.aps.cdb.portal.model.db.beans.PropertyTypeHandlerFacade; import gov.anl.aps.cdb.portal.model.db.entities.PropertyType; import gov.anl.aps.cdb.portal.model.db.entities.PropertyTypeHandler; @@ -36,6 +57,7 @@ import gov.anl.aps.cdb.portal.model.db.entities.UserInfo; import gov.anl.aps.cdb.portal.model.db.utilities.EntityInfoUtility; import gov.anl.aps.cdb.portal.model.db.utilities.ItemElementUtility; +import gov.anl.aps.cdb.portal.model.db.utilities.LogUtility; import gov.anl.aps.cdb.portal.model.db.utilities.PropertyValueUtility; import gov.anl.aps.cdb.portal.model.jsf.handlers.PropertyTypeHandlerFactory; import gov.anl.aps.cdb.portal.model.jsf.handlers.PropertyTypeHandlerInterface; @@ -46,8 +68,12 @@ import java.util.Arrays; import java.util.Collections; import java.util.Date; +import java.util.HashSet; +import java.util.IdentityHashMap; import java.util.List; +import java.util.Map; import java.util.Objects; +import java.util.Set; import java.util.function.Function; import java.util.regex.Pattern; import org.apache.logging.log4j.LogManager; @@ -125,9 +151,13 @@ public void prepareEntityUpdate(ItemDomainEntity item, UserInfo updatedByUser) t // Prepare history Item originalItem = findById(item.getId()); + prepareMachineAssignedItemChange(originalItem, item); + prepareMachineRepresentedElementChange(originalItem, item); // Full item element list contains self element as well as all the elements List originalElementList = originalItem.getFullItemElementList(); List newElementList = item.getFullItemElementList(); + prepareInventoryAssemblyElementChanges(originalItem, item, + originalElementList, newElementList); logger.debug("Verifying elements for item " + item); ItemElementUtility.prepareItemElementHistory(originalElementList, newElementList, entityInfo); //Verify reverse hierarchy updates @@ -139,8 +169,14 @@ public void prepareEntityUpdate(ItemDomainEntity item, UserInfo updatedByUser) t List originalPropertyValueList = originalItem.getPropertyValueList(); List newPropertyValueList = item.getPropertyValueList(); logger.debug("Verifying properties for item " + item); - PropertyValueUtility.preparePropertyValueHistory(originalPropertyValueList, newPropertyValueList, entityInfo); + List propertyChanges = PropertyValueUtility.preparePropertyValueHistory( + originalPropertyValueList, newPropertyValueList, entityInfo); + item.setPendingPropertyValueChanges(propertyChanges); item.clearPropertyValueCache(); + item.setPendingLogChanges(LogUtility.prepareLogChanges( + originalItem.getLogList(), item.getLogList())); + item.setPendingLogAttachmentChanges(LogUtility.findAddedAttachments( + originalItem.getLogList(), item.getLogList())); List derivedFromItemList = item.getDerivedFromItemList(); if (derivedFromItemList != null) { @@ -156,6 +192,293 @@ public void prepareEntityUpdate(ItemDomainEntity item, UserInfo updatedByUser) t } + protected void prepareInventoryAssemblyElementChanges(Item originalItem, Item item, + List originalElementList, List newElementList) { + if (!(item instanceof ItemDomainInventoryBase)) { + return; + } + ItemDomainInventoryBase inventoryAssembly = (ItemDomainInventoryBase) item; + for (ItemElement newElement : newElementList) { + if (newElement.equals(item.getSelfElement())) { + continue; + } + int index = originalElementList.indexOf(newElement); + Item oldAssignedItem = index < 0 + ? null : originalElementList.get(index).getContainedItem(); + Item newAssignedItem = newElement.getContainedItem(); + if (!Objects.equals(oldAssignedItem, newAssignedItem)) { + inventoryAssembly.addPendingAssemblyElementChange( + new InventoryAssemblyElementChange( + newElement, oldAssignedItem, newAssignedItem)); + } + } + } + + protected void prepareMachineAssignedItemChange(Item originalItem, Item item) { + if (item instanceof ItemDomainMachineDesign) { + ItemDomainMachineDesign machine = (ItemDomainMachineDesign) item; + ItemDomainMachineDesign originalMachine = (ItemDomainMachineDesign) originalItem; + Item oldAssignedItem = originalMachine.getAssignedItem(); + Item newAssignedItem = machine.getAssignedItem(); + if (!Objects.equals(oldAssignedItem, newAssignedItem) + || originalMachine.isIsHoused() != machine.isIsHoused()) { + machine.setPendingAssignedItemChange( + oldAssignedItem, originalMachine.isIsHoused()); + } + } + } + + protected void prepareMachineRepresentedElementChange(Item originalItem, Item item) { + if (item instanceof ItemDomainMachineDesign) { + ItemDomainMachineDesign machine = (ItemDomainMachineDesign) item; + ItemDomainMachineDesign originalMachine = (ItemDomainMachineDesign) originalItem; + if (!Objects.equals(originalMachine.getRepresentsCatalogElement(), + machine.getRepresentsCatalogElement())) { + machine.setPendingRepresentedElementChange( + originalMachine.getRepresentsCatalogElement()); + } + } + } + + @Override + protected List prepareSpecializedUpdateEvents( + ItemDomainEntity item, UserInfo userInfo) throws CdbException { + List events = new ArrayList<>(); + if (item instanceof ItemDomainInventoryBase) { + addInventoryAssemblyElementEvents(events, + (ItemDomainInventoryBase) item, userInfo, new HashSet<>()); + } + if (item instanceof LocatableItem) { + LocatableItem locatableItem = (LocatableItem) item; + ItemLocationChange locationChange = locatableItem.getPendingLocationChange(); + if (locationChange != null) { + events.add(new CdbItemLocationEvent(locatableItem, + locationChange.getOldLocation(), locationChange.getNewLocation(), + locationChange.getOldLocationDetails(), + locationChange.getNewLocationDetails(), userInfo)); + } + } + if (item instanceof ItemDomainMachineDesign) { + ItemDomainMachineDesign machine = (ItemDomainMachineDesign) item; + MachineAssignedItemChange change = machine.getPendingAssignedItemChange(); + if (change != null) { + events.add(new CdbMachineAssignedItemEvent(machine, + change.getOldAssignedItem(), machine.getAssignedItem(), + change.isOldInstalled(), machine.isIsHoused(), userInfo)); + } + addRepresentedElementEvents(events, machine, userInfo); + MachineTrashChange trashChange = machine.getPendingTrashChange(); + if (trashChange != null) { + events.add(new CdbMachineTrashEvent(trashChange.getTopic(), machine, + trashChange.getRequestedHierarchyRoot(), + trashChange.getAffectedMachineCount(), userInfo)); + } + } + for (PropertyValueChange change : item.getPendingPropertyValueChanges()) { + switch (change.getType()) { + case ADD: + events.add(CdbItemPropertyEvent.added(item, change.getNewValue(), userInfo)); + break; + case UPDATE: + events.add(CdbItemPropertyEvent.updated(item, + change.getOldValue(), change.getNewValue(), userInfo)); + break; + case DELETE: + events.add(CdbItemPropertyEvent.deleted(item, change.getOldValue(), userInfo)); + break; + default: + throw new IllegalStateException("Unsupported property change type"); + } + } + for (ItemLogChange change : item.getPendingLogChanges()) { + if (change.getType() == ItemLogChange.Type.UPDATE) { + events.add(CdbItemLogEvent.updated(item, + change.getOldLog(), change.getNewLog(), userInfo)); + } else { + events.add(CdbItemLogEvent.deleted(item, change.getOldLog(), userInfo)); + } + } + item.setPendingLogChanges(null); + Set publishedAttachments = Collections.newSetFromMap(new IdentityHashMap<>()); + for (LogAttachmentChange change : item.getPendingLogAttachmentChanges()) { + if (publishedAttachments.add(change.getAttachment())) { + events.add(new CdbItemLogAttachmentEvent(item, + change.getLog(), change.getAttachment(), userInfo)); + } + } + item.setPendingLogAttachmentChanges(null); + return events; + } + + @Override + protected void prepareSpecializedCreateEvents( + List entities, UserInfo userInfo) { + for (ItemDomainEntity item : entities) { + List addedLogs = new ArrayList<>(); + List logs = item.getLogList(); + if (logs != null) { + for (Log log : logs) { + if (log.getId() == null) { + addedLogs.add(log); + } + } + } + item.setPendingAddedLogs(addedLogs); + } + } + + @Override + protected List createSpecializedCreateEvents( + List entities, UserInfo userInfo) { + List events = new ArrayList<>(); + for (ItemDomainEntity item : entities) { + List addedLogs = item.getPendingAddedLogs(); + item.setPendingAddedLogs(null); + if (addedLogs.isEmpty()) { + continue; + } + try { + Map resolvedLogs = resolvePersistedLogs(item, addedLogs); + for (Log log : addedLogs) { + Log persistedLog = resolvedLogs.get(log); + if (persistedLog == null) { + continue; + } + events.add(CdbItemLogEvent.added(item, persistedLog, userInfo)); + // A new log's attachments need its DB-assigned ID, so they follow its add. + addLogAttachmentEvents(events, item, persistedLog, + log.getAttachmentList(), userInfo); + } + } catch (RuntimeException ex) { + logger.error("Failed to create item log add MQTT events", ex); + } + } + return events; + } + + private void addLogAttachmentEvents(List events, ItemDomainEntity item, + Log log, List attachments, UserInfo userInfo) { + if (attachments == null) { + return; + } + Set published = Collections.newSetFromMap(new IdentityHashMap<>()); + for (Attachment attachment : attachments) { + if (published.add(attachment)) { + events.add(new CdbItemLogAttachmentEvent(item, log, attachment, userInfo)); + } + } + } + + /** + * Associates an attachment with one of the item's log entries and saves it through the + * item update, so attachment uploads share the specialized create/update event hooks. + */ + public ItemDomainEntity addLogAttachment(ItemDomainEntity item, Log log, + Attachment attachment, UserInfo user) throws CdbException { + List logs = item.getLogList(); + if (logs == null || !logs.contains(log)) { + throw new CdbException("Log " + log.getId() + " does not belong to item " + item.getId()); + } + LogUtility.addAttachment(log, attachment); + return update(item, user); + } + + /** + * Maps each submitted new log (by identity) to its persisted log. Create persists the + * submitted logs (IDs assigned in place); update merges them, so IDs exist only on + * managed copies and are read back like ItemRoute does for new properties. + */ + private Map resolvePersistedLogs(ItemDomainEntity item, List addedLogs) { + Map resolved = new IdentityHashMap<>(); + Set knownIds = new HashSet<>(); + if (item.getLogList() != null) { + for (Log log : item.getLogList()) { + if (log.getId() != null) { + knownIds.add(log.getId()); + } + } + } + List candidates = null; + for (Log log : addedLogs) { + if (log.getId() != null) { + resolved.put(log, log); + continue; + } + if (candidates == null) { + candidates = new ArrayList<>(); + ItemDomainEntity persistedItem = item.getId() == null ? null : findById(item.getId()); + List persistedLogs = persistedItem == null ? null : persistedItem.getLogList(); + if (persistedLogs != null) { + for (Log candidate : persistedLogs) { + if (candidate.getId() != null && !knownIds.contains(candidate.getId())) { + candidates.add(candidate); + } + } + } + } + Log match = null; + for (Log candidate : candidates) { + if (Objects.equals(candidate.getText(), log.getText()) + && Objects.equals(candidate.getEnteredByUser(), log.getEnteredByUser())) { + match = candidate; + break; + } + } + if (match == null) { + logger.warn("Could not resolve persisted log for MQTT add event on " + item); + } else { + candidates.remove(match); + resolved.put(log, match); + } + } + return resolved; + } + + private void addInventoryAssemblyElementEvents(List events, + ItemDomainInventoryBase inventoryAssembly, UserInfo userInfo, + Set visited) { + if (!visited.add(inventoryAssembly)) { + return; + } + for (Object value : inventoryAssembly.getPendingAssemblyElementChanges()) { + InventoryAssemblyElementChange change = (InventoryAssemblyElementChange) value; + events.add(new CdbInventoryAssemblyElementEvent(inventoryAssembly, + change.getAssemblyElement(), change.getOldAssignedInventoryItem(), + change.getNewAssignedInventoryItem(), userInfo)); + if (change.getNewAssignedInventoryItem() instanceof ItemDomainInventoryBase) { + addInventoryAssemblyElementEvents(events, + (ItemDomainInventoryBase) change.getNewAssignedInventoryItem(), + userInfo, visited); + } + } + } + + private void addRepresentedElementEvents(List events, + ItemDomainMachineDesign machine, UserInfo userInfo) { + MachineRepresentedElementChange change = machine.getPendingRepresentedElementChange(); + if (change != null) { + events.add(new CdbMachineRepresentedElementEvent(machine, + change.getOldRepresentedElement(), machine.getRepresentsCatalogElement(), + change.getSourceTemplate(), userInfo)); + } + for (ItemDomainMachineDesign itemToUpdate : machine.getItemsToUpdate()) { + addRepresentedElementEvents(events, itemToUpdate, userInfo); + } + } + + @Override + protected void prepareEntityUpdateOnRemoval(ItemDomainEntity item) throws CdbException { + Item originalItem = findById(item.getId()); + List propertyChanges = PropertyValueUtility.findRemovedPropertyValues( + originalItem.getPropertyValueList(), item.getPropertyValueList()); + item.setPendingPropertyValueChanges(propertyChanges); + // Full diff: the merge also persists any edits made alongside the removal. + item.setPendingLogChanges(LogUtility.prepareLogChanges( + originalItem.getLogList(), item.getLogList())); + item.setPendingLogAttachmentChanges(LogUtility.findAddedAttachments( + originalItem.getLogList(), item.getLogList())); + } + @Override protected void prepareEntityDestroy(ItemDomainEntity item, UserInfo userInfo) throws CdbException { super.prepareEntityDestroy(item, userInfo); diff --git a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/utilities/ItemDomainMachineDesignBaseControllerUtility.java b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/utilities/ItemDomainMachineDesignBaseControllerUtility.java index ea9a828a6..978913bb1 100644 --- a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/utilities/ItemDomainMachineDesignBaseControllerUtility.java +++ b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/utilities/ItemDomainMachineDesignBaseControllerUtility.java @@ -8,6 +8,10 @@ import gov.anl.aps.cdb.common.exceptions.InvalidArgument; import gov.anl.aps.cdb.common.exceptions.InvalidObjectState; import gov.anl.aps.cdb.common.utilities.ObjectUtility; +import gov.anl.aps.cdb.base.mqtt.MqttEvent; +import gov.anl.aps.cdb.mqtt.CdbMachineAddEvent; +import gov.anl.aps.cdb.mqtt.CdbMachineMoveEvent; +import gov.anl.aps.cdb.mqtt.metadata.MachineAddChange; import gov.anl.aps.cdb.portal.constants.EntityTypeName; import gov.anl.aps.cdb.portal.constants.ItemDomainName; import gov.anl.aps.cdb.portal.constants.ItemElementRelationshipTypeNames; @@ -30,8 +34,13 @@ import gov.anl.aps.cdb.portal.utilities.SearchResult; import gov.anl.aps.cdb.portal.view.objects.KeyValueObject; import java.util.ArrayList; +import java.util.Collections; +import java.util.IdentityHashMap; +import java.util.Map; import java.util.LinkedList; import java.util.List; +import java.util.Objects; +import java.util.Set; import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.Logger; import org.primefaces.model.DefaultTreeNode; @@ -342,8 +351,13 @@ public ItemElement performMachineMove( public ItemElement performMachineMoveWithUpdate( ItemDomainMachineDesign newParent, ItemDomainMachineDesign child, UserInfo sessionUser) throws CdbException { + ItemDomainMachineDesign oldParent = child.getParentMachineDesign(); + if (Objects.equals(oldParent, newParent)) { + return child.getParentMachineElement(); + } ItemElement currentItemElement = performMachineMove(newParent, child, sessionUser); update(newParent, sessionUser); + publishMqttEvent(new CdbMachineMoveEvent(child, oldParent, newParent, sessionUser)); return currentItemElement; } @@ -849,7 +863,14 @@ private void updateRepresentingAssemblyElementForMachine(ItemDomainMachineDesign } } + ItemElement oldRepresentedElement = node.getRepresentsCatalogElement(); node.setRepresentsCatalogElement(representedElement); + if (updateFromTemplate && !Objects.equals(oldRepresentedElement, representedElement)) { + Item template = node.getCreatedFromTemplate(); + node.setPendingRepresentedElementChange(oldRepresentedElement, + template instanceof ItemDomainMachineDesign + ? (ItemDomainMachineDesign) template : null); + } if (node.getIsItemTemplate()) { List itemsCreatedFromThisTemplateItem @@ -943,4 +964,165 @@ public void unassignMachineTemplate(List machineElementList, UserIn ieru.destroyList(relationshipsToDestroy, null, updateUser); } + @Override + protected void prepareSpecializedCreateEvents( + List entities, UserInfo userInfo) { + super.prepareSpecializedCreateEvents(entities, userInfo); + // Identity set: unsaved items compare equal by identifiers; one node may be reachable via several roots. + Set visited = Collections.newSetFromMap(new IdentityHashMap<>()); + List> changesPerEntity = new ArrayList<>(); + List allChanges = new ArrayList<>(); + for (ItemDomainMachineDesign entity : entities) { + List changes = new ArrayList<>(); + collectNewMachines(entity, entity.getParentMachineDesign(), true, changes, visited); + changesPerEntity.add(changes); + allChanges.addAll(changes); + } + Map templateChanges = addTemplateContext(allChanges); + for (int i = 0; i < entities.size(); i++) { + List changes = new ArrayList<>(); + for (MachineAddChange change : changesPerEntity.get(i)) { + changes.add(templateChanges.getOrDefault(change.getMachine(), change)); + } + entities.get(i).setPendingMachineAddChanges(changes); + } + } + + /** + * Resolves template context across one save: each template-cloned node gets its source + * template, the machine the template was applied to, and how many nodes that application added. + */ + private Map addTemplateContext( + List changes) { + Map changeByMachine = new IdentityHashMap<>(); + Map templateByMachine = new IdentityHashMap<>(); + for (MachineAddChange change : changes) { + changeByMachine.put(change.getMachine(), change); + ItemDomainMachineDesign template = getSourceTemplate(change.getMachine()); + if (template != null) { + templateByMachine.put(change.getMachine(), template); + } + } + + Map appliedToByMachine = new IdentityHashMap<>(); + Map countByAppliedTo = new IdentityHashMap<>(); + for (ItemDomainMachineDesign machine : templateByMachine.keySet()) { + ItemDomainMachineDesign appliedTo = machine; + ItemDomainMachineDesign parent = changeByMachine.get(machine).getParent(); + while (parent != null) { + MachineAddChange parentChange = changeByMachine.get(parent); + if (parentChange != null && templateByMachine.containsKey(parent)) { + appliedTo = parent; + parent = parentChange.getParent(); + continue; + } + // Existing machine whose template was just assigned (relationship not yet saved). + if (parentChange == null && hasUnsavedTemplateRelationship(parent)) { + appliedTo = parent; + } + break; + } + appliedToByMachine.put(machine, appliedTo); + countByAppliedTo.merge(appliedTo, 1, Integer::sum); + } + + Map result = new IdentityHashMap<>(); + for (Map.Entry entry : appliedToByMachine.entrySet()) { + MachineAddChange change = changeByMachine.get(entry.getKey()); + result.put(entry.getKey(), new MachineAddChange(change.getMachine(), change.getParent(), + templateByMachine.get(entry.getKey()), entry.getValue(), + countByAppliedTo.get(entry.getValue()))); + } + return result; + } + + private static ItemDomainMachineDesign getSourceTemplate(ItemDomainMachineDesign machine) { + ItemElementRelationship relationship = getTemplateRelationship(machine); + if (relationship == null || relationship.getSecondItemElement() == null) { + return null; + } + Item template = relationship.getSecondItemElement().getParentItem(); + return template instanceof ItemDomainMachineDesign ? (ItemDomainMachineDesign) template : null; + } + + private static boolean hasUnsavedTemplateRelationship(ItemDomainMachineDesign machine) { + ItemElementRelationship relationship = getTemplateRelationship(machine); + return relationship != null && relationship.getId() == null; + } + + // Null-safe variant of Item.getCreatedFromTemplateRelationship for unsaved clones. + private static ItemElementRelationship getTemplateRelationship(ItemDomainMachineDesign machine) { + List relationships = machine.getItemElementRelationshipList(); + if (relationships == null) { + return null; + } + String templateName = ItemElementRelationshipTypeNames.template.getValue(); + for (ItemElementRelationship relationship : relationships) { + if (relationship.getRelationshipType() != null + && templateName.equals(relationship.getRelationshipType().getName())) { + return relationship; + } + } + return null; + } + + // Mirrors ItemFacadeBase.populateItemsToAdd: only recurse below roots and unsaved nodes. + private void collectNewMachines(ItemDomainMachineDesign machine, + ItemDomainMachineDesign parent, boolean persistenceRoot, + List changes, Set visited) { + if (machine == null || !visited.add(machine)) { + return; + } + boolean persisted = isMachinePersisted(machine); + if (!persisted) { + changes.add(new MachineAddChange(machine, parent)); + } else if (!persistenceRoot) { + return; + } + ItemElement selfElement = machine.getSelfElement(); + List elements = machine.getFullItemElementList(); + if (elements != null) { + for (ItemElement element : elements) { + Item child = element == selfElement ? null : element.getContainedItem(); + if (child instanceof ItemDomainMachineDesign) { + collectNewMachines((ItemDomainMachineDesign) child, machine, false, + changes, visited); + } + } + } + // ItemDomainMachineDesignFacade.edit cascades into itemsToUpdate as further roots. + for (ItemDomainMachineDesign itemToUpdate : machine.getItemsToUpdate()) { + collectNewMachines(itemToUpdate, itemToUpdate.getParentMachineDesign(), true, + changes, visited); + } + } + + /** Mirrors ItemFacadeBase.populateItemsToAdd: an ID alone does not mean the row exists. */ + protected boolean isMachinePersisted(ItemDomainMachineDesign machine) { + return machine.getId() != null && getEntityDbFacade().findItem(machine.getId()) != null; + } + + @Override + protected List createSpecializedCreateEvents( + List entities, UserInfo userInfo) { + List events = new ArrayList<>(); + for (ItemDomainMachineDesign entity : entities) { + for (MachineAddChange change : entity.getPendingMachineAddChanges()) { + // Skip nodes that did not receive an ID (not actually persisted). + if (change.getMachine().getId() == null) { + continue; + } + try { + events.add(new CdbMachineAddEvent(change, userInfo)); + } catch (RuntimeException ex) { + logger.error("Failed to create machine add MQTT event", ex); + } + } + entity.setPendingMachineAddChanges(null); + } + // Machine adds precede log adds so a new machine is announced before its logs. + events.addAll(super.createSpecializedCreateEvents(entities, userInfo)); + return events; + } + } diff --git a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/utilities/LogControllerUtility.java b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/utilities/LogControllerUtility.java index 4c7dd739f..0f2fa69e1 100644 --- a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/utilities/LogControllerUtility.java +++ b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/utilities/LogControllerUtility.java @@ -13,7 +13,7 @@ import gov.anl.aps.cdb.portal.model.db.entities.LogLevel; import gov.anl.aps.cdb.portal.model.db.entities.UserInfo; import java.util.Date; -import javax.ejb.EJB; +import jakarta.ejb.EJB; /** * diff --git a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/utilities/UserInfoControllerUtility.java b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/utilities/UserInfoControllerUtility.java index a24da39ed..11bd5dc29 100644 --- a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/utilities/UserInfoControllerUtility.java +++ b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/controllers/utilities/UserInfoControllerUtility.java @@ -14,7 +14,7 @@ import gov.anl.aps.cdb.portal.model.db.entities.UserRolePK; import gov.anl.aps.cdb.portal.model.db.entities.UserSetting; import java.util.List; -import javax.ejb.EJB; +import jakarta.ejb.EJB; import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.Logger; diff --git a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/import_export/export/wizard/ItemDomainExportWizard.java b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/import_export/export/wizard/ItemDomainExportWizard.java index e9b8ad881..f9339deda 100644 --- a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/import_export/export/wizard/ItemDomainExportWizard.java +++ b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/import_export/export/wizard/ItemDomainExportWizard.java @@ -15,8 +15,8 @@ import java.util.ArrayList; import java.util.List; import java.util.stream.Collectors; -import javax.enterprise.context.SessionScoped; -import javax.inject.Named; +import jakarta.enterprise.context.SessionScoped; +import jakarta.inject.Named; import org.primefaces.event.FlowEvent; import org.primefaces.model.StreamedContent; diff --git a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/import_export/import_/wizard/ItemDomainImportWizard.java b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/import_export/import_/wizard/ItemDomainImportWizard.java index 066a38e47..3b4a3f142 100644 --- a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/import_export/import_/wizard/ItemDomainImportWizard.java +++ b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/import_export/import_/wizard/ItemDomainImportWizard.java @@ -17,8 +17,8 @@ import java.util.ArrayList; import java.util.List; import java.util.stream.Collectors; -import javax.enterprise.context.SessionScoped; -import javax.inject.Named; +import jakarta.enterprise.context.SessionScoped; +import jakarta.inject.Named; import org.primefaces.event.FileUploadEvent; import org.primefaces.event.FlowEvent; import org.primefaces.event.NodeSelectEvent; diff --git a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/ItemBaseLazyTreeNode.java b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/ItemBaseLazyTreeNode.java index 23dbef846..fa628793d 100644 --- a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/ItemBaseLazyTreeNode.java +++ b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/ItemBaseLazyTreeNode.java @@ -16,6 +16,7 @@ import java.util.List; import org.primefaces.model.DefaultTreeNode; import org.primefaces.model.TreeNode; +import org.primefaces.model.TreeNodeChildren; /** * @@ -120,7 +121,7 @@ public boolean isLeaf() { } @Override - public List getChildren() { + public TreeNodeChildren getChildren() { fetchChildren(); return super.getChildren(); } diff --git a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/beans/AllowedPropertyMetadataValueFacade.java b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/beans/AllowedPropertyMetadataValueFacade.java index df63aa2de..12d268b24 100644 --- a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/beans/AllowedPropertyMetadataValueFacade.java +++ b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/beans/AllowedPropertyMetadataValueFacade.java @@ -6,9 +6,9 @@ import gov.anl.aps.cdb.portal.model.db.entities.AllowedPropertyMetadataValue; import gov.anl.aps.cdb.portal.utilities.SessionUtility; -import javax.ejb.Stateless; -import javax.persistence.EntityManager; -import javax.persistence.PersistenceContext; +import jakarta.ejb.Stateless; +import jakarta.persistence.EntityManager; +import jakarta.persistence.PersistenceContext; /** * diff --git a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/beans/AllowedPropertyValueFacade.java b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/beans/AllowedPropertyValueFacade.java index f482c739d..502d6ced9 100644 --- a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/beans/AllowedPropertyValueFacade.java +++ b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/beans/AllowedPropertyValueFacade.java @@ -7,9 +7,9 @@ import gov.anl.aps.cdb.portal.model.db.entities.AllowedPropertyValue; import gov.anl.aps.cdb.portal.utilities.SessionUtility; import java.util.List; -import javax.ejb.Stateless; -import javax.persistence.EntityManager; -import javax.persistence.PersistenceContext; +import jakarta.ejb.Stateless; +import jakarta.persistence.EntityManager; +import jakarta.persistence.PersistenceContext; /** * diff --git a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/beans/AttachmentFacade.java b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/beans/AttachmentFacade.java index 784cc687c..6f298b9a0 100644 --- a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/beans/AttachmentFacade.java +++ b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/beans/AttachmentFacade.java @@ -5,9 +5,9 @@ package gov.anl.aps.cdb.portal.model.db.beans; import gov.anl.aps.cdb.portal.model.db.entities.Attachment; -import javax.ejb.Stateless; -import javax.persistence.EntityManager; -import javax.persistence.PersistenceContext; +import jakarta.ejb.Stateless; +import jakarta.persistence.EntityManager; +import jakarta.persistence.PersistenceContext; /** * diff --git a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/beans/CdbEntityFacade.java b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/beans/CdbEntityFacade.java index 11ccab871..ea54fa051 100644 --- a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/beans/CdbEntityFacade.java +++ b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/beans/CdbEntityFacade.java @@ -9,8 +9,8 @@ import gov.anl.aps.cdb.portal.model.db.entities.ItemConnector; import java.util.List; import java.util.Map; -import javax.persistence.EntityManager; -import javax.persistence.EntityManagerFactory; +import jakarta.persistence.EntityManager; +import jakarta.persistence.EntityManagerFactory; /** * @@ -75,7 +75,7 @@ public T find(Object id) { } public List findAll() { - javax.persistence.criteria.CriteriaQuery cq = getEntityManager().getCriteriaBuilder().createQuery(); + jakarta.persistence.criteria.CriteriaQuery cq = getEntityManager().getCriteriaBuilder().createQuery(); cq.select(cq.from(entityClass)); return getEntityManager().createQuery(cq).getResultList(); } @@ -98,19 +98,19 @@ protected String convertWildcards(String searchString) { } public List findRange(int[] range) { - javax.persistence.criteria.CriteriaQuery cq = getEntityManager().getCriteriaBuilder().createQuery(); + jakarta.persistence.criteria.CriteriaQuery cq = getEntityManager().getCriteriaBuilder().createQuery(); cq.select(cq.from(entityClass)); - javax.persistence.Query q = getEntityManager().createQuery(cq); + jakarta.persistence.Query q = getEntityManager().createQuery(cq); q.setMaxResults(range[1] - range[0] + 1); q.setFirstResult(range[0]); return q.getResultList(); } public int count() { - javax.persistence.criteria.CriteriaQuery cq = getEntityManager().getCriteriaBuilder().createQuery(); - javax.persistence.criteria.Root rt = cq.from(entityClass); + jakarta.persistence.criteria.CriteriaQuery cq = getEntityManager().getCriteriaBuilder().createQuery(); + jakarta.persistence.criteria.Root rt = cq.from(entityClass); cq.select(getEntityManager().getCriteriaBuilder().count(rt)); - javax.persistence.Query q = getEntityManager().createQuery(cq); + jakarta.persistence.Query q = getEntityManager().createQuery(cq); return ((Long) q.getSingleResult()).intValue(); } diff --git a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/beans/ConnectorFacade.java b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/beans/ConnectorFacade.java index 34ee7fcd9..31bf47266 100644 --- a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/beans/ConnectorFacade.java +++ b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/beans/ConnectorFacade.java @@ -6,9 +6,9 @@ import gov.anl.aps.cdb.portal.model.db.entities.Connector; import gov.anl.aps.cdb.portal.utilities.SessionUtility; -import javax.ejb.Stateless; -import javax.persistence.EntityManager; -import javax.persistence.PersistenceContext; +import jakarta.ejb.Stateless; +import jakarta.persistence.EntityManager; +import jakarta.persistence.PersistenceContext; /** * diff --git a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/beans/ConnectorTypeFacade.java b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/beans/ConnectorTypeFacade.java index 9099bb652..65a0503c1 100644 --- a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/beans/ConnectorTypeFacade.java +++ b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/beans/ConnectorTypeFacade.java @@ -8,10 +8,10 @@ import gov.anl.aps.cdb.portal.model.db.entities.ConnectorType; import gov.anl.aps.cdb.portal.utilities.SessionUtility; import java.util.List; -import javax.ejb.Stateless; -import javax.persistence.EntityManager; -import javax.persistence.NoResultException; -import javax.persistence.PersistenceContext; +import jakarta.ejb.Stateless; +import jakarta.persistence.EntityManager; +import jakarta.persistence.NoResultException; +import jakarta.persistence.PersistenceContext; /** * diff --git a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/beans/DomainFacade.java b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/beans/DomainFacade.java index 0ab8d604b..6ed83c0fc 100644 --- a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/beans/DomainFacade.java +++ b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/beans/DomainFacade.java @@ -7,10 +7,10 @@ import gov.anl.aps.cdb.common.exceptions.CdbException; import gov.anl.aps.cdb.portal.model.db.entities.Domain; import gov.anl.aps.cdb.portal.utilities.SessionUtility; -import javax.ejb.Stateless; -import javax.persistence.EntityManager; -import javax.persistence.NoResultException; -import javax.persistence.PersistenceContext; +import jakarta.ejb.Stateless; +import jakarta.persistence.EntityManager; +import jakarta.persistence.NoResultException; +import jakarta.persistence.PersistenceContext; /** * diff --git a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/beans/EntityInfoFacade.java b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/beans/EntityInfoFacade.java index c78006ae8..51ad233f0 100644 --- a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/beans/EntityInfoFacade.java +++ b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/beans/EntityInfoFacade.java @@ -5,9 +5,9 @@ package gov.anl.aps.cdb.portal.model.db.beans; import gov.anl.aps.cdb.portal.model.db.entities.EntityInfo; -import javax.ejb.Stateless; -import javax.persistence.EntityManager; -import javax.persistence.PersistenceContext; +import jakarta.ejb.Stateless; +import jakarta.persistence.EntityManager; +import jakarta.persistence.PersistenceContext; /** * diff --git a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/beans/EntityTypeFacade.java b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/beans/EntityTypeFacade.java index 66d243a70..2625f607a 100644 --- a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/beans/EntityTypeFacade.java +++ b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/beans/EntityTypeFacade.java @@ -6,10 +6,10 @@ import gov.anl.aps.cdb.portal.model.db.entities.EntityType; import gov.anl.aps.cdb.portal.utilities.SessionUtility; -import javax.ejb.Stateless; -import javax.persistence.EntityManager; -import javax.persistence.NoResultException; -import javax.persistence.PersistenceContext; +import jakarta.ejb.Stateless; +import jakarta.persistence.EntityManager; +import jakarta.persistence.NoResultException; +import jakarta.persistence.PersistenceContext; /** * diff --git a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/beans/ItemCategoryFacade.java b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/beans/ItemCategoryFacade.java index 0729eca03..e8ddfbf42 100644 --- a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/beans/ItemCategoryFacade.java +++ b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/beans/ItemCategoryFacade.java @@ -8,10 +8,10 @@ import gov.anl.aps.cdb.portal.model.db.entities.ItemCategory; import gov.anl.aps.cdb.portal.utilities.SessionUtility; import java.util.List; -import javax.ejb.Stateless; -import javax.persistence.EntityManager; -import javax.persistence.NoResultException; -import javax.persistence.PersistenceContext; +import jakarta.ejb.Stateless; +import jakarta.persistence.EntityManager; +import jakarta.persistence.NoResultException; +import jakarta.persistence.PersistenceContext; /** * diff --git a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/beans/ItemConnectorFacade.java b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/beans/ItemConnectorFacade.java index fef41f254..9572c95a7 100644 --- a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/beans/ItemConnectorFacade.java +++ b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/beans/ItemConnectorFacade.java @@ -7,9 +7,9 @@ import gov.anl.aps.cdb.portal.model.db.entities.Connector; import gov.anl.aps.cdb.portal.model.db.entities.ItemConnector; import gov.anl.aps.cdb.portal.utilities.SessionUtility; -import javax.ejb.Stateless; -import javax.persistence.EntityManager; -import javax.persistence.PersistenceContext; +import jakarta.ejb.Stateless; +import jakarta.persistence.EntityManager; +import jakarta.persistence.PersistenceContext; /** * diff --git a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/beans/ItemDomainAppDeploymentFacade.java b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/beans/ItemDomainAppDeploymentFacade.java index b8d8ca969..c1cb2d583 100644 --- a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/beans/ItemDomainAppDeploymentFacade.java +++ b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/beans/ItemDomainAppDeploymentFacade.java @@ -7,7 +7,7 @@ import gov.anl.aps.cdb.portal.constants.ItemDomainName; import gov.anl.aps.cdb.portal.model.db.entities.ItemDomainAppDeployment; import gov.anl.aps.cdb.portal.utilities.SessionUtility; -import javax.ejb.Stateless; +import jakarta.ejb.Stateless; /** * diff --git a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/beans/ItemDomainAppFacade.java b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/beans/ItemDomainAppFacade.java index 48795f6d1..7f5d1d2ad 100644 --- a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/beans/ItemDomainAppFacade.java +++ b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/beans/ItemDomainAppFacade.java @@ -7,7 +7,7 @@ import gov.anl.aps.cdb.portal.constants.ItemDomainName; import gov.anl.aps.cdb.portal.model.db.entities.ItemDomainApp; import gov.anl.aps.cdb.portal.utilities.SessionUtility; -import javax.ejb.Stateless; +import jakarta.ejb.Stateless; /** * diff --git a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/beans/ItemDomainCableCatalogFacade.java b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/beans/ItemDomainCableCatalogFacade.java index 782d17746..4c71f59d7 100644 --- a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/beans/ItemDomainCableCatalogFacade.java +++ b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/beans/ItemDomainCableCatalogFacade.java @@ -8,7 +8,7 @@ import gov.anl.aps.cdb.portal.model.db.entities.ItemDomainCableCatalog; import gov.anl.aps.cdb.portal.utilities.SessionUtility; import java.util.List; -import javax.ejb.Stateless; +import jakarta.ejb.Stateless; /** * diff --git a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/beans/ItemDomainCableDesignFacade.java b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/beans/ItemDomainCableDesignFacade.java index beab30215..04e12a09a 100644 --- a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/beans/ItemDomainCableDesignFacade.java +++ b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/beans/ItemDomainCableDesignFacade.java @@ -14,8 +14,8 @@ import java.util.ArrayList; import java.util.List; import java.util.Map; -import javax.ejb.Stateless; -import javax.persistence.NoResultException; +import jakarta.ejb.Stateless; +import jakarta.persistence.NoResultException; /** * diff --git a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/beans/ItemDomainCableInventoryFacade.java b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/beans/ItemDomainCableInventoryFacade.java index e59ed47f4..748fe728b 100644 --- a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/beans/ItemDomainCableInventoryFacade.java +++ b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/beans/ItemDomainCableInventoryFacade.java @@ -8,7 +8,7 @@ import gov.anl.aps.cdb.portal.model.db.entities.ItemDomainCableInventory; import gov.anl.aps.cdb.portal.utilities.SessionUtility; import java.util.List; -import javax.ejb.Stateless; +import jakarta.ejb.Stateless; /** * diff --git a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/beans/ItemDomainCatalogFacade.java b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/beans/ItemDomainCatalogFacade.java index 1f894564a..5f049c1b5 100644 --- a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/beans/ItemDomainCatalogFacade.java +++ b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/beans/ItemDomainCatalogFacade.java @@ -8,7 +8,7 @@ import gov.anl.aps.cdb.portal.model.db.entities.ItemDomainCatalog; import gov.anl.aps.cdb.portal.utilities.SessionUtility; import java.util.List; -import javax.ejb.Stateless; +import jakarta.ejb.Stateless; /** * diff --git a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/beans/ItemDomainInventoryFacade.java b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/beans/ItemDomainInventoryFacade.java index bf13d052e..e2839f107 100644 --- a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/beans/ItemDomainInventoryFacade.java +++ b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/beans/ItemDomainInventoryFacade.java @@ -8,7 +8,7 @@ import gov.anl.aps.cdb.portal.model.db.entities.ItemDomainInventory; import gov.anl.aps.cdb.portal.utilities.SessionUtility; import java.util.List; -import javax.ejb.Stateless; +import jakarta.ejb.Stateless; /** * diff --git a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/beans/ItemDomainLocationFacade.java b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/beans/ItemDomainLocationFacade.java index 87082356f..a4cde73bd 100644 --- a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/beans/ItemDomainLocationFacade.java +++ b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/beans/ItemDomainLocationFacade.java @@ -8,7 +8,7 @@ import gov.anl.aps.cdb.portal.model.db.entities.ItemDomainLocation; import gov.anl.aps.cdb.portal.utilities.SessionUtility; import java.util.List; -import javax.ejb.Stateless; +import jakarta.ejb.Stateless; /** * diff --git a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/beans/ItemDomainMAARCFacade.java b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/beans/ItemDomainMAARCFacade.java index 3082f52f3..4000cdd80 100644 --- a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/beans/ItemDomainMAARCFacade.java +++ b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/beans/ItemDomainMAARCFacade.java @@ -8,7 +8,7 @@ import gov.anl.aps.cdb.portal.model.db.entities.ItemDomainMAARC; import gov.anl.aps.cdb.portal.utilities.SessionUtility; import java.util.List; -import javax.ejb.Stateless; +import jakarta.ejb.Stateless; /** * diff --git a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/beans/ItemDomainMachineDesignFacade.java b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/beans/ItemDomainMachineDesignFacade.java index b0aad9907..2844f5446 100644 --- a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/beans/ItemDomainMachineDesignFacade.java +++ b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/beans/ItemDomainMachineDesignFacade.java @@ -13,7 +13,7 @@ import gov.anl.aps.cdb.portal.model.db.entities.ListTbl; import gov.anl.aps.cdb.portal.utilities.SessionUtility; import java.util.List; -import javax.ejb.Stateless; +import jakarta.ejb.Stateless; /** * diff --git a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/beans/ItemElementFacade.java b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/beans/ItemElementFacade.java index 42eac86c3..6f65180de 100644 --- a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/beans/ItemElementFacade.java +++ b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/beans/ItemElementFacade.java @@ -7,10 +7,10 @@ import gov.anl.aps.cdb.portal.model.db.entities.ItemElement; import gov.anl.aps.cdb.portal.utilities.SessionUtility; import java.util.List; -import javax.ejb.Stateless; -import javax.persistence.EntityManager; -import javax.persistence.NoResultException; -import javax.persistence.PersistenceContext; +import jakarta.ejb.Stateless; +import jakarta.persistence.EntityManager; +import jakarta.persistence.NoResultException; +import jakarta.persistence.PersistenceContext; /** * diff --git a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/beans/ItemElementRelationshipFacade.java b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/beans/ItemElementRelationshipFacade.java index 37f76e2a0..e82e19aa8 100644 --- a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/beans/ItemElementRelationshipFacade.java +++ b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/beans/ItemElementRelationshipFacade.java @@ -8,11 +8,11 @@ import gov.anl.aps.cdb.portal.model.db.entities.ItemElementRelationship; import gov.anl.aps.cdb.portal.utilities.SessionUtility; import java.util.List; -import javax.ejb.Stateless; -import javax.persistence.EntityManager; -import javax.persistence.NoResultException; -import javax.persistence.NonUniqueResultException; -import javax.persistence.PersistenceContext; +import jakarta.ejb.Stateless; +import jakarta.persistence.EntityManager; +import jakarta.persistence.NoResultException; +import jakarta.persistence.NonUniqueResultException; +import jakarta.persistence.PersistenceContext; /** * diff --git a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/beans/ItemElementRelationshipHistoryFacade.java b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/beans/ItemElementRelationshipHistoryFacade.java index e3f1d1792..11f3353f5 100644 --- a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/beans/ItemElementRelationshipHistoryFacade.java +++ b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/beans/ItemElementRelationshipHistoryFacade.java @@ -5,9 +5,9 @@ package gov.anl.aps.cdb.portal.model.db.beans; import gov.anl.aps.cdb.portal.model.db.entities.ItemElementRelationshipHistory; -import javax.ejb.Stateless; -import javax.persistence.EntityManager; -import javax.persistence.PersistenceContext; +import jakarta.ejb.Stateless; +import jakarta.persistence.EntityManager; +import jakarta.persistence.PersistenceContext; /** * diff --git a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/beans/ItemFacade.java b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/beans/ItemFacade.java index e4d48e21d..fe832e042 100644 --- a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/beans/ItemFacade.java +++ b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/beans/ItemFacade.java @@ -7,7 +7,7 @@ import gov.anl.aps.cdb.portal.constants.ItemDomainName; import gov.anl.aps.cdb.portal.model.db.entities.Item; import gov.anl.aps.cdb.portal.utilities.SessionUtility; -import javax.ejb.Stateless; +import jakarta.ejb.Stateless; /** * diff --git a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/beans/ItemFacadeBase.java b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/beans/ItemFacadeBase.java index 292b987f5..753e22be0 100644 --- a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/beans/ItemFacadeBase.java +++ b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/beans/ItemFacadeBase.java @@ -27,11 +27,11 @@ import java.util.ArrayList; import java.util.List; import java.util.Map; -import javax.persistence.EntityManager; -import javax.persistence.NoResultException; -import javax.persistence.PersistenceContext; -import javax.persistence.Query; -import javax.persistence.StoredProcedureQuery; +import jakarta.persistence.EntityManager; +import jakarta.persistence.NoResultException; +import jakarta.persistence.PersistenceContext; +import jakarta.persistence.Query; +import jakarta.persistence.StoredProcedureQuery; import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.Logger; @@ -441,7 +441,7 @@ private List convertRelationshipResultListToItemList(List itemList = new ArrayList<>(); for (Object[] result : relationshipResultList) { ItemDomainEntity item = (ItemDomainEntity) result[0]; - Long relationshipId = (Long) result[1]; + Number relationshipId = (Number) result[1]; if (item.getParentRelationshipId() != null) { // Same item result with different parent relationship result. diff --git a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/beans/ItemProjectFacade.java b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/beans/ItemProjectFacade.java index 76238debf..e17dcd0b7 100644 --- a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/beans/ItemProjectFacade.java +++ b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/beans/ItemProjectFacade.java @@ -7,10 +7,10 @@ import gov.anl.aps.cdb.common.exceptions.CdbException; import gov.anl.aps.cdb.portal.model.db.entities.ItemProject; import gov.anl.aps.cdb.portal.utilities.SessionUtility; -import javax.ejb.Stateless; -import javax.persistence.EntityManager; -import javax.persistence.NoResultException; -import javax.persistence.PersistenceContext; +import jakarta.ejb.Stateless; +import jakarta.persistence.EntityManager; +import jakarta.persistence.NoResultException; +import jakarta.persistence.PersistenceContext; /** * diff --git a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/beans/ItemResourceFacade.java b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/beans/ItemResourceFacade.java index 5eb7bfbf7..ed61a2f3b 100644 --- a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/beans/ItemResourceFacade.java +++ b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/beans/ItemResourceFacade.java @@ -5,9 +5,9 @@ package gov.anl.aps.cdb.portal.model.db.beans; import gov.anl.aps.cdb.portal.model.db.entities.ItemResource; -import javax.ejb.Stateless; -import javax.persistence.EntityManager; -import javax.persistence.PersistenceContext; +import jakarta.ejb.Stateless; +import jakarta.persistence.EntityManager; +import jakarta.persistence.PersistenceContext; /** * diff --git a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/beans/ItemSourceFacade.java b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/beans/ItemSourceFacade.java index 4d2c9d60a..fd94255c0 100644 --- a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/beans/ItemSourceFacade.java +++ b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/beans/ItemSourceFacade.java @@ -6,9 +6,9 @@ import gov.anl.aps.cdb.portal.model.db.entities.ItemSource; import gov.anl.aps.cdb.portal.utilities.SessionUtility; -import javax.ejb.Stateless; -import javax.persistence.EntityManager; -import javax.persistence.PersistenceContext; +import jakarta.ejb.Stateless; +import jakarta.persistence.EntityManager; +import jakarta.persistence.PersistenceContext; /** * diff --git a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/beans/ItemTypeFacade.java b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/beans/ItemTypeFacade.java index c27390ab6..bafdb9de9 100644 --- a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/beans/ItemTypeFacade.java +++ b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/beans/ItemTypeFacade.java @@ -8,10 +8,10 @@ import gov.anl.aps.cdb.portal.model.db.entities.ItemType; import gov.anl.aps.cdb.portal.utilities.SessionUtility; import java.util.List; -import javax.ejb.Stateless; -import javax.persistence.EntityManager; -import javax.persistence.NoResultException; -import javax.persistence.PersistenceContext; +import jakarta.ejb.Stateless; +import jakarta.persistence.EntityManager; +import jakarta.persistence.NoResultException; +import jakarta.persistence.PersistenceContext; /** * diff --git a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/beans/ListFacade.java b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/beans/ListFacade.java index 08a053f38..965fa1a4b 100644 --- a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/beans/ListFacade.java +++ b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/beans/ListFacade.java @@ -6,9 +6,9 @@ import gov.anl.aps.cdb.portal.model.db.entities.ListTbl; import gov.anl.aps.cdb.portal.utilities.SessionUtility; -import javax.ejb.Stateless; -import javax.persistence.EntityManager; -import javax.persistence.PersistenceContext; +import jakarta.ejb.Stateless; +import jakarta.persistence.EntityManager; +import jakarta.persistence.PersistenceContext; /** * diff --git a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/beans/LogFacade.java b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/beans/LogFacade.java index 59f61ad2d..6565a838c 100644 --- a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/beans/LogFacade.java +++ b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/beans/LogFacade.java @@ -10,12 +10,12 @@ import gov.anl.aps.cdb.portal.utilities.SessionUtility; import java.util.Date; import java.util.List; -import javax.ejb.Stateless; -import javax.persistence.EntityManager; -import javax.persistence.NoResultException; -import javax.persistence.PersistenceContext; -import javax.persistence.Query; -import javax.persistence.TemporalType; +import jakarta.ejb.Stateless; +import jakarta.persistence.EntityManager; +import jakarta.persistence.NoResultException; +import jakarta.persistence.PersistenceContext; +import jakarta.persistence.Query; +import jakarta.persistence.TemporalType; /** * diff --git a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/beans/LogLevelFacade.java b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/beans/LogLevelFacade.java index 8f79e3f4f..6a3905209 100644 --- a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/beans/LogLevelFacade.java +++ b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/beans/LogLevelFacade.java @@ -6,10 +6,10 @@ import gov.anl.aps.cdb.portal.model.db.entities.LogLevel; import gov.anl.aps.cdb.portal.utilities.SessionUtility; -import javax.ejb.Stateless; -import javax.persistence.EntityManager; -import javax.persistence.NoResultException; -import javax.persistence.PersistenceContext; +import jakarta.ejb.Stateless; +import jakarta.persistence.EntityManager; +import jakarta.persistence.NoResultException; +import jakarta.persistence.PersistenceContext; /** * diff --git a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/beans/LogTopicFacade.java b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/beans/LogTopicFacade.java index 72e37ab06..061846897 100644 --- a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/beans/LogTopicFacade.java +++ b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/beans/LogTopicFacade.java @@ -6,10 +6,10 @@ import gov.anl.aps.cdb.portal.model.db.entities.LogTopic; import gov.anl.aps.cdb.portal.utilities.SessionUtility; -import javax.ejb.Stateless; -import javax.persistence.EntityManager; -import javax.persistence.NoResultException; -import javax.persistence.PersistenceContext; +import jakarta.ejb.Stateless; +import jakarta.persistence.EntityManager; +import jakarta.persistence.NoResultException; +import jakarta.persistence.PersistenceContext; /** * diff --git a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/beans/PropertyMetadataFacade.java b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/beans/PropertyMetadataFacade.java index e6b81ba49..7f9e8700b 100644 --- a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/beans/PropertyMetadataFacade.java +++ b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/beans/PropertyMetadataFacade.java @@ -6,9 +6,9 @@ import gov.anl.aps.cdb.portal.model.db.entities.PropertyMetadata; import gov.anl.aps.cdb.portal.utilities.SessionUtility; -import javax.ejb.Stateless; -import javax.persistence.EntityManager; -import javax.persistence.PersistenceContext; +import jakarta.ejb.Stateless; +import jakarta.persistence.EntityManager; +import jakarta.persistence.PersistenceContext; /** * diff --git a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/beans/PropertyTypeCategoryFacade.java b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/beans/PropertyTypeCategoryFacade.java index c5d76ca81..e1e981943 100644 --- a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/beans/PropertyTypeCategoryFacade.java +++ b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/beans/PropertyTypeCategoryFacade.java @@ -7,10 +7,10 @@ import gov.anl.aps.cdb.portal.model.db.entities.PropertyTypeCategory; import gov.anl.aps.cdb.portal.utilities.SessionUtility; import java.util.List; -import javax.ejb.Stateless; -import javax.persistence.EntityManager; -import javax.persistence.NoResultException; -import javax.persistence.PersistenceContext; +import jakarta.ejb.Stateless; +import jakarta.persistence.EntityManager; +import jakarta.persistence.NoResultException; +import jakarta.persistence.PersistenceContext; /** * diff --git a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/beans/PropertyTypeFacade.java b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/beans/PropertyTypeFacade.java index a798ba48a..3ee319e1a 100644 --- a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/beans/PropertyTypeFacade.java +++ b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/beans/PropertyTypeFacade.java @@ -9,10 +9,10 @@ import gov.anl.aps.cdb.portal.model.db.entities.PropertyTypeHandler; import gov.anl.aps.cdb.portal.utilities.SessionUtility; import java.util.List; -import javax.ejb.Stateless; -import javax.persistence.EntityManager; -import javax.persistence.NoResultException; -import javax.persistence.PersistenceContext; +import jakarta.ejb.Stateless; +import jakarta.persistence.EntityManager; +import jakarta.persistence.NoResultException; +import jakarta.persistence.PersistenceContext; /** * diff --git a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/beans/PropertyTypeHandlerFacade.java b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/beans/PropertyTypeHandlerFacade.java index a358d7d02..7da4e0b38 100644 --- a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/beans/PropertyTypeHandlerFacade.java +++ b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/beans/PropertyTypeHandlerFacade.java @@ -7,10 +7,10 @@ import gov.anl.aps.cdb.portal.model.db.entities.PropertyTypeHandler; import gov.anl.aps.cdb.portal.utilities.SessionUtility; import java.util.List; -import javax.ejb.Stateless; -import javax.persistence.EntityManager; -import javax.persistence.NoResultException; -import javax.persistence.PersistenceContext; +import jakarta.ejb.Stateless; +import jakarta.persistence.EntityManager; +import jakarta.persistence.NoResultException; +import jakarta.persistence.PersistenceContext; /** * diff --git a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/beans/PropertyTypeMetadataFacade.java b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/beans/PropertyTypeMetadataFacade.java index 34f3877b5..48f89d7fc 100644 --- a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/beans/PropertyTypeMetadataFacade.java +++ b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/beans/PropertyTypeMetadataFacade.java @@ -6,9 +6,9 @@ import gov.anl.aps.cdb.portal.model.db.entities.PropertyTypeMetadata; import gov.anl.aps.cdb.portal.utilities.SessionUtility; -import javax.ejb.Stateless; -import javax.persistence.EntityManager; -import javax.persistence.PersistenceContext; +import jakarta.ejb.Stateless; +import jakarta.persistence.EntityManager; +import jakarta.persistence.PersistenceContext; /** * diff --git a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/beans/PropertyValueFacade.java b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/beans/PropertyValueFacade.java index bd750ae0e..1b45b3a6a 100644 --- a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/beans/PropertyValueFacade.java +++ b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/beans/PropertyValueFacade.java @@ -11,12 +11,12 @@ import java.util.HashSet; import java.util.List; import java.util.Set; -import javax.ejb.Stateless; -import javax.persistence.EntityManager; -import javax.persistence.NoResultException; -import javax.persistence.PersistenceContext; -import javax.persistence.Query; -import javax.persistence.StoredProcedureQuery; +import jakarta.ejb.Stateless; +import jakarta.persistence.EntityManager; +import jakarta.persistence.NoResultException; +import jakarta.persistence.PersistenceContext; +import jakarta.persistence.Query; +import jakarta.persistence.StoredProcedureQuery; /** * diff --git a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/beans/PropertyValueHistoryFacade.java b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/beans/PropertyValueHistoryFacade.java index 38454637a..b5c7696fc 100644 --- a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/beans/PropertyValueHistoryFacade.java +++ b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/beans/PropertyValueHistoryFacade.java @@ -6,9 +6,9 @@ import gov.anl.aps.cdb.portal.model.db.entities.PropertyValueHistory; import gov.anl.aps.cdb.portal.utilities.SessionUtility; -import javax.ejb.Stateless; -import javax.persistence.EntityManager; -import javax.persistence.PersistenceContext; +import jakarta.ejb.Stateless; +import jakarta.persistence.EntityManager; +import jakarta.persistence.PersistenceContext; /** * diff --git a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/beans/RelationshipTypeFacade.java b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/beans/RelationshipTypeFacade.java index 1eab26cec..fb7d66016 100644 --- a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/beans/RelationshipTypeFacade.java +++ b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/beans/RelationshipTypeFacade.java @@ -7,10 +7,10 @@ import gov.anl.aps.cdb.portal.constants.ItemElementRelationshipTypeNames; import gov.anl.aps.cdb.portal.model.db.entities.RelationshipType; import gov.anl.aps.cdb.portal.utilities.SessionUtility; -import javax.ejb.Stateless; -import javax.persistence.EntityManager; -import javax.persistence.NoResultException; -import javax.persistence.PersistenceContext; +import jakarta.ejb.Stateless; +import jakarta.persistence.EntityManager; +import jakarta.persistence.NoResultException; +import jakarta.persistence.PersistenceContext; /** * diff --git a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/beans/RelationshipTypeHandlerFacade.java b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/beans/RelationshipTypeHandlerFacade.java index 209d23375..50dea4f23 100644 --- a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/beans/RelationshipTypeHandlerFacade.java +++ b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/beans/RelationshipTypeHandlerFacade.java @@ -5,9 +5,9 @@ package gov.anl.aps.cdb.portal.model.db.beans; import gov.anl.aps.cdb.portal.model.db.entities.RelationshipTypeHandler; -import javax.ejb.Stateless; -import javax.persistence.EntityManager; -import javax.persistence.PersistenceContext; +import jakarta.ejb.Stateless; +import jakarta.persistence.EntityManager; +import jakarta.persistence.PersistenceContext; /** * diff --git a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/beans/ResourceTypeCategoryFacade.java b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/beans/ResourceTypeCategoryFacade.java index 2ea95abe4..d3f485eb9 100644 --- a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/beans/ResourceTypeCategoryFacade.java +++ b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/beans/ResourceTypeCategoryFacade.java @@ -5,9 +5,9 @@ package gov.anl.aps.cdb.portal.model.db.beans; import gov.anl.aps.cdb.portal.model.db.entities.ResourceTypeCategory; -import javax.ejb.Stateless; -import javax.persistence.EntityManager; -import javax.persistence.PersistenceContext; +import jakarta.ejb.Stateless; +import jakarta.persistence.EntityManager; +import jakarta.persistence.PersistenceContext; /** * diff --git a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/beans/ResourceTypeFacade.java b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/beans/ResourceTypeFacade.java index 5b2906c0a..4f2c72a68 100644 --- a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/beans/ResourceTypeFacade.java +++ b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/beans/ResourceTypeFacade.java @@ -5,9 +5,9 @@ package gov.anl.aps.cdb.portal.model.db.beans; import gov.anl.aps.cdb.portal.model.db.entities.ResourceType; -import javax.ejb.Stateless; -import javax.persistence.EntityManager; -import javax.persistence.PersistenceContext; +import jakarta.ejb.Stateless; +import jakarta.persistence.EntityManager; +import jakarta.persistence.PersistenceContext; /** * diff --git a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/beans/RoleTypeFacade.java b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/beans/RoleTypeFacade.java index 2579c54c7..b09ffd805 100644 --- a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/beans/RoleTypeFacade.java +++ b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/beans/RoleTypeFacade.java @@ -6,9 +6,9 @@ import gov.anl.aps.cdb.portal.model.db.entities.RoleType; import gov.anl.aps.cdb.portal.utilities.SessionUtility; -import javax.ejb.Stateless; -import javax.persistence.EntityManager; -import javax.persistence.PersistenceContext; +import jakarta.ejb.Stateless; +import jakarta.persistence.EntityManager; +import jakarta.persistence.PersistenceContext; /** * diff --git a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/beans/SettingTypeFacade.java b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/beans/SettingTypeFacade.java index 7dd204919..8cf764fb8 100644 --- a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/beans/SettingTypeFacade.java +++ b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/beans/SettingTypeFacade.java @@ -6,9 +6,9 @@ import gov.anl.aps.cdb.portal.model.db.entities.SettingType; import gov.anl.aps.cdb.portal.utilities.SessionUtility; -import javax.ejb.Stateless; -import javax.persistence.EntityManager; -import javax.persistence.PersistenceContext; +import jakarta.ejb.Stateless; +import jakarta.persistence.EntityManager; +import jakarta.persistence.PersistenceContext; /** * diff --git a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/beans/SourceFacade.java b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/beans/SourceFacade.java index 47f48449c..5bfdd4b35 100644 --- a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/beans/SourceFacade.java +++ b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/beans/SourceFacade.java @@ -8,10 +8,10 @@ import gov.anl.aps.cdb.portal.model.db.entities.Source; import gov.anl.aps.cdb.portal.utilities.SessionUtility; import java.util.List; -import javax.ejb.Stateless; -import javax.persistence.EntityManager; -import javax.persistence.NoResultException; -import javax.persistence.PersistenceContext; +import jakarta.ejb.Stateless; +import jakarta.persistence.EntityManager; +import jakarta.persistence.NoResultException; +import jakarta.persistence.PersistenceContext; /** * @@ -78,9 +78,9 @@ public Source findUniqueByName(String name, String filterDomainName) throws CdbE public List findAllSortedByName() { - javax.persistence.criteria.CriteriaBuilder cb = getEntityManager().getCriteriaBuilder(); - javax.persistence.criteria.CriteriaQuery cq = cb.createQuery(); - javax.persistence.criteria.Root s = cq.from(Source.class); + jakarta.persistence.criteria.CriteriaBuilder cb = getEntityManager().getCriteriaBuilder(); + jakarta.persistence.criteria.CriteriaQuery cq = cb.createQuery(); + jakarta.persistence.criteria.Root s = cq.from(Source.class); cq.select(s); cq.orderBy(cb.asc(s.get("name"))); return getEntityManager().createQuery(cq).getResultList(); diff --git a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/beans/UserGroupFacade.java b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/beans/UserGroupFacade.java index 0d190f834..4a74eb02d 100644 --- a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/beans/UserGroupFacade.java +++ b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/beans/UserGroupFacade.java @@ -8,10 +8,10 @@ import gov.anl.aps.cdb.portal.model.db.entities.UserGroup; import gov.anl.aps.cdb.portal.utilities.SessionUtility; import java.util.List; -import javax.ejb.Stateless; -import javax.persistence.EntityManager; -import javax.persistence.NoResultException; -import javax.persistence.PersistenceContext; +import jakarta.ejb.Stateless; +import jakarta.persistence.EntityManager; +import jakarta.persistence.NoResultException; +import jakarta.persistence.PersistenceContext; /** * diff --git a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/beans/UserGroupSettingFacade.java b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/beans/UserGroupSettingFacade.java index c2be8019b..e527795ba 100644 --- a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/beans/UserGroupSettingFacade.java +++ b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/beans/UserGroupSettingFacade.java @@ -5,9 +5,9 @@ package gov.anl.aps.cdb.portal.model.db.beans; import gov.anl.aps.cdb.portal.model.db.entities.UserGroupSetting; -import javax.ejb.Stateless; -import javax.persistence.EntityManager; -import javax.persistence.PersistenceContext; +import jakarta.ejb.Stateless; +import jakarta.persistence.EntityManager; +import jakarta.persistence.PersistenceContext; /** * diff --git a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/beans/UserInfoFacade.java b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/beans/UserInfoFacade.java index 5ba260451..72e4735de 100644 --- a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/beans/UserInfoFacade.java +++ b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/beans/UserInfoFacade.java @@ -9,10 +9,10 @@ import gov.anl.aps.cdb.portal.model.db.entities.UserInfo; import gov.anl.aps.cdb.portal.utilities.SessionUtility; import java.util.List; -import javax.ejb.Stateless; -import javax.persistence.EntityManager; -import javax.persistence.NoResultException; -import javax.persistence.PersistenceContext; +import jakarta.ejb.Stateless; +import jakarta.persistence.EntityManager; +import jakarta.persistence.NoResultException; +import jakarta.persistence.PersistenceContext; /** * diff --git a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/beans/UserRoleFacade.java b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/beans/UserRoleFacade.java index 6ebb6a6f2..2913fc641 100644 --- a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/beans/UserRoleFacade.java +++ b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/beans/UserRoleFacade.java @@ -6,9 +6,9 @@ import gov.anl.aps.cdb.portal.model.db.entities.UserRole; import gov.anl.aps.cdb.portal.utilities.SessionUtility; -import javax.ejb.Stateless; -import javax.persistence.EntityManager; -import javax.persistence.PersistenceContext; +import jakarta.ejb.Stateless; +import jakarta.persistence.EntityManager; +import jakarta.persistence.PersistenceContext; /** * diff --git a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/beans/UserSettingFacade.java b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/beans/UserSettingFacade.java index 63e83b3ba..17250d1c2 100644 --- a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/beans/UserSettingFacade.java +++ b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/beans/UserSettingFacade.java @@ -6,9 +6,9 @@ import gov.anl.aps.cdb.portal.model.db.entities.UserSetting; import gov.anl.aps.cdb.portal.utilities.SessionUtility; -import javax.ejb.Stateless; -import javax.persistence.EntityManager; -import javax.persistence.PersistenceContext; +import jakarta.ejb.Stateless; +import jakarta.persistence.EntityManager; +import jakarta.persistence.PersistenceContext; /** * diff --git a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/entities/AllowedPropertyMetadataValue.java b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/entities/AllowedPropertyMetadataValue.java index 14cba5da4..05ba5a883 100644 --- a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/entities/AllowedPropertyMetadataValue.java +++ b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/entities/AllowedPropertyMetadataValue.java @@ -6,21 +6,21 @@ import com.fasterxml.jackson.annotation.JsonIgnore; import java.io.Serializable; -import javax.persistence.Basic; -import javax.persistence.Column; -import javax.persistence.Entity; -import javax.persistence.GeneratedValue; -import javax.persistence.GenerationType; -import javax.persistence.Id; -import javax.persistence.JoinColumn; -import javax.persistence.ManyToOne; -import javax.persistence.NamedQueries; -import javax.persistence.NamedQuery; -import javax.persistence.Table; -import javax.validation.constraints.NotNull; -import javax.validation.constraints.Size; -import javax.xml.bind.annotation.XmlRootElement; -import javax.xml.bind.annotation.XmlTransient; +import jakarta.persistence.Basic; +import jakarta.persistence.Column; +import jakarta.persistence.Entity; +import jakarta.persistence.GeneratedValue; +import jakarta.persistence.GenerationType; +import jakarta.persistence.Id; +import jakarta.persistence.JoinColumn; +import jakarta.persistence.ManyToOne; +import jakarta.persistence.NamedQueries; +import jakarta.persistence.NamedQuery; +import jakarta.persistence.Table; +import jakarta.validation.constraints.NotNull; +import jakarta.validation.constraints.Size; +import jakarta.xml.bind.annotation.XmlRootElement; +import jakarta.xml.bind.annotation.XmlTransient; /** * diff --git a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/entities/AllowedPropertyValue.java b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/entities/AllowedPropertyValue.java index ca9f942fd..e3d187271 100644 --- a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/entities/AllowedPropertyValue.java +++ b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/entities/AllowedPropertyValue.java @@ -6,19 +6,19 @@ import com.fasterxml.jackson.annotation.JsonIgnore; import java.io.Serializable; -import javax.persistence.Basic; -import javax.persistence.Column; -import javax.persistence.Entity; -import javax.persistence.GeneratedValue; -import javax.persistence.GenerationType; -import javax.persistence.Id; -import javax.persistence.JoinColumn; -import javax.persistence.ManyToOne; -import javax.persistence.NamedQueries; -import javax.persistence.NamedQuery; -import javax.persistence.Table; -import javax.validation.constraints.Size; -import javax.xml.bind.annotation.XmlRootElement; +import jakarta.persistence.Basic; +import jakarta.persistence.Column; +import jakarta.persistence.Entity; +import jakarta.persistence.GeneratedValue; +import jakarta.persistence.GenerationType; +import jakarta.persistence.Id; +import jakarta.persistence.JoinColumn; +import jakarta.persistence.ManyToOne; +import jakarta.persistence.NamedQueries; +import jakarta.persistence.NamedQuery; +import jakarta.persistence.Table; +import jakarta.validation.constraints.Size; +import jakarta.xml.bind.annotation.XmlRootElement; /** * diff --git a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/entities/Attachment.java b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/entities/Attachment.java index e3ea238db..549afe291 100644 --- a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/entities/Attachment.java +++ b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/entities/Attachment.java @@ -9,20 +9,20 @@ import gov.anl.aps.cdb.portal.utilities.StorageUtility; import java.io.Serializable; import java.util.List; -import javax.persistence.Basic; -import javax.persistence.Column; -import javax.persistence.Entity; -import javax.persistence.GeneratedValue; -import javax.persistence.GenerationType; -import javax.persistence.Id; -import javax.persistence.ManyToMany; -import javax.persistence.NamedQueries; -import javax.persistence.NamedQuery; -import javax.persistence.Table; -import javax.validation.constraints.NotNull; -import javax.validation.constraints.Size; -import javax.xml.bind.annotation.XmlRootElement; -import javax.xml.bind.annotation.XmlTransient; +import jakarta.persistence.Basic; +import jakarta.persistence.Column; +import jakarta.persistence.Entity; +import jakarta.persistence.GeneratedValue; +import jakarta.persistence.GenerationType; +import jakarta.persistence.Id; +import jakarta.persistence.ManyToMany; +import jakarta.persistence.NamedQueries; +import jakarta.persistence.NamedQuery; +import jakarta.persistence.Table; +import jakarta.validation.constraints.NotNull; +import jakarta.validation.constraints.Size; +import jakarta.xml.bind.annotation.XmlRootElement; +import jakarta.xml.bind.annotation.XmlTransient; /** * diff --git a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/entities/Connector.java b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/entities/Connector.java index 8b27e56cf..c7e8db7b8 100644 --- a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/entities/Connector.java +++ b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/entities/Connector.java @@ -9,25 +9,25 @@ import java.io.Serializable; import java.util.ArrayList; import java.util.List; -import javax.persistence.Basic; -import javax.persistence.CascadeType; -import javax.persistence.Column; -import javax.persistence.Entity; -import javax.persistence.GeneratedValue; -import javax.persistence.GenerationType; -import javax.persistence.Id; -import javax.persistence.JoinColumn; -import javax.persistence.JoinTable; -import javax.persistence.ManyToMany; -import javax.persistence.ManyToOne; -import javax.persistence.NamedQueries; -import javax.persistence.NamedQuery; -import javax.persistence.OneToMany; -import javax.persistence.Table; -import javax.validation.constraints.NotNull; -import javax.validation.constraints.Size; -import javax.xml.bind.annotation.XmlRootElement; -import javax.xml.bind.annotation.XmlTransient; +import jakarta.persistence.Basic; +import jakarta.persistence.CascadeType; +import jakarta.persistence.Column; +import jakarta.persistence.Entity; +import jakarta.persistence.GeneratedValue; +import jakarta.persistence.GenerationType; +import jakarta.persistence.Id; +import jakarta.persistence.JoinColumn; +import jakarta.persistence.JoinTable; +import jakarta.persistence.ManyToMany; +import jakarta.persistence.ManyToOne; +import jakarta.persistence.NamedQueries; +import jakarta.persistence.NamedQuery; +import jakarta.persistence.OneToMany; +import jakarta.persistence.Table; +import jakarta.validation.constraints.NotNull; +import jakarta.validation.constraints.Size; +import jakarta.xml.bind.annotation.XmlRootElement; +import jakarta.xml.bind.annotation.XmlTransient; /** * diff --git a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/entities/ConnectorType.java b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/entities/ConnectorType.java index d1f507265..e4ffd06e2 100644 --- a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/entities/ConnectorType.java +++ b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/entities/ConnectorType.java @@ -7,20 +7,20 @@ import com.fasterxml.jackson.annotation.JsonIgnore; import java.io.Serializable; import java.util.List; -import javax.persistence.Basic; -import javax.persistence.Cacheable; -import javax.persistence.Entity; -import javax.persistence.GeneratedValue; -import javax.persistence.GenerationType; -import javax.persistence.Id; -import javax.persistence.NamedQueries; -import javax.persistence.NamedQuery; -import javax.persistence.OneToMany; -import javax.persistence.Table; -import javax.validation.constraints.NotNull; -import javax.validation.constraints.Size; -import javax.xml.bind.annotation.XmlRootElement; -import javax.xml.bind.annotation.XmlTransient; +import jakarta.persistence.Basic; +import jakarta.persistence.Cacheable; +import jakarta.persistence.Entity; +import jakarta.persistence.GeneratedValue; +import jakarta.persistence.GenerationType; +import jakarta.persistence.Id; +import jakarta.persistence.NamedQueries; +import jakarta.persistence.NamedQuery; +import jakarta.persistence.OneToMany; +import jakarta.persistence.Table; +import jakarta.validation.constraints.NotNull; +import jakarta.validation.constraints.Size; +import jakarta.xml.bind.annotation.XmlRootElement; +import jakarta.xml.bind.annotation.XmlTransient; /** * diff --git a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/entities/Domain.java b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/entities/Domain.java index a1640e480..75ffbf00f 100644 --- a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/entities/Domain.java +++ b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/entities/Domain.java @@ -8,26 +8,26 @@ import gov.anl.aps.cdb.portal.constants.PortalStyles; import java.io.Serializable; import java.util.List; -import javax.persistence.Basic; -import javax.persistence.Cacheable; -import javax.persistence.CascadeType; -import javax.persistence.Column; -import javax.persistence.Entity; -import javax.persistence.GeneratedValue; -import javax.persistence.GenerationType; -import javax.persistence.Id; -import javax.persistence.JoinColumn; -import javax.persistence.JoinTable; -import javax.persistence.ManyToMany; -import javax.persistence.NamedQueries; -import javax.persistence.NamedQuery; -import javax.persistence.OneToMany; -import javax.persistence.OrderBy; -import javax.persistence.Table; -import javax.validation.constraints.NotNull; -import javax.validation.constraints.Size; -import javax.xml.bind.annotation.XmlRootElement; -import javax.xml.bind.annotation.XmlTransient; +import jakarta.persistence.Basic; +import jakarta.persistence.Cacheable; +import jakarta.persistence.CascadeType; +import jakarta.persistence.Column; +import jakarta.persistence.Entity; +import jakarta.persistence.GeneratedValue; +import jakarta.persistence.GenerationType; +import jakarta.persistence.Id; +import jakarta.persistence.JoinColumn; +import jakarta.persistence.JoinTable; +import jakarta.persistence.ManyToMany; +import jakarta.persistence.NamedQueries; +import jakarta.persistence.NamedQuery; +import jakarta.persistence.OneToMany; +import jakarta.persistence.OrderBy; +import jakarta.persistence.Table; +import jakarta.validation.constraints.NotNull; +import jakarta.validation.constraints.Size; +import jakarta.xml.bind.annotation.XmlRootElement; +import jakarta.xml.bind.annotation.XmlTransient; /** * diff --git a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/entities/EntityInfo.java b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/entities/EntityInfo.java index b4d81f82e..bb12177da 100644 --- a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/entities/EntityInfo.java +++ b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/entities/EntityInfo.java @@ -8,24 +8,24 @@ import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import java.io.Serializable; import java.util.Date; -import javax.persistence.Basic; -import javax.persistence.CascadeType; -import javax.persistence.Column; -import javax.persistence.Entity; -import javax.persistence.FetchType; -import javax.persistence.GeneratedValue; -import javax.persistence.GenerationType; -import javax.persistence.Id; -import javax.persistence.JoinColumn; -import javax.persistence.ManyToOne; -import javax.persistence.NamedQueries; -import javax.persistence.NamedQuery; -import javax.persistence.OneToOne; -import javax.persistence.Table; -import javax.persistence.Temporal; -import javax.persistence.TemporalType; -import javax.validation.constraints.NotNull; -import javax.xml.bind.annotation.XmlRootElement; +import jakarta.persistence.Basic; +import jakarta.persistence.CascadeType; +import jakarta.persistence.Column; +import jakarta.persistence.Entity; +import jakarta.persistence.FetchType; +import jakarta.persistence.GeneratedValue; +import jakarta.persistence.GenerationType; +import jakarta.persistence.Id; +import jakarta.persistence.JoinColumn; +import jakarta.persistence.ManyToOne; +import jakarta.persistence.NamedQueries; +import jakarta.persistence.NamedQuery; +import jakarta.persistence.OneToOne; +import jakarta.persistence.Table; +import jakarta.persistence.Temporal; +import jakarta.persistence.TemporalType; +import jakarta.validation.constraints.NotNull; +import jakarta.xml.bind.annotation.XmlRootElement; /** * diff --git a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/entities/EntityType.java b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/entities/EntityType.java index f028441db..5e45fed5d 100644 --- a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/entities/EntityType.java +++ b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/entities/EntityType.java @@ -7,22 +7,22 @@ import com.fasterxml.jackson.annotation.JsonIgnore; import java.io.Serializable; import java.util.List; -import javax.persistence.Basic; -import javax.persistence.Cacheable; -import javax.persistence.Entity; -import javax.persistence.GeneratedValue; -import javax.persistence.GenerationType; -import javax.persistence.Id; -import javax.persistence.JoinColumn; -import javax.persistence.JoinTable; -import javax.persistence.ManyToMany; -import javax.persistence.NamedQueries; -import javax.persistence.NamedQuery; -import javax.persistence.Table; -import javax.validation.constraints.NotNull; -import javax.validation.constraints.Size; -import javax.xml.bind.annotation.XmlRootElement; -import javax.xml.bind.annotation.XmlTransient; +import jakarta.persistence.Basic; +import jakarta.persistence.Cacheable; +import jakarta.persistence.Entity; +import jakarta.persistence.GeneratedValue; +import jakarta.persistence.GenerationType; +import jakarta.persistence.Id; +import jakarta.persistence.JoinColumn; +import jakarta.persistence.JoinTable; +import jakarta.persistence.ManyToMany; +import jakarta.persistence.NamedQueries; +import jakarta.persistence.NamedQuery; +import jakarta.persistence.Table; +import jakarta.validation.constraints.NotNull; +import jakarta.validation.constraints.Size; +import jakarta.xml.bind.annotation.XmlRootElement; +import jakarta.xml.bind.annotation.XmlTransient; /** * diff --git a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/entities/Item.java b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/entities/Item.java index c10f3c817..7c7ea1fdf 100644 --- a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/entities/Item.java +++ b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/entities/Item.java @@ -20,6 +20,9 @@ import gov.anl.aps.cdb.portal.model.db.beans.PropertyTypeFacade; import gov.anl.aps.cdb.portal.model.db.entities.comparator.ItemElementRelevantSortOrderComparator; import gov.anl.aps.cdb.portal.model.db.utilities.ItemElementUtility; +import gov.anl.aps.cdb.mqtt.metadata.ItemLogChange; +import gov.anl.aps.cdb.mqtt.metadata.LogAttachmentChange; +import gov.anl.aps.cdb.mqtt.metadata.PropertyValueChange; import gov.anl.aps.cdb.portal.utilities.SearchResult; import gov.anl.aps.cdb.portal.view.objects.ItemMetadataFieldInfo; import gov.anl.aps.cdb.portal.view.objects.ItemMetadataPropertyInfo; @@ -34,36 +37,36 @@ import java.util.Objects; import java.util.regex.Pattern; import java.util.stream.Collectors; -import javax.persistence.Basic; -import javax.persistence.CascadeType; -import javax.persistence.Column; -import javax.persistence.ColumnResult; -import javax.persistence.Entity; -import javax.persistence.GeneratedValue; -import javax.persistence.GenerationType; -import javax.persistence.Id; -import javax.persistence.JoinColumn; -import javax.persistence.JoinTable; -import javax.persistence.ManyToMany; -import javax.persistence.DiscriminatorColumn; -import javax.persistence.EntityResult; -import javax.persistence.ManyToOne; -import javax.persistence.Inheritance; -import javax.persistence.InheritanceType; -import javax.persistence.NamedQueries; -import javax.persistence.NamedQuery; -import javax.persistence.NamedStoredProcedureQueries; -import javax.persistence.NamedStoredProcedureQuery; -import javax.persistence.OneToMany; -import javax.persistence.OrderBy; -import javax.persistence.ParameterMode; -import javax.persistence.SqlResultSetMapping; -import javax.persistence.SqlResultSetMappings; -import javax.persistence.StoredProcedureParameter; -import javax.persistence.Table; -import javax.validation.constraints.Min; -import javax.validation.constraints.Size; -import javax.xml.bind.annotation.XmlTransient; +import jakarta.persistence.Basic; +import jakarta.persistence.CascadeType; +import jakarta.persistence.Column; +import jakarta.persistence.ColumnResult; +import jakarta.persistence.Entity; +import jakarta.persistence.GeneratedValue; +import jakarta.persistence.GenerationType; +import jakarta.persistence.Id; +import jakarta.persistence.JoinColumn; +import jakarta.persistence.JoinTable; +import jakarta.persistence.ManyToMany; +import jakarta.persistence.DiscriminatorColumn; +import jakarta.persistence.EntityResult; +import jakarta.persistence.ManyToOne; +import jakarta.persistence.Inheritance; +import jakarta.persistence.InheritanceType; +import jakarta.persistence.NamedQueries; +import jakarta.persistence.NamedQuery; +import jakarta.persistence.NamedStoredProcedureQueries; +import jakarta.persistence.NamedStoredProcedureQuery; +import jakarta.persistence.OneToMany; +import jakarta.persistence.OrderBy; +import jakarta.persistence.ParameterMode; +import jakarta.persistence.SqlResultSetMapping; +import jakarta.persistence.SqlResultSetMappings; +import jakarta.persistence.StoredProcedureParameter; +import jakarta.persistence.Table; +import jakarta.validation.constraints.Min; +import jakarta.validation.constraints.Size; +import jakarta.xml.bind.annotation.XmlTransient; import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.Logger; import org.primefaces.model.TreeNode; @@ -504,6 +507,12 @@ ) public class Item extends CdbDomainEntity implements Serializable { + private transient List pendingPropertyValueChanges = new ArrayList<>(); + private transient List pendingLogChanges = new ArrayList<>(); + // Self-element logs without IDs at save time; resolved to persisted logs afterward. + private transient List pendingAddedLogs = new ArrayList<>(); + private transient List pendingLogAttachmentChanges = new ArrayList<>(); + private static final Logger LOGGER = LogManager.getLogger(Item.class.getName()); public static final String ATTRIBUTE_DOMAIN_NAME = "domainName"; @@ -1595,6 +1604,48 @@ public void setPropertyValueList(List propertyValueList) { this.getSelfElement().setPropertyValueList(propertyValueList); } + @JsonIgnore + public void setPendingPropertyValueChanges(List changes) { + pendingPropertyValueChanges = changes == null ? new ArrayList<>() : new ArrayList<>(changes); + } + + @JsonIgnore + public List getPendingPropertyValueChanges() { + return pendingPropertyValueChanges == null + ? new ArrayList<>() : new ArrayList<>(pendingPropertyValueChanges); + } + + @JsonIgnore + public void setPendingLogChanges(List changes) { + pendingLogChanges = changes == null ? new ArrayList<>() : new ArrayList<>(changes); + } + + @JsonIgnore + public List getPendingLogChanges() { + return pendingLogChanges == null ? new ArrayList<>() : new ArrayList<>(pendingLogChanges); + } + + @JsonIgnore + public void setPendingAddedLogs(List logs) { + pendingAddedLogs = logs == null ? new ArrayList<>() : new ArrayList<>(logs); + } + + @JsonIgnore + public List getPendingAddedLogs() { + return pendingAddedLogs == null ? new ArrayList<>() : new ArrayList<>(pendingAddedLogs); + } + + @JsonIgnore + public void setPendingLogAttachmentChanges(List changes) { + pendingLogAttachmentChanges = changes == null ? new ArrayList<>() : new ArrayList<>(changes); + } + + @JsonIgnore + public List getPendingLogAttachmentChanges() { + return pendingLogAttachmentChanges == null + ? new ArrayList<>() : new ArrayList<>(pendingLogAttachmentChanges); + } + @Override public List getPropertyValueDisplayList() { if (propertyValueDisplayList == null) { @@ -2023,7 +2074,8 @@ public void verifyAllowedValuesValidForCoreMetadata() throws CdbException { PropertyTypeMetadata ptMeta = getCorePropertyTypeMetadata(key); String value = getCoreMetadataPropertyFieldValue(key); - if (value == null) { + // Blank means unset; setCoreMetadataPropertyFieldValue stores null as "". + if (value == null || value.isEmpty()) { continue; } diff --git a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/entities/ItemCategory.java b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/entities/ItemCategory.java index 9ec040d07..f65e06ace 100644 --- a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/entities/ItemCategory.java +++ b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/entities/ItemCategory.java @@ -10,25 +10,25 @@ import java.io.Serializable; import java.util.List; import java.util.regex.Pattern; -import javax.persistence.Basic; -import javax.persistence.Cacheable; -import javax.persistence.Column; -import javax.persistence.Entity; -import javax.persistence.GeneratedValue; -import javax.persistence.GenerationType; -import javax.persistence.Id; -import javax.persistence.JoinColumn; -import javax.persistence.JoinTable; -import javax.persistence.ManyToMany; -import javax.persistence.ManyToOne; -import javax.persistence.NamedQueries; -import javax.persistence.NamedQuery; -import javax.persistence.OrderBy; -import javax.persistence.Table; -import javax.validation.constraints.NotNull; -import javax.validation.constraints.Size; -import javax.xml.bind.annotation.XmlRootElement; -import javax.xml.bind.annotation.XmlTransient; +import jakarta.persistence.Basic; +import jakarta.persistence.Cacheable; +import jakarta.persistence.Column; +import jakarta.persistence.Entity; +import jakarta.persistence.GeneratedValue; +import jakarta.persistence.GenerationType; +import jakarta.persistence.Id; +import jakarta.persistence.JoinColumn; +import jakarta.persistence.JoinTable; +import jakarta.persistence.ManyToMany; +import jakarta.persistence.ManyToOne; +import jakarta.persistence.NamedQueries; +import jakarta.persistence.NamedQuery; +import jakarta.persistence.OrderBy; +import jakarta.persistence.Table; +import jakarta.validation.constraints.NotNull; +import jakarta.validation.constraints.Size; +import jakarta.xml.bind.annotation.XmlRootElement; +import jakarta.xml.bind.annotation.XmlTransient; /** * diff --git a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/entities/ItemConnector.java b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/entities/ItemConnector.java index 8b5b0cb3f..4fc426db4 100644 --- a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/entities/ItemConnector.java +++ b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/entities/ItemConnector.java @@ -11,23 +11,23 @@ import java.io.Serializable; import java.util.ArrayList; import java.util.List; -import javax.persistence.Basic; -import javax.persistence.Cacheable; -import javax.persistence.Entity; -import javax.persistence.GeneratedValue; -import javax.persistence.GenerationType; -import javax.persistence.Id; -import javax.persistence.JoinColumn; -import javax.persistence.JoinTable; -import javax.persistence.ManyToMany; -import javax.persistence.ManyToOne; -import javax.persistence.NamedQueries; -import javax.persistence.NamedQuery; -import javax.persistence.OneToMany; -import javax.persistence.Table; -import javax.validation.constraints.Size; -import javax.xml.bind.annotation.XmlRootElement; -import javax.xml.bind.annotation.XmlTransient; +import jakarta.persistence.Basic; +import jakarta.persistence.Cacheable; +import jakarta.persistence.Entity; +import jakarta.persistence.GeneratedValue; +import jakarta.persistence.GenerationType; +import jakarta.persistence.Id; +import jakarta.persistence.JoinColumn; +import jakarta.persistence.JoinTable; +import jakarta.persistence.ManyToMany; +import jakarta.persistence.ManyToOne; +import jakarta.persistence.NamedQueries; +import jakarta.persistence.NamedQuery; +import jakarta.persistence.OneToMany; +import jakarta.persistence.Table; +import jakarta.validation.constraints.Size; +import jakarta.xml.bind.annotation.XmlRootElement; +import jakarta.xml.bind.annotation.XmlTransient; /** * diff --git a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/entities/ItemDomainApp.java b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/entities/ItemDomainApp.java index 508b55255..15d58d8a1 100644 --- a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/entities/ItemDomainApp.java +++ b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/entities/ItemDomainApp.java @@ -6,8 +6,8 @@ import gov.anl.aps.cdb.portal.constants.ItemDomainName; import gov.anl.aps.cdb.portal.controllers.utilities.ItemDomainAppControllerUtility; -import javax.persistence.DiscriminatorValue; -import javax.persistence.Entity; +import jakarta.persistence.DiscriminatorValue; +import jakarta.persistence.Entity; /** * diff --git a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/entities/ItemDomainAppDeployment.java b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/entities/ItemDomainAppDeployment.java index 4ab8e67ed..0c4611b2a 100644 --- a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/entities/ItemDomainAppDeployment.java +++ b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/entities/ItemDomainAppDeployment.java @@ -6,8 +6,8 @@ import gov.anl.aps.cdb.portal.constants.ItemDomainName; import gov.anl.aps.cdb.portal.controllers.utilities.ItemDomainAppDeploymentControllerUtility; -import javax.persistence.DiscriminatorValue; -import javax.persistence.Entity; +import jakarta.persistence.DiscriminatorValue; +import jakarta.persistence.Entity; /** * diff --git a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/entities/ItemDomainCableCatalog.java b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/entities/ItemDomainCableCatalog.java index 8eb0d7be4..287a5cce2 100644 --- a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/entities/ItemDomainCableCatalog.java +++ b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/entities/ItemDomainCableCatalog.java @@ -13,8 +13,8 @@ import java.util.Collections; import java.util.Comparator; import java.util.List; -import javax.persistence.DiscriminatorValue; -import javax.persistence.Entity; +import jakarta.persistence.DiscriminatorValue; +import jakarta.persistence.Entity; import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.Logger; diff --git a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/entities/ItemDomainCableDesign.java b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/entities/ItemDomainCableDesign.java index c53147394..2eb9a9570 100644 --- a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/entities/ItemDomainCableDesign.java +++ b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/entities/ItemDomainCableDesign.java @@ -23,14 +23,14 @@ import java.util.Map; import java.util.regex.Pattern; import java.util.stream.Collectors; -import javax.persistence.DiscriminatorValue; -import javax.persistence.Entity; -import javax.persistence.NamedQueries; -import javax.persistence.NamedQuery; -import javax.persistence.NamedStoredProcedureQueries; -import javax.persistence.NamedStoredProcedureQuery; -import javax.persistence.ParameterMode; -import javax.persistence.StoredProcedureParameter; +import jakarta.persistence.DiscriminatorValue; +import jakarta.persistence.Entity; +import jakarta.persistence.NamedQueries; +import jakarta.persistence.NamedQuery; +import jakarta.persistence.NamedStoredProcedureQueries; +import jakarta.persistence.NamedStoredProcedureQuery; +import jakarta.persistence.ParameterMode; +import jakarta.persistence.StoredProcedureParameter; import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.Logger; diff --git a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/entities/ItemDomainCableInventory.java b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/entities/ItemDomainCableInventory.java index 929f74622..f98421243 100644 --- a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/entities/ItemDomainCableInventory.java +++ b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/entities/ItemDomainCableInventory.java @@ -10,8 +10,8 @@ import gov.anl.aps.cdb.portal.controllers.utilities.ItemDomainCableInventoryControllerUtility; import gov.anl.aps.cdb.portal.import_export.import_.objects.ValidInfo; import java.util.List; -import javax.persistence.DiscriminatorValue; -import javax.persistence.Entity; +import jakarta.persistence.DiscriminatorValue; +import jakarta.persistence.Entity; /** * diff --git a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/entities/ItemDomainCatalog.java b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/entities/ItemDomainCatalog.java index a159c70eb..310b11772 100644 --- a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/entities/ItemDomainCatalog.java +++ b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/entities/ItemDomainCatalog.java @@ -12,8 +12,8 @@ import gov.anl.aps.cdb.portal.controllers.utilities.ItemControllerUtility; import gov.anl.aps.cdb.portal.controllers.utilities.ItemDomainCatalogControllerUtility; import java.util.List; -import javax.persistence.DiscriminatorValue; -import javax.persistence.Entity; +import jakarta.persistence.DiscriminatorValue; +import jakarta.persistence.Entity; import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.Logger; diff --git a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/entities/ItemDomainInventory.java b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/entities/ItemDomainInventory.java index 470d4e8dd..1c609e123 100644 --- a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/entities/ItemDomainInventory.java +++ b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/entities/ItemDomainInventory.java @@ -11,8 +11,8 @@ import gov.anl.aps.cdb.portal.controllers.utilities.ItemControllerUtility; import gov.anl.aps.cdb.portal.controllers.utilities.ItemDomainInventoryControllerUtility; import java.util.List; -import javax.persistence.DiscriminatorValue; -import javax.persistence.Entity; +import jakarta.persistence.DiscriminatorValue; +import jakarta.persistence.Entity; /** * diff --git a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/entities/ItemDomainInventoryBase.java b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/entities/ItemDomainInventoryBase.java index 317ce6a4b..cbd007308 100644 --- a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/entities/ItemDomainInventoryBase.java +++ b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/entities/ItemDomainInventoryBase.java @@ -6,10 +6,12 @@ import com.fasterxml.jackson.annotation.JsonIgnore; import gov.anl.aps.cdb.common.exceptions.CdbException; +import gov.anl.aps.cdb.mqtt.metadata.InventoryAssemblyElementChange; import gov.anl.aps.cdb.portal.import_export.import_.objects.ValidInfo; import gov.anl.aps.cdb.portal.model.db.utilities.ItemElementUtility; import gov.anl.aps.cdb.portal.model.jsf.beans.SparePartsBean; import gov.anl.aps.cdb.portal.view.objects.InventoryBillOfMaterialItem; +import java.util.ArrayList; import java.util.List; import org.primefaces.model.TreeNode; @@ -22,6 +24,7 @@ public abstract class ItemDomainInventoryBase inventoryDomainBillOfMaterialList = null; + private transient List pendingAssemblyElementChanges = new ArrayList<>(); private transient InventoryBillOfMaterialItem containedInBOM; @@ -56,6 +59,16 @@ public List getInventoryDomainBillOfMaterialList() public void setInventoryDomainBillOfMaterialList(List inventoryDomainBillOfMaterialList) { this.inventoryDomainBillOfMaterialList = inventoryDomainBillOfMaterialList; } + + @JsonIgnore + public void addPendingAssemblyElementChange(InventoryAssemblyElementChange change) { + pendingAssemblyElementChanges.add(change); + } + + @JsonIgnore + public List getPendingAssemblyElementChanges() { + return new ArrayList<>(pendingAssemblyElementChanges); + } @JsonIgnore public abstract String generateUnitName(int itemNumber); diff --git a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/entities/ItemDomainLocation.java b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/entities/ItemDomainLocation.java index 9c0e18556..683b70d64 100644 --- a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/entities/ItemDomainLocation.java +++ b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/entities/ItemDomainLocation.java @@ -12,8 +12,8 @@ import gov.anl.aps.cdb.portal.controllers.utilities.ItemDomainLocationControllerUtility; import java.util.ArrayList; import java.util.List; -import javax.persistence.DiscriminatorValue; -import javax.persistence.Entity; +import jakarta.persistence.DiscriminatorValue; +import jakarta.persistence.Entity; import org.primefaces.model.menu.DefaultMenuModel; /** diff --git a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/entities/ItemDomainMAARC.java b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/entities/ItemDomainMAARC.java index 705711bc3..f5096b4fa 100644 --- a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/entities/ItemDomainMAARC.java +++ b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/entities/ItemDomainMAARC.java @@ -8,8 +8,8 @@ import gov.anl.aps.cdb.portal.constants.ItemDomainName; import gov.anl.aps.cdb.portal.controllers.utilities.ItemDomainMAARCControllerUtility; import java.util.List; -import javax.persistence.DiscriminatorValue; -import javax.persistence.Entity; +import jakarta.persistence.DiscriminatorValue; +import jakarta.persistence.Entity; /** * diff --git a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/entities/ItemDomainMachineDesign.java b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/entities/ItemDomainMachineDesign.java index 01f1d0492..6c990638e 100644 --- a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/entities/ItemDomainMachineDesign.java +++ b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/entities/ItemDomainMachineDesign.java @@ -23,6 +23,10 @@ import gov.anl.aps.cdb.portal.controllers.utilities.ItemDomainMachineDesignIOCControllerUtility; import gov.anl.aps.cdb.portal.controllers.utilities.ItemDomainMachineDesignInventoryControllerUtility; import gov.anl.aps.cdb.portal.controllers.utilities.ItemDomainMachineDesignPowerControllerUtility; +import gov.anl.aps.cdb.mqtt.metadata.MachineAddChange; +import gov.anl.aps.cdb.mqtt.metadata.MachineAssignedItemChange; +import gov.anl.aps.cdb.mqtt.metadata.MachineRepresentedElementChange; +import gov.anl.aps.cdb.mqtt.metadata.MachineTrashChange; import gov.anl.aps.cdb.portal.utilities.SearchResult; import gov.anl.aps.cdb.portal.view.objects.KeyValueObject; import gov.anl.aps.cdb.portal.view.objects.MachineDesignConnectorListObject; @@ -32,9 +36,9 @@ import java.util.Map; import java.util.Objects; import java.util.regex.Pattern; -import javax.faces.model.DataModel; -import javax.persistence.DiscriminatorValue; -import javax.persistence.Entity; +import jakarta.faces.model.DataModel; +import jakarta.persistence.DiscriminatorValue; +import jakarta.persistence.Entity; import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.Logger; @@ -63,6 +67,10 @@ public class ItemDomainMachineDesign extends LocatableStatusItem { private transient String importTemplateAndParameters = null; private transient Float importSortOrder = null; private transient String moveToTrashErrorMsg = null; + private transient MachineAssignedItemChange pendingAssignedItemChange; + private transient MachineRepresentedElementChange pendingRepresentedElementChange; + private transient MachineTrashChange pendingTrashChange; + private transient List pendingMachineAddChanges; private transient String moveToTrashWarningMsg = null; private transient ItemElement currentHierarchyItemElement; @@ -573,6 +581,16 @@ public void setAssignedItem(Item item) { selfElement.setContainedItem2(item); } + @JsonIgnore + public void setPendingAssignedItemChange(Item oldAssignedItem, boolean oldInstalled) { + pendingAssignedItemChange = new MachineAssignedItemChange(oldAssignedItem, oldInstalled); + } + + @JsonIgnore + public MachineAssignedItemChange getPendingAssignedItemChange() { + return pendingAssignedItemChange; + } + @JsonIgnore public String getAssignedItemString() { if (getAssignedItem() != null) { @@ -597,6 +615,42 @@ public void setRepresentsCatalogElement(ItemElement representsCatalogElement) { selfElement.setRepresentsItemElement(representsCatalogElement); } + @JsonIgnore + public void setPendingRepresentedElementChange(ItemElement oldRepresentedElement) { + pendingRepresentedElementChange = new MachineRepresentedElementChange(oldRepresentedElement); + } + + @JsonIgnore + public void setPendingRepresentedElementChange(ItemElement oldRepresentedElement, + ItemDomainMachineDesign sourceTemplate) { + pendingRepresentedElementChange = new MachineRepresentedElementChange( + oldRepresentedElement, sourceTemplate); + } + + @JsonIgnore + public MachineRepresentedElementChange getPendingRepresentedElementChange() { + return pendingRepresentedElementChange; + } + + @JsonIgnore + public void setPendingTrashChange(MachineTrashChange pendingTrashChange) { + this.pendingTrashChange = pendingTrashChange; + } + + @JsonIgnore + public MachineTrashChange getPendingTrashChange() { return pendingTrashChange; } + + @JsonIgnore + public void setPendingMachineAddChanges(List changes) { + pendingMachineAddChanges = changes == null ? null : new ArrayList<>(changes); + } + + @JsonIgnore + public List getPendingMachineAddChanges() { + return pendingMachineAddChanges == null + ? new ArrayList<>() : new ArrayList<>(pendingMachineAddChanges); + } + public boolean isIsHoused() { ItemElement selfElement = getSelfElement(); return selfElement.getIsHoused(); diff --git a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/entities/ItemElement.java b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/entities/ItemElement.java index 16921eba7..a30f5b23f 100644 --- a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/entities/ItemElement.java +++ b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/entities/ItemElement.java @@ -17,31 +17,31 @@ import java.util.ArrayList; import java.util.List; import java.util.regex.Pattern; -import javax.persistence.Basic; -import javax.persistence.CascadeType; -import javax.persistence.Column; -import javax.persistence.Entity; -import javax.persistence.FetchType; -import javax.persistence.GeneratedValue; -import javax.persistence.GenerationType; -import javax.persistence.Id; -import javax.persistence.JoinColumn; -import javax.persistence.JoinTable; -import javax.persistence.ManyToMany; -import javax.persistence.ManyToOne; -import javax.persistence.NamedQueries; -import javax.persistence.NamedQuery; -import javax.persistence.NamedStoredProcedureQueries; -import javax.persistence.NamedStoredProcedureQuery; -import javax.persistence.OneToMany; -import javax.persistence.OneToOne; -import javax.persistence.OrderBy; -import javax.persistence.ParameterMode; -import javax.persistence.StoredProcedureParameter; -import javax.persistence.Table; -import javax.validation.constraints.Size; -import javax.xml.bind.annotation.XmlRootElement; -import javax.xml.bind.annotation.XmlTransient; +import jakarta.persistence.Basic; +import jakarta.persistence.CascadeType; +import jakarta.persistence.Column; +import jakarta.persistence.Entity; +import jakarta.persistence.FetchType; +import jakarta.persistence.GeneratedValue; +import jakarta.persistence.GenerationType; +import jakarta.persistence.Id; +import jakarta.persistence.JoinColumn; +import jakarta.persistence.JoinTable; +import jakarta.persistence.ManyToMany; +import jakarta.persistence.ManyToOne; +import jakarta.persistence.NamedQueries; +import jakarta.persistence.NamedQuery; +import jakarta.persistence.NamedStoredProcedureQueries; +import jakarta.persistence.NamedStoredProcedureQuery; +import jakarta.persistence.OneToMany; +import jakarta.persistence.OneToOne; +import jakarta.persistence.OrderBy; +import jakarta.persistence.ParameterMode; +import jakarta.persistence.StoredProcedureParameter; +import jakarta.persistence.Table; +import jakarta.validation.constraints.Size; +import jakarta.xml.bind.annotation.XmlRootElement; +import jakarta.xml.bind.annotation.XmlTransient; import org.primefaces.model.TreeNode; /** diff --git a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/entities/ItemElementHistory.java b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/entities/ItemElementHistory.java index af9fd3f1e..e7130c0ae 100644 --- a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/entities/ItemElementHistory.java +++ b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/entities/ItemElementHistory.java @@ -7,23 +7,23 @@ import com.fasterxml.jackson.annotation.JsonIgnore; import java.io.Serializable; import java.util.Date; -import javax.persistence.Basic; -import javax.persistence.CascadeType; -import javax.persistence.Column; -import javax.persistence.Entity; -import javax.persistence.GeneratedValue; -import javax.persistence.GenerationType; -import javax.persistence.Id; -import javax.persistence.JoinColumn; -import javax.persistence.ManyToOne; -import javax.persistence.NamedQueries; -import javax.persistence.NamedQuery; -import javax.persistence.Table; -import javax.persistence.Temporal; -import javax.persistence.TemporalType; -import javax.validation.constraints.Size; -import javax.xml.bind.annotation.XmlRootElement; -import javax.xml.bind.annotation.XmlTransient; +import jakarta.persistence.Basic; +import jakarta.persistence.CascadeType; +import jakarta.persistence.Column; +import jakarta.persistence.Entity; +import jakarta.persistence.GeneratedValue; +import jakarta.persistence.GenerationType; +import jakarta.persistence.Id; +import jakarta.persistence.JoinColumn; +import jakarta.persistence.ManyToOne; +import jakarta.persistence.NamedQueries; +import jakarta.persistence.NamedQuery; +import jakarta.persistence.Table; +import jakarta.persistence.Temporal; +import jakarta.persistence.TemporalType; +import jakarta.validation.constraints.Size; +import jakarta.xml.bind.annotation.XmlRootElement; +import jakarta.xml.bind.annotation.XmlTransient; /** * diff --git a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/entities/ItemElementRelationship.java b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/entities/ItemElementRelationship.java index 65738d264..4e0e29267 100644 --- a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/entities/ItemElementRelationship.java +++ b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/entities/ItemElementRelationship.java @@ -10,24 +10,24 @@ import java.io.Serializable; import java.util.ArrayList; import java.util.List; -import javax.persistence.Basic; -import javax.persistence.CascadeType; -import javax.persistence.Column; -import javax.persistence.Entity; -import javax.persistence.GeneratedValue; -import javax.persistence.GenerationType; -import javax.persistence.Id; -import javax.persistence.JoinColumn; -import javax.persistence.JoinTable; -import javax.persistence.ManyToMany; -import javax.persistence.ManyToOne; -import javax.persistence.NamedQueries; -import javax.persistence.NamedQuery; -import javax.persistence.OneToMany; -import javax.persistence.Table; -import javax.validation.constraints.Size; -import javax.xml.bind.annotation.XmlRootElement; -import javax.xml.bind.annotation.XmlTransient; +import jakarta.persistence.Basic; +import jakarta.persistence.CascadeType; +import jakarta.persistence.Column; +import jakarta.persistence.Entity; +import jakarta.persistence.GeneratedValue; +import jakarta.persistence.GenerationType; +import jakarta.persistence.Id; +import jakarta.persistence.JoinColumn; +import jakarta.persistence.JoinTable; +import jakarta.persistence.ManyToMany; +import jakarta.persistence.ManyToOne; +import jakarta.persistence.NamedQueries; +import jakarta.persistence.NamedQuery; +import jakarta.persistence.OneToMany; +import jakarta.persistence.Table; +import jakarta.validation.constraints.Size; +import jakarta.xml.bind.annotation.XmlRootElement; +import jakarta.xml.bind.annotation.XmlTransient; /** * diff --git a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/entities/ItemElementRelationshipHistory.java b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/entities/ItemElementRelationshipHistory.java index c63e085cf..1141e1049 100644 --- a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/entities/ItemElementRelationshipHistory.java +++ b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/entities/ItemElementRelationshipHistory.java @@ -7,22 +7,22 @@ import com.fasterxml.jackson.annotation.JsonFormat; import java.io.Serializable; import java.util.Date; -import javax.persistence.Basic; -import javax.persistence.Column; -import javax.persistence.Entity; -import javax.persistence.GeneratedValue; -import javax.persistence.GenerationType; -import javax.persistence.Id; -import javax.persistence.JoinColumn; -import javax.persistence.ManyToOne; -import javax.persistence.NamedQueries; -import javax.persistence.NamedQuery; -import javax.persistence.Table; -import javax.persistence.Temporal; -import javax.persistence.TemporalType; -import javax.validation.constraints.NotNull; -import javax.validation.constraints.Size; -import javax.xml.bind.annotation.XmlRootElement; +import jakarta.persistence.Basic; +import jakarta.persistence.Column; +import jakarta.persistence.Entity; +import jakarta.persistence.GeneratedValue; +import jakarta.persistence.GenerationType; +import jakarta.persistence.Id; +import jakarta.persistence.JoinColumn; +import jakarta.persistence.ManyToOne; +import jakarta.persistence.NamedQueries; +import jakarta.persistence.NamedQuery; +import jakarta.persistence.Table; +import jakarta.persistence.Temporal; +import jakarta.persistence.TemporalType; +import jakarta.validation.constraints.NotNull; +import jakarta.validation.constraints.Size; +import jakarta.xml.bind.annotation.XmlRootElement; /** * diff --git a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/entities/ItemProject.java b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/entities/ItemProject.java index a078f4e6e..b88b60534 100644 --- a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/entities/ItemProject.java +++ b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/entities/ItemProject.java @@ -7,20 +7,20 @@ import com.fasterxml.jackson.annotation.JsonIgnore; import java.io.Serializable; import java.util.List; -import javax.persistence.Basic; -import javax.persistence.Cacheable; -import javax.persistence.Entity; -import javax.persistence.GeneratedValue; -import javax.persistence.GenerationType; -import javax.persistence.Id; -import javax.persistence.ManyToMany; -import javax.persistence.NamedQueries; -import javax.persistence.NamedQuery; -import javax.persistence.Table; -import javax.validation.constraints.NotNull; -import javax.validation.constraints.Size; -import javax.xml.bind.annotation.XmlRootElement; -import javax.xml.bind.annotation.XmlTransient; +import jakarta.persistence.Basic; +import jakarta.persistence.Cacheable; +import jakarta.persistence.Entity; +import jakarta.persistence.GeneratedValue; +import jakarta.persistence.GenerationType; +import jakarta.persistence.Id; +import jakarta.persistence.ManyToMany; +import jakarta.persistence.NamedQueries; +import jakarta.persistence.NamedQuery; +import jakarta.persistence.Table; +import jakarta.validation.constraints.NotNull; +import jakarta.validation.constraints.Size; +import jakarta.xml.bind.annotation.XmlRootElement; +import jakarta.xml.bind.annotation.XmlTransient; /** * diff --git a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/entities/ItemResource.java b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/entities/ItemResource.java index db2f51e60..6294f37a2 100644 --- a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/entities/ItemResource.java +++ b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/entities/ItemResource.java @@ -5,20 +5,20 @@ package gov.anl.aps.cdb.portal.model.db.entities; import java.io.Serializable; -import javax.persistence.Basic; -import javax.persistence.Cacheable; -import javax.persistence.Column; -import javax.persistence.Entity; -import javax.persistence.GeneratedValue; -import javax.persistence.GenerationType; -import javax.persistence.Id; -import javax.persistence.JoinColumn; -import javax.persistence.ManyToOne; -import javax.persistence.NamedQueries; -import javax.persistence.NamedQuery; -import javax.persistence.Table; -import javax.validation.constraints.Size; -import javax.xml.bind.annotation.XmlRootElement; +import jakarta.persistence.Basic; +import jakarta.persistence.Cacheable; +import jakarta.persistence.Column; +import jakarta.persistence.Entity; +import jakarta.persistence.GeneratedValue; +import jakarta.persistence.GenerationType; +import jakarta.persistence.Id; +import jakarta.persistence.JoinColumn; +import jakarta.persistence.ManyToOne; +import jakarta.persistence.NamedQueries; +import jakarta.persistence.NamedQuery; +import jakarta.persistence.Table; +import jakarta.validation.constraints.Size; +import jakarta.xml.bind.annotation.XmlRootElement; /** * diff --git a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/entities/ItemSource.java b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/entities/ItemSource.java index 725fb2049..81cd04a7d 100644 --- a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/entities/ItemSource.java +++ b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/entities/ItemSource.java @@ -7,21 +7,21 @@ import com.fasterxml.jackson.annotation.JsonIgnore; import gov.anl.aps.cdb.common.utilities.HttpLinkUtility; import java.io.Serializable; -import javax.persistence.Basic; -import javax.persistence.Cacheable; -import javax.persistence.Column; -import javax.persistence.Entity; -import javax.persistence.GeneratedValue; -import javax.persistence.GenerationType; -import javax.persistence.Id; -import javax.persistence.JoinColumn; -import javax.persistence.ManyToOne; -import javax.persistence.NamedQueries; -import javax.persistence.NamedQuery; -import javax.persistence.Table; -import javax.validation.constraints.NotNull; -import javax.validation.constraints.Size; -import javax.xml.bind.annotation.XmlRootElement; +import jakarta.persistence.Basic; +import jakarta.persistence.Cacheable; +import jakarta.persistence.Column; +import jakarta.persistence.Entity; +import jakarta.persistence.GeneratedValue; +import jakarta.persistence.GenerationType; +import jakarta.persistence.Id; +import jakarta.persistence.JoinColumn; +import jakarta.persistence.ManyToOne; +import jakarta.persistence.NamedQueries; +import jakarta.persistence.NamedQuery; +import jakarta.persistence.Table; +import jakarta.validation.constraints.NotNull; +import jakarta.validation.constraints.Size; +import jakarta.xml.bind.annotation.XmlRootElement; /** * diff --git a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/entities/ItemType.java b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/entities/ItemType.java index 52bbc3666..5dec8dfdb 100644 --- a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/entities/ItemType.java +++ b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/entities/ItemType.java @@ -10,25 +10,25 @@ import java.io.Serializable; import java.util.List; import java.util.regex.Pattern; -import javax.persistence.Basic; -import javax.persistence.Cacheable; -import javax.persistence.Column; -import javax.persistence.Entity; -import javax.persistence.GeneratedValue; -import javax.persistence.GenerationType; -import javax.persistence.Id; -import javax.persistence.JoinColumn; -import javax.persistence.JoinTable; -import javax.persistence.ManyToMany; -import javax.persistence.ManyToOne; -import javax.persistence.NamedQueries; -import javax.persistence.NamedQuery; -import javax.persistence.OrderBy; -import javax.persistence.Table; -import javax.validation.constraints.NotNull; -import javax.validation.constraints.Size; -import javax.xml.bind.annotation.XmlRootElement; -import javax.xml.bind.annotation.XmlTransient; +import jakarta.persistence.Basic; +import jakarta.persistence.Cacheable; +import jakarta.persistence.Column; +import jakarta.persistence.Entity; +import jakarta.persistence.GeneratedValue; +import jakarta.persistence.GenerationType; +import jakarta.persistence.Id; +import jakarta.persistence.JoinColumn; +import jakarta.persistence.JoinTable; +import jakarta.persistence.ManyToMany; +import jakarta.persistence.ManyToOne; +import jakarta.persistence.NamedQueries; +import jakarta.persistence.NamedQuery; +import jakarta.persistence.OrderBy; +import jakarta.persistence.Table; +import jakarta.validation.constraints.NotNull; +import jakarta.validation.constraints.Size; +import jakarta.xml.bind.annotation.XmlRootElement; +import jakarta.xml.bind.annotation.XmlTransient; /** * diff --git a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/entities/ListTbl.java b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/entities/ListTbl.java index 7e320ffe9..30baf2c38 100644 --- a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/entities/ListTbl.java +++ b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/entities/ListTbl.java @@ -8,24 +8,24 @@ import gov.anl.aps.cdb.portal.model.db.utilities.EntityInfoUtility; import java.io.Serializable; import java.util.ArrayList; -import javax.persistence.Basic; -import javax.persistence.CascadeType; -import javax.persistence.Entity; -import javax.persistence.FetchType; -import javax.persistence.GeneratedValue; -import javax.persistence.GenerationType; -import javax.persistence.Id; -import javax.persistence.JoinColumn; -import javax.persistence.JoinTable; -import javax.persistence.ManyToMany; -import javax.persistence.NamedQueries; -import javax.persistence.NamedQuery; -import javax.persistence.OneToOne; -import javax.persistence.Table; -import javax.validation.constraints.NotNull; -import javax.validation.constraints.Size; -import javax.xml.bind.annotation.XmlRootElement; -import javax.xml.bind.annotation.XmlTransient; +import jakarta.persistence.Basic; +import jakarta.persistence.CascadeType; +import jakarta.persistence.Entity; +import jakarta.persistence.FetchType; +import jakarta.persistence.GeneratedValue; +import jakarta.persistence.GenerationType; +import jakarta.persistence.Id; +import jakarta.persistence.JoinColumn; +import jakarta.persistence.JoinTable; +import jakarta.persistence.ManyToMany; +import jakarta.persistence.NamedQueries; +import jakarta.persistence.NamedQuery; +import jakarta.persistence.OneToOne; +import jakarta.persistence.Table; +import jakarta.validation.constraints.NotNull; +import jakarta.validation.constraints.Size; +import jakarta.xml.bind.annotation.XmlRootElement; +import jakarta.xml.bind.annotation.XmlTransient; /** * diff --git a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/entities/LocatableItem.java b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/entities/LocatableItem.java index ea47a9e45..d105e5c42 100644 --- a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/entities/LocatableItem.java +++ b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/entities/LocatableItem.java @@ -5,6 +5,7 @@ package gov.anl.aps.cdb.portal.model.db.entities; import com.fasterxml.jackson.annotation.JsonIgnore; +import gov.anl.aps.cdb.mqtt.metadata.ItemLocationChange; import gov.anl.aps.cdb.portal.controllers.LocatableItemController; import gov.anl.aps.cdb.portal.view.objects.LocationHistoryObject; import java.util.List; @@ -33,6 +34,7 @@ public abstract class LocatableItem extends Item { private transient boolean loadedImportLocationItem = false; private transient boolean loadedImportLocationDetails = false; private transient List locationHistoryListObject = null; + private transient ItemLocationChange pendingLocationChange; // Needed to determine whenever location was removed in edit process. private transient Boolean originalLocationLoaded = false; @@ -245,4 +247,12 @@ public void setLocationHistoryListObject(List locationHis this.locationHistoryListObject = locationHistoryListObject; } + @JsonIgnore + public void setPendingLocationChange(ItemLocationChange pendingLocationChange) { + this.pendingLocationChange = pendingLocationChange; + } + + @JsonIgnore + public ItemLocationChange getPendingLocationChange() { return pendingLocationChange; } + } diff --git a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/entities/Log.java b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/entities/Log.java index e6b912842..29ceded77 100644 --- a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/entities/Log.java +++ b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/entities/Log.java @@ -11,26 +11,26 @@ import java.util.ArrayList; import java.util.Date; import java.util.List; -import javax.persistence.Basic; -import javax.persistence.Column; -import javax.persistence.Entity; -import javax.persistence.GeneratedValue; -import javax.persistence.GenerationType; -import javax.persistence.Id; -import javax.persistence.JoinColumn; -import javax.persistence.JoinTable; -import javax.persistence.Lob; -import javax.persistence.ManyToMany; -import javax.persistence.ManyToOne; -import javax.persistence.NamedQueries; -import javax.persistence.NamedQuery; -import javax.persistence.Table; -import javax.persistence.Temporal; -import javax.persistence.TemporalType; -import javax.validation.constraints.NotNull; -import javax.validation.constraints.Size; -import javax.xml.bind.annotation.XmlRootElement; -import javax.xml.bind.annotation.XmlTransient; +import jakarta.persistence.Basic; +import jakarta.persistence.Column; +import jakarta.persistence.Entity; +import jakarta.persistence.GeneratedValue; +import jakarta.persistence.GenerationType; +import jakarta.persistence.Id; +import jakarta.persistence.JoinColumn; +import jakarta.persistence.JoinTable; +import jakarta.persistence.Lob; +import jakarta.persistence.ManyToMany; +import jakarta.persistence.ManyToOne; +import jakarta.persistence.NamedQueries; +import jakarta.persistence.NamedQuery; +import jakarta.persistence.Table; +import jakarta.persistence.Temporal; +import jakarta.persistence.TemporalType; +import jakarta.validation.constraints.NotNull; +import jakarta.validation.constraints.Size; +import jakarta.xml.bind.annotation.XmlRootElement; +import jakarta.xml.bind.annotation.XmlTransient; /** * diff --git a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/entities/LogLevel.java b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/entities/LogLevel.java index 85179b9fe..2e9390bf2 100644 --- a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/entities/LogLevel.java +++ b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/entities/LogLevel.java @@ -7,20 +7,20 @@ import com.fasterxml.jackson.annotation.JsonIgnore; import java.io.Serializable; import java.util.List; -import javax.persistence.Basic; -import javax.persistence.Cacheable; -import javax.persistence.Entity; -import javax.persistence.GeneratedValue; -import javax.persistence.GenerationType; -import javax.persistence.Id; -import javax.persistence.ManyToMany; -import javax.persistence.NamedQueries; -import javax.persistence.NamedQuery; -import javax.persistence.Table; -import javax.validation.constraints.NotNull; -import javax.validation.constraints.Size; -import javax.xml.bind.annotation.XmlRootElement; -import javax.xml.bind.annotation.XmlTransient; +import jakarta.persistence.Basic; +import jakarta.persistence.Cacheable; +import jakarta.persistence.Entity; +import jakarta.persistence.GeneratedValue; +import jakarta.persistence.GenerationType; +import jakarta.persistence.Id; +import jakarta.persistence.ManyToMany; +import jakarta.persistence.NamedQueries; +import jakarta.persistence.NamedQuery; +import jakarta.persistence.Table; +import jakarta.validation.constraints.NotNull; +import jakarta.validation.constraints.Size; +import jakarta.xml.bind.annotation.XmlRootElement; +import jakarta.xml.bind.annotation.XmlTransient; /** * diff --git a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/entities/LogTopic.java b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/entities/LogTopic.java index df2a0a9ee..793ef75c1 100644 --- a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/entities/LogTopic.java +++ b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/entities/LogTopic.java @@ -7,20 +7,20 @@ import com.fasterxml.jackson.annotation.JsonIgnore; import java.io.Serializable; import java.util.List; -import javax.persistence.Basic; -import javax.persistence.Cacheable; -import javax.persistence.Entity; -import javax.persistence.GeneratedValue; -import javax.persistence.GenerationType; -import javax.persistence.Id; -import javax.persistence.NamedQueries; -import javax.persistence.NamedQuery; -import javax.persistence.OneToMany; -import javax.persistence.Table; -import javax.validation.constraints.NotNull; -import javax.validation.constraints.Size; -import javax.xml.bind.annotation.XmlRootElement; -import javax.xml.bind.annotation.XmlTransient; +import jakarta.persistence.Basic; +import jakarta.persistence.Cacheable; +import jakarta.persistence.Entity; +import jakarta.persistence.GeneratedValue; +import jakarta.persistence.GenerationType; +import jakarta.persistence.Id; +import jakarta.persistence.NamedQueries; +import jakarta.persistence.NamedQuery; +import jakarta.persistence.OneToMany; +import jakarta.persistence.Table; +import jakarta.validation.constraints.NotNull; +import jakarta.validation.constraints.Size; +import jakarta.xml.bind.annotation.XmlRootElement; +import jakarta.xml.bind.annotation.XmlTransient; /** * diff --git a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/entities/PropertyMetadata.java b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/entities/PropertyMetadata.java index 5aa0fc695..e73babf50 100644 --- a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/entities/PropertyMetadata.java +++ b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/entities/PropertyMetadata.java @@ -6,20 +6,20 @@ import com.fasterxml.jackson.annotation.JsonIgnore; import java.io.Serializable; -import javax.persistence.Basic; -import javax.persistence.Column; -import javax.persistence.Entity; -import javax.persistence.GeneratedValue; -import javax.persistence.GenerationType; -import javax.persistence.Id; -import javax.persistence.JoinColumn; -import javax.persistence.ManyToOne; -import javax.persistence.NamedQueries; -import javax.persistence.NamedQuery; -import javax.persistence.Table; -import javax.validation.constraints.NotNull; -import javax.validation.constraints.Size; -import javax.xml.bind.annotation.XmlRootElement; +import jakarta.persistence.Basic; +import jakarta.persistence.Column; +import jakarta.persistence.Entity; +import jakarta.persistence.GeneratedValue; +import jakarta.persistence.GenerationType; +import jakarta.persistence.Id; +import jakarta.persistence.JoinColumn; +import jakarta.persistence.ManyToOne; +import jakarta.persistence.NamedQueries; +import jakarta.persistence.NamedQuery; +import jakarta.persistence.Table; +import jakarta.validation.constraints.NotNull; +import jakarta.validation.constraints.Size; +import jakarta.xml.bind.annotation.XmlRootElement; /** * diff --git a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/entities/PropertyMetadataHistory.java b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/entities/PropertyMetadataHistory.java index b9d5cec61..ec80b5730 100644 --- a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/entities/PropertyMetadataHistory.java +++ b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/entities/PropertyMetadataHistory.java @@ -6,20 +6,20 @@ import com.fasterxml.jackson.annotation.JsonIgnore; import java.io.Serializable; -import javax.persistence.Basic; -import javax.persistence.Column; -import javax.persistence.Entity; -import javax.persistence.GeneratedValue; -import javax.persistence.GenerationType; -import javax.persistence.Id; -import javax.persistence.JoinColumn; -import javax.persistence.ManyToOne; -import javax.persistence.NamedQueries; -import javax.persistence.NamedQuery; -import javax.persistence.Table; -import javax.validation.constraints.NotNull; -import javax.validation.constraints.Size; -import javax.xml.bind.annotation.XmlRootElement; +import jakarta.persistence.Basic; +import jakarta.persistence.Column; +import jakarta.persistence.Entity; +import jakarta.persistence.GeneratedValue; +import jakarta.persistence.GenerationType; +import jakarta.persistence.Id; +import jakarta.persistence.JoinColumn; +import jakarta.persistence.ManyToOne; +import jakarta.persistence.NamedQueries; +import jakarta.persistence.NamedQuery; +import jakarta.persistence.Table; +import jakarta.validation.constraints.NotNull; +import jakarta.validation.constraints.Size; +import jakarta.xml.bind.annotation.XmlRootElement; /** * diff --git a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/entities/PropertyType.java b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/entities/PropertyType.java index cdf56b2e7..87b3ed17e 100644 --- a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/entities/PropertyType.java +++ b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/entities/PropertyType.java @@ -7,6 +7,7 @@ import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; import gov.anl.aps.cdb.common.utilities.StringUtility; import gov.anl.aps.cdb.portal.constants.DisplayType; import gov.anl.aps.cdb.portal.utilities.SearchResult; @@ -16,27 +17,27 @@ import java.util.Comparator; import java.util.List; import java.util.regex.Pattern; -import javax.persistence.Basic; -import javax.persistence.Cacheable; -import javax.persistence.CascadeType; -import javax.persistence.Column; -import javax.persistence.Entity; -import javax.persistence.GeneratedValue; -import javax.persistence.GenerationType; -import javax.persistence.Id; -import javax.persistence.JoinColumn; -import javax.persistence.JoinTable; -import javax.persistence.ManyToMany; -import javax.persistence.ManyToOne; -import javax.persistence.NamedQueries; -import javax.persistence.NamedQuery; -import javax.persistence.OneToMany; -import javax.persistence.OrderBy; -import javax.persistence.Table; -import javax.validation.constraints.NotNull; -import javax.validation.constraints.Size; -import javax.xml.bind.annotation.XmlRootElement; -import javax.xml.bind.annotation.XmlTransient; +import jakarta.persistence.Basic; +import jakarta.persistence.Cacheable; +import jakarta.persistence.CascadeType; +import jakarta.persistence.Column; +import jakarta.persistence.Entity; +import jakarta.persistence.GeneratedValue; +import jakarta.persistence.GenerationType; +import jakarta.persistence.Id; +import jakarta.persistence.JoinColumn; +import jakarta.persistence.JoinTable; +import jakarta.persistence.ManyToMany; +import jakarta.persistence.ManyToOne; +import jakarta.persistence.NamedQueries; +import jakarta.persistence.NamedQuery; +import jakarta.persistence.OneToMany; +import jakarta.persistence.OrderBy; +import jakarta.persistence.Table; +import jakarta.validation.constraints.NotNull; +import jakarta.validation.constraints.Size; +import jakarta.xml.bind.annotation.XmlRootElement; +import jakarta.xml.bind.annotation.XmlTransient; /** * @@ -319,10 +320,14 @@ public List getAllowedPropertyValueList() { return allowedPropertyValueList; } + // Derived list: read-only for JSON, otherwise Jackson fills it via the getter (getters-as-setters) on request bodies. + @JsonProperty(access = JsonProperty.Access.READ_ONLY) public List getSortedAllowedPropertyValueList() { if (sortedAllowedPropertyValueList == null) { sortedAllowedPropertyValueList = new ArrayList<>(); - sortedAllowedPropertyValueList.addAll(allowedPropertyValueList); + if (allowedPropertyValueList != null) { + sortedAllowedPropertyValueList.addAll(allowedPropertyValueList); + } Collections.sort(sortedAllowedPropertyValueList, new Comparator() { @Override diff --git a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/entities/PropertyTypeCategory.java b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/entities/PropertyTypeCategory.java index 9f0d73cde..43072c074 100644 --- a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/entities/PropertyTypeCategory.java +++ b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/entities/PropertyTypeCategory.java @@ -9,20 +9,20 @@ import java.io.Serializable; import java.util.List; import java.util.regex.Pattern; -import javax.persistence.Basic; -import javax.persistence.Cacheable; -import javax.persistence.Entity; -import javax.persistence.GeneratedValue; -import javax.persistence.GenerationType; -import javax.persistence.Id; -import javax.persistence.NamedQueries; -import javax.persistence.NamedQuery; -import javax.persistence.OneToMany; -import javax.persistence.Table; -import javax.validation.constraints.NotNull; -import javax.validation.constraints.Size; -import javax.xml.bind.annotation.XmlRootElement; -import javax.xml.bind.annotation.XmlTransient; +import jakarta.persistence.Basic; +import jakarta.persistence.Cacheable; +import jakarta.persistence.Entity; +import jakarta.persistence.GeneratedValue; +import jakarta.persistence.GenerationType; +import jakarta.persistence.Id; +import jakarta.persistence.NamedQueries; +import jakarta.persistence.NamedQuery; +import jakarta.persistence.OneToMany; +import jakarta.persistence.Table; +import jakarta.validation.constraints.NotNull; +import jakarta.validation.constraints.Size; +import jakarta.xml.bind.annotation.XmlRootElement; +import jakarta.xml.bind.annotation.XmlTransient; /** * diff --git a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/entities/PropertyTypeHandler.java b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/entities/PropertyTypeHandler.java index 29a91d50d..fbaaca3f4 100644 --- a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/entities/PropertyTypeHandler.java +++ b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/entities/PropertyTypeHandler.java @@ -7,20 +7,20 @@ import com.fasterxml.jackson.annotation.JsonIgnore; import java.io.Serializable; import java.util.List; -import javax.persistence.Basic; -import javax.persistence.Cacheable; -import javax.persistence.Entity; -import javax.persistence.GeneratedValue; -import javax.persistence.GenerationType; -import javax.persistence.Id; -import javax.persistence.NamedQueries; -import javax.persistence.NamedQuery; -import javax.persistence.OneToMany; -import javax.persistence.Table; -import javax.validation.constraints.NotNull; -import javax.validation.constraints.Size; -import javax.xml.bind.annotation.XmlRootElement; -import javax.xml.bind.annotation.XmlTransient; +import jakarta.persistence.Basic; +import jakarta.persistence.Cacheable; +import jakarta.persistence.Entity; +import jakarta.persistence.GeneratedValue; +import jakarta.persistence.GenerationType; +import jakarta.persistence.Id; +import jakarta.persistence.NamedQueries; +import jakarta.persistence.NamedQuery; +import jakarta.persistence.OneToMany; +import jakarta.persistence.Table; +import jakarta.validation.constraints.NotNull; +import jakarta.validation.constraints.Size; +import jakarta.xml.bind.annotation.XmlRootElement; +import jakarta.xml.bind.annotation.XmlTransient; /** * diff --git a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/entities/PropertyTypeMetadata.java b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/entities/PropertyTypeMetadata.java index b466b7103..97f6ccc75 100644 --- a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/entities/PropertyTypeMetadata.java +++ b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/entities/PropertyTypeMetadata.java @@ -7,24 +7,24 @@ import com.fasterxml.jackson.annotation.JsonIgnore; import java.io.Serializable; import java.util.List; -import javax.persistence.Basic; -import javax.persistence.CascadeType; -import javax.persistence.Column; -import javax.persistence.Entity; -import javax.persistence.GeneratedValue; -import javax.persistence.GenerationType; -import javax.persistence.Id; -import javax.persistence.JoinColumn; -import javax.persistence.ManyToOne; -import javax.persistence.NamedQueries; -import javax.persistence.NamedQuery; -import javax.persistence.OneToMany; -import javax.persistence.OrderBy; -import javax.persistence.Table; -import javax.validation.constraints.NotNull; -import javax.validation.constraints.Size; -import javax.xml.bind.annotation.XmlRootElement; -import javax.xml.bind.annotation.XmlTransient; +import jakarta.persistence.Basic; +import jakarta.persistence.CascadeType; +import jakarta.persistence.Column; +import jakarta.persistence.Entity; +import jakarta.persistence.GeneratedValue; +import jakarta.persistence.GenerationType; +import jakarta.persistence.Id; +import jakarta.persistence.JoinColumn; +import jakarta.persistence.ManyToOne; +import jakarta.persistence.NamedQueries; +import jakarta.persistence.NamedQuery; +import jakarta.persistence.OneToMany; +import jakarta.persistence.OrderBy; +import jakarta.persistence.Table; +import jakarta.validation.constraints.NotNull; +import jakarta.validation.constraints.Size; +import jakarta.xml.bind.annotation.XmlRootElement; +import jakarta.xml.bind.annotation.XmlTransient; /** * diff --git a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/entities/PropertyValue.java b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/entities/PropertyValue.java index 945f15bb0..6affcca8f 100644 --- a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/entities/PropertyValue.java +++ b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/entities/PropertyValue.java @@ -6,6 +6,7 @@ import com.fasterxml.jackson.annotation.JsonFormat; import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; import gov.anl.aps.cdb.common.utilities.ObjectUtility; import gov.anl.aps.cdb.portal.utilities.SearchResult; import java.io.Serializable; @@ -20,31 +21,31 @@ import java.util.Set; import java.util.regex.Matcher; import java.util.regex.Pattern; -import javax.persistence.Basic; -import javax.persistence.CascadeType; -import javax.persistence.Column; -import javax.persistence.Entity; -import javax.persistence.GeneratedValue; -import javax.persistence.GenerationType; -import javax.persistence.Id; -import javax.persistence.JoinColumn; -import javax.persistence.JoinTable; -import javax.persistence.Lob; -import javax.persistence.ManyToMany; -import javax.persistence.ManyToOne; -import javax.persistence.NamedQueries; -import javax.persistence.NamedQuery; -import javax.persistence.NamedStoredProcedureQueries; -import javax.persistence.NamedStoredProcedureQuery; -import javax.persistence.OneToMany; -import javax.persistence.ParameterMode; -import javax.persistence.StoredProcedureParameter; -import javax.persistence.Table; -import javax.persistence.Temporal; -import javax.persistence.TemporalType; -import javax.validation.constraints.Size; -import javax.xml.bind.annotation.XmlRootElement; -import javax.xml.bind.annotation.XmlTransient; +import jakarta.persistence.Basic; +import jakarta.persistence.CascadeType; +import jakarta.persistence.Column; +import jakarta.persistence.Entity; +import jakarta.persistence.GeneratedValue; +import jakarta.persistence.GenerationType; +import jakarta.persistence.Id; +import jakarta.persistence.JoinColumn; +import jakarta.persistence.JoinTable; +import jakarta.persistence.Lob; +import jakarta.persistence.ManyToMany; +import jakarta.persistence.ManyToOne; +import jakarta.persistence.NamedQueries; +import jakarta.persistence.NamedQuery; +import jakarta.persistence.NamedStoredProcedureQueries; +import jakarta.persistence.NamedStoredProcedureQuery; +import jakarta.persistence.OneToMany; +import jakarta.persistence.ParameterMode; +import jakarta.persistence.StoredProcedureParameter; +import jakarta.persistence.Table; +import jakarta.persistence.Temporal; +import jakarta.persistence.TemporalType; +import jakarta.validation.constraints.Size; +import jakarta.xml.bind.annotation.XmlRootElement; +import jakarta.xml.bind.annotation.XmlTransient; /** * @@ -729,6 +730,8 @@ public void setEditModeWidgets(boolean editModeWidgets) { this.editModeWidgets = editModeWidgets; } + // Derived from the property type metadata; read-only for JSON (no setter). + @JsonProperty(access = JsonProperty.Access.READ_ONLY) public List getPropertyValueMetadataList() { if (propertyValueMetadataList == null) { if (propertyType != null) { diff --git a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/entities/PropertyValueHistory.java b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/entities/PropertyValueHistory.java index e951bb422..dab76459d 100644 --- a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/entities/PropertyValueHistory.java +++ b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/entities/PropertyValueHistory.java @@ -11,25 +11,25 @@ import java.util.ArrayList; import java.util.Date; import java.util.List; -import javax.persistence.Basic; -import javax.persistence.CascadeType; -import javax.persistence.Column; -import javax.persistence.Entity; -import javax.persistence.GeneratedValue; -import javax.persistence.GenerationType; -import javax.persistence.Id; -import javax.persistence.JoinColumn; -import javax.persistence.ManyToOne; -import javax.persistence.NamedQueries; -import javax.persistence.NamedQuery; -import javax.persistence.OneToMany; -import javax.persistence.Table; -import javax.persistence.Temporal; -import javax.persistence.TemporalType; -import javax.validation.constraints.NotNull; -import javax.validation.constraints.Size; -import javax.xml.bind.annotation.XmlRootElement; -import javax.xml.bind.annotation.XmlTransient; +import jakarta.persistence.Basic; +import jakarta.persistence.CascadeType; +import jakarta.persistence.Column; +import jakarta.persistence.Entity; +import jakarta.persistence.GeneratedValue; +import jakarta.persistence.GenerationType; +import jakarta.persistence.Id; +import jakarta.persistence.JoinColumn; +import jakarta.persistence.ManyToOne; +import jakarta.persistence.NamedQueries; +import jakarta.persistence.NamedQuery; +import jakarta.persistence.OneToMany; +import jakarta.persistence.Table; +import jakarta.persistence.Temporal; +import jakarta.persistence.TemporalType; +import jakarta.validation.constraints.NotNull; +import jakarta.validation.constraints.Size; +import jakarta.xml.bind.annotation.XmlRootElement; +import jakarta.xml.bind.annotation.XmlTransient; /** * diff --git a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/entities/RelationshipType.java b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/entities/RelationshipType.java index c2f9b5393..cc83a099b 100644 --- a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/entities/RelationshipType.java +++ b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/entities/RelationshipType.java @@ -7,23 +7,23 @@ import com.fasterxml.jackson.annotation.JsonIgnore; import java.io.Serializable; import java.util.List; -import javax.persistence.Basic; -import javax.persistence.Cacheable; -import javax.persistence.CascadeType; -import javax.persistence.Entity; -import javax.persistence.GeneratedValue; -import javax.persistence.GenerationType; -import javax.persistence.Id; -import javax.persistence.JoinColumn; -import javax.persistence.ManyToOne; -import javax.persistence.NamedQueries; -import javax.persistence.NamedQuery; -import javax.persistence.OneToMany; -import javax.persistence.Table; -import javax.validation.constraints.NotNull; -import javax.validation.constraints.Size; -import javax.xml.bind.annotation.XmlRootElement; -import javax.xml.bind.annotation.XmlTransient; +import jakarta.persistence.Basic; +import jakarta.persistence.Cacheable; +import jakarta.persistence.CascadeType; +import jakarta.persistence.Entity; +import jakarta.persistence.GeneratedValue; +import jakarta.persistence.GenerationType; +import jakarta.persistence.Id; +import jakarta.persistence.JoinColumn; +import jakarta.persistence.ManyToOne; +import jakarta.persistence.NamedQueries; +import jakarta.persistence.NamedQuery; +import jakarta.persistence.OneToMany; +import jakarta.persistence.Table; +import jakarta.validation.constraints.NotNull; +import jakarta.validation.constraints.Size; +import jakarta.xml.bind.annotation.XmlRootElement; +import jakarta.xml.bind.annotation.XmlTransient; /** * diff --git a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/entities/RelationshipTypeHandler.java b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/entities/RelationshipTypeHandler.java index 2b9209896..c68cf18f2 100644 --- a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/entities/RelationshipTypeHandler.java +++ b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/entities/RelationshipTypeHandler.java @@ -7,20 +7,20 @@ import com.fasterxml.jackson.annotation.JsonIgnore; import java.io.Serializable; import java.util.List; -import javax.persistence.Basic; -import javax.persistence.Cacheable; -import javax.persistence.Entity; -import javax.persistence.GeneratedValue; -import javax.persistence.GenerationType; -import javax.persistence.Id; -import javax.persistence.NamedQueries; -import javax.persistence.NamedQuery; -import javax.persistence.OneToMany; -import javax.persistence.Table; -import javax.validation.constraints.NotNull; -import javax.validation.constraints.Size; -import javax.xml.bind.annotation.XmlRootElement; -import javax.xml.bind.annotation.XmlTransient; +import jakarta.persistence.Basic; +import jakarta.persistence.Cacheable; +import jakarta.persistence.Entity; +import jakarta.persistence.GeneratedValue; +import jakarta.persistence.GenerationType; +import jakarta.persistence.Id; +import jakarta.persistence.NamedQueries; +import jakarta.persistence.NamedQuery; +import jakarta.persistence.OneToMany; +import jakarta.persistence.Table; +import jakarta.validation.constraints.NotNull; +import jakarta.validation.constraints.Size; +import jakarta.xml.bind.annotation.XmlRootElement; +import jakarta.xml.bind.annotation.XmlTransient; /** * diff --git a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/entities/ResourceType.java b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/entities/ResourceType.java index b7a9eff5f..247087c2c 100644 --- a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/entities/ResourceType.java +++ b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/entities/ResourceType.java @@ -7,24 +7,24 @@ import com.fasterxml.jackson.annotation.JsonIgnore; import java.io.Serializable; import java.util.List; -import javax.persistence.Basic; -import javax.persistence.Cacheable; -import javax.persistence.CascadeType; -import javax.persistence.Column; -import javax.persistence.Entity; -import javax.persistence.GeneratedValue; -import javax.persistence.GenerationType; -import javax.persistence.Id; -import javax.persistence.JoinColumn; -import javax.persistence.ManyToOne; -import javax.persistence.NamedQueries; -import javax.persistence.NamedQuery; -import javax.persistence.OneToMany; -import javax.persistence.Table; -import javax.validation.constraints.NotNull; -import javax.validation.constraints.Size; -import javax.xml.bind.annotation.XmlRootElement; -import javax.xml.bind.annotation.XmlTransient; +import jakarta.persistence.Basic; +import jakarta.persistence.Cacheable; +import jakarta.persistence.CascadeType; +import jakarta.persistence.Column; +import jakarta.persistence.Entity; +import jakarta.persistence.GeneratedValue; +import jakarta.persistence.GenerationType; +import jakarta.persistence.Id; +import jakarta.persistence.JoinColumn; +import jakarta.persistence.ManyToOne; +import jakarta.persistence.NamedQueries; +import jakarta.persistence.NamedQuery; +import jakarta.persistence.OneToMany; +import jakarta.persistence.Table; +import jakarta.validation.constraints.NotNull; +import jakarta.validation.constraints.Size; +import jakarta.xml.bind.annotation.XmlRootElement; +import jakarta.xml.bind.annotation.XmlTransient; /** * diff --git a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/entities/ResourceTypeCategory.java b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/entities/ResourceTypeCategory.java index eef6f5a32..79555cfd0 100644 --- a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/entities/ResourceTypeCategory.java +++ b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/entities/ResourceTypeCategory.java @@ -7,20 +7,20 @@ import com.fasterxml.jackson.annotation.JsonIgnore; import java.io.Serializable; import java.util.List; -import javax.persistence.Basic; -import javax.persistence.Cacheable; -import javax.persistence.Entity; -import javax.persistence.GeneratedValue; -import javax.persistence.GenerationType; -import javax.persistence.Id; -import javax.persistence.NamedQueries; -import javax.persistence.NamedQuery; -import javax.persistence.OneToMany; -import javax.persistence.Table; -import javax.validation.constraints.NotNull; -import javax.validation.constraints.Size; -import javax.xml.bind.annotation.XmlRootElement; -import javax.xml.bind.annotation.XmlTransient; +import jakarta.persistence.Basic; +import jakarta.persistence.Cacheable; +import jakarta.persistence.Entity; +import jakarta.persistence.GeneratedValue; +import jakarta.persistence.GenerationType; +import jakarta.persistence.Id; +import jakarta.persistence.NamedQueries; +import jakarta.persistence.NamedQuery; +import jakarta.persistence.OneToMany; +import jakarta.persistence.Table; +import jakarta.validation.constraints.NotNull; +import jakarta.validation.constraints.Size; +import jakarta.xml.bind.annotation.XmlRootElement; +import jakarta.xml.bind.annotation.XmlTransient; /** * diff --git a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/entities/RoleType.java b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/entities/RoleType.java index 9c681ae73..f4b1803b9 100644 --- a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/entities/RoleType.java +++ b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/entities/RoleType.java @@ -7,20 +7,20 @@ import com.fasterxml.jackson.annotation.JsonIgnore; import java.io.Serializable; import java.util.List; -import javax.persistence.Basic; -import javax.persistence.CascadeType; -import javax.persistence.Entity; -import javax.persistence.GeneratedValue; -import javax.persistence.GenerationType; -import javax.persistence.Id; -import javax.persistence.NamedQueries; -import javax.persistence.NamedQuery; -import javax.persistence.OneToMany; -import javax.persistence.Table; -import javax.validation.constraints.NotNull; -import javax.validation.constraints.Size; -import javax.xml.bind.annotation.XmlRootElement; -import javax.xml.bind.annotation.XmlTransient; +import jakarta.persistence.Basic; +import jakarta.persistence.CascadeType; +import jakarta.persistence.Entity; +import jakarta.persistence.GeneratedValue; +import jakarta.persistence.GenerationType; +import jakarta.persistence.Id; +import jakarta.persistence.NamedQueries; +import jakarta.persistence.NamedQuery; +import jakarta.persistence.OneToMany; +import jakarta.persistence.Table; +import jakarta.validation.constraints.NotNull; +import jakarta.validation.constraints.Size; +import jakarta.xml.bind.annotation.XmlRootElement; +import jakarta.xml.bind.annotation.XmlTransient; /** * diff --git a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/entities/SettingType.java b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/entities/SettingType.java index a97a2ec43..40b42032b 100644 --- a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/entities/SettingType.java +++ b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/entities/SettingType.java @@ -7,22 +7,22 @@ import com.fasterxml.jackson.annotation.JsonIgnore; import java.io.Serializable; import java.util.List; -import javax.persistence.Basic; -import javax.persistence.Cacheable; -import javax.persistence.CascadeType; -import javax.persistence.Column; -import javax.persistence.Entity; -import javax.persistence.GeneratedValue; -import javax.persistence.GenerationType; -import javax.persistence.Id; -import javax.persistence.NamedQueries; -import javax.persistence.NamedQuery; -import javax.persistence.OneToMany; -import javax.persistence.Table; -import javax.validation.constraints.NotNull; -import javax.validation.constraints.Size; -import javax.xml.bind.annotation.XmlRootElement; -import javax.xml.bind.annotation.XmlTransient; +import jakarta.persistence.Basic; +import jakarta.persistence.Cacheable; +import jakarta.persistence.CascadeType; +import jakarta.persistence.Column; +import jakarta.persistence.Entity; +import jakarta.persistence.GeneratedValue; +import jakarta.persistence.GenerationType; +import jakarta.persistence.Id; +import jakarta.persistence.NamedQueries; +import jakarta.persistence.NamedQuery; +import jakarta.persistence.OneToMany; +import jakarta.persistence.Table; +import jakarta.validation.constraints.NotNull; +import jakarta.validation.constraints.Size; +import jakarta.xml.bind.annotation.XmlRootElement; +import jakarta.xml.bind.annotation.XmlTransient; /** * diff --git a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/entities/Source.java b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/entities/Source.java index 087866238..aa15f4d4e 100644 --- a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/entities/Source.java +++ b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/entities/Source.java @@ -10,22 +10,22 @@ import java.io.Serializable; import java.util.List; import java.util.regex.Pattern; -import javax.persistence.Basic; -import javax.persistence.Cacheable; -import javax.persistence.CascadeType; -import javax.persistence.Column; -import javax.persistence.Entity; -import javax.persistence.GeneratedValue; -import javax.persistence.GenerationType; -import javax.persistence.Id; -import javax.persistence.NamedQueries; -import javax.persistence.NamedQuery; -import javax.persistence.OneToMany; -import javax.persistence.Table; -import javax.validation.constraints.NotNull; -import javax.validation.constraints.Size; -import javax.xml.bind.annotation.XmlRootElement; -import javax.xml.bind.annotation.XmlTransient; +import jakarta.persistence.Basic; +import jakarta.persistence.Cacheable; +import jakarta.persistence.CascadeType; +import jakarta.persistence.Column; +import jakarta.persistence.Entity; +import jakarta.persistence.GeneratedValue; +import jakarta.persistence.GenerationType; +import jakarta.persistence.Id; +import jakarta.persistence.NamedQueries; +import jakarta.persistence.NamedQuery; +import jakarta.persistence.OneToMany; +import jakarta.persistence.Table; +import jakarta.validation.constraints.NotNull; +import jakarta.validation.constraints.Size; +import jakarta.xml.bind.annotation.XmlRootElement; +import jakarta.xml.bind.annotation.XmlTransient; /** * diff --git a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/entities/UserGroup.java b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/entities/UserGroup.java index a833dfba2..ef2539490 100644 --- a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/entities/UserGroup.java +++ b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/entities/UserGroup.java @@ -11,25 +11,25 @@ import java.util.ArrayList; import java.util.List; import java.util.regex.Pattern; -import javax.persistence.Basic; -import javax.persistence.Cacheable; -import javax.persistence.CascadeType; -import javax.persistence.Entity; -import javax.persistence.GeneratedValue; -import javax.persistence.GenerationType; -import javax.persistence.Id; -import javax.persistence.JoinColumn; -import javax.persistence.JoinTable; -import javax.persistence.ManyToMany; -import javax.persistence.NamedQueries; -import javax.persistence.NamedQuery; -import javax.persistence.OneToMany; -import javax.persistence.OrderBy; -import javax.persistence.Table; -import javax.validation.constraints.NotNull; -import javax.validation.constraints.Size; -import javax.xml.bind.annotation.XmlRootElement; -import javax.xml.bind.annotation.XmlTransient; +import jakarta.persistence.Basic; +import jakarta.persistence.Cacheable; +import jakarta.persistence.CascadeType; +import jakarta.persistence.Entity; +import jakarta.persistence.GeneratedValue; +import jakarta.persistence.GenerationType; +import jakarta.persistence.Id; +import jakarta.persistence.JoinColumn; +import jakarta.persistence.JoinTable; +import jakarta.persistence.ManyToMany; +import jakarta.persistence.NamedQueries; +import jakarta.persistence.NamedQuery; +import jakarta.persistence.OneToMany; +import jakarta.persistence.OrderBy; +import jakarta.persistence.Table; +import jakarta.validation.constraints.NotNull; +import jakarta.validation.constraints.Size; +import jakarta.xml.bind.annotation.XmlRootElement; +import jakarta.xml.bind.annotation.XmlTransient; /** * diff --git a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/entities/UserGroupSetting.java b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/entities/UserGroupSetting.java index 6208ca6de..a512ef65a 100644 --- a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/entities/UserGroupSetting.java +++ b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/entities/UserGroupSetting.java @@ -5,18 +5,18 @@ package gov.anl.aps.cdb.portal.model.db.entities; import java.io.Serializable; -import javax.persistence.Basic; -import javax.persistence.Entity; -import javax.persistence.GeneratedValue; -import javax.persistence.GenerationType; -import javax.persistence.Id; -import javax.persistence.JoinColumn; -import javax.persistence.ManyToOne; -import javax.persistence.NamedQueries; -import javax.persistence.NamedQuery; -import javax.persistence.Table; -import javax.validation.constraints.Size; -import javax.xml.bind.annotation.XmlRootElement; +import jakarta.persistence.Basic; +import jakarta.persistence.Entity; +import jakarta.persistence.GeneratedValue; +import jakarta.persistence.GenerationType; +import jakarta.persistence.Id; +import jakarta.persistence.JoinColumn; +import jakarta.persistence.ManyToOne; +import jakarta.persistence.NamedQueries; +import jakarta.persistence.NamedQuery; +import jakarta.persistence.Table; +import jakarta.validation.constraints.Size; +import jakarta.xml.bind.annotation.XmlRootElement; /** * diff --git a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/entities/UserInfo.java b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/entities/UserInfo.java index a2526ff4f..1b0d7e9d2 100644 --- a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/entities/UserInfo.java +++ b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/entities/UserInfo.java @@ -12,25 +12,25 @@ import java.io.Serializable; import java.util.List; import java.util.regex.Pattern; -import javax.persistence.Basic; -import javax.persistence.Cacheable; -import javax.persistence.CascadeType; -import javax.persistence.Column; -import javax.persistence.Entity; -import javax.persistence.GeneratedValue; -import javax.persistence.GenerationType; -import javax.persistence.Id; -import javax.persistence.JoinColumn; -import javax.persistence.JoinTable; -import javax.persistence.ManyToMany; -import javax.persistence.NamedQueries; -import javax.persistence.NamedQuery; -import javax.persistence.OneToMany; -import javax.persistence.Table; -import javax.validation.constraints.NotNull; -import javax.validation.constraints.Size; -import javax.xml.bind.annotation.XmlRootElement; -import javax.xml.bind.annotation.XmlTransient; +import jakarta.persistence.Basic; +import jakarta.persistence.Cacheable; +import jakarta.persistence.CascadeType; +import jakarta.persistence.Column; +import jakarta.persistence.Entity; +import jakarta.persistence.GeneratedValue; +import jakarta.persistence.GenerationType; +import jakarta.persistence.Id; +import jakarta.persistence.JoinColumn; +import jakarta.persistence.JoinTable; +import jakarta.persistence.ManyToMany; +import jakarta.persistence.NamedQueries; +import jakarta.persistence.NamedQuery; +import jakarta.persistence.OneToMany; +import jakarta.persistence.Table; +import jakarta.validation.constraints.NotNull; +import jakarta.validation.constraints.Size; +import jakarta.xml.bind.annotation.XmlRootElement; +import jakarta.xml.bind.annotation.XmlTransient; /** * diff --git a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/entities/UserRole.java b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/entities/UserRole.java index f2bafaccf..af25bbebb 100644 --- a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/entities/UserRole.java +++ b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/entities/UserRole.java @@ -7,15 +7,15 @@ import com.fasterxml.jackson.annotation.JsonIgnore; import gov.anl.aps.cdb.common.exceptions.CdbException; import java.io.Serializable; -import javax.persistence.Cacheable; -import javax.persistence.EmbeddedId; -import javax.persistence.Entity; -import javax.persistence.JoinColumn; -import javax.persistence.ManyToOne; -import javax.persistence.NamedQueries; -import javax.persistence.NamedQuery; -import javax.persistence.Table; -import javax.xml.bind.annotation.XmlRootElement; +import jakarta.persistence.Cacheable; +import jakarta.persistence.EmbeddedId; +import jakarta.persistence.Entity; +import jakarta.persistence.JoinColumn; +import jakarta.persistence.ManyToOne; +import jakarta.persistence.NamedQueries; +import jakarta.persistence.NamedQuery; +import jakarta.persistence.Table; +import jakarta.xml.bind.annotation.XmlRootElement; /** * diff --git a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/entities/UserRolePK.java b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/entities/UserRolePK.java index 9bbfc78ac..376f7ee33 100644 --- a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/entities/UserRolePK.java +++ b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/entities/UserRolePK.java @@ -5,10 +5,10 @@ package gov.anl.aps.cdb.portal.model.db.entities; import java.io.Serializable; -import javax.persistence.Basic; -import javax.persistence.Column; -import javax.persistence.Embeddable; -import javax.validation.constraints.NotNull; +import jakarta.persistence.Basic; +import jakarta.persistence.Column; +import jakarta.persistence.Embeddable; +import jakarta.validation.constraints.NotNull; /** * diff --git a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/entities/UserSetting.java b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/entities/UserSetting.java index 08783d7ab..a96295089 100644 --- a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/entities/UserSetting.java +++ b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/entities/UserSetting.java @@ -7,19 +7,19 @@ import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; import java.io.Serializable; -import javax.persistence.Basic; -import javax.persistence.Cacheable; -import javax.persistence.Entity; -import javax.persistence.GeneratedValue; -import javax.persistence.GenerationType; -import javax.persistence.Id; -import javax.persistence.JoinColumn; -import javax.persistence.ManyToOne; -import javax.persistence.NamedQueries; -import javax.persistence.NamedQuery; -import javax.persistence.Table; -import javax.validation.constraints.Size; -import javax.xml.bind.annotation.XmlRootElement; +import jakarta.persistence.Basic; +import jakarta.persistence.Cacheable; +import jakarta.persistence.Entity; +import jakarta.persistence.GeneratedValue; +import jakarta.persistence.GenerationType; +import jakarta.persistence.Id; +import jakarta.persistence.JoinColumn; +import jakarta.persistence.ManyToOne; +import jakarta.persistence.NamedQueries; +import jakarta.persistence.NamedQuery; +import jakarta.persistence.Table; +import jakarta.validation.constraints.Size; +import jakarta.xml.bind.annotation.XmlRootElement; /** * diff --git a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/utilities/LogUtility.java b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/utilities/LogUtility.java index f335948fc..260d40688 100644 --- a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/utilities/LogUtility.java +++ b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/utilities/LogUtility.java @@ -5,15 +5,25 @@ package gov.anl.aps.cdb.portal.model.db.utilities; import gov.anl.aps.cdb.common.exceptions.CdbException; +import gov.anl.aps.cdb.mqtt.metadata.ItemLogChange; +import gov.anl.aps.cdb.mqtt.metadata.LogAttachmentChange; import gov.anl.aps.cdb.portal.constants.SystemLogLevel; import gov.anl.aps.cdb.portal.controllers.utilities.LogControllerUtility; +import gov.anl.aps.cdb.portal.model.db.entities.Attachment; import gov.anl.aps.cdb.portal.model.db.entities.Log; import gov.anl.aps.cdb.portal.model.db.entities.LogTopic; import gov.anl.aps.cdb.portal.model.db.entities.UserInfo; import gov.anl.aps.cdb.portal.utilities.SearchResult; import gov.anl.aps.cdb.portal.utilities.SessionUtility; +import java.util.ArrayList; +import java.util.Collections; import java.util.Date; +import java.util.HashMap; +import java.util.HashSet; import java.util.List; +import java.util.Map; +import java.util.Objects; +import java.util.Set; import java.util.logging.Level; import java.util.logging.Logger; import java.util.regex.Pattern; @@ -53,6 +63,91 @@ public static Log createLogEntry(String logText, LogTopic logTopic) { return logEntry; } + /** + * Compares persisted item log entries by ID with the submitted list. Attachments are + * excluded so attachment-only edits are not reported as log updates. New entries + * (no ID) are handled after persistence since their IDs are DB-assigned. + */ + public static List prepareLogChanges(List originalLogList, List newLogList) { + List changes = new ArrayList<>(); + List originals = originalLogList == null ? Collections.emptyList() : originalLogList; + List submitted = newLogList == null ? Collections.emptyList() : newLogList; + Map submittedById = new HashMap<>(); + for (Log log : submitted) { + if (log.getId() != null) { + submittedById.put(log.getId(), log); + } + } + for (Log original : originals) { + if (original.getId() == null) { + continue; + } + Log log = submittedById.get(original.getId()); + if (log == null) { + changes.add(ItemLogChange.deleted(original)); + } else if (isLogEntryModified(original, log)) { + changes.add(ItemLogChange.updated(original, log)); + } + } + return changes; + } + + /** + * Attachments newly associated with persisted logs: no ID yet, or an ID the persisted + * log does not reference (REST creates the attachment row before linking it). + */ + public static List findAddedAttachments(List originalLogList, + List newLogList) { + List changes = new ArrayList<>(); + if (originalLogList == null || newLogList == null) { + return changes; + } + Map originalsById = new HashMap<>(); + for (Log original : originalLogList) { + if (original.getId() != null) { + originalsById.put(original.getId(), original); + } + } + for (Log log : newLogList) { + Log original = log.getId() == null ? null : originalsById.get(log.getId()); + if (original == null || log.getAttachmentList() == null) { + continue; + } + Set originalIds = new HashSet<>(); + if (original.getAttachmentList() != null) { + for (Attachment attachment : original.getAttachmentList()) { + originalIds.add(attachment.getId()); + } + } + for (Attachment attachment : log.getAttachmentList()) { + if (attachment.getId() == null || !originalIds.contains(attachment.getId())) { + changes.add(new LogAttachmentChange(log, attachment)); + } + } + } + return changes; + } + + private static boolean isLogEntryModified(Log original, Log log) { + return !Objects.equals(original.getText(), log.getText()) + || !sameInstant(original.getEffectiveFromDateTime(), log.getEffectiveFromDateTime()) + || !sameInstant(original.getEffectiveToDateTime(), log.getEffectiveToDateTime()) + || !Objects.equals(original.getLogTopic(), log.getLogTopic()); + } + + // java.sql.Timestamp.equals(Date) is false for the same instant. + private static boolean sameInstant(Date first, Date second) { + return first == null ? second == null : second != null && first.getTime() == second.getTime(); + } + + /** Associates an attachment with a log in memory; the owning entity's update persists it. */ + public static void addAttachment(Log log, Attachment attachment) { + if (log.getAttachmentList() == null) { + log.setAttachmentList(new ArrayList<>()); + } + log.getAttachmentList().add(attachment); + } + public static void searchLogList(List logList, Pattern searchPattern, SearchResult searchResult) { for (Log logEntry : logList) { String baseKey = "log"; diff --git a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/utilities/PropertyValueUtility.java b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/utilities/PropertyValueUtility.java index 2239b7db0..79db0f7b9 100644 --- a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/utilities/PropertyValueUtility.java +++ b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/db/utilities/PropertyValueUtility.java @@ -4,6 +4,7 @@ */ package gov.anl.aps.cdb.portal.model.db.utilities; +import gov.anl.aps.cdb.mqtt.metadata.PropertyValueChange; import gov.anl.aps.cdb.portal.constants.DisplayType; import gov.anl.aps.cdb.portal.model.db.entities.AllowedPropertyValue; import gov.anl.aps.cdb.portal.model.db.entities.EntityInfo; @@ -16,6 +17,7 @@ import gov.anl.aps.cdb.portal.utilities.SearchResult; import java.util.ArrayList; import java.util.List; +import java.util.Objects; import java.util.regex.Pattern; import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.Logger; @@ -78,14 +80,16 @@ public static List prepareImagePropertyValueList(List originalPropertyValueList, + public static List preparePropertyValueHistory(List originalPropertyValueList, List newPropertyValueList, EntityInfo entityInfo) { + List changes = new ArrayList<>(); for (PropertyValue newPropertyValue : newPropertyValueList) { int index = originalPropertyValueList.indexOf(newPropertyValue); if (index >= 0) { // Original property was there. PropertyValue originalPropertyValue = originalPropertyValueList.get(index); - if (!newPropertyValue.equalsByTagAndValueAndUnitsAndDescriptionAndMetadata(originalPropertyValue)) { + if (!newPropertyValue.equalsByTagAndValueAndUnitsAndDescriptionAndMetadata(originalPropertyValue) + || !Objects.equals(newPropertyValue.getText(), originalPropertyValue.getText())) { // Property value was modified. logger.debug("Property value for type " + originalPropertyValue.getPropertyType() + " was modified (original value: " + originalPropertyValue + "; new value: " + newPropertyValue + ")"); @@ -97,6 +101,7 @@ public static void preparePropertyValueHistory(List originalPrope PropertyValueHistory propertyValueHistory = new PropertyValueHistory(); propertyValueHistory.updateFromPropertyValue(originalPropertyValue); propertyValueHistoryList.add(propertyValueHistory); + changes.add(PropertyValueChange.updated(originalPropertyValue, newPropertyValue)); } } else { // New property value. @@ -104,9 +109,25 @@ public static void preparePropertyValueHistory(List originalPrope + ": " + newPropertyValue); newPropertyValue.setEnteredByUser(entityInfo.getLastModifiedByUser()); newPropertyValue.setEnteredOnDateTime(entityInfo.getLastModifiedOnDateTime()); + changes.add(PropertyValueChange.added(newPropertyValue)); } } + changes.addAll(findRemovedPropertyValues( + originalPropertyValueList, newPropertyValueList)); + return changes; + } + + public static List findRemovedPropertyValues( + List originalPropertyValueList, + List newPropertyValueList) { + List changes = new ArrayList<>(); + for (PropertyValue originalPropertyValue : originalPropertyValueList) { + if (!newPropertyValueList.contains(originalPropertyValue)) { + changes.add(PropertyValueChange.deleted(originalPropertyValue)); + } + } + return changes; } public static PropertyTypeHandlerInterface getPropertyTypeHandler(PropertyValue propertyValue) { diff --git a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/jsf/beans/ErrorBean.java b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/jsf/beans/ErrorBean.java index 4bd077159..50329912b 100644 --- a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/jsf/beans/ErrorBean.java +++ b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/jsf/beans/ErrorBean.java @@ -6,8 +6,8 @@ import gov.anl.aps.cdb.portal.utilities.SessionUtility; import java.io.Serializable; -import javax.enterprise.context.RequestScoped; -import javax.inject.Named; +import jakarta.enterprise.context.RequestScoped; +import jakarta.inject.Named; /** * JSF bean for handling errors. diff --git a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/jsf/beans/FileUploadBean.java b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/jsf/beans/FileUploadBean.java index 5189159f2..59863183e 100644 --- a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/jsf/beans/FileUploadBean.java +++ b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/jsf/beans/FileUploadBean.java @@ -7,10 +7,10 @@ import java.io.File; import java.io.InputStream; import java.nio.file.Files; -import javax.enterprise.context.RequestScoped; -import javax.faces.application.FacesMessage; -import javax.faces.context.FacesContext; -import javax.inject.Named; +import jakarta.enterprise.context.RequestScoped; +import jakarta.faces.application.FacesMessage; +import jakarta.faces.context.FacesContext; +import jakarta.inject.Named; import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.Logger; import org.primefaces.model.file.UploadedFile; diff --git a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/jsf/beans/LogAttachmentUploadBean.java b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/jsf/beans/LogAttachmentUploadBean.java index 35d35bffe..911129010 100644 --- a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/jsf/beans/LogAttachmentUploadBean.java +++ b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/jsf/beans/LogAttachmentUploadBean.java @@ -7,6 +7,7 @@ import gov.anl.aps.cdb.portal.model.db.entities.Attachment; import gov.anl.aps.cdb.portal.model.db.entities.Log; import gov.anl.aps.cdb.common.utilities.FileUtility; +import gov.anl.aps.cdb.portal.model.db.utilities.LogUtility; import gov.anl.aps.cdb.portal.utilities.SessionUtility; import gov.anl.aps.cdb.portal.utilities.StorageUtility; import java.io.File; @@ -17,10 +18,8 @@ import java.nio.file.Path; import java.nio.file.Paths; import java.nio.file.StandardCopyOption; -import java.util.ArrayList; -import java.util.List; -import javax.enterprise.context.SessionScoped; -import javax.inject.Named; +import jakarta.enterprise.context.SessionScoped; +import jakarta.inject.Named; import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.Logger; import org.primefaces.event.FileUploadEvent; @@ -68,12 +67,8 @@ public void upload(UploadedFile uploadedFile) { Attachment attachment = new Attachment(); attachment.setName(originalFile.getName()); attachment.setOriginalFilename(fileName); - List attachmentList = logEntry.getAttachmentList(); - if (attachmentList == null) { - attachmentList = new ArrayList<>(); - logEntry.setAttachmentList(attachmentList); - } - attachmentList.add(attachment); + // Saved by the owning entity's update when the dialog's Done runs saveLogList. + LogUtility.addAttachment(logEntry, attachment); SessionUtility.addInfoMessage("Success", "Uploaded file " + fileName + "."); } } catch (IOException ex) { diff --git a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/jsf/beans/PropertyValueDocumentUploadBean.java b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/jsf/beans/PropertyValueDocumentUploadBean.java index 910552133..1d8861007 100644 --- a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/jsf/beans/PropertyValueDocumentUploadBean.java +++ b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/jsf/beans/PropertyValueDocumentUploadBean.java @@ -21,8 +21,8 @@ import java.nio.file.Paths; import java.nio.file.StandardCopyOption; import java.util.List; -import javax.enterprise.context.SessionScoped; -import javax.inject.Named; +import jakarta.enterprise.context.SessionScoped; +import jakarta.inject.Named; import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.Logger; import org.primefaces.event.FileUploadEvent; diff --git a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/jsf/beans/PropertyValueImageUploadBean.java b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/jsf/beans/PropertyValueImageUploadBean.java index 008981e2e..dda3de9e2 100644 --- a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/jsf/beans/PropertyValueImageUploadBean.java +++ b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/jsf/beans/PropertyValueImageUploadBean.java @@ -28,8 +28,8 @@ import java.nio.file.StandardCopyOption; import java.util.ArrayList; import java.util.List; -import javax.enterprise.context.SessionScoped; -import javax.inject.Named; +import jakarta.enterprise.context.SessionScoped; +import jakarta.inject.Named; import javax.naming.InitialContext; import javax.naming.NamingException; import org.apache.logging.log4j.LogManager; diff --git a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/jsf/beans/PropertyValueInfoActionBean.java b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/jsf/beans/PropertyValueInfoActionBean.java index bba61a6ec..c5d40056c 100644 --- a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/jsf/beans/PropertyValueInfoActionBean.java +++ b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/jsf/beans/PropertyValueInfoActionBean.java @@ -5,11 +5,11 @@ package gov.anl.aps.cdb.portal.model.jsf.beans; import java.io.Serializable; -import javax.inject.Named; +import jakarta.inject.Named; import gov.anl.aps.cdb.portal.model.db.entities.PropertyValue; import gov.anl.aps.cdb.portal.model.db.entities.PropertyValueHistory; import gov.anl.aps.cdb.portal.plugins.CdbPluginManager; -import javax.enterprise.context.SessionScoped; +import jakarta.enterprise.context.SessionScoped; import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.Logger; diff --git a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/jsf/beans/PropertyValueMarkdownDocumentUploadBean.java b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/jsf/beans/PropertyValueMarkdownDocumentUploadBean.java index 8a146eda5..7dcf89189 100644 --- a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/jsf/beans/PropertyValueMarkdownDocumentUploadBean.java +++ b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/jsf/beans/PropertyValueMarkdownDocumentUploadBean.java @@ -20,8 +20,8 @@ import java.nio.file.StandardCopyOption; import java.util.ArrayList; import java.util.List; -import javax.enterprise.context.SessionScoped; -import javax.inject.Named; +import jakarta.enterprise.context.SessionScoped; +import jakarta.inject.Named; import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.Logger; import org.primefaces.event.FileUploadEvent; diff --git a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/jsf/beans/SparePartsBean.java b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/jsf/beans/SparePartsBean.java index c7a8e4812..c99e3d07b 100644 --- a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/jsf/beans/SparePartsBean.java +++ b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/model/jsf/beans/SparePartsBean.java @@ -22,9 +22,9 @@ import java.io.Serializable; import java.util.ArrayList; import java.util.List; -import javax.ejb.EJB; -import javax.enterprise.context.SessionScoped; -import javax.inject.Named; +import jakarta.ejb.EJB; +import jakarta.enterprise.context.SessionScoped; +import jakarta.inject.Named; import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.Logger; diff --git a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/plugins/CdbPluginManager.java b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/plugins/CdbPluginManager.java index e6735e1e6..d5ba049cb 100644 --- a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/plugins/CdbPluginManager.java +++ b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/plugins/CdbPluginManager.java @@ -13,8 +13,8 @@ import java.util.Set; import java.util.ArrayList; import java.util.List; -import javax.enterprise.context.SessionScoped; -import javax.inject.Named; +import jakarta.enterprise.context.SessionScoped; +import jakarta.inject.Named; import java.util.HashSet; // Must be generated by tools/developer_tools/cdb_plugins diff --git a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/utilities/DmNoCacheFilter.java b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/utilities/DmNoCacheFilter.java index 57c56fb6b..cee784758 100644 --- a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/utilities/DmNoCacheFilter.java +++ b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/utilities/DmNoCacheFilter.java @@ -5,13 +5,13 @@ package gov.anl.aps.cdb.portal.utilities; import java.io.IOException; -import javax.servlet.Filter; -import javax.servlet.FilterChain; -import javax.servlet.FilterConfig; -import javax.servlet.ServletException; -import javax.servlet.ServletRequest; -import javax.servlet.ServletResponse; -import javax.servlet.http.HttpServletResponse; +import jakarta.servlet.Filter; +import jakarta.servlet.FilterChain; +import jakarta.servlet.FilterConfig; +import jakarta.servlet.ServletException; +import jakarta.servlet.ServletRequest; +import jakarta.servlet.ServletResponse; +import jakarta.servlet.http.HttpServletResponse; /** * Filter class that prevents browser from caching dynamic pages. diff --git a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/utilities/GalleryUtility.java b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/utilities/GalleryUtility.java index 21497e96c..166b427db 100644 --- a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/utilities/GalleryUtility.java +++ b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/utilities/GalleryUtility.java @@ -29,7 +29,7 @@ import java.nio.file.Path; import java.nio.file.Paths; import java.util.Iterator; -import javax.faces.context.FacesContext; +import jakarta.faces.context.FacesContext; import javax.imageio.ImageIO; import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.Logger; diff --git a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/utilities/MarkdownParser.java b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/utilities/MarkdownParser.java index 9edc49244..d7dd40075 100644 --- a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/utilities/MarkdownParser.java +++ b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/utilities/MarkdownParser.java @@ -29,7 +29,7 @@ import java.util.Arrays; import java.util.HashSet; import java.util.Set; -import javax.validation.constraints.NotNull; +import jakarta.validation.constraints.NotNull; /** * diff --git a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/utilities/SessionUtility.java b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/utilities/SessionUtility.java index ec264e7fe..2bf0659fb 100644 --- a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/utilities/SessionUtility.java +++ b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/utilities/SessionUtility.java @@ -8,16 +8,16 @@ import java.io.IOException; import java.util.Map; import java.util.Stack; -import javax.faces.application.FacesMessage; -import javax.faces.application.NavigationHandler; -import javax.faces.application.ViewHandler; -import javax.faces.component.UIViewRoot; -import javax.faces.context.ExternalContext; -import javax.faces.context.FacesContext; -import javax.faces.context.Flash; +import jakarta.faces.application.FacesMessage; +import jakarta.faces.application.NavigationHandler; +import jakarta.faces.application.ViewHandler; +import jakarta.faces.component.UIViewRoot; +import jakarta.faces.context.ExternalContext; +import jakarta.faces.context.FacesContext; +import jakarta.faces.context.Flash; import javax.naming.InitialContext; import javax.naming.NamingException; -import javax.servlet.http.HttpSession; +import jakarta.servlet.http.HttpSession; import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.Logger; import org.primefaces.PrimeFaces; diff --git a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/view/jsf/utilities/FacesUtility.java b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/view/jsf/utilities/FacesUtility.java index 833c9f8d2..313679778 100644 --- a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/view/jsf/utilities/FacesUtility.java +++ b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/view/jsf/utilities/FacesUtility.java @@ -12,14 +12,15 @@ import java.util.Date; import java.util.LinkedList; import java.util.List; -import javax.enterprise.context.RequestScoped; -import javax.faces.component.UIComponent; -import javax.faces.component.UISelectItems; -import javax.faces.context.FacesContext; -import javax.faces.convert.Converter; -import javax.faces.convert.FacesConverter; -import javax.faces.model.DataModel; -import javax.inject.Named; +import jakarta.enterprise.context.RequestScoped; +import jakarta.faces.component.UIComponent; +import jakarta.faces.component.UISelectItems; +import jakarta.faces.context.FacesContext; +import jakarta.faces.convert.Converter; +import jakarta.faces.convert.FacesConverter; +import jakarta.faces.model.DataModel; +import jakarta.faces.model.SelectItem; +import jakarta.inject.Named; import org.primefaces.component.datatable.DataTable; import org.primefaces.component.panel.Panel; import org.primefaces.component.selectonemenu.SelectOneMenu; @@ -42,6 +43,19 @@ public SelectOneMenu getSelectOneMenu() { return selectOneMenu; } + // String-valued copy for column filter facets: matches what filterOptions rendered and avoids entity converter validation. + public SelectItem[] getFilterSelectItems(SelectItem[] items) { + if (items == null) { + return new SelectItem[0]; + } + SelectItem[] filterItems = new SelectItem[items.length]; + for (int i = 0; i < items.length; i++) { + Object value = items[i].getValue(); + filterItems[i] = new SelectItem(value == null ? "" : value.toString(), items[i].getLabel()); + } + return filterItems; + } + public void updateToToday(Date date) { if (date != null) { Date newDate = new Date(); diff --git a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/view/jsf/utilities/SimpleCreateItemElementDialogUtility.java b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/view/jsf/utilities/SimpleCreateItemElementDialogUtility.java index 88cbb63fa..fe11a5c37 100644 --- a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/view/jsf/utilities/SimpleCreateItemElementDialogUtility.java +++ b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/view/jsf/utilities/SimpleCreateItemElementDialogUtility.java @@ -4,8 +4,8 @@ */ package gov.anl.aps.cdb.portal.view.jsf.utilities; -import javax.enterprise.context.RequestScoped; -import javax.inject.Named; +import jakarta.enterprise.context.RequestScoped; +import jakarta.inject.Named; import org.primefaces.component.panel.Panel; /** diff --git a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/view/jsf/utilities/UiComponentUtility.java b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/view/jsf/utilities/UiComponentUtility.java index e8991d188..07e0141b6 100644 --- a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/view/jsf/utilities/UiComponentUtility.java +++ b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/view/jsf/utilities/UiComponentUtility.java @@ -6,8 +6,8 @@ import java.util.Iterator; import java.util.Map; -import javax.faces.component.UIComponent; -import javax.faces.context.FacesContext; +import jakarta.faces.component.UIComponent; +import jakarta.faces.context.FacesContext; /** * Utility class for manipulating UI components. diff --git a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/view/objects/InventoryBillOfMaterialItem.java b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/view/objects/InventoryBillOfMaterialItem.java index 1724f808e..ab56c3bdf 100644 --- a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/view/objects/InventoryBillOfMaterialItem.java +++ b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/portal/view/objects/InventoryBillOfMaterialItem.java @@ -18,8 +18,8 @@ import gov.anl.aps.cdb.portal.model.db.entities.ItemProject; import java.util.ArrayList; import java.util.List; -import javax.faces.model.DataModel; -import javax.faces.model.ListDataModel; +import jakarta.faces.model.DataModel; +import jakarta.faces.model.ListDataModel; /** * The purpose of this class is to store information required to create an diff --git a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/rest/CdbRestService.java b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/rest/CdbRestService.java index 2ba76d604..0ad2c0e44 100644 --- a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/rest/CdbRestService.java +++ b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/rest/CdbRestService.java @@ -11,8 +11,8 @@ import io.swagger.v3.jaxrs2.integration.resources.AcceptHeaderOpenApiResource; import io.swagger.v3.jaxrs2.integration.resources.OpenApiResource; import java.util.Set; -import javax.ws.rs.ApplicationPath; -import javax.ws.rs.core.Application; +import jakarta.ws.rs.ApplicationPath; +import jakarta.ws.rs.core.Application; import org.glassfish.jersey.jackson.JacksonFeature; @ApplicationPath("/api/") diff --git a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/rest/authentication/AuthenticationFilter.java b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/rest/authentication/AuthenticationFilter.java index 71f37d7e6..426e636ed 100644 --- a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/rest/authentication/AuthenticationFilter.java +++ b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/rest/authentication/AuthenticationFilter.java @@ -5,12 +5,12 @@ package gov.anl.aps.cdb.rest.authentication; import java.io.IOException; -import javax.annotation.Priority; -import javax.ws.rs.NotAuthorizedException; -import javax.ws.rs.Priorities; -import javax.ws.rs.container.ContainerRequestContext; -import javax.ws.rs.container.ContainerRequestFilter; -import javax.ws.rs.ext.Provider; +import jakarta.annotation.Priority; +import jakarta.ws.rs.NotAuthorizedException; +import jakarta.ws.rs.Priorities; +import jakarta.ws.rs.container.ContainerRequestContext; +import jakarta.ws.rs.container.ContainerRequestFilter; +import jakarta.ws.rs.ext.Provider; @Secured @Provider diff --git a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/rest/authentication/CdbApiSecurityContext.java b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/rest/authentication/CdbApiSecurityContext.java index 7fa17ac59..9f470397e 100644 --- a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/rest/authentication/CdbApiSecurityContext.java +++ b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/rest/authentication/CdbApiSecurityContext.java @@ -4,7 +4,7 @@ */ package gov.anl.aps.cdb.rest.authentication; -import javax.ws.rs.core.SecurityContext; +import jakarta.ws.rs.core.SecurityContext; import java.security.Principal; /** diff --git a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/rest/authentication/Secured.java b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/rest/authentication/Secured.java index ab3cc2faa..67054e2b8 100644 --- a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/rest/authentication/Secured.java +++ b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/rest/authentication/Secured.java @@ -9,7 +9,7 @@ import java.lang.annotation.Retention; import static java.lang.annotation.RetentionPolicy.RUNTIME; import java.lang.annotation.Target; -import javax.ws.rs.NameBinding; +import jakarta.ws.rs.NameBinding; @NameBinding @Retention(RUNTIME) diff --git a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/rest/entities/DateParam.java b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/rest/entities/DateParam.java index 41eba19a0..d8d48b544 100644 --- a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/rest/entities/DateParam.java +++ b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/rest/entities/DateParam.java @@ -9,10 +9,10 @@ import java.text.SimpleDateFormat; import java.util.Calendar; import java.util.Date; -import javax.ws.rs.WebApplicationException; -import javax.ws.rs.core.Response; -import javax.ws.rs.core.Response.Status; -import javax.xml.bind.DatatypeConverter; +import jakarta.ws.rs.WebApplicationException; +import jakarta.ws.rs.core.Response; +import jakarta.ws.rs.core.Response.Status; +import jakarta.xml.bind.DatatypeConverter; /** * diff --git a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/rest/provider/GenericAPIExceptionProvider.java b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/rest/provider/GenericAPIExceptionProvider.java index d9bcfd09e..83a627c53 100644 --- a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/rest/provider/GenericAPIExceptionProvider.java +++ b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/rest/provider/GenericAPIExceptionProvider.java @@ -7,11 +7,11 @@ import gov.anl.aps.cdb.common.exceptions.AuthenticationError; import gov.anl.aps.cdb.common.exceptions.ObjectNotFound; import gov.anl.aps.cdb.rest.entities.ApiExceptionMessage; -import javax.ws.rs.NotAuthorizedException; -import javax.ws.rs.core.MediaType; -import javax.ws.rs.core.Response; -import javax.ws.rs.ext.ExceptionMapper; -import javax.ws.rs.ext.Provider; +import jakarta.ws.rs.NotAuthorizedException; +import jakarta.ws.rs.core.MediaType; +import jakarta.ws.rs.core.Response; +import jakarta.ws.rs.ext.ExceptionMapper; +import jakarta.ws.rs.ext.Provider; import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.Logger; diff --git a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/rest/routes/AppItemRoute.java b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/rest/routes/AppItemRoute.java index 850d95315..f58db0a0c 100644 --- a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/rest/routes/AppItemRoute.java +++ b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/rest/routes/AppItemRoute.java @@ -16,12 +16,12 @@ import io.swagger.v3.oas.annotations.parameters.RequestBody; import io.swagger.v3.oas.annotations.security.SecurityRequirement; import io.swagger.v3.oas.annotations.tags.Tag; -import javax.ejb.EJB; -import javax.ws.rs.Consumes; -import javax.ws.rs.PUT; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.core.MediaType; +import jakarta.ejb.EJB; +import jakarta.ws.rs.Consumes; +import jakarta.ws.rs.PUT; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.Logger; diff --git a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/rest/routes/AuthenticationRoute.java b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/rest/routes/AuthenticationRoute.java index dbf9cf159..0ac9b38bb 100644 --- a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/rest/routes/AuthenticationRoute.java +++ b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/rest/routes/AuthenticationRoute.java @@ -21,15 +21,15 @@ import io.swagger.v3.oas.annotations.security.SecurityScheme; import io.swagger.v3.oas.annotations.tags.Tag; import java.security.Principal; -import javax.ejb.EJB; -import javax.ws.rs.Consumes; -import javax.ws.rs.FormParam; -import javax.ws.rs.GET; -import javax.ws.rs.POST; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.core.MediaType; -import javax.ws.rs.core.Response; +import jakarta.ejb.EJB; +import jakarta.ws.rs.Consumes; +import jakarta.ws.rs.FormParam; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.POST; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; +import jakarta.ws.rs.core.Response; import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.Logger; diff --git a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/rest/routes/BaseRoute.java b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/rest/routes/BaseRoute.java index c3aece809..7d7f57160 100644 --- a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/rest/routes/BaseRoute.java +++ b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/rest/routes/BaseRoute.java @@ -12,9 +12,9 @@ import gov.anl.aps.cdb.portal.utilities.AuthorizationUtility; import gov.anl.aps.cdb.rest.authentication.User; import java.security.Principal; -import javax.ejb.EJB; -import javax.ws.rs.core.Context; -import javax.ws.rs.core.SecurityContext; +import jakarta.ejb.EJB; +import jakarta.ws.rs.core.Context; +import jakarta.ws.rs.core.SecurityContext; import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.Logger; diff --git a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/rest/routes/CableCatalogItemRoute.java b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/rest/routes/CableCatalogItemRoute.java index 33ee6bf11..bc6d0e3f3 100644 --- a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/rest/routes/CableCatalogItemRoute.java +++ b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/rest/routes/CableCatalogItemRoute.java @@ -10,12 +10,12 @@ import gov.anl.aps.cdb.portal.model.db.entities.ItemDomainCableCatalog; import io.swagger.v3.oas.annotations.tags.Tag; import java.util.List; -import javax.ejb.EJB; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.PathParam; -import javax.ws.rs.Produces; -import javax.ws.rs.core.MediaType; +import jakarta.ejb.EJB; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.PathParam; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.Logger; diff --git a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/rest/routes/CableDesignItemRoute.java b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/rest/routes/CableDesignItemRoute.java index 5172de7e1..ca8de793e 100644 --- a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/rest/routes/CableDesignItemRoute.java +++ b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/rest/routes/CableDesignItemRoute.java @@ -44,16 +44,16 @@ import java.util.ArrayList; import java.util.List; import java.util.Objects; -import javax.ejb.EJB; -import javax.ws.rs.Consumes; -import javax.ws.rs.DELETE; -import javax.ws.rs.GET; -import javax.ws.rs.POST; -import javax.ws.rs.Path; -import javax.ws.rs.PathParam; -import javax.ws.rs.Produces; -import javax.ws.rs.QueryParam; -import javax.ws.rs.core.MediaType; +import jakarta.ejb.EJB; +import jakarta.ws.rs.Consumes; +import jakarta.ws.rs.DELETE; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.POST; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.PathParam; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.QueryParam; +import jakarta.ws.rs.core.MediaType; import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.Logger; diff --git a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/rest/routes/CableImportRoute.java b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/rest/routes/CableImportRoute.java index 77684a364..0b645bd11 100644 --- a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/rest/routes/CableImportRoute.java +++ b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/rest/routes/CableImportRoute.java @@ -20,12 +20,12 @@ import java.time.Instant; import java.util.ArrayList; import java.util.List; -import javax.ejb.EJB; -import javax.ws.rs.Consumes; -import javax.ws.rs.POST; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.core.MediaType; +import jakarta.ejb.EJB; +import jakarta.ws.rs.Consumes; +import jakarta.ws.rs.POST; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.Logger; diff --git a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/rest/routes/ComponentCatalogtemRoute.java b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/rest/routes/ComponentCatalogtemRoute.java index 0925b0213..5d9c30ec9 100644 --- a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/rest/routes/ComponentCatalogtemRoute.java +++ b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/rest/routes/ComponentCatalogtemRoute.java @@ -19,13 +19,13 @@ import io.swagger.v3.oas.annotations.parameters.RequestBody; import io.swagger.v3.oas.annotations.security.SecurityRequirement; import io.swagger.v3.oas.annotations.tags.Tag; -import javax.ejb.EJB; -import javax.ws.rs.Consumes; -import javax.ws.rs.PUT; -import javax.ws.rs.Path; -import javax.ws.rs.PathParam; -import javax.ws.rs.Produces; -import javax.ws.rs.core.MediaType; +import jakarta.ejb.EJB; +import jakarta.ws.rs.Consumes; +import jakarta.ws.rs.PUT; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.PathParam; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.Logger; diff --git a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/rest/routes/ComponentInventorytemRoute.java b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/rest/routes/ComponentInventorytemRoute.java index efbdd38d6..2a7ae2ef4 100644 --- a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/rest/routes/ComponentInventorytemRoute.java +++ b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/rest/routes/ComponentInventorytemRoute.java @@ -16,12 +16,12 @@ import io.swagger.v3.oas.annotations.parameters.RequestBody; import io.swagger.v3.oas.annotations.security.SecurityRequirement; import io.swagger.v3.oas.annotations.tags.Tag; -import javax.ejb.EJB; -import javax.ws.rs.Consumes; -import javax.ws.rs.PUT; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.core.MediaType; +import jakarta.ejb.EJB; +import jakarta.ws.rs.Consumes; +import jakarta.ws.rs.PUT; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.Logger; diff --git a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/rest/routes/ConnectorTypeRoute.java b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/rest/routes/ConnectorTypeRoute.java index d14ecfe8c..947065c10 100644 --- a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/rest/routes/ConnectorTypeRoute.java +++ b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/rest/routes/ConnectorTypeRoute.java @@ -12,14 +12,14 @@ import io.swagger.v3.oas.annotations.tags.Tag; import java.util.ArrayList; import java.util.List; -import javax.ejb.EJB; -import javax.ws.rs.Consumes; -import javax.ws.rs.GET; -import javax.ws.rs.POST; -import javax.ws.rs.Path; -import javax.ws.rs.PathParam; -import javax.ws.rs.Produces; -import javax.ws.rs.core.MediaType; +import jakarta.ejb.EJB; +import jakarta.ws.rs.Consumes; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.POST; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.PathParam; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.Logger; diff --git a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/rest/routes/DomainRoute.java b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/rest/routes/DomainRoute.java index f73a36572..189b41c8f 100644 --- a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/rest/routes/DomainRoute.java +++ b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/rest/routes/DomainRoute.java @@ -13,12 +13,12 @@ import gov.anl.aps.cdb.portal.model.db.entities.ItemType; import io.swagger.v3.oas.annotations.tags.Tag; import java.util.List; -import javax.ejb.EJB; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.PathParam; -import javax.ws.rs.Produces; -import javax.ws.rs.core.MediaType; +import jakarta.ejb.EJB; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.PathParam; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.Logger; diff --git a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/rest/routes/DownloadRoute.java b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/rest/routes/DownloadRoute.java index 924b4305c..bab5d8341 100644 --- a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/rest/routes/DownloadRoute.java +++ b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/rest/routes/DownloadRoute.java @@ -20,14 +20,14 @@ import io.swagger.v3.oas.annotations.tags.Tag; import java.io.File; import java.io.FileNotFoundException; -import javax.ejb.EJB; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.PathParam; -import javax.ws.rs.Produces; -import javax.ws.rs.core.MediaType; -import javax.ws.rs.core.Response; -import javax.ws.rs.core.Response.ResponseBuilder; +import jakarta.ejb.EJB; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.PathParam; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; +import jakarta.ws.rs.core.Response; +import jakarta.ws.rs.core.Response.ResponseBuilder; import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.Logger; diff --git a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/rest/routes/IOCItemRoute.java b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/rest/routes/IOCItemRoute.java index 57feac493..9cbcc9143 100644 --- a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/rest/routes/IOCItemRoute.java +++ b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/rest/routes/IOCItemRoute.java @@ -29,14 +29,14 @@ import io.swagger.v3.oas.annotations.tags.Tag; import java.util.ArrayList; import java.util.List; -import javax.ejb.EJB; -import javax.ws.rs.GET; -import javax.ws.rs.POST; -import javax.ws.rs.Path; -import javax.ws.rs.PathParam; -import javax.ws.rs.Produces; -import javax.ws.rs.QueryParam; -import javax.ws.rs.core.MediaType; +import jakarta.ejb.EJB; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.POST; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.PathParam; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.QueryParam; +import jakarta.ws.rs.core.MediaType; /** * diff --git a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/rest/routes/ItemBaseRoute.java b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/rest/routes/ItemBaseRoute.java index 53d76b9fa..96f08951c 100644 --- a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/rest/routes/ItemBaseRoute.java +++ b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/rest/routes/ItemBaseRoute.java @@ -11,8 +11,8 @@ import gov.anl.aps.cdb.portal.model.db.entities.Item; import gov.anl.aps.cdb.portal.model.db.entities.ItemCategory; import gov.anl.aps.cdb.portal.model.db.entities.ItemProject; -import javax.ejb.EJB; -import javax.ws.rs.PathParam; +import jakarta.ejb.EJB; +import jakarta.ws.rs.PathParam; import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.Logger; diff --git a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/rest/routes/ItemRoute.java b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/rest/routes/ItemRoute.java index 93861b111..e9f28c6cf 100644 --- a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/rest/routes/ItemRoute.java +++ b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/rest/routes/ItemRoute.java @@ -18,11 +18,11 @@ import gov.anl.aps.cdb.portal.controllers.utilities.ItemDomainLocationControllerUtility; import gov.anl.aps.cdb.portal.controllers.utilities.ItemDomainMachineDesignControllerUtility; import gov.anl.aps.cdb.portal.controllers.utilities.LocatableItemControllerUtility; +import gov.anl.aps.cdb.portal.controllers.utilities.LogControllerUtility; import gov.anl.aps.cdb.portal.model.db.beans.AttachmentFacade; import gov.anl.aps.cdb.portal.model.db.beans.DomainFacade; import gov.anl.aps.cdb.portal.model.db.beans.ItemCategoryFacade; import gov.anl.aps.cdb.portal.model.db.beans.ItemElementFacade; -import gov.anl.aps.cdb.portal.model.db.beans.LogFacade; import gov.anl.aps.cdb.portal.model.db.beans.ItemProjectFacade; import gov.anl.aps.cdb.portal.model.db.beans.ItemTypeFacade; import gov.anl.aps.cdb.portal.model.db.beans.PropertyTypeFacade; @@ -78,15 +78,15 @@ import java.util.ArrayList; import java.util.LinkedList; import java.util.List; -import javax.ejb.EJB; -import javax.ws.rs.Consumes; -import javax.ws.rs.DELETE; -import javax.ws.rs.GET; -import javax.ws.rs.POST; -import javax.ws.rs.Path; -import javax.ws.rs.PathParam; -import javax.ws.rs.Produces; -import javax.ws.rs.core.MediaType; +import jakarta.ejb.EJB; +import jakarta.ws.rs.Consumes; +import jakarta.ws.rs.DELETE; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.POST; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.PathParam; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.Logger; @@ -130,9 +130,6 @@ public class ItemRoute extends ItemBaseRoute { @EJB AttachmentFacade attachmentFacade; - @EJB - LogFacade logFacade; - @GET @Path("/ById/{itemId}") @Produces(MediaType.APPLICATION_JSON) @@ -862,6 +859,65 @@ public Log addLogEntryToItem(@RequestBody(required = true) LogEntryEditInformati return latestLog; } + @POST + @Path("/updateLogEntry/{logId}") + @Produces(MediaType.APPLICATION_JSON) + @Consumes(MediaType.APPLICATION_JSON) + @Operation(summary = "Update text and/or effective date of an existing item log entry.") + @SecurityRequirement(name = "cdbAuth") + @Secured + public Log updateLogEntryForItem( + @PathParam("logId") int logId, + @RequestBody(required = true) LogEntryEditInformation logEntryEditInformation) throws ObjectNotFound, CdbException { + int itemId = logEntryEditInformation.getItemId(); + LOGGER.debug("Updating log " + logId + " for item with id: " + itemId); + Item item = getItemByIdBase(itemId); + UserInfo updateUser = verifyCurrentUserPermissionForItem(item); + Log log = findItemLog(item, logId); + + if (logEntryEditInformation.getLogEntry() != null) { + log.setText(logEntryEditInformation.getLogEntry()); + } + if (logEntryEditInformation.getEffectiveDate() != null) { + log.setEffectiveFromDateTime(logEntryEditInformation.getEffectiveDate()); + } + + ItemControllerUtility controllerUtility = item.getItemControllerUtility(); + Item updatedItem = (Item) controllerUtility.update(item, updateUser); + return findItemLog(updatedItem, logId); + } + + @DELETE + @Path("/deleteLogEntry/{itemId}/{logId}") + @Operation(summary = "Delete an item log entry.") + @SecurityRequirement(name = "cdbAuth") + @Secured + public void deleteLogEntryFromItem( + @PathParam("itemId") int itemId, + @PathParam("logId") int logId) throws ObjectNotFound, CdbException { + LOGGER.debug("Deleting log " + logId + " for item with id: " + itemId); + Item item = getItemByIdBase(itemId); + UserInfo updateUser = verifyCurrentUserPermissionForItem(item); + Log log = findItemLog(item, logId); + + // Mirrors the portal: unlink through the item update, then delete the log row. + item.getLogList().remove(log); + ItemControllerUtility controllerUtility = item.getItemControllerUtility(); + controllerUtility.updateOnRemoval(item, updateUser); + new LogControllerUtility().destroy(log, updateUser); + } + + private Log findItemLog(Item item, int logId) throws ObjectNotFound { + if (item.getLogList() != null) { + for (Log log : item.getLogList()) { + if (log.getId() != null && log.getId() == logId) { + return log; + } + } + } + throw new ObjectNotFound("Could not find log " + logId + " for item " + item.getId()); + } + @POST @Path("/uploadDocument/{itemId}") @Produces(MediaType.APPLICATION_JSON) @@ -968,28 +1024,15 @@ public Log uploadLogAttachmentForItem( LOGGER.debug("Uploading log attachment for item: " + itemId + " log: " + logId); Item item = getItemByIdBase(itemId); UserInfo updatedByUser = verifyCurrentUserPermissionForItem(item); - - Log log = null; - for (Log l : item.getLogList()) { - if (l.getId() != null && l.getId() == logId) { - log = l; - break; - } - } - if (log == null) { - throw new ObjectNotFound("Could not find log " + logId + " for item " + itemId); - } + Log log = findItemLog(item, logId); Attachment attachment = FileUploadUtility.writeLogAttachmentFile( fileUpload.getFileName(), FileUploadUtility.decodeFileUpload(fileUpload)); attachmentFacade.create(attachment); - if (log.getAttachmentList() == null) { - log.setAttachmentList(new ArrayList<>()); - } - log.getAttachmentList().add(attachment); - logFacade.edit(log); - return log; + ItemControllerUtility controllerUtility = item.getItemControllerUtility(); + Item updatedItem = (Item) controllerUtility.addLogAttachment(item, log, attachment, updatedByUser); + return findItemLog(updatedItem, logId); } @GET diff --git a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/rest/routes/LocationItemRoute.java b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/rest/routes/LocationItemRoute.java index 058f7a21f..78418ceb9 100644 --- a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/rest/routes/LocationItemRoute.java +++ b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/rest/routes/LocationItemRoute.java @@ -19,13 +19,13 @@ import io.swagger.v3.oas.annotations.security.SecurityRequirement; import io.swagger.v3.oas.annotations.tags.Tag; import java.util.List; -import javax.ejb.EJB; -import javax.ws.rs.GET; -import javax.ws.rs.POST; -import javax.ws.rs.Path; -import javax.ws.rs.PathParam; -import javax.ws.rs.Produces; -import javax.ws.rs.core.MediaType; +import jakarta.ejb.EJB; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.POST; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.PathParam; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.Logger; diff --git a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/rest/routes/LogRoute.java b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/rest/routes/LogRoute.java index 34a946141..8f6557eee 100644 --- a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/rest/routes/LogRoute.java +++ b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/rest/routes/LogRoute.java @@ -14,12 +14,12 @@ import io.swagger.v3.oas.annotations.tags.Tag; import java.text.ParseException; import java.util.List; -import javax.ejb.EJB; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.PathParam; -import javax.ws.rs.Produces; -import javax.ws.rs.core.MediaType; +import jakarta.ejb.EJB; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.PathParam; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.Logger; diff --git a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/rest/routes/MAARCItemRoute.java b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/rest/routes/MAARCItemRoute.java index 6f38f48f4..495dbe748 100644 --- a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/rest/routes/MAARCItemRoute.java +++ b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/rest/routes/MAARCItemRoute.java @@ -22,14 +22,14 @@ import io.swagger.v3.oas.annotations.security.SecurityRequirement; import io.swagger.v3.oas.annotations.tags.Tag; import java.util.List; -import javax.ejb.EJB; -import javax.ws.rs.Consumes; -import javax.ws.rs.GET; -import javax.ws.rs.PUT; -import javax.ws.rs.Path; -import javax.ws.rs.PathParam; -import javax.ws.rs.Produces; -import javax.ws.rs.core.MediaType; +import jakarta.ejb.EJB; +import jakarta.ws.rs.Consumes; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.PUT; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.PathParam; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.Logger; diff --git a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/rest/routes/MachineDesignItemRoute.java b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/rest/routes/MachineDesignItemRoute.java index 83ee5720c..63b4b16d1 100644 --- a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/rest/routes/MachineDesignItemRoute.java +++ b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/rest/routes/MachineDesignItemRoute.java @@ -48,16 +48,16 @@ import java.util.List; import java.util.Map; import java.util.Objects; -import javax.ejb.EJB; -import javax.ws.rs.Consumes; -import javax.ws.rs.GET; -import javax.ws.rs.POST; -import javax.ws.rs.PUT; -import javax.ws.rs.Path; -import javax.ws.rs.PathParam; -import javax.ws.rs.Produces; -import javax.ws.rs.QueryParam; -import javax.ws.rs.core.MediaType; +import jakarta.ejb.EJB; +import jakarta.ws.rs.Consumes; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.POST; +import jakarta.ws.rs.PUT; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.PathParam; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.QueryParam; +import jakarta.ws.rs.core.MediaType; import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.Logger; import org.primefaces.model.TreeNode; diff --git a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/rest/routes/PropertyTypeRoute.java b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/rest/routes/PropertyTypeRoute.java index b5741662a..1f80df9a0 100644 --- a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/rest/routes/PropertyTypeRoute.java +++ b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/rest/routes/PropertyTypeRoute.java @@ -23,15 +23,15 @@ import io.swagger.v3.oas.annotations.parameters.RequestBody; import io.swagger.v3.oas.annotations.tags.Tag; import java.util.List; -import javax.ejb.EJB; -import javax.ws.rs.Consumes; -import javax.ws.rs.GET; -import javax.ws.rs.PUT; -import javax.ws.rs.Path; -import javax.ws.rs.PathParam; -import javax.ws.rs.Produces; -import javax.ws.rs.QueryParam; -import javax.ws.rs.core.MediaType; +import jakarta.ejb.EJB; +import jakarta.ws.rs.Consumes; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.PUT; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.PathParam; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.QueryParam; +import jakarta.ws.rs.core.MediaType; import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.Logger; diff --git a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/rest/routes/PropertyValueRoute.java b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/rest/routes/PropertyValueRoute.java index 7b0925777..5328e7855 100644 --- a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/rest/routes/PropertyValueRoute.java +++ b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/rest/routes/PropertyValueRoute.java @@ -29,15 +29,15 @@ import java.util.List; import java.util.Map; import java.util.Set; -import javax.ejb.EJB; -import javax.ws.rs.Consumes; -import javax.ws.rs.DELETE; -import javax.ws.rs.GET; -import javax.ws.rs.POST; -import javax.ws.rs.Path; -import javax.ws.rs.PathParam; -import javax.ws.rs.Produces; -import javax.ws.rs.core.MediaType; +import jakarta.ejb.EJB; +import jakarta.ws.rs.Consumes; +import jakarta.ws.rs.DELETE; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.POST; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.PathParam; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.Logger; diff --git a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/rest/routes/SearchRoute.java b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/rest/routes/SearchRoute.java index 5dd9aa291..e320dcccd 100644 --- a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/rest/routes/SearchRoute.java +++ b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/rest/routes/SearchRoute.java @@ -29,11 +29,11 @@ import io.swagger.v3.oas.annotations.parameters.RequestBody; import io.swagger.v3.oas.annotations.tags.Tag; import java.util.LinkedList; -import javax.ws.rs.Consumes; -import javax.ws.rs.POST; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.core.MediaType; +import jakarta.ws.rs.Consumes; +import jakarta.ws.rs.POST; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; /** * diff --git a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/rest/routes/SourceRoute.java b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/rest/routes/SourceRoute.java index b23b7e280..bbc0cf892 100644 --- a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/rest/routes/SourceRoute.java +++ b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/rest/routes/SourceRoute.java @@ -12,14 +12,14 @@ import io.swagger.v3.oas.annotations.tags.Tag; import java.util.ArrayList; import java.util.List; -import javax.ejb.EJB; -import javax.ws.rs.Consumes; -import javax.ws.rs.GET; -import javax.ws.rs.POST; -import javax.ws.rs.Path; -import javax.ws.rs.PathParam; -import javax.ws.rs.Produces; -import javax.ws.rs.core.MediaType; +import jakarta.ejb.EJB; +import jakarta.ws.rs.Consumes; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.POST; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.PathParam; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.Logger; diff --git a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/rest/routes/TestRoute.java b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/rest/routes/TestRoute.java index 005268d0a..b2aca9b13 100644 --- a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/rest/routes/TestRoute.java +++ b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/rest/routes/TestRoute.java @@ -8,10 +8,10 @@ import gov.anl.aps.cdb.rest.entities.ApiExceptionMessage; import io.swagger.v3.oas.annotations.security.SecurityRequirement; import io.swagger.v3.oas.annotations.tags.Tag; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.core.MediaType; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.Logger; diff --git a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/rest/routes/UsersRoute.java b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/rest/routes/UsersRoute.java index dc9b77977..161d95aaf 100644 --- a/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/rest/routes/UsersRoute.java +++ b/src/java/CdbWebPortal/src/java/gov/anl/aps/cdb/rest/routes/UsersRoute.java @@ -10,12 +10,12 @@ import gov.anl.aps.cdb.portal.model.db.entities.UserInfo; import io.swagger.v3.oas.annotations.tags.Tag; import java.util.List; -import javax.ejb.EJB; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.PathParam; -import javax.ws.rs.Produces; -import javax.ws.rs.core.MediaType; +import jakarta.ejb.EJB; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.PathParam; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.Logger; diff --git a/src/java/CdbWebPortal/src/java/log4j2.xml b/src/java/CdbWebPortal/src/java/log4j2.xml index 31c877951..789c78b64 100644 --- a/src/java/CdbWebPortal/src/java/log4j2.xml +++ b/src/java/CdbWebPortal/src/java/log4j2.xml @@ -6,6 +6,9 @@ + + + diff --git a/src/java/CdbWebPortal/web/WEB-INF/faces-config.xml b/src/java/CdbWebPortal/web/WEB-INF/faces-config.xml index 3aa2a50f6..cfbd671d4 100644 --- a/src/java/CdbWebPortal/web/WEB-INF/faces-config.xml +++ b/src/java/CdbWebPortal/web/WEB-INF/faces-config.xml @@ -3,10 +3,10 @@ Copyright (c) UChicago Argonne, LLC. All rights reserved. See LICENSE file. --> - + xsi:schemaLocation="https://jakarta.ee/xml/ns/jakartaee https://jakarta.ee/xml/ns/jakartaee/web-facesconfig_4_1.xsd"> /resources diff --git a/src/java/CdbWebPortal/web/WEB-INF/web.xml.template b/src/java/CdbWebPortal/web/WEB-INF/web.xml.template index 27792d8e5..08377fc65 100644 --- a/src/java/CdbWebPortal/web/WEB-INF/web.xml.template +++ b/src/java/CdbWebPortal/web/WEB-INF/web.xml.template @@ -3,15 +3,25 @@ Copyright (c) UChicago Argonne, LLC. All rights reserved. See LICENSE file. --> - + - javax.faces.PROJECT_STAGE + jakarta.faces.PROJECT_STAGE CDB_PROJECT_STAGE - javax.faces.FACELETS_BUFFER_SIZE + jakarta.faces.FACELETS_BUFFER_SIZE 65536 + + + com.sun.faces.forceAlwaysWriteFlashCookie + true + + + + primefaces.CLIENT_SIDE_VALIDATION + true + eot application/vnd.ms-fontobject @@ -38,7 +48,7 @@ See LICENSE file. Faces Servlet - javax.faces.webapp.FacesServlet + jakarta.faces.webapp.FacesServlet 1 @@ -67,7 +77,7 @@ See LICENSE file. - javax.faces.application.ViewExpiredException + jakarta.faces.application.ViewExpiredException /index.xhtml diff --git a/src/java/CdbWebPortal/web/index.xhtml b/src/java/CdbWebPortal/web/index.xhtml index 51fade6c5..2bb777f88 100644 --- a/src/java/CdbWebPortal/web/index.xhtml +++ b/src/java/CdbWebPortal/web/index.xhtml @@ -5,7 +5,7 @@ See LICENSE file. --> + xmlns:h="jakarta.faces.html"> diff --git a/src/java/CdbWebPortal/web/resources/css/catalog.css b/src/java/CdbWebPortal/web/resources/css/catalog.css index 37a79318e..4f2527ed9 100644 --- a/src/java/CdbWebPortal/web/resources/css/catalog.css +++ b/src/java/CdbWebPortal/web/resources/css/catalog.css @@ -75,7 +75,7 @@ html, body { color: #808080; } -.ui-dialog { +.ui-dialog-box { background: #F7F7F2; } diff --git a/src/java/CdbWebPortal/web/resources/css/componentCatalog.css b/src/java/CdbWebPortal/web/resources/css/componentCatalog.css index 3625cf589..570831979 100644 --- a/src/java/CdbWebPortal/web/resources/css/componentCatalog.css +++ b/src/java/CdbWebPortal/web/resources/css/componentCatalog.css @@ -47,6 +47,6 @@ h1 { background: #ebf4fa; } -.ui-dialog { +.ui-dialog-box { background: #ebf4fa; } diff --git a/src/java/CdbWebPortal/web/resources/css/componentInventory.css b/src/java/CdbWebPortal/web/resources/css/componentInventory.css index c1f6bc4f7..9479ef625 100644 --- a/src/java/CdbWebPortal/web/resources/css/componentInventory.css +++ b/src/java/CdbWebPortal/web/resources/css/componentInventory.css @@ -47,6 +47,6 @@ h1 { background: #d5ebf5; } -.ui-dialog { +.ui-dialog-box { background: #d5ebf5; } diff --git a/src/java/CdbWebPortal/web/resources/css/designCatalog.css b/src/java/CdbWebPortal/web/resources/css/designCatalog.css index 88c123b49..49adc9711 100644 --- a/src/java/CdbWebPortal/web/resources/css/designCatalog.css +++ b/src/java/CdbWebPortal/web/resources/css/designCatalog.css @@ -88,6 +88,6 @@ h1 { color: wheat; } -.ui-dialog { +.ui-dialog-box { background: #f1efe2; } diff --git a/src/java/CdbWebPortal/web/resources/css/designComponentCatalog.css b/src/java/CdbWebPortal/web/resources/css/designComponentCatalog.css index ce4d1e9fc..fc87a1f1c 100644 --- a/src/java/CdbWebPortal/web/resources/css/designComponentCatalog.css +++ b/src/java/CdbWebPortal/web/resources/css/designComponentCatalog.css @@ -88,6 +88,6 @@ h1 { color: wheat; } -.ui-dialog { +.ui-dialog-box { background: #E0F8E0; } diff --git a/src/java/CdbWebPortal/web/resources/css/designComponentInventory.css b/src/java/CdbWebPortal/web/resources/css/designComponentInventory.css index efba7f182..1bef9c6f1 100644 --- a/src/java/CdbWebPortal/web/resources/css/designComponentInventory.css +++ b/src/java/CdbWebPortal/web/resources/css/designComponentInventory.css @@ -47,6 +47,6 @@ h1 { background: #CEF6CE; } -.ui-dialog { +.ui-dialog-box { background: #CEF6CE; } diff --git a/src/java/CdbWebPortal/web/resources/css/designInventory.css b/src/java/CdbWebPortal/web/resources/css/designInventory.css index 0f8af0d38..2da47ef9b 100644 --- a/src/java/CdbWebPortal/web/resources/css/designInventory.css +++ b/src/java/CdbWebPortal/web/resources/css/designInventory.css @@ -47,6 +47,6 @@ h1 { background: #efeab9; } -.ui-dialog { +.ui-dialog-box { background: #efeab9; } diff --git a/src/java/CdbWebPortal/web/resources/css/portal.css b/src/java/CdbWebPortal/web/resources/css/portal.css index 0b013bffc..b550e5805 100644 --- a/src/java/CdbWebPortal/web/resources/css/portal.css +++ b/src/java/CdbWebPortal/web/resources/css/portal.css @@ -380,7 +380,8 @@ tr:hover .actionLink { text-align: center; } -.dialog { +/* PF16 dialogs: style the visible box; confirmDialog (no boxStyleClass) puts the class on the full-page .ui-dialog layer. */ +.dialog:not(.ui-dialog), .ui-dialog.dialog > .ui-dialog-box { background: #6da5d8; box-shadow: 0px 3px 5px #d5d5d5; vertical-align: central; @@ -390,6 +391,16 @@ tr:hover .actionLink { margin-right: auto; } +/* PF16 renders .ui-dialog as a full-viewport layer; keep the page clickable behind non-modal dialogs as in PF11. + PF16 only sets aria-modal for modal dialogs (aria-modal="true"); non-modal ones have no attribute. */ +.ui-dialog:not([aria-modal="true"]) { + pointer-events: none; +} + +.ui-dialog:not([aria-modal="true"]) > .ui-dialog-box { + pointer-events: auto; +} + .sortDroppable { height: 0px; border: none; @@ -1257,12 +1268,36 @@ body .ui-panel .ui-panel-titlebar { color: #EEE; } -#loadingDialog { - padding: 0.2rem; - padding-top: 1.75rem; +/* PF16: #loadingDialog is the full-viewport layer; style the visible box instead. */ +#loadingDialog > .ui-dialog-box { + border-radius: 12px; + box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18); +} + +#loadingDialog .ui-dialog-content { + padding: 1.25rem 2rem; +} + +.loadingDialogContent { + display: flex; + align-items: center; + justify-content: center; + gap: 0.75rem; + font-size: 1.1rem; +} + +.loadingDialogSpinner { + font-size: 1.75rem; +} + +/* Modal mask PrimeFaces appends to for the loading dialog. */ +#loadingDialog_modal { + background-color: rgba(0, 0, 0, 0.15); + backdrop-filter: blur(1px); + -webkit-backdrop-filter: blur(1px); } -.viewTransparentBackgroundDialog { +.viewTransparentBackgroundDialog:not(.ui-dialog), .ui-dialog.viewTransparentBackgroundDialog > .ui-dialog-box { background-color: rgba(242, 250, 255, 0.93) !important; border-radius: 5px 5px 10px 10px; vertical-align: central; @@ -1273,7 +1308,7 @@ body .ui-panel .ui-panel-titlebar { } -.viewTransparentBackgroundDialog-alert { +.viewTransparentBackgroundDialog-alert:not(.ui-dialog), .ui-dialog.viewTransparentBackgroundDialog-alert > .ui-dialog-box { background-color: rgba(255, 180, 180, 0.93) !important; } @@ -1609,4 +1644,4 @@ body .ui-inplace .ui-inplace-display { border: none; background: #273647; color: white; -} \ No newline at end of file +} diff --git a/src/java/CdbWebPortal/web/resources/images/ajax-loader.gif b/src/java/CdbWebPortal/web/resources/images/ajax-loader.gif deleted file mode 100644 index 912847a8f..000000000 Binary files a/src/java/CdbWebPortal/web/resources/images/ajax-loader.gif and /dev/null differ diff --git a/src/java/CdbWebPortal/web/templates/contentViewTemplate.xhtml b/src/java/CdbWebPortal/web/templates/contentViewTemplate.xhtml index 6f81d16b3..cbd01de2e 100644 --- a/src/java/CdbWebPortal/web/templates/contentViewTemplate.xhtml +++ b/src/java/CdbWebPortal/web/templates/contentViewTemplate.xhtml @@ -5,7 +5,7 @@ See LICENSE file. --> diff --git a/src/java/CdbWebPortal/web/templates/domainEntityCustomizeDisplayDialogTemplate.xhtml b/src/java/CdbWebPortal/web/templates/domainEntityCustomizeDisplayDialogTemplate.xhtml index 5e5bf4034..6ce5f5872 100644 --- a/src/java/CdbWebPortal/web/templates/domainEntityCustomizeDisplayDialogTemplate.xhtml +++ b/src/java/CdbWebPortal/web/templates/domainEntityCustomizeDisplayDialogTemplate.xhtml @@ -5,10 +5,10 @@ See LICENSE file. --> + xmlns:f="jakarta.faces.core" + xmlns:h="jakarta.faces.html"> @@ -18,11 +18,11 @@ See LICENSE file. + boxStyleClass="dialog">
- + @@ -33,7 +33,7 @@ See LICENSE file. - + @@ -58,7 +58,7 @@ See LICENSE file. - + @@ -66,7 +66,7 @@ See LICENSE file. - + @@ -81,7 +81,7 @@ See LICENSE file. - + @@ -94,7 +94,7 @@ See LICENSE file. - + @@ -19,7 +19,7 @@ See LICENSE file. - +
diff --git a/src/java/CdbWebPortal/web/templates/errorViewTemplate.xhtml b/src/java/CdbWebPortal/web/templates/errorViewTemplate.xhtml index 230661273..22ac4b407 100644 --- a/src/java/CdbWebPortal/web/templates/errorViewTemplate.xhtml +++ b/src/java/CdbWebPortal/web/templates/errorViewTemplate.xhtml @@ -5,8 +5,8 @@ See LICENSE file. --> diff --git a/src/java/CdbWebPortal/web/templates/homeViewTemplate.xhtml b/src/java/CdbWebPortal/web/templates/homeViewTemplate.xhtml index e0e272779..2fb598c82 100644 --- a/src/java/CdbWebPortal/web/templates/homeViewTemplate.xhtml +++ b/src/java/CdbWebPortal/web/templates/homeViewTemplate.xhtml @@ -5,7 +5,7 @@ See LICENSE file. --> + xmlns:ui="jakarta.faces.facelets"> diff --git a/src/java/CdbWebPortal/web/templates/loginDialogTemplate.xhtml b/src/java/CdbWebPortal/web/templates/loginDialogTemplate.xhtml index 954f63ab7..7af569ff2 100644 --- a/src/java/CdbWebPortal/web/templates/loginDialogTemplate.xhtml +++ b/src/java/CdbWebPortal/web/templates/loginDialogTemplate.xhtml @@ -5,21 +5,19 @@ See LICENSE file. --> - - - - - + + + diff --git a/src/java/CdbWebPortal/web/templates/loginViewTemplate.xhtml b/src/java/CdbWebPortal/web/templates/loginViewTemplate.xhtml index 2f8b1d856..7ec386ceb 100644 --- a/src/java/CdbWebPortal/web/templates/loginViewTemplate.xhtml +++ b/src/java/CdbWebPortal/web/templates/loginViewTemplate.xhtml @@ -5,8 +5,8 @@ See LICENSE file. --> + xmlns:ui="jakarta.faces.facelets" + xmlns:h="jakarta.faces.html"> diff --git a/src/java/CdbWebPortal/web/templates/portalViewMenubarTemplate.xhtml b/src/java/CdbWebPortal/web/templates/portalViewMenubarTemplate.xhtml index 9346ea3f4..8719be3c1 100644 --- a/src/java/CdbWebPortal/web/templates/portalViewMenubarTemplate.xhtml +++ b/src/java/CdbWebPortal/web/templates/portalViewMenubarTemplate.xhtml @@ -5,10 +5,10 @@ See LICENSE file. --> + xmlns:f="jakarta.faces.core"> diff --git a/src/java/CdbWebPortal/web/templates/portalViewSupplementalMenubar.xhtml b/src/java/CdbWebPortal/web/templates/portalViewSupplementalMenubar.xhtml index 750ff9797..4734abeca 100644 --- a/src/java/CdbWebPortal/web/templates/portalViewSupplementalMenubar.xhtml +++ b/src/java/CdbWebPortal/web/templates/portalViewSupplementalMenubar.xhtml @@ -5,8 +5,8 @@ See LICENSE file. --> diff --git a/src/java/CdbWebPortal/web/templates/portalViewTemplate.xhtml b/src/java/CdbWebPortal/web/templates/portalViewTemplate.xhtml index ee14e5f08..56d96c98c 100644 --- a/src/java/CdbWebPortal/web/templates/portalViewTemplate.xhtml +++ b/src/java/CdbWebPortal/web/templates/portalViewTemplate.xhtml @@ -5,10 +5,10 @@ See LICENSE file. --> + xmlns:f="jakarta.faces.core"> @@ -168,7 +168,7 @@ See LICENSE file. @@ -186,7 +186,7 @@ See LICENSE file. @@ -207,7 +207,7 @@ See LICENSE file. closable="true" header="Session Lost" draggable="false" - styleClass="viewTransparentBackgroundDialog"> + boxStyleClass="viewTransparentBackgroundDialog"> + boxStyleClass="viewTransparentBackgroundDialog"> @@ -46,7 +46,7 @@ See LICENSE file. - +

Administrative Tools

- + - + - + @@ -39,6 +39,7 @@ See LICENSE file. diff --git a/src/java/CdbWebPortal/web/views/adminLog/private/logLevelSelectManyMenu.xhtml b/src/java/CdbWebPortal/web/views/adminLog/private/logLevelSelectManyMenu.xhtml index db1c3b3de..72076d341 100644 --- a/src/java/CdbWebPortal/web/views/adminLog/private/logLevelSelectManyMenu.xhtml +++ b/src/java/CdbWebPortal/web/views/adminLog/private/logLevelSelectManyMenu.xhtml @@ -5,9 +5,9 @@ See LICENSE file. --> Choose a Log Level diff --git a/src/java/CdbWebPortal/web/views/adminLog/private/systemLogCustomizeDisplayDialog.xhtml b/src/java/CdbWebPortal/web/views/adminLog/private/systemLogCustomizeDisplayDialog.xhtml index 66452dff8..69bce0982 100644 --- a/src/java/CdbWebPortal/web/views/adminLog/private/systemLogCustomizeDisplayDialog.xhtml +++ b/src/java/CdbWebPortal/web/views/adminLog/private/systemLogCustomizeDisplayDialog.xhtml @@ -5,7 +5,7 @@ See LICENSE file. --> diff --git a/src/java/CdbWebPortal/web/views/adminLog/private/systemLogFilterViewListDataTable.xhtml b/src/java/CdbWebPortal/web/views/adminLog/private/systemLogFilterViewListDataTable.xhtml index 878d83cea..17a163aae 100644 --- a/src/java/CdbWebPortal/web/views/adminLog/private/systemLogFilterViewListDataTable.xhtml +++ b/src/java/CdbWebPortal/web/views/adminLog/private/systemLogFilterViewListDataTable.xhtml @@ -5,7 +5,7 @@ See LICENSE file. --> diff --git a/src/java/CdbWebPortal/web/views/allowedPropertyValue/private/allowedPropertyValueEditList.xhtml b/src/java/CdbWebPortal/web/views/allowedPropertyValue/private/allowedPropertyValueEditList.xhtml index 0b4c1a797..6a67acfb5 100644 --- a/src/java/CdbWebPortal/web/views/allowedPropertyValue/private/allowedPropertyValueEditList.xhtml +++ b/src/java/CdbWebPortal/web/views/allowedPropertyValue/private/allowedPropertyValueEditList.xhtml @@ -5,7 +5,7 @@ See LICENSE file. --> + xmlns:ui="jakarta.faces.facelets"> diff --git a/src/java/CdbWebPortal/web/views/allowedPropertyValue/private/allowedPropertyValueEditListCustomizeDisplayDialog.xhtml b/src/java/CdbWebPortal/web/views/allowedPropertyValue/private/allowedPropertyValueEditListCustomizeDisplayDialog.xhtml index d71786e28..c23d64de8 100644 --- a/src/java/CdbWebPortal/web/views/allowedPropertyValue/private/allowedPropertyValueEditListCustomizeDisplayDialog.xhtml +++ b/src/java/CdbWebPortal/web/views/allowedPropertyValue/private/allowedPropertyValueEditListCustomizeDisplayDialog.xhtml @@ -5,8 +5,8 @@ See LICENSE file. --> @@ -16,7 +16,7 @@ See LICENSE file. - + diff --git a/src/java/CdbWebPortal/web/views/allowedPropertyValue/private/allowedPropertyValueEditListDataTable.xhtml b/src/java/CdbWebPortal/web/views/allowedPropertyValue/private/allowedPropertyValueEditListDataTable.xhtml index 3d572243f..3331e8cbb 100644 --- a/src/java/CdbWebPortal/web/views/allowedPropertyValue/private/allowedPropertyValueEditListDataTable.xhtml +++ b/src/java/CdbWebPortal/web/views/allowedPropertyValue/private/allowedPropertyValueEditListDataTable.xhtml @@ -6,15 +6,16 @@ See LICENSE file. diff --git a/src/java/CdbWebPortal/web/views/allowedPropertyValue/private/allowedPropertyValueListCustomizeDisplayDialog.xhtml b/src/java/CdbWebPortal/web/views/allowedPropertyValue/private/allowedPropertyValueListCustomizeDisplayDialog.xhtml index 6c2b621d0..3fea5d0ff 100644 --- a/src/java/CdbWebPortal/web/views/allowedPropertyValue/private/allowedPropertyValueListCustomizeDisplayDialog.xhtml +++ b/src/java/CdbWebPortal/web/views/allowedPropertyValue/private/allowedPropertyValueListCustomizeDisplayDialog.xhtml @@ -5,9 +5,9 @@ See LICENSE file. --> @@ -17,7 +17,7 @@ See LICENSE file. - + diff --git a/src/java/CdbWebPortal/web/views/allowedPropertyValue/private/allowedPropertyValueListDataTable.xhtml b/src/java/CdbWebPortal/web/views/allowedPropertyValue/private/allowedPropertyValueListDataTable.xhtml index 46e0c1e5a..7fe8c2959 100644 --- a/src/java/CdbWebPortal/web/views/allowedPropertyValue/private/allowedPropertyValueListDataTable.xhtml +++ b/src/java/CdbWebPortal/web/views/allowedPropertyValue/private/allowedPropertyValueListDataTable.xhtml @@ -6,14 +6,15 @@ See LICENSE file. diff --git a/src/java/CdbWebPortal/web/views/allowedPropertyValue/private/allowedPropertyValueView.xhtml b/src/java/CdbWebPortal/web/views/allowedPropertyValue/private/allowedPropertyValueView.xhtml index b78cadf03..92296a9fe 100644 --- a/src/java/CdbWebPortal/web/views/allowedPropertyValue/private/allowedPropertyValueView.xhtml +++ b/src/java/CdbWebPortal/web/views/allowedPropertyValue/private/allowedPropertyValueView.xhtml @@ -6,7 +6,7 @@ See LICENSE file. + xmlns:ui="jakarta.faces.facelets"> diff --git a/src/java/CdbWebPortal/web/views/common/private/commonBooleanValue.xhtml b/src/java/CdbWebPortal/web/views/common/private/commonBooleanValue.xhtml index 3b204c729..792fe0ede 100644 --- a/src/java/CdbWebPortal/web/views/common/private/commonBooleanValue.xhtml +++ b/src/java/CdbWebPortal/web/views/common/private/commonBooleanValue.xhtml @@ -5,8 +5,8 @@ See LICENSE file. --> diff --git a/src/java/CdbWebPortal/web/views/common/private/commonChildEditListActionButtons.xhtml b/src/java/CdbWebPortal/web/views/common/private/commonChildEditListActionButtons.xhtml index afbdb6ecb..1e426da75 100644 --- a/src/java/CdbWebPortal/web/views/common/private/commonChildEditListActionButtons.xhtml +++ b/src/java/CdbWebPortal/web/views/common/private/commonChildEditListActionButtons.xhtml @@ -5,8 +5,8 @@ See LICENSE file. --> diff --git a/src/java/CdbWebPortal/web/views/common/private/commonChildListActionButtons.xhtml b/src/java/CdbWebPortal/web/views/common/private/commonChildListActionButtons.xhtml index 44936f1b9..19a354a93 100644 --- a/src/java/CdbWebPortal/web/views/common/private/commonChildListActionButtons.xhtml +++ b/src/java/CdbWebPortal/web/views/common/private/commonChildListActionButtons.xhtml @@ -5,7 +5,7 @@ See LICENSE file. --> diff --git a/src/java/CdbWebPortal/web/views/common/private/commonChildListTreeTableActionButtons.xhtml b/src/java/CdbWebPortal/web/views/common/private/commonChildListTreeTableActionButtons.xhtml index 0418343e5..d8161c711 100644 --- a/src/java/CdbWebPortal/web/views/common/private/commonChildListTreeTableActionButtons.xhtml +++ b/src/java/CdbWebPortal/web/views/common/private/commonChildListTreeTableActionButtons.xhtml @@ -5,7 +5,7 @@ See LICENSE file. --> diff --git a/src/java/CdbWebPortal/web/views/common/private/commonCreateActionButtons.xhtml b/src/java/CdbWebPortal/web/views/common/private/commonCreateActionButtons.xhtml index 80162991c..f64b1bde5 100644 --- a/src/java/CdbWebPortal/web/views/common/private/commonCreateActionButtons.xhtml +++ b/src/java/CdbWebPortal/web/views/common/private/commonCreateActionButtons.xhtml @@ -5,7 +5,7 @@ See LICENSE file. --> diff --git a/src/java/CdbWebPortal/web/views/common/private/commonCreateCancelButton.xhtml b/src/java/CdbWebPortal/web/views/common/private/commonCreateCancelButton.xhtml index 2302bf67b..374126996 100644 --- a/src/java/CdbWebPortal/web/views/common/private/commonCreateCancelButton.xhtml +++ b/src/java/CdbWebPortal/web/views/common/private/commonCreateCancelButton.xhtml @@ -5,7 +5,7 @@ See LICENSE file. --> diff --git a/src/java/CdbWebPortal/web/views/common/private/commonCreateSaveButton.xhtml b/src/java/CdbWebPortal/web/views/common/private/commonCreateSaveButton.xhtml index ae5d635e2..0153a2a64 100644 --- a/src/java/CdbWebPortal/web/views/common/private/commonCreateSaveButton.xhtml +++ b/src/java/CdbWebPortal/web/views/common/private/commonCreateSaveButton.xhtml @@ -5,7 +5,7 @@ See LICENSE file. --> diff --git a/src/java/CdbWebPortal/web/views/common/private/commonDialogListActionButtons.xhtml b/src/java/CdbWebPortal/web/views/common/private/commonDialogListActionButtons.xhtml index 6cd9c78e8..d57663973 100644 --- a/src/java/CdbWebPortal/web/views/common/private/commonDialogListActionButtons.xhtml +++ b/src/java/CdbWebPortal/web/views/common/private/commonDialogListActionButtons.xhtml @@ -5,10 +5,10 @@ See LICENSE file. --> + xmlns:f="jakarta.faces.core"> diff --git a/src/java/CdbWebPortal/web/views/common/private/commonEditActionButtons.xhtml b/src/java/CdbWebPortal/web/views/common/private/commonEditActionButtons.xhtml index 89424fcb6..dc46cdcd0 100644 --- a/src/java/CdbWebPortal/web/views/common/private/commonEditActionButtons.xhtml +++ b/src/java/CdbWebPortal/web/views/common/private/commonEditActionButtons.xhtml @@ -5,7 +5,7 @@ See LICENSE file. --> diff --git a/src/java/CdbWebPortal/web/views/common/private/commonEmptyPage.xhtml b/src/java/CdbWebPortal/web/views/common/private/commonEmptyPage.xhtml index 118501d44..b42fe8648 100644 --- a/src/java/CdbWebPortal/web/views/common/private/commonEmptyPage.xhtml +++ b/src/java/CdbWebPortal/web/views/common/private/commonEmptyPage.xhtml @@ -5,5 +5,5 @@ See LICENSE file. --> + xmlns:ui="jakarta.faces.facelets"/> \ No newline at end of file diff --git a/src/java/CdbWebPortal/web/views/common/private/commonListActionButtons.xhtml b/src/java/CdbWebPortal/web/views/common/private/commonListActionButtons.xhtml index ec4e6f81d..8c9fba2f5 100644 --- a/src/java/CdbWebPortal/web/views/common/private/commonListActionButtons.xhtml +++ b/src/java/CdbWebPortal/web/views/common/private/commonListActionButtons.xhtml @@ -5,10 +5,10 @@ See LICENSE file. --> + xmlns:f="jakarta.faces.core"> diff --git a/src/java/CdbWebPortal/web/views/common/private/commonListActionLinks.xhtml b/src/java/CdbWebPortal/web/views/common/private/commonListActionLinks.xhtml index 7cf6d5ed4..079916951 100644 --- a/src/java/CdbWebPortal/web/views/common/private/commonListActionLinks.xhtml +++ b/src/java/CdbWebPortal/web/views/common/private/commonListActionLinks.xhtml @@ -5,8 +5,8 @@ See LICENSE file. --> diff --git a/src/java/CdbWebPortal/web/views/common/private/commonListTreeTableActionButtons.xhtml b/src/java/CdbWebPortal/web/views/common/private/commonListTreeTableActionButtons.xhtml index b47712c5a..bd7e94502 100644 --- a/src/java/CdbWebPortal/web/views/common/private/commonListTreeTableActionButtons.xhtml +++ b/src/java/CdbWebPortal/web/views/common/private/commonListTreeTableActionButtons.xhtml @@ -5,7 +5,7 @@ See LICENSE file. --> diff --git a/src/java/CdbWebPortal/web/views/common/private/commonListTreeTableActionLinks.xhtml b/src/java/CdbWebPortal/web/views/common/private/commonListTreeTableActionLinks.xhtml index ed5a03850..8fab89484 100644 --- a/src/java/CdbWebPortal/web/views/common/private/commonListTreeTableActionLinks.xhtml +++ b/src/java/CdbWebPortal/web/views/common/private/commonListTreeTableActionLinks.xhtml @@ -5,8 +5,8 @@ See LICENSE file. --> diff --git a/src/java/CdbWebPortal/web/views/common/private/commonLoadingDialog.xhtml b/src/java/CdbWebPortal/web/views/common/private/commonLoadingDialog.xhtml index 1bd21d481..2a1e30c2b 100644 --- a/src/java/CdbWebPortal/web/views/common/private/commonLoadingDialog.xhtml +++ b/src/java/CdbWebPortal/web/views/common/private/commonLoadingDialog.xhtml @@ -5,20 +5,21 @@ See LICENSE file. --> + xmlns:f="jakarta.faces.core"> - -

- +

+ + +
diff --git a/src/java/CdbWebPortal/web/views/common/private/commonMarkdownHelpDialog.xhtml b/src/java/CdbWebPortal/web/views/common/private/commonMarkdownHelpDialog.xhtml index 8c643ddb1..a0124fa70 100644 --- a/src/java/CdbWebPortal/web/views/common/private/commonMarkdownHelpDialog.xhtml +++ b/src/java/CdbWebPortal/web/views/common/private/commonMarkdownHelpDialog.xhtml @@ -5,10 +5,10 @@ See LICENSE file. --> + xmlns:f="jakarta.faces.core"> - + @@ -33,7 +33,7 @@ See LICENSE file. - + diff --git a/src/java/CdbWebPortal/web/views/common/private/commonViewInfoActionButton.xhtml b/src/java/CdbWebPortal/web/views/common/private/commonViewInfoActionButton.xhtml index 315037c20..2455ae166 100644 --- a/src/java/CdbWebPortal/web/views/common/private/commonViewInfoActionButton.xhtml +++ b/src/java/CdbWebPortal/web/views/common/private/commonViewInfoActionButton.xhtml @@ -5,7 +5,7 @@ See LICENSE file. --> diff --git a/src/java/CdbWebPortal/web/views/common/private/reusedParts/childListAddButton.xhtml b/src/java/CdbWebPortal/web/views/common/private/reusedParts/childListAddButton.xhtml index 659c8ffdf..fe74f471d 100644 --- a/src/java/CdbWebPortal/web/views/common/private/reusedParts/childListAddButton.xhtml +++ b/src/java/CdbWebPortal/web/views/common/private/reusedParts/childListAddButton.xhtml @@ -5,7 +5,7 @@ See LICENSE file. --> diff --git a/src/java/CdbWebPortal/web/views/common/private/reusedParts/childListEditButton.xhtml b/src/java/CdbWebPortal/web/views/common/private/reusedParts/childListEditButton.xhtml index 450644533..102c3d0fe 100644 --- a/src/java/CdbWebPortal/web/views/common/private/reusedParts/childListEditButton.xhtml +++ b/src/java/CdbWebPortal/web/views/common/private/reusedParts/childListEditButton.xhtml @@ -5,7 +5,7 @@ See LICENSE file. --> + xmlns:ui="jakarta.faces.facelets"> diff --git a/src/java/CdbWebPortal/web/views/common/private/reusedParts/listActionLinksFavoritesLink.xhtml b/src/java/CdbWebPortal/web/views/common/private/reusedParts/listActionLinksFavoritesLink.xhtml index 486560931..1fe263ef2 100644 --- a/src/java/CdbWebPortal/web/views/common/private/reusedParts/listActionLinksFavoritesLink.xhtml +++ b/src/java/CdbWebPortal/web/views/common/private/reusedParts/listActionLinksFavoritesLink.xhtml @@ -5,7 +5,7 @@ See LICENSE file. --> + xmlns:f="jakarta.faces.core"> + xmlns:f="jakarta.faces.core"> diff --git a/src/java/CdbWebPortal/web/views/connectorType/create.xhtml b/src/java/CdbWebPortal/web/views/connectorType/create.xhtml index 1557831b1..ef0fe7028 100644 --- a/src/java/CdbWebPortal/web/views/connectorType/create.xhtml +++ b/src/java/CdbWebPortal/web/views/connectorType/create.xhtml @@ -5,8 +5,8 @@ See LICENSE file. --> diff --git a/src/java/CdbWebPortal/web/views/connectorType/edit.xhtml b/src/java/CdbWebPortal/web/views/connectorType/edit.xhtml index f1b5d95a9..6cc499961 100644 --- a/src/java/CdbWebPortal/web/views/connectorType/edit.xhtml +++ b/src/java/CdbWebPortal/web/views/connectorType/edit.xhtml @@ -5,8 +5,8 @@ See LICENSE file. --> diff --git a/src/java/CdbWebPortal/web/views/connectorType/export.xhtml b/src/java/CdbWebPortal/web/views/connectorType/export.xhtml index 4226198f5..c79378e31 100644 --- a/src/java/CdbWebPortal/web/views/connectorType/export.xhtml +++ b/src/java/CdbWebPortal/web/views/connectorType/export.xhtml @@ -5,9 +5,9 @@ See LICENSE file. --> diff --git a/src/java/CdbWebPortal/web/views/connectorType/import.xhtml b/src/java/CdbWebPortal/web/views/connectorType/import.xhtml index ff8487d33..9d9c4ab36 100644 --- a/src/java/CdbWebPortal/web/views/connectorType/import.xhtml +++ b/src/java/CdbWebPortal/web/views/connectorType/import.xhtml @@ -5,9 +5,9 @@ See LICENSE file. --> @@ -22,6 +22,7 @@ See LICENSE file.
diff --git a/src/java/CdbWebPortal/web/views/connectorType/list.xhtml b/src/java/CdbWebPortal/web/views/connectorType/list.xhtml index b1a42eb9f..a866ceb60 100644 --- a/src/java/CdbWebPortal/web/views/connectorType/list.xhtml +++ b/src/java/CdbWebPortal/web/views/connectorType/list.xhtml @@ -5,9 +5,9 @@ See LICENSE file. --> + xmlns:f="jakarta.faces.core"> diff --git a/src/java/CdbWebPortal/web/views/connectorType/view.xhtml b/src/java/CdbWebPortal/web/views/connectorType/view.xhtml index 7bfedceb3..54e88ddc0 100644 --- a/src/java/CdbWebPortal/web/views/connectorType/view.xhtml +++ b/src/java/CdbWebPortal/web/views/connectorType/view.xhtml @@ -5,8 +5,8 @@ See LICENSE file. --> diff --git a/src/java/CdbWebPortal/web/views/domainEntity/private/domainEntityDestroyDialog.xhtml b/src/java/CdbWebPortal/web/views/domainEntity/private/domainEntityDestroyDialog.xhtml index 46839a684..2ff58aa10 100644 --- a/src/java/CdbWebPortal/web/views/domainEntity/private/domainEntityDestroyDialog.xhtml +++ b/src/java/CdbWebPortal/web/views/domainEntity/private/domainEntityDestroyDialog.xhtml @@ -5,7 +5,7 @@ See LICENSE file. --> diff --git a/src/java/CdbWebPortal/web/views/domainEntityLog/private/domainEntityLogEditList.xhtml b/src/java/CdbWebPortal/web/views/domainEntityLog/private/domainEntityLogEditList.xhtml index 1621828f8..a61f3923e 100644 --- a/src/java/CdbWebPortal/web/views/domainEntityLog/private/domainEntityLogEditList.xhtml +++ b/src/java/CdbWebPortal/web/views/domainEntityLog/private/domainEntityLogEditList.xhtml @@ -5,12 +5,12 @@ See LICENSE file. --> + xmlns:ui="jakarta.faces.facelets"> - + diff --git a/src/java/CdbWebPortal/web/views/domainEntityLog/private/domainEntityLogEditListCustomizeDisplayDialog.xhtml b/src/java/CdbWebPortal/web/views/domainEntityLog/private/domainEntityLogEditListCustomizeDisplayDialog.xhtml index 81767338b..55790731a 100644 --- a/src/java/CdbWebPortal/web/views/domainEntityLog/private/domainEntityLogEditListCustomizeDisplayDialog.xhtml +++ b/src/java/CdbWebPortal/web/views/domainEntityLog/private/domainEntityLogEditListCustomizeDisplayDialog.xhtml @@ -5,8 +5,8 @@ See LICENSE file. --> diff --git a/src/java/CdbWebPortal/web/views/domainEntityLog/private/domainEntityLogEditListDataTable.xhtml b/src/java/CdbWebPortal/web/views/domainEntityLog/private/domainEntityLogEditListDataTable.xhtml index 3f61f831c..f5d9b9a7f 100644 --- a/src/java/CdbWebPortal/web/views/domainEntityLog/private/domainEntityLogEditListDataTable.xhtml +++ b/src/java/CdbWebPortal/web/views/domainEntityLog/private/domainEntityLogEditListDataTable.xhtml @@ -5,13 +5,14 @@ See LICENSE file. --> diff --git a/src/java/CdbWebPortal/web/views/domainEntityLog/private/domainEntityLogList.xhtml b/src/java/CdbWebPortal/web/views/domainEntityLog/private/domainEntityLogList.xhtml index b4e9c7220..e59ef3f05 100644 --- a/src/java/CdbWebPortal/web/views/domainEntityLog/private/domainEntityLogList.xhtml +++ b/src/java/CdbWebPortal/web/views/domainEntityLog/private/domainEntityLogList.xhtml @@ -5,7 +5,7 @@ See LICENSE file. --> diff --git a/src/java/CdbWebPortal/web/views/domainEntityLog/private/domainEntityLogListCustomizeDisplayDialog.xhtml b/src/java/CdbWebPortal/web/views/domainEntityLog/private/domainEntityLogListCustomizeDisplayDialog.xhtml index e077185cf..a2d3853c9 100644 --- a/src/java/CdbWebPortal/web/views/domainEntityLog/private/domainEntityLogListCustomizeDisplayDialog.xhtml +++ b/src/java/CdbWebPortal/web/views/domainEntityLog/private/domainEntityLogListCustomizeDisplayDialog.xhtml @@ -5,8 +5,8 @@ See LICENSE file. --> diff --git a/src/java/CdbWebPortal/web/views/domainEntityLog/private/domainEntityLogListDataTable.xhtml b/src/java/CdbWebPortal/web/views/domainEntityLog/private/domainEntityLogListDataTable.xhtml index 4f70d5420..6f815330a 100644 --- a/src/java/CdbWebPortal/web/views/domainEntityLog/private/domainEntityLogListDataTable.xhtml +++ b/src/java/CdbWebPortal/web/views/domainEntityLog/private/domainEntityLogListDataTable.xhtml @@ -5,9 +5,9 @@ See LICENSE file. --> + xmlns:f="jakarta.faces.core"> @@ -16,11 +16,13 @@ See LICENSE file. diff --git a/src/java/CdbWebPortal/web/views/domainEntityLog/private/domainEntiyLogAddDialog.xhtml b/src/java/CdbWebPortal/web/views/domainEntityLog/private/domainEntiyLogAddDialog.xhtml index 9a951abf7..37a646540 100644 --- a/src/java/CdbWebPortal/web/views/domainEntityLog/private/domainEntiyLogAddDialog.xhtml +++ b/src/java/CdbWebPortal/web/views/domainEntityLog/private/domainEntiyLogAddDialog.xhtml @@ -5,21 +5,21 @@ See LICENSE file. --> + xmlns:h="jakarta.faces.html" + xmlns:f="jakarta.faces.core"> - + @@ -56,7 +56,7 @@ See LICENSE file. - + + xmlns:ui="jakarta.faces.facelets"> diff --git a/src/java/CdbWebPortal/web/views/domainEntityProperty/private/domainEntityPropertyEditList.xhtml b/src/java/CdbWebPortal/web/views/domainEntityProperty/private/domainEntityPropertyEditList.xhtml index 21a391730..45837c343 100644 --- a/src/java/CdbWebPortal/web/views/domainEntityProperty/private/domainEntityPropertyEditList.xhtml +++ b/src/java/CdbWebPortal/web/views/domainEntityProperty/private/domainEntityPropertyEditList.xhtml @@ -6,14 +6,14 @@ See LICENSE file. + xmlns:ui="jakarta.faces.facelets"> - + @@ -25,11 +25,11 @@ See LICENSE file. - + - + - + diff --git a/src/java/CdbWebPortal/web/views/domainEntityProperty/private/domainEntityPropertyEditListCustomizeDisplayDialog.xhtml b/src/java/CdbWebPortal/web/views/domainEntityProperty/private/domainEntityPropertyEditListCustomizeDisplayDialog.xhtml index 8e1dd4848..fae0d48de 100644 --- a/src/java/CdbWebPortal/web/views/domainEntityProperty/private/domainEntityPropertyEditListCustomizeDisplayDialog.xhtml +++ b/src/java/CdbWebPortal/web/views/domainEntityProperty/private/domainEntityPropertyEditListCustomizeDisplayDialog.xhtml @@ -5,9 +5,9 @@ See LICENSE file. --> diff --git a/src/java/CdbWebPortal/web/views/domainEntityProperty/private/domainEntityPropertyEditListDataTable.xhtml b/src/java/CdbWebPortal/web/views/domainEntityProperty/private/domainEntityPropertyEditListDataTable.xhtml index 80c4ed45c..d763586c7 100644 --- a/src/java/CdbWebPortal/web/views/domainEntityProperty/private/domainEntityPropertyEditListDataTable.xhtml +++ b/src/java/CdbWebPortal/web/views/domainEntityProperty/private/domainEntityPropertyEditListDataTable.xhtml @@ -6,20 +6,22 @@ See LICENSE file. diff --git a/src/java/CdbWebPortal/web/views/domainEntityProperty/private/domainEntityPropertyList.xhtml b/src/java/CdbWebPortal/web/views/domainEntityProperty/private/domainEntityPropertyList.xhtml index 5a69afce3..40e4d97b1 100644 --- a/src/java/CdbWebPortal/web/views/domainEntityProperty/private/domainEntityPropertyList.xhtml +++ b/src/java/CdbWebPortal/web/views/domainEntityProperty/private/domainEntityPropertyList.xhtml @@ -6,7 +6,7 @@ See LICENSE file. diff --git a/src/java/CdbWebPortal/web/views/domainEntityProperty/private/domainEntityPropertyListCustomizeDisplayDialog.xhtml b/src/java/CdbWebPortal/web/views/domainEntityProperty/private/domainEntityPropertyListCustomizeDisplayDialog.xhtml index c86c9725d..f58910fe1 100644 --- a/src/java/CdbWebPortal/web/views/domainEntityProperty/private/domainEntityPropertyListCustomizeDisplayDialog.xhtml +++ b/src/java/CdbWebPortal/web/views/domainEntityProperty/private/domainEntityPropertyListCustomizeDisplayDialog.xhtml @@ -5,7 +5,7 @@ See LICENSE file. --> diff --git a/src/java/CdbWebPortal/web/views/domainEntityProperty/private/domainEntityPropertyListDataTable.xhtml b/src/java/CdbWebPortal/web/views/domainEntityProperty/private/domainEntityPropertyListDataTable.xhtml index 46ca5f17e..c22b6ba54 100644 --- a/src/java/CdbWebPortal/web/views/domainEntityProperty/private/domainEntityPropertyListDataTable.xhtml +++ b/src/java/CdbWebPortal/web/views/domainEntityProperty/private/domainEntityPropertyListDataTable.xhtml @@ -5,9 +5,9 @@ See LICENSE file. --> @@ -17,6 +17,7 @@ See LICENSE file. diff --git a/src/java/CdbWebPortal/web/views/domainEntityProperty/private/domainEntityPropertyListDialogs.xhtml b/src/java/CdbWebPortal/web/views/domainEntityProperty/private/domainEntityPropertyListDialogs.xhtml index be3ae89a0..e70766597 100644 --- a/src/java/CdbWebPortal/web/views/domainEntityProperty/private/domainEntityPropertyListDialogs.xhtml +++ b/src/java/CdbWebPortal/web/views/domainEntityProperty/private/domainEntityPropertyListDialogs.xhtml @@ -6,7 +6,7 @@ See LICENSE file. diff --git a/src/java/CdbWebPortal/web/views/domainEntityProperty/private/domainEntityPropertySelectDialog.xhtml b/src/java/CdbWebPortal/web/views/domainEntityProperty/private/domainEntityPropertySelectDialog.xhtml index 7be95c27e..c6d2b3070 100644 --- a/src/java/CdbWebPortal/web/views/domainEntityProperty/private/domainEntityPropertySelectDialog.xhtml +++ b/src/java/CdbWebPortal/web/views/domainEntityProperty/private/domainEntityPropertySelectDialog.xhtml @@ -6,9 +6,9 @@ See LICENSE file. + boxStyleClass="viewTransparentBackgroundDialog">
@@ -36,7 +36,7 @@ See LICENSE file. value="#{propertySelectDialogPropertySelectionMadeCommandName}" /> - + - + - + diff --git a/src/java/CdbWebPortal/web/views/domainEntityProperty/private/domainEntitySelectionFilterViewCustomizeDisplayDialog.xhtml b/src/java/CdbWebPortal/web/views/domainEntityProperty/private/domainEntitySelectionFilterViewCustomizeDisplayDialog.xhtml index b156f7ae1..9a04044c8 100644 --- a/src/java/CdbWebPortal/web/views/domainEntityProperty/private/domainEntitySelectionFilterViewCustomizeDisplayDialog.xhtml +++ b/src/java/CdbWebPortal/web/views/domainEntityProperty/private/domainEntitySelectionFilterViewCustomizeDisplayDialog.xhtml @@ -6,7 +6,7 @@ See LICENSE file. diff --git a/src/java/CdbWebPortal/web/views/domainEntityProperty/private/domainEntitySelectionFilterViewListDataTable.xhtml b/src/java/CdbWebPortal/web/views/domainEntityProperty/private/domainEntitySelectionFilterViewListDataTable.xhtml index f077f2a99..ac1d527e0 100644 --- a/src/java/CdbWebPortal/web/views/domainEntityProperty/private/domainEntitySelectionFilterViewListDataTable.xhtml +++ b/src/java/CdbWebPortal/web/views/domainEntityProperty/private/domainEntitySelectionFilterViewListDataTable.xhtml @@ -5,9 +5,9 @@ See LICENSE file. --> + xmlns:f="jakarta.faces.core"> @@ -28,6 +28,7 @@ See LICENSE file.
+ xmlns:c="jakarta.tags.core"> @@ -49,7 +49,7 @@ See LICENSE file. rendered="#{propertyValueObject != null}">
- + @@ -87,7 +87,7 @@ See LICENSE file. - + diff --git a/src/java/CdbWebPortal/web/views/domainEntityProperty/private/domainEntitySinglePropertySelectDialog.xhtml b/src/java/CdbWebPortal/web/views/domainEntityProperty/private/domainEntitySinglePropertySelectDialog.xhtml index 14c7e57a3..1c78164a5 100644 --- a/src/java/CdbWebPortal/web/views/domainEntityProperty/private/domainEntitySinglePropertySelectDialog.xhtml +++ b/src/java/CdbWebPortal/web/views/domainEntityProperty/private/domainEntitySinglePropertySelectDialog.xhtml @@ -6,16 +6,16 @@ See LICENSE file. + boxStyleClass="viewTransparentBackgroundDialog">
diff --git a/src/java/CdbWebPortal/web/views/domainEntityProperty/private/templates/domainEntityPropertyListTemplate.xhtml b/src/java/CdbWebPortal/web/views/domainEntityProperty/private/templates/domainEntityPropertyListTemplate.xhtml index df0793fe0..882bafcf5 100644 --- a/src/java/CdbWebPortal/web/views/domainEntityProperty/private/templates/domainEntityPropertyListTemplate.xhtml +++ b/src/java/CdbWebPortal/web/views/domainEntityProperty/private/templates/domainEntityPropertyListTemplate.xhtml @@ -6,7 +6,7 @@ See LICENSE file. diff --git a/src/java/CdbWebPortal/web/views/domainEntityRowExpansion/private/domainEntityListDataTableRowExpansion.xhtml b/src/java/CdbWebPortal/web/views/domainEntityRowExpansion/private/domainEntityListDataTableRowExpansion.xhtml index 09c4e5463..9c23b75fc 100644 --- a/src/java/CdbWebPortal/web/views/domainEntityRowExpansion/private/domainEntityListDataTableRowExpansion.xhtml +++ b/src/java/CdbWebPortal/web/views/domainEntityRowExpansion/private/domainEntityListDataTableRowExpansion.xhtml @@ -5,9 +5,9 @@ See LICENSE file. --> diff --git a/src/java/CdbWebPortal/web/views/domainEntityRowExpansion/private/template/domainEntityListDataTableRowExpansionTemplate.xhtml b/src/java/CdbWebPortal/web/views/domainEntityRowExpansion/private/template/domainEntityListDataTableRowExpansionTemplate.xhtml index ee36026d0..9fe38532a 100644 --- a/src/java/CdbWebPortal/web/views/domainEntityRowExpansion/private/template/domainEntityListDataTableRowExpansionTemplate.xhtml +++ b/src/java/CdbWebPortal/web/views/domainEntityRowExpansion/private/template/domainEntityListDataTableRowExpansionTemplate.xhtml @@ -5,9 +5,9 @@ See LICENSE file. --> + xmlns:h="jakarta.faces.html"> diff --git a/src/java/CdbWebPortal/web/views/entityInfo/private/domainEntityInfoViewDialog.xhtml b/src/java/CdbWebPortal/web/views/entityInfo/private/domainEntityInfoViewDialog.xhtml index eb0540eee..fec65cecf 100644 --- a/src/java/CdbWebPortal/web/views/entityInfo/private/domainEntityInfoViewDialog.xhtml +++ b/src/java/CdbWebPortal/web/views/entityInfo/private/domainEntityInfoViewDialog.xhtml @@ -5,10 +5,10 @@ See LICENSE file. --> + xmlns:f="jakarta.faces.core"> @@ -16,10 +16,10 @@ See LICENSE file. widgetVar="#{entityTypeName}EntityInfoViewDialogWidget" header="More Information" resizable="false" - styleClass="viewTransparentBackgroundDialog"> + boxStyleClass="viewTransparentBackgroundDialog">
- + diff --git a/src/java/CdbWebPortal/web/views/entityInfo/private/entityInfoCreateObject.xhtml b/src/java/CdbWebPortal/web/views/entityInfo/private/entityInfoCreateObject.xhtml index dfb9694e8..69289e04e 100644 --- a/src/java/CdbWebPortal/web/views/entityInfo/private/entityInfoCreateObject.xhtml +++ b/src/java/CdbWebPortal/web/views/entityInfo/private/entityInfoCreateObject.xhtml @@ -5,9 +5,9 @@ See LICENSE file. --> diff --git a/src/java/CdbWebPortal/web/views/entityInfo/private/entityInfoEditObject.xhtml b/src/java/CdbWebPortal/web/views/entityInfo/private/entityInfoEditObject.xhtml index f9e426a2d..9ba56649f 100644 --- a/src/java/CdbWebPortal/web/views/entityInfo/private/entityInfoEditObject.xhtml +++ b/src/java/CdbWebPortal/web/views/entityInfo/private/entityInfoEditObject.xhtml @@ -5,9 +5,9 @@ See LICENSE file. --> diff --git a/src/java/CdbWebPortal/web/views/entityInfo/private/entityInfoListObject.xhtml b/src/java/CdbWebPortal/web/views/entityInfo/private/entityInfoListObject.xhtml index 58c0937b0..b8c9b8db2 100644 --- a/src/java/CdbWebPortal/web/views/entityInfo/private/entityInfoListObject.xhtml +++ b/src/java/CdbWebPortal/web/views/entityInfo/private/entityInfoListObject.xhtml @@ -5,8 +5,9 @@ See LICENSE file. --> @@ -19,9 +20,14 @@ See LICENSE file. filterable="#{filterable}" sortable="#{sortable}" filterBy="#{entityInfoObject.ownerUserGroup.name}" filterMatchMode="exact" - filterOptions="#{userGroupController.availableItemsForSelectOne}" filterValue="#{entitySettingObject.filterByOwnerGroup}" rendered="#{rendered and entitySettingObject.displayOwnerGroup}"> + + + + + diff --git a/src/java/CdbWebPortal/web/views/entityInfo/private/entityInfoSelectCustomizeDisplayObject.xhtml b/src/java/CdbWebPortal/web/views/entityInfo/private/entityInfoSelectCustomizeDisplayObject.xhtml index e54a796f2..f2f5ffbfc 100644 --- a/src/java/CdbWebPortal/web/views/entityInfo/private/entityInfoSelectCustomizeDisplayObject.xhtml +++ b/src/java/CdbWebPortal/web/views/entityInfo/private/entityInfoSelectCustomizeDisplayObject.xhtml @@ -6,8 +6,8 @@ See LICENSE file. diff --git a/src/java/CdbWebPortal/web/views/entityInfo/private/entityInfoSelectObject.xhtml b/src/java/CdbWebPortal/web/views/entityInfo/private/entityInfoSelectObject.xhtml index c0dde5252..baee1ecca 100644 --- a/src/java/CdbWebPortal/web/views/entityInfo/private/entityInfoSelectObject.xhtml +++ b/src/java/CdbWebPortal/web/views/entityInfo/private/entityInfoSelectObject.xhtml @@ -5,8 +5,9 @@ See LICENSE file. --> @@ -20,9 +21,14 @@ See LICENSE file. + + + + + diff --git a/src/java/CdbWebPortal/web/views/entityInfo/private/entityInfoViewObject.xhtml b/src/java/CdbWebPortal/web/views/entityInfo/private/entityInfoViewObject.xhtml index 1158d73cf..02d3e2d85 100644 --- a/src/java/CdbWebPortal/web/views/entityInfo/private/entityInfoViewObject.xhtml +++ b/src/java/CdbWebPortal/web/views/entityInfo/private/entityInfoViewObject.xhtml @@ -5,10 +5,10 @@ See LICENSE file. --> + xmlns:f="jakarta.faces.core"> diff --git a/src/java/CdbWebPortal/web/views/entityInfo/private/templateDefaults/entityInfoFieldEditValues/groupWriteable.xhtml b/src/java/CdbWebPortal/web/views/entityInfo/private/templateDefaults/entityInfoFieldEditValues/groupWriteable.xhtml index 805c8e308..a8a511c35 100644 --- a/src/java/CdbWebPortal/web/views/entityInfo/private/templateDefaults/entityInfoFieldEditValues/groupWriteable.xhtml +++ b/src/java/CdbWebPortal/web/views/entityInfo/private/templateDefaults/entityInfoFieldEditValues/groupWriteable.xhtml @@ -5,7 +5,7 @@ See LICENSE file. --> + xmlns:f="jakarta.faces.core" + xmlns:h="jakarta.faces.html"> + xmlns:f="jakarta.faces.core"> diff --git a/src/java/CdbWebPortal/web/views/entityInfo/private/templateDefaults/entityInfoFieldViewValues/ownerUserViewObject.xhtml b/src/java/CdbWebPortal/web/views/entityInfo/private/templateDefaults/entityInfoFieldViewValues/ownerUserViewObject.xhtml index ffd6fc4b3..53e8e0d6d 100644 --- a/src/java/CdbWebPortal/web/views/entityInfo/private/templateDefaults/entityInfoFieldViewValues/ownerUserViewObject.xhtml +++ b/src/java/CdbWebPortal/web/views/entityInfo/private/templateDefaults/entityInfoFieldViewValues/ownerUserViewObject.xhtml @@ -5,10 +5,10 @@ See LICENSE file. --> + xmlns:f="jakarta.faces.core"> : Access Denied diff --git a/src/java/CdbWebPortal/web/views/error/invalidRequest.xhtml b/src/java/CdbWebPortal/web/views/error/invalidRequest.xhtml index 918839d32..6905e9b7e 100644 --- a/src/java/CdbWebPortal/web/views/error/invalidRequest.xhtml +++ b/src/java/CdbWebPortal/web/views/error/invalidRequest.xhtml @@ -5,7 +5,7 @@ See LICENSE file. --> : Invalid Request diff --git a/src/java/CdbWebPortal/web/views/error/pageNotFound.xhtml b/src/java/CdbWebPortal/web/views/error/pageNotFound.xhtml index 1b3d0ec0e..82ddffc11 100644 --- a/src/java/CdbWebPortal/web/views/error/pageNotFound.xhtml +++ b/src/java/CdbWebPortal/web/views/error/pageNotFound.xhtml @@ -5,7 +5,7 @@ See LICENSE file. --> : Page Not Found diff --git a/src/java/CdbWebPortal/web/views/importTemplates/browseImportTemplates.xhtml b/src/java/CdbWebPortal/web/views/importTemplates/browseImportTemplates.xhtml index 3bfa4a4b1..4b83d7e66 100644 --- a/src/java/CdbWebPortal/web/views/importTemplates/browseImportTemplates.xhtml +++ b/src/java/CdbWebPortal/web/views/importTemplates/browseImportTemplates.xhtml @@ -5,9 +5,9 @@ See LICENSE file. --> @@ -20,6 +20,7 @@ See LICENSE file.
diff --git a/src/java/CdbWebPortal/web/views/item/edit.xhtml b/src/java/CdbWebPortal/web/views/item/edit.xhtml index 210df30e7..032f7c824 100644 --- a/src/java/CdbWebPortal/web/views/item/edit.xhtml +++ b/src/java/CdbWebPortal/web/views/item/edit.xhtml @@ -5,8 +5,8 @@ See LICENSE file. --> diff --git a/src/java/CdbWebPortal/web/views/item/list.xhtml b/src/java/CdbWebPortal/web/views/item/list.xhtml index 804d8b4b4..9664a64cd 100644 --- a/src/java/CdbWebPortal/web/views/item/list.xhtml +++ b/src/java/CdbWebPortal/web/views/item/list.xhtml @@ -5,9 +5,9 @@ See LICENSE file. --> + xmlns:f="jakarta.faces.core"> diff --git a/src/java/CdbWebPortal/web/views/item/private/coreMetadataPropertyColumns.xhtml b/src/java/CdbWebPortal/web/views/item/private/coreMetadataPropertyColumns.xhtml index c8430291c..a03b6d2af 100644 --- a/src/java/CdbWebPortal/web/views/item/private/coreMetadataPropertyColumns.xhtml +++ b/src/java/CdbWebPortal/web/views/item/private/coreMetadataPropertyColumns.xhtml @@ -5,11 +5,11 @@ See LICENSE file. --> + xmlns:f="jakarta.faces.core"> diff --git a/src/java/CdbWebPortal/web/views/item/private/coreMetadataPropertyEditFields.xhtml b/src/java/CdbWebPortal/web/views/item/private/coreMetadataPropertyEditFields.xhtml index d5bd4fe9b..4f3a45fa3 100644 --- a/src/java/CdbWebPortal/web/views/item/private/coreMetadataPropertyEditFields.xhtml +++ b/src/java/CdbWebPortal/web/views/item/private/coreMetadataPropertyEditFields.xhtml @@ -6,11 +6,11 @@ See LICENSE file. + xmlns:f="jakarta.faces.core"> @@ -18,7 +18,7 @@ See LICENSE file. - + diff --git a/src/java/CdbWebPortal/web/views/item/private/coreMetadataPropertyEditValue.xhtml b/src/java/CdbWebPortal/web/views/item/private/coreMetadataPropertyEditValue.xhtml index dc4bec9f3..ae4928a4c 100644 --- a/src/java/CdbWebPortal/web/views/item/private/coreMetadataPropertyEditValue.xhtml +++ b/src/java/CdbWebPortal/web/views/item/private/coreMetadataPropertyEditValue.xhtml @@ -6,11 +6,11 @@ See LICENSE file. + xmlns:f="jakarta.faces.core"> @@ -24,8 +24,9 @@ See LICENSE file. var="allowedPropertyMetadataValue" itemValue="#{allowedPropertyMetadataValue}"/> - #{allowedPropertyMetadataValueObject.metadataValue} -
+ +
diff --git a/src/java/CdbWebPortal/web/views/item/private/coreMetadataPropertyFields.xhtml b/src/java/CdbWebPortal/web/views/item/private/coreMetadataPropertyFields.xhtml index a28da22af..83190b317 100644 --- a/src/java/CdbWebPortal/web/views/item/private/coreMetadataPropertyFields.xhtml +++ b/src/java/CdbWebPortal/web/views/item/private/coreMetadataPropertyFields.xhtml @@ -6,8 +6,8 @@ See LICENSE file. - + diff --git a/src/java/CdbWebPortal/web/views/item/private/coreMetadataPropertyFlatEditObject.xhtml b/src/java/CdbWebPortal/web/views/item/private/coreMetadataPropertyFlatEditObject.xhtml index 5a19c9aea..869475162 100644 --- a/src/java/CdbWebPortal/web/views/item/private/coreMetadataPropertyFlatEditObject.xhtml +++ b/src/java/CdbWebPortal/web/views/item/private/coreMetadataPropertyFlatEditObject.xhtml @@ -6,9 +6,9 @@ See LICENSE file. diff --git a/src/java/CdbWebPortal/web/views/item/private/coreMetadataPropertyFlatViewObject.xhtml b/src/java/CdbWebPortal/web/views/item/private/coreMetadataPropertyFlatViewObject.xhtml index f46fb6379..37b880561 100644 --- a/src/java/CdbWebPortal/web/views/item/private/coreMetadataPropertyFlatViewObject.xhtml +++ b/src/java/CdbWebPortal/web/views/item/private/coreMetadataPropertyFlatViewObject.xhtml @@ -6,8 +6,8 @@ See LICENSE file. + xmlns:c="jakarta.tags.core" + xmlns:ui="jakarta.faces.facelets"> diff --git a/src/java/CdbWebPortal/web/views/item/private/coreMetadataPropertyViewField.xhtml b/src/java/CdbWebPortal/web/views/item/private/coreMetadataPropertyViewField.xhtml index 1bedae12e..b3c0e5dc4 100644 --- a/src/java/CdbWebPortal/web/views/item/private/coreMetadataPropertyViewField.xhtml +++ b/src/java/CdbWebPortal/web/views/item/private/coreMetadataPropertyViewField.xhtml @@ -6,11 +6,11 @@ See LICENSE file. + xmlns:f="jakarta.faces.core"> @@ -44,7 +44,8 @@ See LICENSE file. value="Edit #{metadataLabel}" /> - + + "#{entityController.prepareLinkDisplay(metadataValue)}" - + - - + - + - +
"#{entityController.prepareLinkDisplay(url)}"
-
+ diff --git a/src/java/CdbWebPortal/web/views/item/private/exportWizard/exportWizard.xhtml b/src/java/CdbWebPortal/web/views/item/private/exportWizard/exportWizard.xhtml index 208b77e31..67c6778f9 100644 --- a/src/java/CdbWebPortal/web/views/item/private/exportWizard/exportWizard.xhtml +++ b/src/java/CdbWebPortal/web/views/item/private/exportWizard/exportWizard.xhtml @@ -5,10 +5,10 @@ See LICENSE file. --> + xmlns:h="jakarta.faces.html" + xmlns:f="jakarta.faces.core"> diff --git a/src/java/CdbWebPortal/web/views/item/private/exportWizard/templates/confirmationTabTemplate.xhtml b/src/java/CdbWebPortal/web/views/item/private/exportWizard/templates/confirmationTabTemplate.xhtml index 6f1eb7775..67bda5dab 100644 --- a/src/java/CdbWebPortal/web/views/item/private/exportWizard/templates/confirmationTabTemplate.xhtml +++ b/src/java/CdbWebPortal/web/views/item/private/exportWizard/templates/confirmationTabTemplate.xhtml @@ -5,11 +5,11 @@ See LICENSE file. --> + xmlns:h="jakarta.faces.html" + xmlns:f="jakarta.faces.core" + xmlns:c="jakarta.tags.core"> diff --git a/src/java/CdbWebPortal/web/views/item/private/exportWizard/templates/downloadFileTabTemplate.xhtml b/src/java/CdbWebPortal/web/views/item/private/exportWizard/templates/downloadFileTabTemplate.xhtml index 45eee8e14..a9daf0b29 100644 --- a/src/java/CdbWebPortal/web/views/item/private/exportWizard/templates/downloadFileTabTemplate.xhtml +++ b/src/java/CdbWebPortal/web/views/item/private/exportWizard/templates/downloadFileTabTemplate.xhtml @@ -5,7 +5,7 @@ See LICENSE file. --> @@ -15,13 +15,12 @@ See LICENSE file. - + - + diff --git a/src/java/CdbWebPortal/web/views/item/private/exportWizard/templates/selectFormatTabTemplate.xhtml b/src/java/CdbWebPortal/web/views/item/private/exportWizard/templates/selectFormatTabTemplate.xhtml index e937d6583..d293a5fb3 100644 --- a/src/java/CdbWebPortal/web/views/item/private/exportWizard/templates/selectFormatTabTemplate.xhtml +++ b/src/java/CdbWebPortal/web/views/item/private/exportWizard/templates/selectFormatTabTemplate.xhtml @@ -5,10 +5,10 @@ See LICENSE file. --> + xmlns:h="jakarta.faces.html" + xmlns:f="jakarta.faces.core"> @@ -17,7 +17,7 @@ See LICENSE file. - + + xmlns:h="jakarta.faces.html" + xmlns:f="jakarta.faces.core"> @@ -17,7 +17,7 @@ See LICENSE file. - + @@ -35,7 +35,7 @@ See LICENSE file. - + + xmlns:h="jakarta.faces.html" + xmlns:f="jakarta.faces.core" + xmlns:c="jakarta.tags.core"> @@ -19,10 +19,10 @@ See LICENSE file. - + - + diff --git a/src/java/CdbWebPortal/web/views/item/private/importWizard/importWizard.xhtml b/src/java/CdbWebPortal/web/views/item/private/importWizard/importWizard.xhtml index ac971e302..f79542c59 100644 --- a/src/java/CdbWebPortal/web/views/item/private/importWizard/importWizard.xhtml +++ b/src/java/CdbWebPortal/web/views/item/private/importWizard/importWizard.xhtml @@ -5,10 +5,10 @@ See LICENSE file. --> + xmlns:h="jakarta.faces.html" + xmlns:f="jakarta.faces.core"> diff --git a/src/java/CdbWebPortal/web/views/item/private/importWizard/templates/helperOptionsTabTemplate.xhtml b/src/java/CdbWebPortal/web/views/item/private/importWizard/templates/helperOptionsTabTemplate.xhtml index 91060a444..2c1ce30c8 100644 --- a/src/java/CdbWebPortal/web/views/item/private/importWizard/templates/helperOptionsTabTemplate.xhtml +++ b/src/java/CdbWebPortal/web/views/item/private/importWizard/templates/helperOptionsTabTemplate.xhtml @@ -5,11 +5,11 @@ See LICENSE file. --> + xmlns:h="jakarta.faces.html" + xmlns:f="jakarta.faces.core" + xmlns:c="jakarta.tags.core"> @@ -19,10 +19,10 @@ See LICENSE file. - + - + diff --git a/src/java/CdbWebPortal/web/views/item/private/importWizard/templates/resultsTabTemplate.xhtml b/src/java/CdbWebPortal/web/views/item/private/importWizard/templates/resultsTabTemplate.xhtml index 32ec73ee2..7996f82a4 100644 --- a/src/java/CdbWebPortal/web/views/item/private/importWizard/templates/resultsTabTemplate.xhtml +++ b/src/java/CdbWebPortal/web/views/item/private/importWizard/templates/resultsTabTemplate.xhtml @@ -5,10 +5,10 @@ See LICENSE file. --> + xmlns:h="jakarta.faces.html" + xmlns:f="jakarta.faces.core"> diff --git a/src/java/CdbWebPortal/web/views/item/private/importWizard/templates/selectFileTabTemplate.xhtml b/src/java/CdbWebPortal/web/views/item/private/importWizard/templates/selectFileTabTemplate.xhtml index 2d3235c30..99754ee13 100644 --- a/src/java/CdbWebPortal/web/views/item/private/importWizard/templates/selectFileTabTemplate.xhtml +++ b/src/java/CdbWebPortal/web/views/item/private/importWizard/templates/selectFileTabTemplate.xhtml @@ -5,10 +5,10 @@ See LICENSE file. --> + xmlns:h="jakarta.faces.html" + xmlns:f="jakarta.faces.core"> @@ -17,18 +17,19 @@ See LICENSE file. - + + label="Choose File"> + + @@ -41,7 +42,7 @@ See LICENSE file. - + + xmlns:h="jakarta.faces.html" + xmlns:f="jakarta.faces.core"> @@ -17,7 +17,7 @@ See LICENSE file. - + + xmlns:h="jakarta.faces.html" + xmlns:f="jakarta.faces.core"> @@ -17,7 +17,7 @@ See LICENSE file. - + @@ -39,7 +39,7 @@ See LICENSE file. - + + xmlns:h="jakarta.faces.html" + xmlns:f="jakarta.faces.core"> @@ -18,7 +18,7 @@ See LICENSE file. - + @@ -73,6 +73,7 @@ See LICENSE file. - + diff --git a/src/java/CdbWebPortal/web/views/item/private/itemCloneOptionsDialog.xhtml b/src/java/CdbWebPortal/web/views/item/private/itemCloneOptionsDialog.xhtml index 99eaa1803..984b573a9 100644 --- a/src/java/CdbWebPortal/web/views/item/private/itemCloneOptionsDialog.xhtml +++ b/src/java/CdbWebPortal/web/views/item/private/itemCloneOptionsDialog.xhtml @@ -5,7 +5,7 @@ See LICENSE file. --> diff --git a/src/java/CdbWebPortal/web/views/item/private/itemCreatePanelGrid.xhtml b/src/java/CdbWebPortal/web/views/item/private/itemCreatePanelGrid.xhtml index 7b3fc3eae..6744a4dd7 100644 --- a/src/java/CdbWebPortal/web/views/item/private/itemCreatePanelGrid.xhtml +++ b/src/java/CdbWebPortal/web/views/item/private/itemCreatePanelGrid.xhtml @@ -5,7 +5,7 @@ See LICENSE file. --> diff --git a/src/java/CdbWebPortal/web/views/item/private/itemDerivedEditList.xhtml b/src/java/CdbWebPortal/web/views/item/private/itemDerivedEditList.xhtml index f1091e3a8..be7e49ac9 100644 --- a/src/java/CdbWebPortal/web/views/item/private/itemDerivedEditList.xhtml +++ b/src/java/CdbWebPortal/web/views/item/private/itemDerivedEditList.xhtml @@ -6,14 +6,14 @@ See LICENSE file. + xmlns:ui="jakarta.faces.facelets"> - + @@ -25,9 +25,9 @@ See LICENSE file. - + - + diff --git a/src/java/CdbWebPortal/web/views/item/private/itemDerivedEditListCustomizeDisplayDialog.xhtml b/src/java/CdbWebPortal/web/views/item/private/itemDerivedEditListCustomizeDisplayDialog.xhtml index 7f0ad4fc8..f8836b8a9 100644 --- a/src/java/CdbWebPortal/web/views/item/private/itemDerivedEditListCustomizeDisplayDialog.xhtml +++ b/src/java/CdbWebPortal/web/views/item/private/itemDerivedEditListCustomizeDisplayDialog.xhtml @@ -5,18 +5,18 @@ See LICENSE file. --> + boxStyleClass="dialog">
- + @@ -37,7 +37,7 @@ See LICENSE file. - + diff --git a/src/java/CdbWebPortal/web/views/item/private/itemDerivedList.xhtml b/src/java/CdbWebPortal/web/views/item/private/itemDerivedList.xhtml index f708d1ffb..97218fc67 100644 --- a/src/java/CdbWebPortal/web/views/item/private/itemDerivedList.xhtml +++ b/src/java/CdbWebPortal/web/views/item/private/itemDerivedList.xhtml @@ -6,7 +6,7 @@ See LICENSE file. + xmlns:ui="jakarta.faces.facelets"> diff --git a/src/java/CdbWebPortal/web/views/item/private/itemDerivedListCustomizeDisplayDialog.xhtml b/src/java/CdbWebPortal/web/views/item/private/itemDerivedListCustomizeDisplayDialog.xhtml index 08ae0b904..cf6d027f9 100644 --- a/src/java/CdbWebPortal/web/views/item/private/itemDerivedListCustomizeDisplayDialog.xhtml +++ b/src/java/CdbWebPortal/web/views/item/private/itemDerivedListCustomizeDisplayDialog.xhtml @@ -5,18 +5,18 @@ See LICENSE file. --> + boxStyleClass="dialog">
- + @@ -55,7 +55,7 @@ See LICENSE file. - + diff --git a/src/java/CdbWebPortal/web/views/item/private/itemEditPanelGrid.xhtml b/src/java/CdbWebPortal/web/views/item/private/itemEditPanelGrid.xhtml index e418fe41e..ef7b9ed5c 100644 --- a/src/java/CdbWebPortal/web/views/item/private/itemEditPanelGrid.xhtml +++ b/src/java/CdbWebPortal/web/views/item/private/itemEditPanelGrid.xhtml @@ -5,7 +5,7 @@ See LICENSE file. --> diff --git a/src/java/CdbWebPortal/web/views/item/private/itemListActionButtons.xhtml b/src/java/CdbWebPortal/web/views/item/private/itemListActionButtons.xhtml index f9f62f3e8..b883271d3 100644 --- a/src/java/CdbWebPortal/web/views/item/private/itemListActionButtons.xhtml +++ b/src/java/CdbWebPortal/web/views/item/private/itemListActionButtons.xhtml @@ -5,7 +5,7 @@ See LICENSE file. --> diff --git a/src/java/CdbWebPortal/web/views/item/private/itemListCreatedFromTemplateDataTable.xhtml b/src/java/CdbWebPortal/web/views/item/private/itemListCreatedFromTemplateDataTable.xhtml index e7a243f68..cc63f0ac7 100644 --- a/src/java/CdbWebPortal/web/views/item/private/itemListCreatedFromTemplateDataTable.xhtml +++ b/src/java/CdbWebPortal/web/views/item/private/itemListCreatedFromTemplateDataTable.xhtml @@ -5,7 +5,7 @@ See LICENSE file. --> diff --git a/src/java/CdbWebPortal/web/views/item/private/itemListCustomizeDisplayDialog.xhtml b/src/java/CdbWebPortal/web/views/item/private/itemListCustomizeDisplayDialog.xhtml index 1ba907508..3cf5b25fa 100644 --- a/src/java/CdbWebPortal/web/views/item/private/itemListCustomizeDisplayDialog.xhtml +++ b/src/java/CdbWebPortal/web/views/item/private/itemListCustomizeDisplayDialog.xhtml @@ -5,6 +5,6 @@ See LICENSE file. --> diff --git a/src/java/CdbWebPortal/web/views/item/private/itemListDataTable.xhtml b/src/java/CdbWebPortal/web/views/item/private/itemListDataTable.xhtml index 7c77d7191..7cfac006d 100644 --- a/src/java/CdbWebPortal/web/views/item/private/itemListDataTable.xhtml +++ b/src/java/CdbWebPortal/web/views/item/private/itemListDataTable.xhtml @@ -5,6 +5,6 @@ See LICENSE file. --> diff --git a/src/java/CdbWebPortal/web/views/item/private/itemListDataTableRowExpansion.xhtml b/src/java/CdbWebPortal/web/views/item/private/itemListDataTableRowExpansion.xhtml index 7f2f25df8..7b4f65318 100644 --- a/src/java/CdbWebPortal/web/views/item/private/itemListDataTableRowExpansion.xhtml +++ b/src/java/CdbWebPortal/web/views/item/private/itemListDataTableRowExpansion.xhtml @@ -5,6 +5,6 @@ See LICENSE file. --> diff --git a/src/java/CdbWebPortal/web/views/item/private/itemListDataTableRowExpansionDerivedFromItemsRowExpansion.xhtml b/src/java/CdbWebPortal/web/views/item/private/itemListDataTableRowExpansionDerivedFromItemsRowExpansion.xhtml index 4dd79d21e..7c4f77bef 100644 --- a/src/java/CdbWebPortal/web/views/item/private/itemListDataTableRowExpansionDerivedFromItemsRowExpansion.xhtml +++ b/src/java/CdbWebPortal/web/views/item/private/itemListDataTableRowExpansionDerivedFromItemsRowExpansion.xhtml @@ -5,7 +5,7 @@ See LICENSE file. --> diff --git a/src/java/CdbWebPortal/web/views/item/private/itemListDataTableRowExpansionDerivedFromItemsRowExpansionObject.xhtml b/src/java/CdbWebPortal/web/views/item/private/itemListDataTableRowExpansionDerivedFromItemsRowExpansionObject.xhtml index 57020d9b3..97b66697e 100644 --- a/src/java/CdbWebPortal/web/views/item/private/itemListDataTableRowExpansionDerivedFromItemsRowExpansionObject.xhtml +++ b/src/java/CdbWebPortal/web/views/item/private/itemListDataTableRowExpansionDerivedFromItemsRowExpansionObject.xhtml @@ -5,7 +5,7 @@ See LICENSE file. --> diff --git a/src/java/CdbWebPortal/web/views/item/private/itemListDataTableRowExpansionObject.xhtml b/src/java/CdbWebPortal/web/views/item/private/itemListDataTableRowExpansionObject.xhtml index 649ce6d16..5e7a5f94d 100644 --- a/src/java/CdbWebPortal/web/views/item/private/itemListDataTableRowExpansionObject.xhtml +++ b/src/java/CdbWebPortal/web/views/item/private/itemListDataTableRowExpansionObject.xhtml @@ -5,7 +5,7 @@ See LICENSE file. --> diff --git a/src/java/CdbWebPortal/web/views/item/private/itemListFilterViewCategoryType.xhtml b/src/java/CdbWebPortal/web/views/item/private/itemListFilterViewCategoryType.xhtml index cf449042c..86ef17836 100644 --- a/src/java/CdbWebPortal/web/views/item/private/itemListFilterViewCategoryType.xhtml +++ b/src/java/CdbWebPortal/web/views/item/private/itemListFilterViewCategoryType.xhtml @@ -5,6 +5,6 @@ See LICENSE file. --> diff --git a/src/java/CdbWebPortal/web/views/item/private/itemListFilterViewObject.xhtml b/src/java/CdbWebPortal/web/views/item/private/itemListFilterViewObject.xhtml index 6eee5cc22..c4d13d933 100644 --- a/src/java/CdbWebPortal/web/views/item/private/itemListFilterViewObject.xhtml +++ b/src/java/CdbWebPortal/web/views/item/private/itemListFilterViewObject.xhtml @@ -5,6 +5,6 @@ See LICENSE file. --> diff --git a/src/java/CdbWebPortal/web/views/item/private/itemListFilterViewOwner.xhtml b/src/java/CdbWebPortal/web/views/item/private/itemListFilterViewOwner.xhtml index 939595ccc..b600db226 100644 --- a/src/java/CdbWebPortal/web/views/item/private/itemListFilterViewOwner.xhtml +++ b/src/java/CdbWebPortal/web/views/item/private/itemListFilterViewOwner.xhtml @@ -5,6 +5,6 @@ See LICENSE file. --> diff --git a/src/java/CdbWebPortal/web/views/item/private/itemListObject.xhtml b/src/java/CdbWebPortal/web/views/item/private/itemListObject.xhtml index 68165f574..1e7a4be02 100644 --- a/src/java/CdbWebPortal/web/views/item/private/itemListObject.xhtml +++ b/src/java/CdbWebPortal/web/views/item/private/itemListObject.xhtml @@ -5,6 +5,6 @@ See LICENSE file. --> diff --git a/src/java/CdbWebPortal/web/views/item/private/itemListTreeTable.xhtml b/src/java/CdbWebPortal/web/views/item/private/itemListTreeTable.xhtml index 85d3c19da..fb77f6055 100644 --- a/src/java/CdbWebPortal/web/views/item/private/itemListTreeTable.xhtml +++ b/src/java/CdbWebPortal/web/views/item/private/itemListTreeTable.xhtml @@ -5,6 +5,6 @@ See LICENSE file. --> diff --git a/src/java/CdbWebPortal/web/views/item/private/itemListTreeTableActionButtons.xhtml b/src/java/CdbWebPortal/web/views/item/private/itemListTreeTableActionButtons.xhtml index 773008a97..d21038025 100644 --- a/src/java/CdbWebPortal/web/views/item/private/itemListTreeTableActionButtons.xhtml +++ b/src/java/CdbWebPortal/web/views/item/private/itemListTreeTableActionButtons.xhtml @@ -5,7 +5,7 @@ See LICENSE file. --> diff --git a/src/java/CdbWebPortal/web/views/item/private/itemPropertyList.xhtml b/src/java/CdbWebPortal/web/views/item/private/itemPropertyList.xhtml index 46676f493..018a3c715 100644 --- a/src/java/CdbWebPortal/web/views/item/private/itemPropertyList.xhtml +++ b/src/java/CdbWebPortal/web/views/item/private/itemPropertyList.xhtml @@ -5,7 +5,7 @@ See LICENSE file. --> diff --git a/src/java/CdbWebPortal/web/views/item/private/itemSearchDataTable.xhtml b/src/java/CdbWebPortal/web/views/item/private/itemSearchDataTable.xhtml index 3666a8347..88a8ec7d0 100644 --- a/src/java/CdbWebPortal/web/views/item/private/itemSearchDataTable.xhtml +++ b/src/java/CdbWebPortal/web/views/item/private/itemSearchDataTable.xhtml @@ -5,15 +5,17 @@ See LICENSE file. --> diff --git a/src/java/CdbWebPortal/web/views/item/private/itemSelectDataTable.xhtml b/src/java/CdbWebPortal/web/views/item/private/itemSelectDataTable.xhtml index 12d28c3f6..7634ae681 100644 --- a/src/java/CdbWebPortal/web/views/item/private/itemSelectDataTable.xhtml +++ b/src/java/CdbWebPortal/web/views/item/private/itemSelectDataTable.xhtml @@ -9,10 +9,10 @@ See LICENSE file. --> + xmlns:f="jakarta.faces.core" + xmlns:h="jakarta.faces.html"> @@ -46,6 +46,7 @@ See LICENSE file. - @@ -105,8 +106,7 @@ See LICENSE file. process="#{updateTarget}" immediate="#{immediateUpdate}" oncomplete="PF('loadingDialog').hide();"> - diff --git a/src/java/CdbWebPortal/web/views/item/private/itemSelectDialog.xhtml b/src/java/CdbWebPortal/web/views/item/private/itemSelectDialog.xhtml index bfcc1e8f1..72a52fbc1 100644 --- a/src/java/CdbWebPortal/web/views/item/private/itemSelectDialog.xhtml +++ b/src/java/CdbWebPortal/web/views/item/private/itemSelectDialog.xhtml @@ -6,9 +6,9 @@ See LICENSE file. @@ -33,11 +33,11 @@ See LICENSE file. widgetVar="#{entityTypeName}ItemSelectDialogWidget" header="Select Item" appendTo="@form" - styleClass="dialog"> + boxStyleClass="dialog">
- + - + + xmlns:h="jakarta.faces.html"> diff --git a/src/java/CdbWebPortal/web/views/item/private/itemTemplateSelectionDialog.xhtml b/src/java/CdbWebPortal/web/views/item/private/itemTemplateSelectionDialog.xhtml index 127dc9b68..08e42e78b 100644 --- a/src/java/CdbWebPortal/web/views/item/private/itemTemplateSelectionDialog.xhtml +++ b/src/java/CdbWebPortal/web/views/item/private/itemTemplateSelectionDialog.xhtml @@ -5,12 +5,12 @@ See LICENSE file. --> diff --git a/src/java/CdbWebPortal/web/views/item/private/itemViewSimplePanelGrid.xhtml b/src/java/CdbWebPortal/web/views/item/private/itemViewSimplePanelGrid.xhtml index 2706ae0ce..537bc2140 100644 --- a/src/java/CdbWebPortal/web/views/item/private/itemViewSimplePanelGrid.xhtml +++ b/src/java/CdbWebPortal/web/views/item/private/itemViewSimplePanelGrid.xhtml @@ -5,7 +5,7 @@ See LICENSE file. --> diff --git a/src/java/CdbWebPortal/web/views/item/private/templateDefaults/common/itemListCategoryTypeActionButtons.xhtml b/src/java/CdbWebPortal/web/views/item/private/templateDefaults/common/itemListCategoryTypeActionButtons.xhtml index bc4460cf1..43aada3d4 100644 --- a/src/java/CdbWebPortal/web/views/item/private/templateDefaults/common/itemListCategoryTypeActionButtons.xhtml +++ b/src/java/CdbWebPortal/web/views/item/private/templateDefaults/common/itemListCategoryTypeActionButtons.xhtml @@ -5,10 +5,10 @@ See LICENSE file. --> + xmlns:f="jakarta.faces.core" + xmlns:h="jakarta.faces.html"> + xmlns:f="jakarta.faces.core" + xmlns:h="jakarta.faces.html" + xmlns:c="jakarta.tags.core"> - @@ -28,7 +28,7 @@ See LICENSE file. - @@ -47,7 +47,7 @@ See LICENSE file. - diff --git a/src/java/CdbWebPortal/web/views/item/private/templateDefaults/customizeDisplayAddons/itemListDataTableDisplayModeSelection.xhtml b/src/java/CdbWebPortal/web/views/item/private/templateDefaults/customizeDisplayAddons/itemListDataTableDisplayModeSelection.xhtml index d0f7682f6..34ddc6abe 100644 --- a/src/java/CdbWebPortal/web/views/item/private/templateDefaults/customizeDisplayAddons/itemListDataTableDisplayModeSelection.xhtml +++ b/src/java/CdbWebPortal/web/views/item/private/templateDefaults/customizeDisplayAddons/itemListDataTableDisplayModeSelection.xhtml @@ -5,18 +5,18 @@ See LICENSE file. --> + xmlns:f="jakarta.faces.core" + xmlns:h="jakarta.faces.html" + xmlns:c="jakarta.tags.core"> - diff --git a/src/java/CdbWebPortal/web/views/item/private/templateDefaults/customizeDisplayAddons/itemListDataTableDisplayModeSelectionDialog.xhtml b/src/java/CdbWebPortal/web/views/item/private/templateDefaults/customizeDisplayAddons/itemListDataTableDisplayModeSelectionDialog.xhtml index 002dafae0..ab8ba7f9d 100644 --- a/src/java/CdbWebPortal/web/views/item/private/templateDefaults/customizeDisplayAddons/itemListDataTableDisplayModeSelectionDialog.xhtml +++ b/src/java/CdbWebPortal/web/views/item/private/templateDefaults/customizeDisplayAddons/itemListDataTableDisplayModeSelectionDialog.xhtml @@ -5,10 +5,10 @@ See LICENSE file. --> + xmlns:h="jakarta.faces.html"> diff --git a/src/java/CdbWebPortal/web/views/item/private/templateDefaults/customizeDisplayAddons/itemListDataTableDisplayModeSelectionDialogButton.xhtml b/src/java/CdbWebPortal/web/views/item/private/templateDefaults/customizeDisplayAddons/itemListDataTableDisplayModeSelectionDialogButton.xhtml index baec038c4..9fd3fb3eb 100644 --- a/src/java/CdbWebPortal/web/views/item/private/templateDefaults/customizeDisplayAddons/itemListDataTableDisplayModeSelectionDialogButton.xhtml +++ b/src/java/CdbWebPortal/web/views/item/private/templateDefaults/customizeDisplayAddons/itemListDataTableDisplayModeSelectionDialogButton.xhtml @@ -5,7 +5,7 @@ See LICENSE file. --> diff --git a/src/java/CdbWebPortal/web/views/item/private/templateDefaults/customizeDisplayDialog/itemCommonCustomizeDisplayContents.xhtml b/src/java/CdbWebPortal/web/views/item/private/templateDefaults/customizeDisplayDialog/itemCommonCustomizeDisplayContents.xhtml index 9340353ca..746863389 100644 --- a/src/java/CdbWebPortal/web/views/item/private/templateDefaults/customizeDisplayDialog/itemCommonCustomizeDisplayContents.xhtml +++ b/src/java/CdbWebPortal/web/views/item/private/templateDefaults/customizeDisplayDialog/itemCommonCustomizeDisplayContents.xhtml @@ -5,8 +5,8 @@ See LICENSE file. --> + xmlns:f="jakarta.faces.core"> diff --git a/src/java/CdbWebPortal/web/views/item/private/templateDefaults/itemFieldEditValues/editWidgets/itemItemTypeSelectCheckboxMenu.xhtml b/src/java/CdbWebPortal/web/views/item/private/templateDefaults/itemFieldEditValues/editWidgets/itemItemTypeSelectCheckboxMenu.xhtml index e0c3b1783..4c2b55de6 100644 --- a/src/java/CdbWebPortal/web/views/item/private/templateDefaults/itemFieldEditValues/editWidgets/itemItemTypeSelectCheckboxMenu.xhtml +++ b/src/java/CdbWebPortal/web/views/item/private/templateDefaults/itemFieldEditValues/editWidgets/itemItemTypeSelectCheckboxMenu.xhtml @@ -5,9 +5,9 @@ See LICENSE file. --> + xmlns:f="jakarta.faces.core"> diff --git a/src/java/CdbWebPortal/web/views/item/private/templateDefaults/itemFieldEditValues/itemDomain.xhtml b/src/java/CdbWebPortal/web/views/item/private/templateDefaults/itemFieldEditValues/itemDomain.xhtml index c9b6d281b..00e22a593 100644 --- a/src/java/CdbWebPortal/web/views/item/private/templateDefaults/itemFieldEditValues/itemDomain.xhtml +++ b/src/java/CdbWebPortal/web/views/item/private/templateDefaults/itemFieldEditValues/itemDomain.xhtml @@ -5,9 +5,9 @@ See LICENSE file. --> + xmlns:f="jakarta.faces.core"> diff --git a/src/java/CdbWebPortal/web/views/item/private/templateDefaults/itemFieldEditValues/itemEntityType.xhtml b/src/java/CdbWebPortal/web/views/item/private/templateDefaults/itemFieldEditValues/itemEntityType.xhtml index f861cfa4b..983ef0540 100644 --- a/src/java/CdbWebPortal/web/views/item/private/templateDefaults/itemFieldEditValues/itemEntityType.xhtml +++ b/src/java/CdbWebPortal/web/views/item/private/templateDefaults/itemFieldEditValues/itemEntityType.xhtml @@ -5,9 +5,9 @@ See LICENSE file. --> + xmlns:f="jakarta.faces.core"> @@ -20,6 +20,10 @@ See LICENSE file. ? itemItemCategoryUpdateTarget : defaultItemItemCategoryUpdateTarget}" /> + - - - diff --git a/src/java/CdbWebPortal/web/views/item/private/templateDefaults/itemFieldEditValues/itemItemIdentifier1.xhtml b/src/java/CdbWebPortal/web/views/item/private/templateDefaults/itemFieldEditValues/itemItemIdentifier1.xhtml index 3cf18abdf..26e3a3abe 100644 --- a/src/java/CdbWebPortal/web/views/item/private/templateDefaults/itemFieldEditValues/itemItemIdentifier1.xhtml +++ b/src/java/CdbWebPortal/web/views/item/private/templateDefaults/itemFieldEditValues/itemItemIdentifier1.xhtml @@ -5,17 +5,16 @@ See LICENSE file. --> - - + styleClass="entityDataEmphasizedText"> + + + diff --git a/src/java/CdbWebPortal/web/views/item/private/templateDefaults/itemFieldEditValues/itemItemIdentifier2.xhtml b/src/java/CdbWebPortal/web/views/item/private/templateDefaults/itemFieldEditValues/itemItemIdentifier2.xhtml index 4df321e1f..080501051 100644 --- a/src/java/CdbWebPortal/web/views/item/private/templateDefaults/itemFieldEditValues/itemItemIdentifier2.xhtml +++ b/src/java/CdbWebPortal/web/views/item/private/templateDefaults/itemFieldEditValues/itemItemIdentifier2.xhtml @@ -5,18 +5,17 @@ See LICENSE file. --> - - + styleClass="entityDataEmphasizedText"> + + + diff --git a/src/java/CdbWebPortal/web/views/item/private/templateDefaults/itemFieldEditValues/itemItemProject.xhtml b/src/java/CdbWebPortal/web/views/item/private/templateDefaults/itemFieldEditValues/itemItemProject.xhtml index 19ecabc5f..5e2176893 100644 --- a/src/java/CdbWebPortal/web/views/item/private/templateDefaults/itemFieldEditValues/itemItemProject.xhtml +++ b/src/java/CdbWebPortal/web/views/item/private/templateDefaults/itemFieldEditValues/itemItemProject.xhtml @@ -5,10 +5,10 @@ See LICENSE file. --> + xmlns:f="jakarta.faces.core"> + - - - diff --git a/src/java/CdbWebPortal/web/views/item/private/templateDefaults/itemFieldEditValues/itemItemType.xhtml b/src/java/CdbWebPortal/web/views/item/private/templateDefaults/itemFieldEditValues/itemItemType.xhtml index 667a3da83..1dc1d30c2 100644 --- a/src/java/CdbWebPortal/web/views/item/private/templateDefaults/itemFieldEditValues/itemItemType.xhtml +++ b/src/java/CdbWebPortal/web/views/item/private/templateDefaults/itemFieldEditValues/itemItemType.xhtml @@ -5,7 +5,7 @@ See LICENSE file. --> @@ -14,12 +14,10 @@ See LICENSE file. title="#{entityController.nameTitle}" styleClass="entityDataEmphasizedText" required="true" - requiredMessage="#{entityController.nameTitle} is required" - onkeyup="updateName#{viewName}()"/> - - + requiredMessage="#{entityController.nameTitle} is required"> + + + diff --git a/src/java/CdbWebPortal/web/views/item/private/templateDefaults/itemFieldEditValues/itemQrId.xhtml b/src/java/CdbWebPortal/web/views/item/private/templateDefaults/itemFieldEditValues/itemQrId.xhtml index 89a3febbf..a2824bbe7 100644 --- a/src/java/CdbWebPortal/web/views/item/private/templateDefaults/itemFieldEditValues/itemQrId.xhtml +++ b/src/java/CdbWebPortal/web/views/item/private/templateDefaults/itemFieldEditValues/itemQrId.xhtml @@ -4,18 +4,17 @@ Copyright (c) UChicago Argonne, LLC. All rights reserved. See LICENSE file. --> - - + title="QR Id" styleClass="entityDataEmphasizedText"> + + + diff --git a/src/java/CdbWebPortal/web/views/item/private/templateDefaults/itemFieldHelpFragments/itemDerivedFromItem.xhtml b/src/java/CdbWebPortal/web/views/item/private/templateDefaults/itemFieldHelpFragments/itemDerivedFromItem.xhtml index 44e66b36f..66ffe8fb7 100644 --- a/src/java/CdbWebPortal/web/views/item/private/templateDefaults/itemFieldHelpFragments/itemDerivedFromItem.xhtml +++ b/src/java/CdbWebPortal/web/views/item/private/templateDefaults/itemFieldHelpFragments/itemDerivedFromItem.xhtml @@ -5,8 +5,8 @@ See LICENSE file. --> diff --git a/src/java/CdbWebPortal/web/views/item/private/templateDefaults/itemFieldHelpFragments/itemDescription.xhtml b/src/java/CdbWebPortal/web/views/item/private/templateDefaults/itemFieldHelpFragments/itemDescription.xhtml index 8dd15786d..c66e1f596 100644 --- a/src/java/CdbWebPortal/web/views/item/private/templateDefaults/itemFieldHelpFragments/itemDescription.xhtml +++ b/src/java/CdbWebPortal/web/views/item/private/templateDefaults/itemFieldHelpFragments/itemDescription.xhtml @@ -5,9 +5,9 @@ See LICENSE file. --> + xmlns:h="jakarta.faces.html"> + xmlns:f="jakarta.faces.core"> diff --git a/src/java/CdbWebPortal/web/views/item/private/templateDefaults/itemFieldHelpFragments/itemHelpFragment.xhtml b/src/java/CdbWebPortal/web/views/item/private/templateDefaults/itemFieldHelpFragments/itemHelpFragment.xhtml index c66195ff0..c7ec84e81 100644 --- a/src/java/CdbWebPortal/web/views/item/private/templateDefaults/itemFieldHelpFragments/itemHelpFragment.xhtml +++ b/src/java/CdbWebPortal/web/views/item/private/templateDefaults/itemFieldHelpFragments/itemHelpFragment.xhtml @@ -5,8 +5,8 @@ See LICENSE file. --> diff --git a/src/java/CdbWebPortal/web/views/item/private/templateDefaults/itemFieldHelpFragments/itemItemCategory.xhtml b/src/java/CdbWebPortal/web/views/item/private/templateDefaults/itemFieldHelpFragments/itemItemCategory.xhtml index 776ddf23a..5a5b7f82a 100644 --- a/src/java/CdbWebPortal/web/views/item/private/templateDefaults/itemFieldHelpFragments/itemItemCategory.xhtml +++ b/src/java/CdbWebPortal/web/views/item/private/templateDefaults/itemFieldHelpFragments/itemItemCategory.xhtml @@ -5,10 +5,10 @@ See LICENSE file. --> + xmlns:h="jakarta.faces.html" + xmlns:f="jakarta.faces.core"> diff --git a/src/java/CdbWebPortal/web/views/item/private/templateDefaults/itemFieldHelpFragments/itemItemIdentifier2.xhtml b/src/java/CdbWebPortal/web/views/item/private/templateDefaults/itemFieldHelpFragments/itemItemIdentifier2.xhtml index cebc9cb6e..01b6fb0d3 100644 --- a/src/java/CdbWebPortal/web/views/item/private/templateDefaults/itemFieldHelpFragments/itemItemIdentifier2.xhtml +++ b/src/java/CdbWebPortal/web/views/item/private/templateDefaults/itemFieldHelpFragments/itemItemIdentifier2.xhtml @@ -5,8 +5,8 @@ See LICENSE file. --> diff --git a/src/java/CdbWebPortal/web/views/item/private/templateDefaults/itemFieldHelpFragments/itemItemProject.xhtml b/src/java/CdbWebPortal/web/views/item/private/templateDefaults/itemFieldHelpFragments/itemItemProject.xhtml index 54f2094f2..5518080aa 100644 --- a/src/java/CdbWebPortal/web/views/item/private/templateDefaults/itemFieldHelpFragments/itemItemProject.xhtml +++ b/src/java/CdbWebPortal/web/views/item/private/templateDefaults/itemFieldHelpFragments/itemItemProject.xhtml @@ -5,8 +5,8 @@ See LICENSE file. --> diff --git a/src/java/CdbWebPortal/web/views/item/private/templateDefaults/itemFieldHelpFragments/itemItemType.xhtml b/src/java/CdbWebPortal/web/views/item/private/templateDefaults/itemFieldHelpFragments/itemItemType.xhtml index b9642fdcd..783b548d6 100644 --- a/src/java/CdbWebPortal/web/views/item/private/templateDefaults/itemFieldHelpFragments/itemItemType.xhtml +++ b/src/java/CdbWebPortal/web/views/item/private/templateDefaults/itemFieldHelpFragments/itemItemType.xhtml @@ -5,10 +5,10 @@ See LICENSE file. --> + xmlns:h="jakarta.faces.html" + xmlns:f="jakarta.faces.core"> diff --git a/src/java/CdbWebPortal/web/views/item/private/templateDefaults/itemFieldHelpFragments/itemQrId.xhtml b/src/java/CdbWebPortal/web/views/item/private/templateDefaults/itemFieldHelpFragments/itemQrId.xhtml index 58acdfb2b..5eb7d75a6 100644 --- a/src/java/CdbWebPortal/web/views/item/private/templateDefaults/itemFieldHelpFragments/itemQrId.xhtml +++ b/src/java/CdbWebPortal/web/views/item/private/templateDefaults/itemFieldHelpFragments/itemQrId.xhtml @@ -4,8 +4,8 @@ Copyright (c) UChicago Argonne, LLC. All rights reserved. See LICENSE file. --> diff --git a/src/java/CdbWebPortal/web/views/item/private/templateDefaults/itemFieldLabels/itemCreatedFromTemplate.xhtml b/src/java/CdbWebPortal/web/views/item/private/templateDefaults/itemFieldLabels/itemCreatedFromTemplate.xhtml index 33fd1d50d..1f8c1fb5b 100644 --- a/src/java/CdbWebPortal/web/views/item/private/templateDefaults/itemFieldLabels/itemCreatedFromTemplate.xhtml +++ b/src/java/CdbWebPortal/web/views/item/private/templateDefaults/itemFieldLabels/itemCreatedFromTemplate.xhtml @@ -5,8 +5,8 @@ See LICENSE file. --> + xmlns:ui="jakarta.faces.facelets" + xmlns:h="jakarta.faces.html"> + xmlns:ui="jakarta.faces.facelets" + xmlns:h="jakarta.faces.html"> diff --git a/src/java/CdbWebPortal/web/views/item/private/templateDefaults/itemFieldLabels/itemDomain.xhtml b/src/java/CdbWebPortal/web/views/item/private/templateDefaults/itemFieldLabels/itemDomain.xhtml index de6fc5999..f767773e3 100644 --- a/src/java/CdbWebPortal/web/views/item/private/templateDefaults/itemFieldLabels/itemDomain.xhtml +++ b/src/java/CdbWebPortal/web/views/item/private/templateDefaults/itemFieldLabels/itemDomain.xhtml @@ -5,8 +5,8 @@ See LICENSE file. --> + xmlns:ui="jakarta.faces.facelets" + xmlns:h="jakarta.faces.html"> + xmlns:ui="jakarta.faces.facelets" + xmlns:h="jakarta.faces.html"> + xmlns:ui="jakarta.faces.facelets" + xmlns:h="jakarta.faces.html"> + xmlns:ui="jakarta.faces.facelets" + xmlns:h="jakarta.faces.html"> + xmlns:ui="jakarta.faces.facelets" + xmlns:h="jakarta.faces.html"> + xmlns:ui="jakarta.faces.facelets" + xmlns:h="jakarta.faces.html"> + xmlns:ui="jakarta.faces.facelets" + xmlns:h="jakarta.faces.html"> + xmlns:ui="jakarta.faces.facelets" + xmlns:h="jakarta.faces.html"> + xmlns:ui="jakarta.faces.facelets" + xmlns:h="jakarta.faces.html"> diff --git a/src/java/CdbWebPortal/web/views/item/private/templateDefaults/itemFieldSimpleViewValues/itemDerivedFromItem.xhtml b/src/java/CdbWebPortal/web/views/item/private/templateDefaults/itemFieldSimpleViewValues/itemDerivedFromItem.xhtml index 5ec045ecc..475dd1e77 100644 --- a/src/java/CdbWebPortal/web/views/item/private/templateDefaults/itemFieldSimpleViewValues/itemDerivedFromItem.xhtml +++ b/src/java/CdbWebPortal/web/views/item/private/templateDefaults/itemFieldSimpleViewValues/itemDerivedFromItem.xhtml @@ -5,8 +5,8 @@ See LICENSE file. --> + xmlns:ui="jakarta.faces.facelets" + xmlns:h="jakarta.faces.html"> + xmlns:h="jakarta.faces.html"> + xmlns:h="jakarta.faces.html" + xmlns:f="jakarta.faces.core"> + xmlns:h="jakarta.faces.html"> + xmlns:h="jakarta.faces.html" + xmlns:f="jakarta.faces.core"> + xmlns:ui="jakarta.faces.facelets" + xmlns:h="jakarta.faces.html"> + xmlns:ui="jakarta.faces.facelets" + xmlns:h="jakarta.faces.html"> + xmlns:h="jakarta.faces.html"> + xmlns:ui="jakarta.faces.facelets" + xmlns:h="jakarta.faces.html"> + xmlns:ui="jakarta.faces.facelets" + xmlns:h="jakarta.faces.html"> + xmlns:ui="jakarta.faces.facelets" + xmlns:h="jakarta.faces.html"> + xmlns:h="jakarta.faces.html" + xmlns:f="jakarta.faces.core"> + xmlns:h="jakarta.faces.html" + xmlns:f="jakarta.faces.core"> + xmlns:h="jakarta.faces.html"> + xmlns:h="jakarta.faces.html" + xmlns:f="jakarta.faces.core"> + xmlns:f="jakarta.faces.core" + xmlns:h="jakarta.faces.html"> + xmlns:f="jakarta.faces.core" + xmlns:h="jakarta.faces.html"> + xmlns:h="jakarta.faces.html" + xmlns:f="jakarta.faces.core"> + xmlns:h="jakarta.faces.html" + xmlns:f="jakarta.faces.core"> + xmlns:f="jakarta.faces.core" + xmlns:h="jakarta.faces.html"> + xmlns:h="jakarta.faces.html" + xmlns:f="jakarta.faces.core"> diff --git a/src/java/CdbWebPortal/web/views/item/private/templateDefaults/itemFieldViewValues/itemViewLink.xhtml b/src/java/CdbWebPortal/web/views/item/private/templateDefaults/itemFieldViewValues/itemViewLink.xhtml index acdcf8a8f..80b18b6db 100644 --- a/src/java/CdbWebPortal/web/views/item/private/templateDefaults/itemFieldViewValues/itemViewLink.xhtml +++ b/src/java/CdbWebPortal/web/views/item/private/templateDefaults/itemFieldViewValues/itemViewLink.xhtml @@ -5,8 +5,8 @@ See LICENSE file. --> + xmlns:ui="jakarta.faces.facelets" + xmlns:h="jakarta.faces.html"> + xmlns:h="jakarta.faces.html"> diff --git a/src/java/CdbWebPortal/web/views/item/private/templateDefaults/itemListObjectColumns/itemItemType.xhtml b/src/java/CdbWebPortal/web/views/item/private/templateDefaults/itemListObjectColumns/itemItemType.xhtml index af3d4fe6c..481364a31 100644 --- a/src/java/CdbWebPortal/web/views/item/private/templateDefaults/itemListObjectColumns/itemItemType.xhtml +++ b/src/java/CdbWebPortal/web/views/item/private/templateDefaults/itemListObjectColumns/itemItemType.xhtml @@ -5,7 +5,7 @@ See LICENSE file. --> + xmlns:h="jakarta.faces.html"> diff --git a/src/java/CdbWebPortal/web/views/item/private/templateDefaults/itemListObjectColumns/itemThumbnailColumn.xhtml b/src/java/CdbWebPortal/web/views/item/private/templateDefaults/itemListObjectColumns/itemThumbnailColumn.xhtml index 642b36df8..1f6d08b76 100644 --- a/src/java/CdbWebPortal/web/views/item/private/templateDefaults/itemListObjectColumns/itemThumbnailColumn.xhtml +++ b/src/java/CdbWebPortal/web/views/item/private/templateDefaults/itemListObjectColumns/itemThumbnailColumn.xhtml @@ -5,9 +5,9 @@ See LICENSE file. --> + xmlns:h="jakarta.faces.html"> @@ -52,7 +52,7 @@ See LICENSE file. diff --git a/src/java/CdbWebPortal/web/views/item/private/templateDefaults/itemListRowExpansion/itemAssemblyTab.xhtml b/src/java/CdbWebPortal/web/views/item/private/templateDefaults/itemListRowExpansion/itemAssemblyTab.xhtml index aeb241bd2..c5b060c52 100644 --- a/src/java/CdbWebPortal/web/views/item/private/templateDefaults/itemListRowExpansion/itemAssemblyTab.xhtml +++ b/src/java/CdbWebPortal/web/views/item/private/templateDefaults/itemListRowExpansion/itemAssemblyTab.xhtml @@ -5,7 +5,7 @@ See LICENSE file. --> diff --git a/src/java/CdbWebPortal/web/views/item/private/templateDefaults/itemListRowExpansion/itemDerivedFromItemTab.xhtml b/src/java/CdbWebPortal/web/views/item/private/templateDefaults/itemListRowExpansion/itemDerivedFromItemTab.xhtml index f115d3675..7c570a0f0 100644 --- a/src/java/CdbWebPortal/web/views/item/private/templateDefaults/itemListRowExpansion/itemDerivedFromItemTab.xhtml +++ b/src/java/CdbWebPortal/web/views/item/private/templateDefaults/itemListRowExpansion/itemDerivedFromItemTab.xhtml @@ -5,12 +5,13 @@ See LICENSE file. --> ] diff --git a/src/java/CdbWebPortal/web/views/item/private/templates/itemBrowseCategoryTypeTemplate.xhtml b/src/java/CdbWebPortal/web/views/item/private/templates/itemBrowseCategoryTypeTemplate.xhtml index 421509a62..3584d8dc4 100644 --- a/src/java/CdbWebPortal/web/views/item/private/templates/itemBrowseCategoryTypeTemplate.xhtml +++ b/src/java/CdbWebPortal/web/views/item/private/templates/itemBrowseCategoryTypeTemplate.xhtml @@ -5,11 +5,11 @@ See LICENSE file. --> + xmlns:f="jakarta.faces.core"> : Browse By #{entityController.itemItemTypeTitle} diff --git a/src/java/CdbWebPortal/web/views/item/private/templates/itemBrowseOwnerTemplate.xhtml b/src/java/CdbWebPortal/web/views/item/private/templates/itemBrowseOwnerTemplate.xhtml index 8941f7ed3..1e2d3f48a 100644 --- a/src/java/CdbWebPortal/web/views/item/private/templates/itemBrowseOwnerTemplate.xhtml +++ b/src/java/CdbWebPortal/web/views/item/private/templates/itemBrowseOwnerTemplate.xhtml @@ -5,11 +5,11 @@ See LICENSE file. --> + xmlns:f="jakarta.faces.core"> : Browse By Owner diff --git a/src/java/CdbWebPortal/web/views/item/private/templates/itemBrowseTemplate.xhtml b/src/java/CdbWebPortal/web/views/item/private/templates/itemBrowseTemplate.xhtml index dbba19694..df15d9ead 100644 --- a/src/java/CdbWebPortal/web/views/item/private/templates/itemBrowseTemplate.xhtml +++ b/src/java/CdbWebPortal/web/views/item/private/templates/itemBrowseTemplate.xhtml @@ -5,11 +5,11 @@ See LICENSE file. --> + xmlns:f="jakarta.faces.core"> + xmlns:f="jakarta.faces.core" + xmlns:h="jakarta.faces.html"> - + diff --git a/src/java/CdbWebPortal/web/views/item/private/templates/itemCreatePanelGridTemplate.xhtml b/src/java/CdbWebPortal/web/views/item/private/templates/itemCreatePanelGridTemplate.xhtml index 358f2712c..6ca0c7dc5 100644 --- a/src/java/CdbWebPortal/web/views/item/private/templates/itemCreatePanelGridTemplate.xhtml +++ b/src/java/CdbWebPortal/web/views/item/private/templates/itemCreatePanelGridTemplate.xhtml @@ -5,7 +5,7 @@ See LICENSE file. --> diff --git a/src/java/CdbWebPortal/web/views/item/private/templates/itemCreateTemplate.xhtml b/src/java/CdbWebPortal/web/views/item/private/templates/itemCreateTemplate.xhtml index 78a9e09f8..be8b5c127 100644 --- a/src/java/CdbWebPortal/web/views/item/private/templates/itemCreateTemplate.xhtml +++ b/src/java/CdbWebPortal/web/views/item/private/templates/itemCreateTemplate.xhtml @@ -5,9 +5,9 @@ See LICENSE file. --> diff --git a/src/java/CdbWebPortal/web/views/item/private/templates/itemCreateWizardTemplate.xhtml b/src/java/CdbWebPortal/web/views/item/private/templates/itemCreateWizardTemplate.xhtml index 4b1bffbb0..7bec258f3 100644 --- a/src/java/CdbWebPortal/web/views/item/private/templates/itemCreateWizardTemplate.xhtml +++ b/src/java/CdbWebPortal/web/views/item/private/templates/itemCreateWizardTemplate.xhtml @@ -5,9 +5,9 @@ See LICENSE file. --> @@ -44,7 +44,7 @@ See LICENSE file. - + @@ -122,7 +122,7 @@ See LICENSE file. Set the classification information about the item.

- + @@ -172,7 +172,7 @@ See LICENSE file. Please set all of the item permissions.

- + diff --git a/src/java/CdbWebPortal/web/views/item/private/templates/itemCreateWizardTemplateBase.xhtml b/src/java/CdbWebPortal/web/views/item/private/templates/itemCreateWizardTemplateBase.xhtml index 4c5dfe8c7..d1cb860bd 100644 --- a/src/java/CdbWebPortal/web/views/item/private/templates/itemCreateWizardTemplateBase.xhtml +++ b/src/java/CdbWebPortal/web/views/item/private/templates/itemCreateWizardTemplateBase.xhtml @@ -5,9 +5,9 @@ See LICENSE file. --> diff --git a/src/java/CdbWebPortal/web/views/item/private/templates/itemCustomizeDisplayDialogTemplateBase.xhtml b/src/java/CdbWebPortal/web/views/item/private/templates/itemCustomizeDisplayDialogTemplateBase.xhtml index 03de9561b..d63ae4ce2 100644 --- a/src/java/CdbWebPortal/web/views/item/private/templates/itemCustomizeDisplayDialogTemplateBase.xhtml +++ b/src/java/CdbWebPortal/web/views/item/private/templates/itemCustomizeDisplayDialogTemplateBase.xhtml @@ -5,9 +5,9 @@ See LICENSE file. --> diff --git a/src/java/CdbWebPortal/web/views/item/private/templates/itemDomainEntityCustomizeDisplayDialogTemplate.xhtml b/src/java/CdbWebPortal/web/views/item/private/templates/itemDomainEntityCustomizeDisplayDialogTemplate.xhtml index 6008e0bef..5f6af0b98 100644 --- a/src/java/CdbWebPortal/web/views/item/private/templates/itemDomainEntityCustomizeDisplayDialogTemplate.xhtml +++ b/src/java/CdbWebPortal/web/views/item/private/templates/itemDomainEntityCustomizeDisplayDialogTemplate.xhtml @@ -5,10 +5,10 @@ See LICENSE file. --> @@ -16,7 +16,7 @@ See LICENSE file. - + @@ -28,7 +28,7 @@ See LICENSE file. - + @@ -55,7 +55,7 @@ See LICENSE file. - + @@ -71,7 +71,7 @@ See LICENSE file. - + @@ -97,7 +97,7 @@ See LICENSE file. - + @@ -112,7 +112,7 @@ See LICENSE file. - + diff --git a/src/java/CdbWebPortal/web/views/item/private/templates/itemEditPanelGridTemplate.xhtml b/src/java/CdbWebPortal/web/views/item/private/templates/itemEditPanelGridTemplate.xhtml index 058f8f1ec..58216f795 100644 --- a/src/java/CdbWebPortal/web/views/item/private/templates/itemEditPanelGridTemplate.xhtml +++ b/src/java/CdbWebPortal/web/views/item/private/templates/itemEditPanelGridTemplate.xhtml @@ -5,7 +5,7 @@ See LICENSE file. --> diff --git a/src/java/CdbWebPortal/web/views/item/private/templates/itemEditTemplate.xhtml b/src/java/CdbWebPortal/web/views/item/private/templates/itemEditTemplate.xhtml index 77e3254a8..77f99d987 100644 --- a/src/java/CdbWebPortal/web/views/item/private/templates/itemEditTemplate.xhtml +++ b/src/java/CdbWebPortal/web/views/item/private/templates/itemEditTemplate.xhtml @@ -5,7 +5,7 @@ See LICENSE file. --> diff --git a/src/java/CdbWebPortal/web/views/item/private/templates/itemEditTemplateBase.xhtml b/src/java/CdbWebPortal/web/views/item/private/templates/itemEditTemplateBase.xhtml index 609b67e4a..1bd4b87c4 100644 --- a/src/java/CdbWebPortal/web/views/item/private/templates/itemEditTemplateBase.xhtml +++ b/src/java/CdbWebPortal/web/views/item/private/templates/itemEditTemplateBase.xhtml @@ -5,9 +5,9 @@ See LICENSE file. --> diff --git a/src/java/CdbWebPortal/web/views/item/private/templates/itemListActionButtonsTemplate.xhtml b/src/java/CdbWebPortal/web/views/item/private/templates/itemListActionButtonsTemplate.xhtml index 0acd50100..732606dfc 100644 --- a/src/java/CdbWebPortal/web/views/item/private/templates/itemListActionButtonsTemplate.xhtml +++ b/src/java/CdbWebPortal/web/views/item/private/templates/itemListActionButtonsTemplate.xhtml @@ -5,7 +5,7 @@ See LICENSE file. --> diff --git a/src/java/CdbWebPortal/web/views/item/private/templates/itemListCustomizeDisplayDialogTemplate.xhtml b/src/java/CdbWebPortal/web/views/item/private/templates/itemListCustomizeDisplayDialogTemplate.xhtml index a6f2f740c..955b2a3d1 100644 --- a/src/java/CdbWebPortal/web/views/item/private/templates/itemListCustomizeDisplayDialogTemplate.xhtml +++ b/src/java/CdbWebPortal/web/views/item/private/templates/itemListCustomizeDisplayDialogTemplate.xhtml @@ -5,9 +5,9 @@ See LICENSE file. --> diff --git a/src/java/CdbWebPortal/web/views/item/private/templates/itemListDataTableRowExpansionObjectTemplate.xhtml b/src/java/CdbWebPortal/web/views/item/private/templates/itemListDataTableRowExpansionObjectTemplate.xhtml index 3d6c5bae1..cfbb4aa16 100644 --- a/src/java/CdbWebPortal/web/views/item/private/templates/itemListDataTableRowExpansionObjectTemplate.xhtml +++ b/src/java/CdbWebPortal/web/views/item/private/templates/itemListDataTableRowExpansionObjectTemplate.xhtml @@ -5,7 +5,7 @@ See LICENSE file. --> diff --git a/src/java/CdbWebPortal/web/views/item/private/templates/itemListDataTableRowExpansionTemplate.xhtml b/src/java/CdbWebPortal/web/views/item/private/templates/itemListDataTableRowExpansionTemplate.xhtml index 480dce4c8..531fd08bd 100644 --- a/src/java/CdbWebPortal/web/views/item/private/templates/itemListDataTableRowExpansionTemplate.xhtml +++ b/src/java/CdbWebPortal/web/views/item/private/templates/itemListDataTableRowExpansionTemplate.xhtml @@ -5,11 +5,11 @@ See LICENSE file. --> + xmlns:f="jakarta.faces.core"> diff --git a/src/java/CdbWebPortal/web/views/item/private/templates/itemListDataTableTemplate.xhtml b/src/java/CdbWebPortal/web/views/item/private/templates/itemListDataTableTemplate.xhtml index 6cbf3581f..9f17a66ea 100644 --- a/src/java/CdbWebPortal/web/views/item/private/templates/itemListDataTableTemplate.xhtml +++ b/src/java/CdbWebPortal/web/views/item/private/templates/itemListDataTableTemplate.xhtml @@ -5,7 +5,7 @@ See LICENSE file. --> diff --git a/src/java/CdbWebPortal/web/views/item/private/templates/itemListDataTableTemplateBase.xhtml b/src/java/CdbWebPortal/web/views/item/private/templates/itemListDataTableTemplateBase.xhtml index 8478321a1..8daba4d0e 100644 --- a/src/java/CdbWebPortal/web/views/item/private/templates/itemListDataTableTemplateBase.xhtml +++ b/src/java/CdbWebPortal/web/views/item/private/templates/itemListDataTableTemplateBase.xhtml @@ -5,9 +5,9 @@ See LICENSE file. --> + xmlns:h="jakarta.faces.html"> diff --git a/src/java/CdbWebPortal/web/views/item/private/templates/itemListFilterViewCategoryTypeTemplate.xhtml b/src/java/CdbWebPortal/web/views/item/private/templates/itemListFilterViewCategoryTypeTemplate.xhtml index bb54caa90..bd8611230 100644 --- a/src/java/CdbWebPortal/web/views/item/private/templates/itemListFilterViewCategoryTypeTemplate.xhtml +++ b/src/java/CdbWebPortal/web/views/item/private/templates/itemListFilterViewCategoryTypeTemplate.xhtml @@ -5,9 +5,9 @@ See LICENSE file. --> diff --git a/src/java/CdbWebPortal/web/views/item/private/templates/itemListFilterViewObjectTemplate.xhtml b/src/java/CdbWebPortal/web/views/item/private/templates/itemListFilterViewObjectTemplate.xhtml index 80ede8c57..03f2cc84d 100644 --- a/src/java/CdbWebPortal/web/views/item/private/templates/itemListFilterViewObjectTemplate.xhtml +++ b/src/java/CdbWebPortal/web/views/item/private/templates/itemListFilterViewObjectTemplate.xhtml @@ -5,7 +5,7 @@ See LICENSE file. --> diff --git a/src/java/CdbWebPortal/web/views/item/private/templates/itemListFilterViewOwnerTemplate.xhtml b/src/java/CdbWebPortal/web/views/item/private/templates/itemListFilterViewOwnerTemplate.xhtml index d2deb2233..88332d5d4 100644 --- a/src/java/CdbWebPortal/web/views/item/private/templates/itemListFilterViewOwnerTemplate.xhtml +++ b/src/java/CdbWebPortal/web/views/item/private/templates/itemListFilterViewOwnerTemplate.xhtml @@ -5,9 +5,9 @@ See LICENSE file. --> diff --git a/src/java/CdbWebPortal/web/views/item/private/templates/itemListFilterViewTemplate.xhtml b/src/java/CdbWebPortal/web/views/item/private/templates/itemListFilterViewTemplate.xhtml index 355a23d64..c1114c06a 100644 --- a/src/java/CdbWebPortal/web/views/item/private/templates/itemListFilterViewTemplate.xhtml +++ b/src/java/CdbWebPortal/web/views/item/private/templates/itemListFilterViewTemplate.xhtml @@ -5,22 +5,24 @@ See LICENSE file. --> + xmlns:h="jakarta.faces.html"> diff --git a/src/java/CdbWebPortal/web/views/item/private/templates/itemListFilterViewTemplateBase.xhtml b/src/java/CdbWebPortal/web/views/item/private/templates/itemListFilterViewTemplateBase.xhtml index 2bdb738b8..c6b60fb4f 100644 --- a/src/java/CdbWebPortal/web/views/item/private/templates/itemListFilterViewTemplateBase.xhtml +++ b/src/java/CdbWebPortal/web/views/item/private/templates/itemListFilterViewTemplateBase.xhtml @@ -5,17 +5,17 @@ See LICENSE file. --> - + - + diff --git a/src/java/CdbWebPortal/web/views/item/private/templates/itemListObjectTemplate.xhtml b/src/java/CdbWebPortal/web/views/item/private/templates/itemListObjectTemplate.xhtml index f57905e6e..0af9addfc 100644 --- a/src/java/CdbWebPortal/web/views/item/private/templates/itemListObjectTemplate.xhtml +++ b/src/java/CdbWebPortal/web/views/item/private/templates/itemListObjectTemplate.xhtml @@ -5,7 +5,8 @@ See LICENSE file. --> @@ -124,9 +125,14 @@ See LICENSE file. filterBy="#{itemListObject.entityTypeString}" filterMatchMode="contains" filterValue="#{entitySettingObject.filterByItemEntityType}" filterable="#{filterable}" - filterOptions="#{entityController.entityTypesForDataTableFilterSelectOne}" rendered="#{rendered and itemListRenderItemEntityTypes}" sortable="#{sortable}"> + + + + + @@ -165,12 +171,16 @@ See LICENSE file. + + + + + diff --git a/src/java/CdbWebPortal/web/views/item/private/templates/itemListObjectTemplateBase.xhtml b/src/java/CdbWebPortal/web/views/item/private/templates/itemListObjectTemplateBase.xhtml index 2ca8b7239..e339c4886 100644 --- a/src/java/CdbWebPortal/web/views/item/private/templates/itemListObjectTemplateBase.xhtml +++ b/src/java/CdbWebPortal/web/views/item/private/templates/itemListObjectTemplateBase.xhtml @@ -5,7 +5,7 @@ See LICENSE file. --> + xmlns:ui="jakarta.faces.facelets"> diff --git a/src/java/CdbWebPortal/web/views/item/private/templates/itemListTemplateBase.xhtml b/src/java/CdbWebPortal/web/views/item/private/templates/itemListTemplateBase.xhtml index 61e5283ef..db670a36d 100644 --- a/src/java/CdbWebPortal/web/views/item/private/templates/itemListTemplateBase.xhtml +++ b/src/java/CdbWebPortal/web/views/item/private/templates/itemListTemplateBase.xhtml @@ -5,11 +5,11 @@ See LICENSE file. --> + xmlns:f="jakarta.faces.core"> diff --git a/src/java/CdbWebPortal/web/views/item/private/templates/itemListTreeTableTemplate.xhtml b/src/java/CdbWebPortal/web/views/item/private/templates/itemListTreeTableTemplate.xhtml index fa90d1855..a2c966a87 100644 --- a/src/java/CdbWebPortal/web/views/item/private/templates/itemListTreeTableTemplate.xhtml +++ b/src/java/CdbWebPortal/web/views/item/private/templates/itemListTreeTableTemplate.xhtml @@ -5,7 +5,7 @@ See LICENSE file. --> diff --git a/src/java/CdbWebPortal/web/views/item/private/templates/itemListTreeTableTemplateBase.xhtml b/src/java/CdbWebPortal/web/views/item/private/templates/itemListTreeTableTemplateBase.xhtml index 0a9b8f3bb..533ccb6b7 100644 --- a/src/java/CdbWebPortal/web/views/item/private/templates/itemListTreeTableTemplateBase.xhtml +++ b/src/java/CdbWebPortal/web/views/item/private/templates/itemListTreeTableTemplateBase.xhtml @@ -5,7 +5,7 @@ See LICENSE file. --> diff --git a/src/java/CdbWebPortal/web/views/item/private/templates/itemPanelGridTemplateBase.xhtml b/src/java/CdbWebPortal/web/views/item/private/templates/itemPanelGridTemplateBase.xhtml index 5171115ad..c2b2eb8c2 100644 --- a/src/java/CdbWebPortal/web/views/item/private/templates/itemPanelGridTemplateBase.xhtml +++ b/src/java/CdbWebPortal/web/views/item/private/templates/itemPanelGridTemplateBase.xhtml @@ -5,7 +5,7 @@ See LICENSE file. --> @@ -13,7 +13,7 @@ See LICENSE file. Please specify panelGridStyle --> - + diff --git a/src/java/CdbWebPortal/web/views/item/private/templates/itemPropertyListTemplate.xhtml b/src/java/CdbWebPortal/web/views/item/private/templates/itemPropertyListTemplate.xhtml index 71b8928fb..ba0552dc6 100644 --- a/src/java/CdbWebPortal/web/views/item/private/templates/itemPropertyListTemplate.xhtml +++ b/src/java/CdbWebPortal/web/views/item/private/templates/itemPropertyListTemplate.xhtml @@ -5,10 +5,10 @@ See LICENSE file. --> + xmlns:f="jakarta.faces.core"> diff --git a/src/java/CdbWebPortal/web/views/item/private/templates/itemViewSimplePanelGridTemplate.xhtml b/src/java/CdbWebPortal/web/views/item/private/templates/itemViewSimplePanelGridTemplate.xhtml index 7324afb88..59fb58cfb 100644 --- a/src/java/CdbWebPortal/web/views/item/private/templates/itemViewSimplePanelGridTemplate.xhtml +++ b/src/java/CdbWebPortal/web/views/item/private/templates/itemViewSimplePanelGridTemplate.xhtml @@ -5,7 +5,7 @@ See LICENSE file. --> diff --git a/src/java/CdbWebPortal/web/views/item/private/templates/itemViewTemplate.xhtml b/src/java/CdbWebPortal/web/views/item/private/templates/itemViewTemplate.xhtml index f7f53bced..82cbc3a88 100644 --- a/src/java/CdbWebPortal/web/views/item/private/templates/itemViewTemplate.xhtml +++ b/src/java/CdbWebPortal/web/views/item/private/templates/itemViewTemplate.xhtml @@ -5,7 +5,7 @@ See LICENSE file. --> @@ -27,7 +27,9 @@ See LICENSE file. : View #{entityController.displayEntityTypeName} #{entityController.currentItemDisplayTitle} - +

diff --git a/src/java/CdbWebPortal/web/views/item/view.xhtml b/src/java/CdbWebPortal/web/views/item/view.xhtml index 1ed7657de..1a7b7e11d 100644 --- a/src/java/CdbWebPortal/web/views/item/view.xhtml +++ b/src/java/CdbWebPortal/web/views/item/view.xhtml @@ -5,8 +5,8 @@ See LICENSE file. --> diff --git a/src/java/CdbWebPortal/web/views/itemCategory/create.xhtml b/src/java/CdbWebPortal/web/views/itemCategory/create.xhtml index 4bcc865ab..07a3fda3e 100644 --- a/src/java/CdbWebPortal/web/views/itemCategory/create.xhtml +++ b/src/java/CdbWebPortal/web/views/itemCategory/create.xhtml @@ -5,8 +5,8 @@ See LICENSE file. --> diff --git a/src/java/CdbWebPortal/web/views/itemCategory/edit.xhtml b/src/java/CdbWebPortal/web/views/itemCategory/edit.xhtml index ed6816f39..b3c78ffc3 100644 --- a/src/java/CdbWebPortal/web/views/itemCategory/edit.xhtml +++ b/src/java/CdbWebPortal/web/views/itemCategory/edit.xhtml @@ -5,8 +5,8 @@ See LICENSE file. --> diff --git a/src/java/CdbWebPortal/web/views/itemCategory/export.xhtml b/src/java/CdbWebPortal/web/views/itemCategory/export.xhtml index f4c73ba19..f6e0a8816 100644 --- a/src/java/CdbWebPortal/web/views/itemCategory/export.xhtml +++ b/src/java/CdbWebPortal/web/views/itemCategory/export.xhtml @@ -5,9 +5,9 @@ See LICENSE file. --> diff --git a/src/java/CdbWebPortal/web/views/itemCategory/import.xhtml b/src/java/CdbWebPortal/web/views/itemCategory/import.xhtml index a1a06fc3d..9698f2ebb 100644 --- a/src/java/CdbWebPortal/web/views/itemCategory/import.xhtml +++ b/src/java/CdbWebPortal/web/views/itemCategory/import.xhtml @@ -5,9 +5,9 @@ See LICENSE file. --> @@ -22,6 +22,7 @@ See LICENSE file.
diff --git a/src/java/CdbWebPortal/web/views/itemCategory/list.xhtml b/src/java/CdbWebPortal/web/views/itemCategory/list.xhtml index 06c51ceb1..3876ac01e 100644 --- a/src/java/CdbWebPortal/web/views/itemCategory/list.xhtml +++ b/src/java/CdbWebPortal/web/views/itemCategory/list.xhtml @@ -5,9 +5,9 @@ See LICENSE file. --> + xmlns:f="jakarta.faces.core"> diff --git a/src/java/CdbWebPortal/web/views/itemCategory/private/itemCategoryEditPanelGrid.xhtml b/src/java/CdbWebPortal/web/views/itemCategory/private/itemCategoryEditPanelGrid.xhtml index b71435fda..d767e0125 100644 --- a/src/java/CdbWebPortal/web/views/itemCategory/private/itemCategoryEditPanelGrid.xhtml +++ b/src/java/CdbWebPortal/web/views/itemCategory/private/itemCategoryEditPanelGrid.xhtml @@ -5,10 +5,10 @@ See LICENSE file. --> diff --git a/src/java/CdbWebPortal/web/views/itemCategory/private/itemCategoryListDataTable.xhtml b/src/java/CdbWebPortal/web/views/itemCategory/private/itemCategoryListDataTable.xhtml index 63cbfb0a5..341a4cd9c 100644 --- a/src/java/CdbWebPortal/web/views/itemCategory/private/itemCategoryListDataTable.xhtml +++ b/src/java/CdbWebPortal/web/views/itemCategory/private/itemCategoryListDataTable.xhtml @@ -5,7 +5,7 @@ See LICENSE file. --> diff --git a/src/java/CdbWebPortal/web/views/itemCategory/private/itemCategoryListObject.xhtml b/src/java/CdbWebPortal/web/views/itemCategory/private/itemCategoryListObject.xhtml index 38a6ac81e..f0b5e9279 100644 --- a/src/java/CdbWebPortal/web/views/itemCategory/private/itemCategoryListObject.xhtml +++ b/src/java/CdbWebPortal/web/views/itemCategory/private/itemCategoryListObject.xhtml @@ -5,10 +5,10 @@ See LICENSE file. --> + xmlns:h="jakarta.faces.html"> diff --git a/src/java/CdbWebPortal/web/views/itemCategory/private/itemCategorySearchDataTable.xhtml b/src/java/CdbWebPortal/web/views/itemCategory/private/itemCategorySearchDataTable.xhtml index 98d1aee38..3604d0b19 100644 --- a/src/java/CdbWebPortal/web/views/itemCategory/private/itemCategorySearchDataTable.xhtml +++ b/src/java/CdbWebPortal/web/views/itemCategory/private/itemCategorySearchDataTable.xhtml @@ -5,15 +5,17 @@ See LICENSE file. --> diff --git a/src/java/CdbWebPortal/web/views/itemCategory/private/itemCategoryViewPanelGrid.xhtml b/src/java/CdbWebPortal/web/views/itemCategory/private/itemCategoryViewPanelGrid.xhtml index 05cb2a1c2..67a6a8f21 100644 --- a/src/java/CdbWebPortal/web/views/itemCategory/private/itemCategoryViewPanelGrid.xhtml +++ b/src/java/CdbWebPortal/web/views/itemCategory/private/itemCategoryViewPanelGrid.xhtml @@ -5,9 +5,9 @@ See LICENSE file. --> + xmlns:h="jakarta.faces.html"> diff --git a/src/java/CdbWebPortal/web/views/itemCategory/view.xhtml b/src/java/CdbWebPortal/web/views/itemCategory/view.xhtml index d45d86242..48643e540 100644 --- a/src/java/CdbWebPortal/web/views/itemCategory/view.xhtml +++ b/src/java/CdbWebPortal/web/views/itemCategory/view.xhtml @@ -5,8 +5,8 @@ See LICENSE file. --> diff --git a/src/java/CdbWebPortal/web/views/itemConnector/private/itemConnectorList.xhtml b/src/java/CdbWebPortal/web/views/itemConnector/private/itemConnectorList.xhtml index a4963d26d..b242b6ab8 100644 --- a/src/java/CdbWebPortal/web/views/itemConnector/private/itemConnectorList.xhtml +++ b/src/java/CdbWebPortal/web/views/itemConnector/private/itemConnectorList.xhtml @@ -5,7 +5,7 @@ See LICENSE file. --> diff --git a/src/java/CdbWebPortal/web/views/itemConnector/private/itemConnectorListCreateDialog.xhtml b/src/java/CdbWebPortal/web/views/itemConnector/private/itemConnectorListCreateDialog.xhtml index 663ef9423..01b14ac6a 100644 --- a/src/java/CdbWebPortal/web/views/itemConnector/private/itemConnectorListCreateDialog.xhtml +++ b/src/java/CdbWebPortal/web/views/itemConnector/private/itemConnectorListCreateDialog.xhtml @@ -5,9 +5,9 @@ See LICENSE file. --> + xmlns:f="jakarta.faces.core"> + boxStyleClass="viewTransparentBackgroundDialog"> - diff --git a/src/java/CdbWebPortal/web/views/itemConnector/private/itemConnectorListDataTable.xhtml b/src/java/CdbWebPortal/web/views/itemConnector/private/itemConnectorListDataTable.xhtml index 1f83e7a35..4479104bf 100644 --- a/src/java/CdbWebPortal/web/views/itemConnector/private/itemConnectorListDataTable.xhtml +++ b/src/java/CdbWebPortal/web/views/itemConnector/private/itemConnectorListDataTable.xhtml @@ -5,10 +5,11 @@ See LICENSE file. --> + xmlns:f="jakarta.faces.core" + xmlns:h="jakarta.faces.html"> + xmlns:f="jakarta.faces.core"> diff --git a/src/java/CdbWebPortal/web/views/itemConnector/private/itemConnectorTypeEditObject.xhtml b/src/java/CdbWebPortal/web/views/itemConnector/private/itemConnectorTypeEditObject.xhtml index 30bac7c65..012be8f23 100644 --- a/src/java/CdbWebPortal/web/views/itemConnector/private/itemConnectorTypeEditObject.xhtml +++ b/src/java/CdbWebPortal/web/views/itemConnector/private/itemConnectorTypeEditObject.xhtml @@ -7,9 +7,9 @@ See LICENSE file. + xmlns:f="jakarta.faces.core"> diff --git a/src/java/CdbWebPortal/web/views/itemDomainApp/create.xhtml b/src/java/CdbWebPortal/web/views/itemDomainApp/create.xhtml index 92ef62ad2..c41542f1b 100644 --- a/src/java/CdbWebPortal/web/views/itemDomainApp/create.xhtml +++ b/src/java/CdbWebPortal/web/views/itemDomainApp/create.xhtml @@ -5,8 +5,8 @@ See LICENSE file. --> diff --git a/src/java/CdbWebPortal/web/views/itemDomainApp/edit.xhtml b/src/java/CdbWebPortal/web/views/itemDomainApp/edit.xhtml index cd47bfe33..f6488433d 100644 --- a/src/java/CdbWebPortal/web/views/itemDomainApp/edit.xhtml +++ b/src/java/CdbWebPortal/web/views/itemDomainApp/edit.xhtml @@ -5,8 +5,8 @@ See LICENSE file. --> diff --git a/src/java/CdbWebPortal/web/views/itemDomainApp/list.xhtml b/src/java/CdbWebPortal/web/views/itemDomainApp/list.xhtml index 5b231633a..4c63f163f 100644 --- a/src/java/CdbWebPortal/web/views/itemDomainApp/list.xhtml +++ b/src/java/CdbWebPortal/web/views/itemDomainApp/list.xhtml @@ -5,9 +5,9 @@ See LICENSE file. --> + xmlns:f="jakarta.faces.core"> diff --git a/src/java/CdbWebPortal/web/views/itemDomainApp/private/deploymentList.xhtml b/src/java/CdbWebPortal/web/views/itemDomainApp/private/deploymentList.xhtml index 55afa2f0f..dfa38eb7d 100644 --- a/src/java/CdbWebPortal/web/views/itemDomainApp/private/deploymentList.xhtml +++ b/src/java/CdbWebPortal/web/views/itemDomainApp/private/deploymentList.xhtml @@ -6,7 +6,7 @@ See LICENSE file. diff --git a/src/java/CdbWebPortal/web/views/itemDomainApp/private/itemListDataTable.xhtml b/src/java/CdbWebPortal/web/views/itemDomainApp/private/itemListDataTable.xhtml index 70d72d078..33854467b 100644 --- a/src/java/CdbWebPortal/web/views/itemDomainApp/private/itemListDataTable.xhtml +++ b/src/java/CdbWebPortal/web/views/itemDomainApp/private/itemListDataTable.xhtml @@ -5,7 +5,7 @@ See LICENSE file. --> diff --git a/src/java/CdbWebPortal/web/views/itemDomainApp/private/itemListDataTableRowExpansion.xhtml b/src/java/CdbWebPortal/web/views/itemDomainApp/private/itemListDataTableRowExpansion.xhtml index f12a18c52..eaaf44a2f 100644 --- a/src/java/CdbWebPortal/web/views/itemDomainApp/private/itemListDataTableRowExpansion.xhtml +++ b/src/java/CdbWebPortal/web/views/itemDomainApp/private/itemListDataTableRowExpansion.xhtml @@ -5,7 +5,7 @@ See LICENSE file. --> diff --git a/src/java/CdbWebPortal/web/views/itemDomainApp/private/itemListDataTableRowExpansionObject.xhtml b/src/java/CdbWebPortal/web/views/itemDomainApp/private/itemListDataTableRowExpansionObject.xhtml index ece6945b9..b05c350e7 100644 --- a/src/java/CdbWebPortal/web/views/itemDomainApp/private/itemListDataTableRowExpansionObject.xhtml +++ b/src/java/CdbWebPortal/web/views/itemDomainApp/private/itemListDataTableRowExpansionObject.xhtml @@ -5,7 +5,7 @@ See LICENSE file. --> diff --git a/src/java/CdbWebPortal/web/views/itemDomainApp/view.xhtml b/src/java/CdbWebPortal/web/views/itemDomainApp/view.xhtml index a0208d1a5..e2f725136 100644 --- a/src/java/CdbWebPortal/web/views/itemDomainApp/view.xhtml +++ b/src/java/CdbWebPortal/web/views/itemDomainApp/view.xhtml @@ -5,8 +5,8 @@ See LICENSE file. --> diff --git a/src/java/CdbWebPortal/web/views/itemDomainAppDeployment/create.xhtml b/src/java/CdbWebPortal/web/views/itemDomainAppDeployment/create.xhtml index a84beec1e..32cc72ca4 100644 --- a/src/java/CdbWebPortal/web/views/itemDomainAppDeployment/create.xhtml +++ b/src/java/CdbWebPortal/web/views/itemDomainAppDeployment/create.xhtml @@ -5,8 +5,8 @@ See LICENSE file. --> diff --git a/src/java/CdbWebPortal/web/views/itemDomainAppDeployment/edit.xhtml b/src/java/CdbWebPortal/web/views/itemDomainAppDeployment/edit.xhtml index a72d6c9d6..754be16f5 100644 --- a/src/java/CdbWebPortal/web/views/itemDomainAppDeployment/edit.xhtml +++ b/src/java/CdbWebPortal/web/views/itemDomainAppDeployment/edit.xhtml @@ -5,8 +5,8 @@ See LICENSE file. --> diff --git a/src/java/CdbWebPortal/web/views/itemDomainAppDeployment/list.xhtml b/src/java/CdbWebPortal/web/views/itemDomainAppDeployment/list.xhtml index 575c59ea7..577673fb0 100644 --- a/src/java/CdbWebPortal/web/views/itemDomainAppDeployment/list.xhtml +++ b/src/java/CdbWebPortal/web/views/itemDomainAppDeployment/list.xhtml @@ -5,9 +5,9 @@ See LICENSE file. --> + xmlns:f="jakarta.faces.core"> diff --git a/src/java/CdbWebPortal/web/views/itemDomainAppDeployment/view.xhtml b/src/java/CdbWebPortal/web/views/itemDomainAppDeployment/view.xhtml index 549709a42..d8ef2d828 100644 --- a/src/java/CdbWebPortal/web/views/itemDomainAppDeployment/view.xhtml +++ b/src/java/CdbWebPortal/web/views/itemDomainAppDeployment/view.xhtml @@ -5,8 +5,8 @@ See LICENSE file. --> diff --git a/src/java/CdbWebPortal/web/views/itemDomainCableCatalog/create.xhtml b/src/java/CdbWebPortal/web/views/itemDomainCableCatalog/create.xhtml index d695e9a5c..95c05bbbb 100644 --- a/src/java/CdbWebPortal/web/views/itemDomainCableCatalog/create.xhtml +++ b/src/java/CdbWebPortal/web/views/itemDomainCableCatalog/create.xhtml @@ -5,8 +5,8 @@ See LICENSE file. --> diff --git a/src/java/CdbWebPortal/web/views/itemDomainCableCatalog/createMultiple.xhtml b/src/java/CdbWebPortal/web/views/itemDomainCableCatalog/createMultiple.xhtml index fde4dc43e..7ffc5db0d 100644 --- a/src/java/CdbWebPortal/web/views/itemDomainCableCatalog/createMultiple.xhtml +++ b/src/java/CdbWebPortal/web/views/itemDomainCableCatalog/createMultiple.xhtml @@ -5,7 +5,7 @@ See LICENSE file. --> diff --git a/src/java/CdbWebPortal/web/views/itemDomainCableCatalog/edit.xhtml b/src/java/CdbWebPortal/web/views/itemDomainCableCatalog/edit.xhtml index 0ab6f0c9b..d0c1d191f 100644 --- a/src/java/CdbWebPortal/web/views/itemDomainCableCatalog/edit.xhtml +++ b/src/java/CdbWebPortal/web/views/itemDomainCableCatalog/edit.xhtml @@ -5,8 +5,8 @@ See LICENSE file. --> diff --git a/src/java/CdbWebPortal/web/views/itemDomainCableCatalog/editMultiple.xhtml b/src/java/CdbWebPortal/web/views/itemDomainCableCatalog/editMultiple.xhtml index eabf1cd65..47d901515 100644 --- a/src/java/CdbWebPortal/web/views/itemDomainCableCatalog/editMultiple.xhtml +++ b/src/java/CdbWebPortal/web/views/itemDomainCableCatalog/editMultiple.xhtml @@ -5,7 +5,7 @@ See LICENSE file. --> diff --git a/src/java/CdbWebPortal/web/views/itemDomainCableCatalog/export.xhtml b/src/java/CdbWebPortal/web/views/itemDomainCableCatalog/export.xhtml index 316cfa470..1fd579184 100644 --- a/src/java/CdbWebPortal/web/views/itemDomainCableCatalog/export.xhtml +++ b/src/java/CdbWebPortal/web/views/itemDomainCableCatalog/export.xhtml @@ -5,9 +5,9 @@ See LICENSE file. --> diff --git a/src/java/CdbWebPortal/web/views/itemDomainCableCatalog/import.xhtml b/src/java/CdbWebPortal/web/views/itemDomainCableCatalog/import.xhtml index ff1272983..6b333271e 100644 --- a/src/java/CdbWebPortal/web/views/itemDomainCableCatalog/import.xhtml +++ b/src/java/CdbWebPortal/web/views/itemDomainCableCatalog/import.xhtml @@ -5,9 +5,9 @@ See LICENSE file. --> @@ -22,6 +22,7 @@ See LICENSE file.
diff --git a/src/java/CdbWebPortal/web/views/itemDomainCableCatalog/list.xhtml b/src/java/CdbWebPortal/web/views/itemDomainCableCatalog/list.xhtml index 34ad3a399..9cfd42174 100644 --- a/src/java/CdbWebPortal/web/views/itemDomainCableCatalog/list.xhtml +++ b/src/java/CdbWebPortal/web/views/itemDomainCableCatalog/list.xhtml @@ -5,8 +5,8 @@ See LICENSE file. --> diff --git a/src/java/CdbWebPortal/web/views/itemDomainCableCatalog/private/templates/itemDomainCableCatalogDataTableTemplate.xhtml b/src/java/CdbWebPortal/web/views/itemDomainCableCatalog/private/templates/itemDomainCableCatalogDataTableTemplate.xhtml index ec0e8a6db..9c60ee469 100644 --- a/src/java/CdbWebPortal/web/views/itemDomainCableCatalog/private/templates/itemDomainCableCatalogDataTableTemplate.xhtml +++ b/src/java/CdbWebPortal/web/views/itemDomainCableCatalog/private/templates/itemDomainCableCatalogDataTableTemplate.xhtml @@ -5,12 +5,13 @@ See LICENSE file. --> diff --git a/src/java/CdbWebPortal/web/views/itemDomainCableCatalog/view.xhtml b/src/java/CdbWebPortal/web/views/itemDomainCableCatalog/view.xhtml index da2a12f27..4dab70e92 100644 --- a/src/java/CdbWebPortal/web/views/itemDomainCableCatalog/view.xhtml +++ b/src/java/CdbWebPortal/web/views/itemDomainCableCatalog/view.xhtml @@ -5,8 +5,8 @@ See LICENSE file. --> diff --git a/src/java/CdbWebPortal/web/views/itemDomainCableDesign/create.xhtml b/src/java/CdbWebPortal/web/views/itemDomainCableDesign/create.xhtml index 624e6b5cd..f025b815b 100644 --- a/src/java/CdbWebPortal/web/views/itemDomainCableDesign/create.xhtml +++ b/src/java/CdbWebPortal/web/views/itemDomainCableDesign/create.xhtml @@ -5,9 +5,9 @@ See LICENSE file. --> diff --git a/src/java/CdbWebPortal/web/views/itemDomainCableDesign/edit.xhtml b/src/java/CdbWebPortal/web/views/itemDomainCableDesign/edit.xhtml index 977d1ac7c..f0362fece 100644 --- a/src/java/CdbWebPortal/web/views/itemDomainCableDesign/edit.xhtml +++ b/src/java/CdbWebPortal/web/views/itemDomainCableDesign/edit.xhtml @@ -5,8 +5,8 @@ See LICENSE file. --> diff --git a/src/java/CdbWebPortal/web/views/itemDomainCableDesign/export.xhtml b/src/java/CdbWebPortal/web/views/itemDomainCableDesign/export.xhtml index a5b2594dc..e917256ed 100644 --- a/src/java/CdbWebPortal/web/views/itemDomainCableDesign/export.xhtml +++ b/src/java/CdbWebPortal/web/views/itemDomainCableDesign/export.xhtml @@ -5,9 +5,9 @@ See LICENSE file. --> diff --git a/src/java/CdbWebPortal/web/views/itemDomainCableDesign/import.xhtml b/src/java/CdbWebPortal/web/views/itemDomainCableDesign/import.xhtml index 615278a4d..b8b306ae0 100644 --- a/src/java/CdbWebPortal/web/views/itemDomainCableDesign/import.xhtml +++ b/src/java/CdbWebPortal/web/views/itemDomainCableDesign/import.xhtml @@ -5,9 +5,9 @@ See LICENSE file. --> @@ -22,6 +22,7 @@ See LICENSE file.
diff --git a/src/java/CdbWebPortal/web/views/itemDomainCableDesign/list.xhtml b/src/java/CdbWebPortal/web/views/itemDomainCableDesign/list.xhtml index 1f5ea9318..097b8ab51 100644 --- a/src/java/CdbWebPortal/web/views/itemDomainCableDesign/list.xhtml +++ b/src/java/CdbWebPortal/web/views/itemDomainCableDesign/list.xhtml @@ -5,11 +5,11 @@ See LICENSE file. --> @@ -68,7 +68,7 @@ See LICENSE file. - + diff --git a/src/java/CdbWebPortal/web/views/itemDomainCableDesign/private/catalogDialog.xhtml b/src/java/CdbWebPortal/web/views/itemDomainCableDesign/private/catalogDialog.xhtml index d1202142f..291e3158b 100644 --- a/src/java/CdbWebPortal/web/views/itemDomainCableDesign/private/catalogDialog.xhtml +++ b/src/java/CdbWebPortal/web/views/itemDomainCableDesign/private/catalogDialog.xhtml @@ -5,9 +5,9 @@ See LICENSE file. --> - + diff --git a/src/java/CdbWebPortal/web/views/itemDomainCableDesign/private/connectionDeleteConfirmDialog.xhtml b/src/java/CdbWebPortal/web/views/itemDomainCableDesign/private/connectionDeleteConfirmDialog.xhtml index 786e739c7..384b0ac02 100644 --- a/src/java/CdbWebPortal/web/views/itemDomainCableDesign/private/connectionDeleteConfirmDialog.xhtml +++ b/src/java/CdbWebPortal/web/views/itemDomainCableDesign/private/connectionDeleteConfirmDialog.xhtml @@ -5,9 +5,9 @@ See LICENSE file. --> - + - - + Indicates if the assigned inventory is "installed" or "planned" for this cable design. @@ -46,9 +41,16 @@ See LICENSE file.
Planned
Item stays in its location but is marked to be installed on machine node in the future.
-
+ + + + - + diff --git a/src/java/CdbWebPortal/web/views/itemDomainCableDesign/private/inventorySelectDataTable.xhtml b/src/java/CdbWebPortal/web/views/itemDomainCableDesign/private/inventorySelectDataTable.xhtml index c41207a26..64a34a61f 100644 --- a/src/java/CdbWebPortal/web/views/itemDomainCableDesign/private/inventorySelectDataTable.xhtml +++ b/src/java/CdbWebPortal/web/views/itemDomainCableDesign/private/inventorySelectDataTable.xhtml @@ -5,12 +5,13 @@ See LICENSE file. --> + xmlns:f="jakarta.faces.core" + xmlns:h="jakarta.faces.html" + xmlns:c="jakarta.tags.core"> diff --git a/src/java/CdbWebPortal/web/views/itemDomainCableDesign/private/itemDomainCableDesignConnectionsList.xhtml b/src/java/CdbWebPortal/web/views/itemDomainCableDesign/private/itemDomainCableDesignConnectionsList.xhtml index d18578691..cc3520d47 100644 --- a/src/java/CdbWebPortal/web/views/itemDomainCableDesign/private/itemDomainCableDesignConnectionsList.xhtml +++ b/src/java/CdbWebPortal/web/views/itemDomainCableDesign/private/itemDomainCableDesignConnectionsList.xhtml @@ -5,7 +5,7 @@ See LICENSE file. --> diff --git a/src/java/CdbWebPortal/web/views/itemDomainCableDesign/private/itemDomainCableDesignConnectorListDataTable.xhtml b/src/java/CdbWebPortal/web/views/itemDomainCableDesign/private/itemDomainCableDesignConnectorListDataTable.xhtml index 94a54de64..5cccaff21 100644 --- a/src/java/CdbWebPortal/web/views/itemDomainCableDesign/private/itemDomainCableDesignConnectorListDataTable.xhtml +++ b/src/java/CdbWebPortal/web/views/itemDomainCableDesign/private/itemDomainCableDesignConnectorListDataTable.xhtml @@ -5,10 +5,11 @@ See LICENSE file. --> + xmlns:f="jakarta.faces.core" + xmlns:h="jakarta.faces.html" + xmlns:c="jakarta.tags.core"> diff --git a/src/java/CdbWebPortal/web/views/itemDomainCableDesign/private/itemDomainCableDesignConnectorsList.xhtml b/src/java/CdbWebPortal/web/views/itemDomainCableDesign/private/itemDomainCableDesignConnectorsList.xhtml index a19b00814..7803311c8 100644 --- a/src/java/CdbWebPortal/web/views/itemDomainCableDesign/private/itemDomainCableDesignConnectorsList.xhtml +++ b/src/java/CdbWebPortal/web/views/itemDomainCableDesign/private/itemDomainCableDesignConnectorsList.xhtml @@ -5,7 +5,7 @@ See LICENSE file. --> diff --git a/src/java/CdbWebPortal/web/views/itemDomainCableDesign/private/newCableDesignDefaultsDialog.xhtml b/src/java/CdbWebPortal/web/views/itemDomainCableDesign/private/newCableDesignDefaultsDialog.xhtml index 410bbadff..65ea8c01a 100644 --- a/src/java/CdbWebPortal/web/views/itemDomainCableDesign/private/newCableDesignDefaultsDialog.xhtml +++ b/src/java/CdbWebPortal/web/views/itemDomainCableDesign/private/newCableDesignDefaultsDialog.xhtml @@ -5,8 +5,8 @@ See LICENSE file. --> - + - + diff --git a/src/java/CdbWebPortal/web/views/itemDomainCableDesign/private/templates/domainEntityListExtraColumns.xhtml b/src/java/CdbWebPortal/web/views/itemDomainCableDesign/private/templates/domainEntityListExtraColumns.xhtml index 25e8affd5..a8aa5ef7c 100644 --- a/src/java/CdbWebPortal/web/views/itemDomainCableDesign/private/templates/domainEntityListExtraColumns.xhtml +++ b/src/java/CdbWebPortal/web/views/itemDomainCableDesign/private/templates/domainEntityListExtraColumns.xhtml @@ -5,11 +5,11 @@ See LICENSE file. --> + xmlns:h="jakarta.faces.html" + xmlns:f="jakarta.faces.core" + xmlns:c="jakarta.tags.core"> + paginator="true" + paginatorPosition="both"> - + + xmlns:h="jakarta.faces.html" + xmlns:f="jakarta.faces.core" + xmlns:c="jakarta.tags.core"> diff --git a/src/java/CdbWebPortal/web/views/itemDomainCableDesign/private/templates/listCustomizeOptionEndpointConnector.xhtml b/src/java/CdbWebPortal/web/views/itemDomainCableDesign/private/templates/listCustomizeOptionEndpointConnector.xhtml index 0c23d92c4..7f9a986fc 100644 --- a/src/java/CdbWebPortal/web/views/itemDomainCableDesign/private/templates/listCustomizeOptionEndpointConnector.xhtml +++ b/src/java/CdbWebPortal/web/views/itemDomainCableDesign/private/templates/listCustomizeOptionEndpointConnector.xhtml @@ -5,11 +5,11 @@ See LICENSE file. --> + xmlns:h="jakarta.faces.html" + xmlns:f="jakarta.faces.core" + xmlns:c="jakarta.tags.core"> diff --git a/src/java/CdbWebPortal/web/views/itemDomainCableDesign/private/templates/listCustomizeOptionEndpointDevice.xhtml b/src/java/CdbWebPortal/web/views/itemDomainCableDesign/private/templates/listCustomizeOptionEndpointDevice.xhtml index 77ef5aee0..46420bab0 100644 --- a/src/java/CdbWebPortal/web/views/itemDomainCableDesign/private/templates/listCustomizeOptionEndpointDevice.xhtml +++ b/src/java/CdbWebPortal/web/views/itemDomainCableDesign/private/templates/listCustomizeOptionEndpointDevice.xhtml @@ -5,11 +5,11 @@ See LICENSE file. --> + xmlns:h="jakarta.faces.html" + xmlns:f="jakarta.faces.core" + xmlns:c="jakarta.tags.core"> diff --git a/src/java/CdbWebPortal/web/views/itemDomainCableDesign/private/templates/listCustomizeOptionEndpointLocation.xhtml b/src/java/CdbWebPortal/web/views/itemDomainCableDesign/private/templates/listCustomizeOptionEndpointLocation.xhtml index 27b890fa7..045dc8883 100644 --- a/src/java/CdbWebPortal/web/views/itemDomainCableDesign/private/templates/listCustomizeOptionEndpointLocation.xhtml +++ b/src/java/CdbWebPortal/web/views/itemDomainCableDesign/private/templates/listCustomizeOptionEndpointLocation.xhtml @@ -5,11 +5,11 @@ See LICENSE file. --> + xmlns:h="jakarta.faces.html" + xmlns:f="jakarta.faces.core" + xmlns:c="jakarta.tags.core"> diff --git a/src/java/CdbWebPortal/web/views/itemDomainCableDesign/private/templates/listCustomizeOptionEndpointPort.xhtml b/src/java/CdbWebPortal/web/views/itemDomainCableDesign/private/templates/listCustomizeOptionEndpointPort.xhtml index ffcca6afe..bdc35593a 100644 --- a/src/java/CdbWebPortal/web/views/itemDomainCableDesign/private/templates/listCustomizeOptionEndpointPort.xhtml +++ b/src/java/CdbWebPortal/web/views/itemDomainCableDesign/private/templates/listCustomizeOptionEndpointPort.xhtml @@ -5,11 +5,11 @@ See LICENSE file. --> + xmlns:h="jakarta.faces.html" + xmlns:f="jakarta.faces.core" + xmlns:c="jakarta.tags.core"> diff --git a/src/java/CdbWebPortal/web/views/itemDomainCableDesign/private/templates/listViewConnectedDevicesColumn.xhtml b/src/java/CdbWebPortal/web/views/itemDomainCableDesign/private/templates/listViewConnectedDevicesColumn.xhtml index 2c90a0080..f73d0d2db 100644 --- a/src/java/CdbWebPortal/web/views/itemDomainCableDesign/private/templates/listViewConnectedDevicesColumn.xhtml +++ b/src/java/CdbWebPortal/web/views/itemDomainCableDesign/private/templates/listViewConnectedDevicesColumn.xhtml @@ -5,11 +5,11 @@ See LICENSE file. --> + xmlns:h="jakarta.faces.html" + xmlns:f="jakarta.faces.core" + xmlns:c="jakarta.tags.core"> diff --git a/src/java/CdbWebPortal/web/views/itemDomainCableDesign/private/templates/listViewEndpointConnectorColumn.xhtml b/src/java/CdbWebPortal/web/views/itemDomainCableDesign/private/templates/listViewEndpointConnectorColumn.xhtml index a64d07909..86f2f9728 100644 --- a/src/java/CdbWebPortal/web/views/itemDomainCableDesign/private/templates/listViewEndpointConnectorColumn.xhtml +++ b/src/java/CdbWebPortal/web/views/itemDomainCableDesign/private/templates/listViewEndpointConnectorColumn.xhtml @@ -5,11 +5,11 @@ See LICENSE file. --> + xmlns:h="jakarta.faces.html" + xmlns:f="jakarta.faces.core" + xmlns:c="jakarta.tags.core"> diff --git a/src/java/CdbWebPortal/web/views/itemDomainCableDesign/private/templates/listViewEndpointDeviceColumn.xhtml b/src/java/CdbWebPortal/web/views/itemDomainCableDesign/private/templates/listViewEndpointDeviceColumn.xhtml index dba59d339..05acf4a24 100644 --- a/src/java/CdbWebPortal/web/views/itemDomainCableDesign/private/templates/listViewEndpointDeviceColumn.xhtml +++ b/src/java/CdbWebPortal/web/views/itemDomainCableDesign/private/templates/listViewEndpointDeviceColumn.xhtml @@ -5,11 +5,11 @@ See LICENSE file. --> + xmlns:h="jakarta.faces.html" + xmlns:f="jakarta.faces.core" + xmlns:c="jakarta.tags.core"> diff --git a/src/java/CdbWebPortal/web/views/itemDomainCableDesign/private/templates/listViewEndpointLocationColumn.xhtml b/src/java/CdbWebPortal/web/views/itemDomainCableDesign/private/templates/listViewEndpointLocationColumn.xhtml index cef44d10b..1497a8aad 100644 --- a/src/java/CdbWebPortal/web/views/itemDomainCableDesign/private/templates/listViewEndpointLocationColumn.xhtml +++ b/src/java/CdbWebPortal/web/views/itemDomainCableDesign/private/templates/listViewEndpointLocationColumn.xhtml @@ -5,11 +5,11 @@ See LICENSE file. --> + xmlns:h="jakarta.faces.html" + xmlns:f="jakarta.faces.core" + xmlns:c="jakarta.tags.core"> diff --git a/src/java/CdbWebPortal/web/views/itemDomainCableDesign/private/templates/listViewEndpointPortColumn.xhtml b/src/java/CdbWebPortal/web/views/itemDomainCableDesign/private/templates/listViewEndpointPortColumn.xhtml index f7a868fa3..134301e55 100644 --- a/src/java/CdbWebPortal/web/views/itemDomainCableDesign/private/templates/listViewEndpointPortColumn.xhtml +++ b/src/java/CdbWebPortal/web/views/itemDomainCableDesign/private/templates/listViewEndpointPortColumn.xhtml @@ -5,11 +5,11 @@ See LICENSE file. --> + xmlns:h="jakarta.faces.html" + xmlns:f="jakarta.faces.core" + xmlns:c="jakarta.tags.core"> diff --git a/src/java/CdbWebPortal/web/views/itemDomainCableDesign/private/wizard/cableWizard.xhtml b/src/java/CdbWebPortal/web/views/itemDomainCableDesign/private/wizard/cableWizard.xhtml index 2ffe402e2..bd292d442 100644 --- a/src/java/CdbWebPortal/web/views/itemDomainCableDesign/private/wizard/cableWizard.xhtml +++ b/src/java/CdbWebPortal/web/views/itemDomainCableDesign/private/wizard/cableWizard.xhtml @@ -5,9 +5,9 @@ See LICENSE file. --> + xmlns:f="jakarta.faces.core"> @@ -48,7 +48,7 @@ See LICENSE file. - + + xmlns:h="jakarta.faces.html" + xmlns:f="jakarta.faces.core"> @@ -17,7 +17,7 @@ See LICENSE file. - + diff --git a/src/java/CdbWebPortal/web/views/itemDomainCableDesign/private/wizard/templates/connectorTabTemplate.xhtml b/src/java/CdbWebPortal/web/views/itemDomainCableDesign/private/wizard/templates/connectorTabTemplate.xhtml index ff4468ee0..de245dee4 100644 --- a/src/java/CdbWebPortal/web/views/itemDomainCableDesign/private/wizard/templates/connectorTabTemplate.xhtml +++ b/src/java/CdbWebPortal/web/views/itemDomainCableDesign/private/wizard/templates/connectorTabTemplate.xhtml @@ -5,17 +5,17 @@ See LICENSE file. --> + xmlns:h="jakarta.faces.html" + xmlns:f="jakarta.faces.core"> - + @@ -25,7 +25,7 @@ See LICENSE file. - + - + - + + xmlns:h="jakarta.faces.html"> @@ -17,7 +17,7 @@ See LICENSE file. - + diff --git a/src/java/CdbWebPortal/web/views/itemDomainCableDesign/private/wizard/templates/membersDialogTemplate.xhtml b/src/java/CdbWebPortal/web/views/itemDomainCableDesign/private/wizard/templates/membersDialogTemplate.xhtml index 28b9a9978..c397b4b6a 100644 --- a/src/java/CdbWebPortal/web/views/itemDomainCableDesign/private/wizard/templates/membersDialogTemplate.xhtml +++ b/src/java/CdbWebPortal/web/views/itemDomainCableDesign/private/wizard/templates/membersDialogTemplate.xhtml @@ -5,9 +5,9 @@ See LICENSE file. --> @@ -39,7 +39,7 @@ See LICENSE file. - + diff --git a/src/java/CdbWebPortal/web/views/itemDomainCableDesign/private/wizard/templates/membersTabTemplate.xhtml b/src/java/CdbWebPortal/web/views/itemDomainCableDesign/private/wizard/templates/membersTabTemplate.xhtml index d489d124c..59b6a8794 100644 --- a/src/java/CdbWebPortal/web/views/itemDomainCableDesign/private/wizard/templates/membersTabTemplate.xhtml +++ b/src/java/CdbWebPortal/web/views/itemDomainCableDesign/private/wizard/templates/membersTabTemplate.xhtml @@ -5,10 +5,10 @@ See LICENSE file. --> + xmlns:h="jakarta.faces.html" + xmlns:f="jakarta.faces.core"> @@ -34,6 +34,7 @@ See LICENSE file.
+ xmlns:h="jakarta.faces.html" + xmlns:f="jakarta.faces.core"> - + @@ -26,7 +26,7 @@ See LICENSE file. - + - + @@ -96,7 +96,7 @@ See LICENSE file. - + @@ -21,9 +21,9 @@ See LICENSE file. modal="true" closable="false"> - + - + - + diff --git a/src/java/CdbWebPortal/web/views/itemDomainCableDesign/private/wizard/templates/sparesTabTemplate.xhtml b/src/java/CdbWebPortal/web/views/itemDomainCableDesign/private/wizard/templates/sparesTabTemplate.xhtml index 383cf580c..13a0797ef 100644 --- a/src/java/CdbWebPortal/web/views/itemDomainCableDesign/private/wizard/templates/sparesTabTemplate.xhtml +++ b/src/java/CdbWebPortal/web/views/itemDomainCableDesign/private/wizard/templates/sparesTabTemplate.xhtml @@ -5,10 +5,10 @@ See LICENSE file. --> + xmlns:h="jakarta.faces.html" + xmlns:f="jakarta.faces.core"> @@ -34,6 +34,7 @@ See LICENSE file.
diff --git a/src/java/CdbWebPortal/web/views/itemDomainCableDesign/view.xhtml b/src/java/CdbWebPortal/web/views/itemDomainCableDesign/view.xhtml index cab93ad78..f6698e5e9 100644 --- a/src/java/CdbWebPortal/web/views/itemDomainCableDesign/view.xhtml +++ b/src/java/CdbWebPortal/web/views/itemDomainCableDesign/view.xhtml @@ -5,11 +5,11 @@ See LICENSE file. --> diff --git a/src/java/CdbWebPortal/web/views/itemDomainCableInventory/create.xhtml b/src/java/CdbWebPortal/web/views/itemDomainCableInventory/create.xhtml index f3f2b34d5..c22c63e47 100644 --- a/src/java/CdbWebPortal/web/views/itemDomainCableInventory/create.xhtml +++ b/src/java/CdbWebPortal/web/views/itemDomainCableInventory/create.xhtml @@ -5,10 +5,10 @@ See LICENSE file. --> diff --git a/src/java/CdbWebPortal/web/views/itemDomainCableInventory/createMultiple.xhtml b/src/java/CdbWebPortal/web/views/itemDomainCableInventory/createMultiple.xhtml index a95797d05..9f4470cd6 100644 --- a/src/java/CdbWebPortal/web/views/itemDomainCableInventory/createMultiple.xhtml +++ b/src/java/CdbWebPortal/web/views/itemDomainCableInventory/createMultiple.xhtml @@ -5,7 +5,7 @@ See LICENSE file. --> diff --git a/src/java/CdbWebPortal/web/views/itemDomainCableInventory/edit.xhtml b/src/java/CdbWebPortal/web/views/itemDomainCableInventory/edit.xhtml index e4c29f50a..a09609331 100644 --- a/src/java/CdbWebPortal/web/views/itemDomainCableInventory/edit.xhtml +++ b/src/java/CdbWebPortal/web/views/itemDomainCableInventory/edit.xhtml @@ -5,8 +5,8 @@ See LICENSE file. --> diff --git a/src/java/CdbWebPortal/web/views/itemDomainCableInventory/editMultiple.xhtml b/src/java/CdbWebPortal/web/views/itemDomainCableInventory/editMultiple.xhtml index c69ed0207..65c77b3af 100644 --- a/src/java/CdbWebPortal/web/views/itemDomainCableInventory/editMultiple.xhtml +++ b/src/java/CdbWebPortal/web/views/itemDomainCableInventory/editMultiple.xhtml @@ -5,7 +5,7 @@ See LICENSE file. --> diff --git a/src/java/CdbWebPortal/web/views/itemDomainCableInventory/export.xhtml b/src/java/CdbWebPortal/web/views/itemDomainCableInventory/export.xhtml index 8f90273a5..96dfc3730 100644 --- a/src/java/CdbWebPortal/web/views/itemDomainCableInventory/export.xhtml +++ b/src/java/CdbWebPortal/web/views/itemDomainCableInventory/export.xhtml @@ -5,9 +5,9 @@ See LICENSE file. --> diff --git a/src/java/CdbWebPortal/web/views/itemDomainCableInventory/import.xhtml b/src/java/CdbWebPortal/web/views/itemDomainCableInventory/import.xhtml index d70c92183..d41f36ad1 100644 --- a/src/java/CdbWebPortal/web/views/itemDomainCableInventory/import.xhtml +++ b/src/java/CdbWebPortal/web/views/itemDomainCableInventory/import.xhtml @@ -5,9 +5,9 @@ See LICENSE file. --> @@ -20,6 +20,7 @@ See LICENSE file.
diff --git a/src/java/CdbWebPortal/web/views/itemDomainCableInventory/list.xhtml b/src/java/CdbWebPortal/web/views/itemDomainCableInventory/list.xhtml index af9e5b890..82ca61d9b 100644 --- a/src/java/CdbWebPortal/web/views/itemDomainCableInventory/list.xhtml +++ b/src/java/CdbWebPortal/web/views/itemDomainCableInventory/list.xhtml @@ -5,8 +5,8 @@ See LICENSE file. --> diff --git a/src/java/CdbWebPortal/web/views/itemDomainCableInventory/private/cableInventoryViewPanelGrid.xhtml b/src/java/CdbWebPortal/web/views/itemDomainCableInventory/private/cableInventoryViewPanelGrid.xhtml index bd3f1ada8..038392758 100644 --- a/src/java/CdbWebPortal/web/views/itemDomainCableInventory/private/cableInventoryViewPanelGrid.xhtml +++ b/src/java/CdbWebPortal/web/views/itemDomainCableInventory/private/cableInventoryViewPanelGrid.xhtml @@ -5,10 +5,10 @@ See LICENSE file. --> diff --git a/src/java/CdbWebPortal/web/views/itemDomainCableInventory/private/itemDomainCableInventoryEditPanelGrid.xhtml b/src/java/CdbWebPortal/web/views/itemDomainCableInventory/private/itemDomainCableInventoryEditPanelGrid.xhtml index 97c1187cf..59afb1be8 100644 --- a/src/java/CdbWebPortal/web/views/itemDomainCableInventory/private/itemDomainCableInventoryEditPanelGrid.xhtml +++ b/src/java/CdbWebPortal/web/views/itemDomainCableInventory/private/itemDomainCableInventoryEditPanelGrid.xhtml @@ -5,7 +5,7 @@ See LICENSE file. --> diff --git a/src/java/CdbWebPortal/web/views/itemDomainCableInventory/private/itemDomainCableInventoryListObject.xhtml b/src/java/CdbWebPortal/web/views/itemDomainCableInventory/private/itemDomainCableInventoryListObject.xhtml index 8590978e3..77d902eee 100644 --- a/src/java/CdbWebPortal/web/views/itemDomainCableInventory/private/itemDomainCableInventoryListObject.xhtml +++ b/src/java/CdbWebPortal/web/views/itemDomainCableInventory/private/itemDomainCableInventoryListObject.xhtml @@ -5,7 +5,7 @@ See LICENSE file. --> diff --git a/src/java/CdbWebPortal/web/views/itemDomainCableInventory/view.xhtml b/src/java/CdbWebPortal/web/views/itemDomainCableInventory/view.xhtml index fcc51be3b..aa1984582 100644 --- a/src/java/CdbWebPortal/web/views/itemDomainCableInventory/view.xhtml +++ b/src/java/CdbWebPortal/web/views/itemDomainCableInventory/view.xhtml @@ -5,8 +5,8 @@ See LICENSE file. --> diff --git a/src/java/CdbWebPortal/web/views/itemDomainCatalog/browseCategoryType.xhtml b/src/java/CdbWebPortal/web/views/itemDomainCatalog/browseCategoryType.xhtml index 7b4b179f6..e7245edd6 100644 --- a/src/java/CdbWebPortal/web/views/itemDomainCatalog/browseCategoryType.xhtml +++ b/src/java/CdbWebPortal/web/views/itemDomainCatalog/browseCategoryType.xhtml @@ -5,8 +5,8 @@ See LICENSE file. --> diff --git a/src/java/CdbWebPortal/web/views/itemDomainCatalog/browseOwner.xhtml b/src/java/CdbWebPortal/web/views/itemDomainCatalog/browseOwner.xhtml index 1141ea6b9..f3dfb825e 100644 --- a/src/java/CdbWebPortal/web/views/itemDomainCatalog/browseOwner.xhtml +++ b/src/java/CdbWebPortal/web/views/itemDomainCatalog/browseOwner.xhtml @@ -5,10 +5,10 @@ See LICENSE file. --> + xmlns:h="jakarta.faces.html"> diff --git a/src/java/CdbWebPortal/web/views/itemDomainCatalog/create.xhtml b/src/java/CdbWebPortal/web/views/itemDomainCatalog/create.xhtml index 5f174535b..7f88e1de8 100644 --- a/src/java/CdbWebPortal/web/views/itemDomainCatalog/create.xhtml +++ b/src/java/CdbWebPortal/web/views/itemDomainCatalog/create.xhtml @@ -5,8 +5,8 @@ See LICENSE file. --> diff --git a/src/java/CdbWebPortal/web/views/itemDomainCatalog/createMultiple.xhtml b/src/java/CdbWebPortal/web/views/itemDomainCatalog/createMultiple.xhtml index 73cb3a929..24de25856 100644 --- a/src/java/CdbWebPortal/web/views/itemDomainCatalog/createMultiple.xhtml +++ b/src/java/CdbWebPortal/web/views/itemDomainCatalog/createMultiple.xhtml @@ -5,7 +5,7 @@ See LICENSE file. --> diff --git a/src/java/CdbWebPortal/web/views/itemDomainCatalog/edit.xhtml b/src/java/CdbWebPortal/web/views/itemDomainCatalog/edit.xhtml index 926b387c4..0a475e3b8 100644 --- a/src/java/CdbWebPortal/web/views/itemDomainCatalog/edit.xhtml +++ b/src/java/CdbWebPortal/web/views/itemDomainCatalog/edit.xhtml @@ -5,8 +5,8 @@ See LICENSE file. --> diff --git a/src/java/CdbWebPortal/web/views/itemDomainCatalog/editMultiple.xhtml b/src/java/CdbWebPortal/web/views/itemDomainCatalog/editMultiple.xhtml index 39dc0951d..24d0a45bd 100644 --- a/src/java/CdbWebPortal/web/views/itemDomainCatalog/editMultiple.xhtml +++ b/src/java/CdbWebPortal/web/views/itemDomainCatalog/editMultiple.xhtml @@ -5,7 +5,7 @@ See LICENSE file. --> diff --git a/src/java/CdbWebPortal/web/views/itemDomainCatalog/export.xhtml b/src/java/CdbWebPortal/web/views/itemDomainCatalog/export.xhtml index 82f808893..429a9e709 100644 --- a/src/java/CdbWebPortal/web/views/itemDomainCatalog/export.xhtml +++ b/src/java/CdbWebPortal/web/views/itemDomainCatalog/export.xhtml @@ -5,9 +5,9 @@ See LICENSE file. --> diff --git a/src/java/CdbWebPortal/web/views/itemDomainCatalog/import.xhtml b/src/java/CdbWebPortal/web/views/itemDomainCatalog/import.xhtml index ad63af603..a105d2044 100644 --- a/src/java/CdbWebPortal/web/views/itemDomainCatalog/import.xhtml +++ b/src/java/CdbWebPortal/web/views/itemDomainCatalog/import.xhtml @@ -5,9 +5,9 @@ See LICENSE file. --> @@ -22,6 +22,7 @@ See LICENSE file.
diff --git a/src/java/CdbWebPortal/web/views/itemDomainCatalog/list.xhtml b/src/java/CdbWebPortal/web/views/itemDomainCatalog/list.xhtml index 0cf0c0895..5f42f7116 100644 --- a/src/java/CdbWebPortal/web/views/itemDomainCatalog/list.xhtml +++ b/src/java/CdbWebPortal/web/views/itemDomainCatalog/list.xhtml @@ -5,10 +5,10 @@ See LICENSE file. --> + xmlns:h="jakarta.faces.html"> diff --git a/src/java/CdbWebPortal/web/views/itemDomainCatalog/private/entityType/Component/listPageHelpFragment.xhtml b/src/java/CdbWebPortal/web/views/itemDomainCatalog/private/entityType/Component/listPageHelpFragment.xhtml index e5256a46a..dbcc61ddd 100644 --- a/src/java/CdbWebPortal/web/views/itemDomainCatalog/private/entityType/Component/listPageHelpFragment.xhtml +++ b/src/java/CdbWebPortal/web/views/itemDomainCatalog/private/entityType/Component/listPageHelpFragment.xhtml @@ -5,8 +5,8 @@ See LICENSE file. --> diff --git a/src/java/CdbWebPortal/web/views/itemDomainCatalog/private/entityType/Design/listPageHelpFragment.xhtml b/src/java/CdbWebPortal/web/views/itemDomainCatalog/private/entityType/Design/listPageHelpFragment.xhtml index e7c2b0fcc..3ce81cf05 100644 --- a/src/java/CdbWebPortal/web/views/itemDomainCatalog/private/entityType/Design/listPageHelpFragment.xhtml +++ b/src/java/CdbWebPortal/web/views/itemDomainCatalog/private/entityType/Design/listPageHelpFragment.xhtml @@ -5,8 +5,8 @@ See LICENSE file. --> diff --git a/src/java/CdbWebPortal/web/views/itemDomainCatalog/private/entityType/listPageHelpFragment.xhtml b/src/java/CdbWebPortal/web/views/itemDomainCatalog/private/entityType/listPageHelpFragment.xhtml index 868a8cfdb..23c3260ea 100644 --- a/src/java/CdbWebPortal/web/views/itemDomainCatalog/private/entityType/listPageHelpFragment.xhtml +++ b/src/java/CdbWebPortal/web/views/itemDomainCatalog/private/entityType/listPageHelpFragment.xhtml @@ -5,7 +5,7 @@ See LICENSE file. --> + xmlns:ui="jakarta.faces.facelets"> diff --git a/src/java/CdbWebPortal/web/views/itemDomainCatalog/private/itemDomainCatalogElementEditConstraintInformationDialog.xhtml b/src/java/CdbWebPortal/web/views/itemDomainCatalog/private/itemDomainCatalogElementEditConstraintInformationDialog.xhtml index 328fd1c3f..018d88316 100644 --- a/src/java/CdbWebPortal/web/views/itemDomainCatalog/private/itemDomainCatalogElementEditConstraintInformationDialog.xhtml +++ b/src/java/CdbWebPortal/web/views/itemDomainCatalog/private/itemDomainCatalogElementEditConstraintInformationDialog.xhtml @@ -6,10 +6,10 @@ See LICENSE file. + xmlns:h="jakarta.faces.html"> diff --git a/src/java/CdbWebPortal/web/views/itemDomainCatalog/private/itemDomainCatalogElementEditList.xhtml b/src/java/CdbWebPortal/web/views/itemDomainCatalog/private/itemDomainCatalogElementEditList.xhtml index 0eca82e0c..d153d22e8 100644 --- a/src/java/CdbWebPortal/web/views/itemDomainCatalog/private/itemDomainCatalogElementEditList.xhtml +++ b/src/java/CdbWebPortal/web/views/itemDomainCatalog/private/itemDomainCatalogElementEditList.xhtml @@ -6,7 +6,7 @@ See LICENSE file. diff --git a/src/java/CdbWebPortal/web/views/itemDomainCatalog/private/itemDomainCatalogElementEditListDataTable.xhtml b/src/java/CdbWebPortal/web/views/itemDomainCatalog/private/itemDomainCatalogElementEditListDataTable.xhtml index 99d6364fd..06eb113f1 100644 --- a/src/java/CdbWebPortal/web/views/itemDomainCatalog/private/itemDomainCatalogElementEditListDataTable.xhtml +++ b/src/java/CdbWebPortal/web/views/itemDomainCatalog/private/itemDomainCatalogElementEditListDataTable.xhtml @@ -6,7 +6,7 @@ See LICENSE file. diff --git a/src/java/CdbWebPortal/web/views/itemDomainCatalog/private/itemDomainCatalogFilterViewObject.xhtml b/src/java/CdbWebPortal/web/views/itemDomainCatalog/private/itemDomainCatalogFilterViewObject.xhtml index e2792ca0f..4c9180636 100644 --- a/src/java/CdbWebPortal/web/views/itemDomainCatalog/private/itemDomainCatalogFilterViewObject.xhtml +++ b/src/java/CdbWebPortal/web/views/itemDomainCatalog/private/itemDomainCatalogFilterViewObject.xhtml @@ -6,7 +6,7 @@ See LICENSE file. diff --git a/src/java/CdbWebPortal/web/views/itemDomainCatalog/private/itemDomainCatalogItemElementAddNewAssemblyItemDialog.xhtml b/src/java/CdbWebPortal/web/views/itemDomainCatalog/private/itemDomainCatalogItemElementAddNewAssemblyItemDialog.xhtml index 23e195e2b..b82f4e071 100644 --- a/src/java/CdbWebPortal/web/views/itemDomainCatalog/private/itemDomainCatalogItemElementAddNewAssemblyItemDialog.xhtml +++ b/src/java/CdbWebPortal/web/views/itemDomainCatalog/private/itemDomainCatalogItemElementAddNewAssemblyItemDialog.xhtml @@ -5,10 +5,10 @@ See LICENSE file. --> + xmlns:f="jakarta.faces.core"> diff --git a/src/java/CdbWebPortal/web/views/itemDomainCatalog/private/itemDomainCatalogListActionButtons.xhtml b/src/java/CdbWebPortal/web/views/itemDomainCatalog/private/itemDomainCatalogListActionButtons.xhtml index f6e12b57c..3b08d0fe6 100644 --- a/src/java/CdbWebPortal/web/views/itemDomainCatalog/private/itemDomainCatalogListActionButtons.xhtml +++ b/src/java/CdbWebPortal/web/views/itemDomainCatalog/private/itemDomainCatalogListActionButtons.xhtml @@ -5,10 +5,10 @@ See LICENSE file. --> + xmlns:f="jakarta.faces.core"> diff --git a/src/java/CdbWebPortal/web/views/itemDomainCatalog/private/itemDomainCatalogListFilterViewOwner.xhtml b/src/java/CdbWebPortal/web/views/itemDomainCatalog/private/itemDomainCatalogListFilterViewOwner.xhtml index 6e94e2ca7..837d22f6e 100644 --- a/src/java/CdbWebPortal/web/views/itemDomainCatalog/private/itemDomainCatalogListFilterViewOwner.xhtml +++ b/src/java/CdbWebPortal/web/views/itemDomainCatalog/private/itemDomainCatalogListFilterViewOwner.xhtml @@ -6,9 +6,9 @@ See LICENSE file. diff --git a/src/java/CdbWebPortal/web/views/itemDomainCatalog/private/itemDomainCatalogPluginMultiEditConfigurationTabs.xhtml b/src/java/CdbWebPortal/web/views/itemDomainCatalog/private/itemDomainCatalogPluginMultiEditConfigurationTabs.xhtml index 9966e4f60..a5ee9cbb9 100644 --- a/src/java/CdbWebPortal/web/views/itemDomainCatalog/private/itemDomainCatalogPluginMultiEditConfigurationTabs.xhtml +++ b/src/java/CdbWebPortal/web/views/itemDomainCatalog/private/itemDomainCatalogPluginMultiEditConfigurationTabs.xhtml @@ -6,12 +6,12 @@ See LICENSE file. - + diff --git a/src/java/CdbWebPortal/web/views/itemDomainCatalog/private/itemDomainCatalogSubmenu.xhtml b/src/java/CdbWebPortal/web/views/itemDomainCatalog/private/itemDomainCatalogSubmenu.xhtml index cfdb8446a..de4be8780 100644 --- a/src/java/CdbWebPortal/web/views/itemDomainCatalog/private/itemDomainCatalogSubmenu.xhtml +++ b/src/java/CdbWebPortal/web/views/itemDomainCatalog/private/itemDomainCatalogSubmenu.xhtml @@ -6,9 +6,9 @@ See LICENSE file. + xmlns:fn="jakarta.tags.functions"> diff --git a/src/java/CdbWebPortal/web/views/itemDomainCatalog/simpleCreate.xhtml b/src/java/CdbWebPortal/web/views/itemDomainCatalog/simpleCreate.xhtml index b1cede7d6..c09c6705b 100644 --- a/src/java/CdbWebPortal/web/views/itemDomainCatalog/simpleCreate.xhtml +++ b/src/java/CdbWebPortal/web/views/itemDomainCatalog/simpleCreate.xhtml @@ -5,8 +5,8 @@ See LICENSE file. --> diff --git a/src/java/CdbWebPortal/web/views/itemDomainCatalog/templateList.xhtml b/src/java/CdbWebPortal/web/views/itemDomainCatalog/templateList.xhtml index 85717b1ba..8815f5dfa 100644 --- a/src/java/CdbWebPortal/web/views/itemDomainCatalog/templateList.xhtml +++ b/src/java/CdbWebPortal/web/views/itemDomainCatalog/templateList.xhtml @@ -5,8 +5,8 @@ See LICENSE file. --> diff --git a/src/java/CdbWebPortal/web/views/itemDomainCatalog/view.xhtml b/src/java/CdbWebPortal/web/views/itemDomainCatalog/view.xhtml index 1ce922a7b..b5c90129e 100644 --- a/src/java/CdbWebPortal/web/views/itemDomainCatalog/view.xhtml +++ b/src/java/CdbWebPortal/web/views/itemDomainCatalog/view.xhtml @@ -5,8 +5,8 @@ See LICENSE file. --> diff --git a/src/java/CdbWebPortal/web/views/itemDomainCatalogBase/private/itemDomainCatalogBaseInventoryChildListActionButtons.xhtml b/src/java/CdbWebPortal/web/views/itemDomainCatalogBase/private/itemDomainCatalogBaseInventoryChildListActionButtons.xhtml index e4d47bda0..1b222716c 100644 --- a/src/java/CdbWebPortal/web/views/itemDomainCatalogBase/private/itemDomainCatalogBaseInventoryChildListActionButtons.xhtml +++ b/src/java/CdbWebPortal/web/views/itemDomainCatalogBase/private/itemDomainCatalogBaseInventoryChildListActionButtons.xhtml @@ -6,7 +6,7 @@ See LICENSE file. diff --git a/src/java/CdbWebPortal/web/views/itemDomainCatalogBase/private/itemDomainCatalogBaseInventoryCreateDialog.xhtml b/src/java/CdbWebPortal/web/views/itemDomainCatalogBase/private/itemDomainCatalogBaseInventoryCreateDialog.xhtml index 363aae182..03529d687 100644 --- a/src/java/CdbWebPortal/web/views/itemDomainCatalogBase/private/itemDomainCatalogBaseInventoryCreateDialog.xhtml +++ b/src/java/CdbWebPortal/web/views/itemDomainCatalogBase/private/itemDomainCatalogBaseInventoryCreateDialog.xhtml @@ -6,16 +6,16 @@ See LICENSE file. + xmlns:f="jakarta.faces.core"> @@ -23,7 +23,7 @@ See LICENSE file. - + diff --git a/src/java/CdbWebPortal/web/views/itemDomainCatalogBase/private/itemDomainCatalogBaseInventoryEditList.xhtml b/src/java/CdbWebPortal/web/views/itemDomainCatalogBase/private/itemDomainCatalogBaseInventoryEditList.xhtml index 50ac4adbb..69186475e 100644 --- a/src/java/CdbWebPortal/web/views/itemDomainCatalogBase/private/itemDomainCatalogBaseInventoryEditList.xhtml +++ b/src/java/CdbWebPortal/web/views/itemDomainCatalogBase/private/itemDomainCatalogBaseInventoryEditList.xhtml @@ -6,11 +6,11 @@ See LICENSE file. + xmlns:fn="jakarta.tags.functions" + xmlns:f="jakarta.faces.core" + xmlns:h="jakarta.faces.html"> @@ -18,7 +18,7 @@ See LICENSE file. - + diff --git a/src/java/CdbWebPortal/web/views/itemDomainCatalogBase/private/itemDomainCatalogBaseInventoryEditListCustomizeDisplayDialog.xhtml b/src/java/CdbWebPortal/web/views/itemDomainCatalogBase/private/itemDomainCatalogBaseInventoryEditListCustomizeDisplayDialog.xhtml index 9fe543c27..da343bc81 100644 --- a/src/java/CdbWebPortal/web/views/itemDomainCatalogBase/private/itemDomainCatalogBaseInventoryEditListCustomizeDisplayDialog.xhtml +++ b/src/java/CdbWebPortal/web/views/itemDomainCatalogBase/private/itemDomainCatalogBaseInventoryEditListCustomizeDisplayDialog.xhtml @@ -5,9 +5,9 @@ See LICENSE file. --> @@ -19,7 +19,7 @@ See LICENSE file. - + diff --git a/src/java/CdbWebPortal/web/views/itemDomainCatalogBase/private/itemDomainCatalogBaseInventoryList.xhtml b/src/java/CdbWebPortal/web/views/itemDomainCatalogBase/private/itemDomainCatalogBaseInventoryList.xhtml index 69f12867b..4938eaa43 100644 --- a/src/java/CdbWebPortal/web/views/itemDomainCatalogBase/private/itemDomainCatalogBaseInventoryList.xhtml +++ b/src/java/CdbWebPortal/web/views/itemDomainCatalogBase/private/itemDomainCatalogBaseInventoryList.xhtml @@ -6,7 +6,7 @@ See LICENSE file. diff --git a/src/java/CdbWebPortal/web/views/itemDomainCatalogBase/private/itemDomainCatalogBaseInventoryListBasicView.xhtml b/src/java/CdbWebPortal/web/views/itemDomainCatalogBase/private/itemDomainCatalogBaseInventoryListBasicView.xhtml index 5d8601c24..e36d78cab 100644 --- a/src/java/CdbWebPortal/web/views/itemDomainCatalogBase/private/itemDomainCatalogBaseInventoryListBasicView.xhtml +++ b/src/java/CdbWebPortal/web/views/itemDomainCatalogBase/private/itemDomainCatalogBaseInventoryListBasicView.xhtml @@ -6,7 +6,7 @@ See LICENSE file. + xmlns:ui="jakarta.faces.facelets"> diff --git a/src/java/CdbWebPortal/web/views/itemDomainCatalogBase/private/itemDomainCatalogBaseInventoryListCustomizeDisplayDialog.xhtml b/src/java/CdbWebPortal/web/views/itemDomainCatalogBase/private/itemDomainCatalogBaseInventoryListCustomizeDisplayDialog.xhtml index ec1b0cd0f..78578bffb 100644 --- a/src/java/CdbWebPortal/web/views/itemDomainCatalogBase/private/itemDomainCatalogBaseInventoryListCustomizeDisplayDialog.xhtml +++ b/src/java/CdbWebPortal/web/views/itemDomainCatalogBase/private/itemDomainCatalogBaseInventoryListCustomizeDisplayDialog.xhtml @@ -5,9 +5,9 @@ See LICENSE file. --> @@ -17,7 +17,7 @@ See LICENSE file. - + diff --git a/src/java/CdbWebPortal/web/views/itemDomainCatalogBase/private/itemDomainCatalogBaseInventoryListDataTable.xhtml b/src/java/CdbWebPortal/web/views/itemDomainCatalogBase/private/itemDomainCatalogBaseInventoryListDataTable.xhtml index 782552cd4..56e185142 100644 --- a/src/java/CdbWebPortal/web/views/itemDomainCatalogBase/private/itemDomainCatalogBaseInventoryListDataTable.xhtml +++ b/src/java/CdbWebPortal/web/views/itemDomainCatalogBase/private/itemDomainCatalogBaseInventoryListDataTable.xhtml @@ -5,7 +5,7 @@ See LICENSE file. --> diff --git a/src/java/CdbWebPortal/web/views/itemDomainCatalogBase/private/itemDomainCatalogBaseInventoryListView.xhtml b/src/java/CdbWebPortal/web/views/itemDomainCatalogBase/private/itemDomainCatalogBaseInventoryListView.xhtml index 5f5630be2..d3d2fff82 100644 --- a/src/java/CdbWebPortal/web/views/itemDomainCatalogBase/private/itemDomainCatalogBaseInventoryListView.xhtml +++ b/src/java/CdbWebPortal/web/views/itemDomainCatalogBase/private/itemDomainCatalogBaseInventoryListView.xhtml @@ -6,7 +6,7 @@ See LICENSE file. diff --git a/src/java/CdbWebPortal/web/views/itemDomainCatalogBase/private/itemDomainCatalogBaseListCustomizeDisplayDialog.xhtml b/src/java/CdbWebPortal/web/views/itemDomainCatalogBase/private/itemDomainCatalogBaseListCustomizeDisplayDialog.xhtml index e1612ed4c..27446e543 100644 --- a/src/java/CdbWebPortal/web/views/itemDomainCatalogBase/private/itemDomainCatalogBaseListCustomizeDisplayDialog.xhtml +++ b/src/java/CdbWebPortal/web/views/itemDomainCatalogBase/private/itemDomainCatalogBaseListCustomizeDisplayDialog.xhtml @@ -5,9 +5,9 @@ See LICENSE file. --> diff --git a/src/java/CdbWebPortal/web/views/itemDomainCatalogBase/private/itemDomainCatalogBaseListDataTable.xhtml b/src/java/CdbWebPortal/web/views/itemDomainCatalogBase/private/itemDomainCatalogBaseListDataTable.xhtml index 33f460690..67c0e4296 100644 --- a/src/java/CdbWebPortal/web/views/itemDomainCatalogBase/private/itemDomainCatalogBaseListDataTable.xhtml +++ b/src/java/CdbWebPortal/web/views/itemDomainCatalogBase/private/itemDomainCatalogBaseListDataTable.xhtml @@ -5,7 +5,7 @@ See LICENSE file. --> diff --git a/src/java/CdbWebPortal/web/views/itemDomainCatalogBase/private/itemDomainCatalogBaseListDataTableRowExpansion.xhtml b/src/java/CdbWebPortal/web/views/itemDomainCatalogBase/private/itemDomainCatalogBaseListDataTableRowExpansion.xhtml index 5426c75e9..a07cfaad5 100644 --- a/src/java/CdbWebPortal/web/views/itemDomainCatalogBase/private/itemDomainCatalogBaseListDataTableRowExpansion.xhtml +++ b/src/java/CdbWebPortal/web/views/itemDomainCatalogBase/private/itemDomainCatalogBaseListDataTableRowExpansion.xhtml @@ -4,7 +4,7 @@ Copyright (c) UChicago Argonne, LLC. All rights reserved. See LICENSE file. --> diff --git a/src/java/CdbWebPortal/web/views/itemDomainCatalogBase/private/itemDomainCatalogBaseListDataTableRowExpansionObject.xhtml b/src/java/CdbWebPortal/web/views/itemDomainCatalogBase/private/itemDomainCatalogBaseListDataTableRowExpansionObject.xhtml index 8e5b32e6b..ae0264ed0 100644 --- a/src/java/CdbWebPortal/web/views/itemDomainCatalogBase/private/itemDomainCatalogBaseListDataTableRowExpansionObject.xhtml +++ b/src/java/CdbWebPortal/web/views/itemDomainCatalogBase/private/itemDomainCatalogBaseListDataTableRowExpansionObject.xhtml @@ -4,7 +4,7 @@ Copyright (c) UChicago Argonne, LLC. All rights reserved. See LICENSE file. --> diff --git a/src/java/CdbWebPortal/web/views/itemDomainCatalogBase/private/templateDefaults/itemDerivedFromItemTab.xhtml b/src/java/CdbWebPortal/web/views/itemDomainCatalogBase/private/templateDefaults/itemDerivedFromItemTab.xhtml index d16cae28f..a5ef376bb 100644 --- a/src/java/CdbWebPortal/web/views/itemDomainCatalogBase/private/templateDefaults/itemDerivedFromItemTab.xhtml +++ b/src/java/CdbWebPortal/web/views/itemDomainCatalogBase/private/templateDefaults/itemDerivedFromItemTab.xhtml @@ -4,7 +4,7 @@ Copyright (c) UChicago Argonne, LLC. All rights reserved. See LICENSE file. --> diff --git a/src/java/CdbWebPortal/web/views/itemDomainInventory/browseLocation.xhtml b/src/java/CdbWebPortal/web/views/itemDomainInventory/browseLocation.xhtml index 499044235..7cba34407 100644 --- a/src/java/CdbWebPortal/web/views/itemDomainInventory/browseLocation.xhtml +++ b/src/java/CdbWebPortal/web/views/itemDomainInventory/browseLocation.xhtml @@ -5,8 +5,8 @@ See LICENSE file. --> diff --git a/src/java/CdbWebPortal/web/views/itemDomainInventory/create.xhtml b/src/java/CdbWebPortal/web/views/itemDomainInventory/create.xhtml index 372893322..8ecaa63e1 100644 --- a/src/java/CdbWebPortal/web/views/itemDomainInventory/create.xhtml +++ b/src/java/CdbWebPortal/web/views/itemDomainInventory/create.xhtml @@ -5,10 +5,10 @@ See LICENSE file. --> diff --git a/src/java/CdbWebPortal/web/views/itemDomainInventory/createMultiple.xhtml b/src/java/CdbWebPortal/web/views/itemDomainInventory/createMultiple.xhtml index bdbaba6f8..5844e01af 100644 --- a/src/java/CdbWebPortal/web/views/itemDomainInventory/createMultiple.xhtml +++ b/src/java/CdbWebPortal/web/views/itemDomainInventory/createMultiple.xhtml @@ -5,7 +5,7 @@ See LICENSE file. --> diff --git a/src/java/CdbWebPortal/web/views/itemDomainInventory/edit.xhtml b/src/java/CdbWebPortal/web/views/itemDomainInventory/edit.xhtml index 341e5f7cc..0a6d025f0 100644 --- a/src/java/CdbWebPortal/web/views/itemDomainInventory/edit.xhtml +++ b/src/java/CdbWebPortal/web/views/itemDomainInventory/edit.xhtml @@ -5,8 +5,8 @@ See LICENSE file. --> diff --git a/src/java/CdbWebPortal/web/views/itemDomainInventory/editMultiple.xhtml b/src/java/CdbWebPortal/web/views/itemDomainInventory/editMultiple.xhtml index 80a89b8ea..74e34ecde 100644 --- a/src/java/CdbWebPortal/web/views/itemDomainInventory/editMultiple.xhtml +++ b/src/java/CdbWebPortal/web/views/itemDomainInventory/editMultiple.xhtml @@ -5,7 +5,7 @@ See LICENSE file. --> diff --git a/src/java/CdbWebPortal/web/views/itemDomainInventory/export.xhtml b/src/java/CdbWebPortal/web/views/itemDomainInventory/export.xhtml index d60247979..dd8a993da 100644 --- a/src/java/CdbWebPortal/web/views/itemDomainInventory/export.xhtml +++ b/src/java/CdbWebPortal/web/views/itemDomainInventory/export.xhtml @@ -5,9 +5,9 @@ See LICENSE file. --> diff --git a/src/java/CdbWebPortal/web/views/itemDomainInventory/import.xhtml b/src/java/CdbWebPortal/web/views/itemDomainInventory/import.xhtml index 5db3299e0..37cbb0bc6 100644 --- a/src/java/CdbWebPortal/web/views/itemDomainInventory/import.xhtml +++ b/src/java/CdbWebPortal/web/views/itemDomainInventory/import.xhtml @@ -5,9 +5,9 @@ See LICENSE file. --> @@ -20,6 +20,7 @@ See LICENSE file.
diff --git a/src/java/CdbWebPortal/web/views/itemDomainInventory/list.xhtml b/src/java/CdbWebPortal/web/views/itemDomainInventory/list.xhtml index 2510aaae0..84953a399 100644 --- a/src/java/CdbWebPortal/web/views/itemDomainInventory/list.xhtml +++ b/src/java/CdbWebPortal/web/views/itemDomainInventory/list.xhtml @@ -5,9 +5,9 @@ See LICENSE file. --> + xmlns:f="jakarta.faces.core"> diff --git a/src/java/CdbWebPortal/web/views/itemDomainInventory/locationTree.xhtml b/src/java/CdbWebPortal/web/views/itemDomainInventory/locationTree.xhtml index 7f6e311a8..a1d004839 100644 --- a/src/java/CdbWebPortal/web/views/itemDomainInventory/locationTree.xhtml +++ b/src/java/CdbWebPortal/web/views/itemDomainInventory/locationTree.xhtml @@ -5,8 +5,8 @@ See LICENSE file. --> diff --git a/src/java/CdbWebPortal/web/views/itemDomainInventory/private/componentInventoryCreatePanelGrid.xhtml b/src/java/CdbWebPortal/web/views/itemDomainInventory/private/componentInventoryCreatePanelGrid.xhtml index 29cb305f0..187254754 100644 --- a/src/java/CdbWebPortal/web/views/itemDomainInventory/private/componentInventoryCreatePanelGrid.xhtml +++ b/src/java/CdbWebPortal/web/views/itemDomainInventory/private/componentInventoryCreatePanelGrid.xhtml @@ -5,7 +5,7 @@ See LICENSE file. --> diff --git a/src/java/CdbWebPortal/web/views/itemDomainInventory/private/componentInventoryViewPanelGrid.xhtml b/src/java/CdbWebPortal/web/views/itemDomainInventory/private/componentInventoryViewPanelGrid.xhtml index cc50387c2..4766d2472 100644 --- a/src/java/CdbWebPortal/web/views/itemDomainInventory/private/componentInventoryViewPanelGrid.xhtml +++ b/src/java/CdbWebPortal/web/views/itemDomainInventory/private/componentInventoryViewPanelGrid.xhtml @@ -5,10 +5,10 @@ See LICENSE file. --> diff --git a/src/java/CdbWebPortal/web/views/itemDomainInventory/private/entityType/Component/listPageHelpFragment.xhtml b/src/java/CdbWebPortal/web/views/itemDomainInventory/private/entityType/Component/listPageHelpFragment.xhtml index c8708ae75..ff01c10a9 100644 --- a/src/java/CdbWebPortal/web/views/itemDomainInventory/private/entityType/Component/listPageHelpFragment.xhtml +++ b/src/java/CdbWebPortal/web/views/itemDomainInventory/private/entityType/Component/listPageHelpFragment.xhtml @@ -5,8 +5,8 @@ See LICENSE file. --> diff --git a/src/java/CdbWebPortal/web/views/itemDomainInventory/private/entityType/Design/listPageHelpFragment.xhtml b/src/java/CdbWebPortal/web/views/itemDomainInventory/private/entityType/Design/listPageHelpFragment.xhtml index aef8bc44b..ed3d7458e 100644 --- a/src/java/CdbWebPortal/web/views/itemDomainInventory/private/entityType/Design/listPageHelpFragment.xhtml +++ b/src/java/CdbWebPortal/web/views/itemDomainInventory/private/entityType/Design/listPageHelpFragment.xhtml @@ -5,8 +5,8 @@ See LICENSE file. --> diff --git a/src/java/CdbWebPortal/web/views/itemDomainInventory/private/entityType/listPageHelpFragment.xhtml b/src/java/CdbWebPortal/web/views/itemDomainInventory/private/entityType/listPageHelpFragment.xhtml index cfe03ee52..b08418c67 100644 --- a/src/java/CdbWebPortal/web/views/itemDomainInventory/private/entityType/listPageHelpFragment.xhtml +++ b/src/java/CdbWebPortal/web/views/itemDomainInventory/private/entityType/listPageHelpFragment.xhtml @@ -5,6 +5,6 @@ See LICENSE file. --> + xmlns:ui="jakarta.faces.facelets"/> diff --git a/src/java/CdbWebPortal/web/views/itemDomainInventory/private/itemDomainInventoryEditPanelGrid.xhtml b/src/java/CdbWebPortal/web/views/itemDomainInventory/private/itemDomainInventoryEditPanelGrid.xhtml index 9a8501c5f..21a71a0cf 100644 --- a/src/java/CdbWebPortal/web/views/itemDomainInventory/private/itemDomainInventoryEditPanelGrid.xhtml +++ b/src/java/CdbWebPortal/web/views/itemDomainInventory/private/itemDomainInventoryEditPanelGrid.xhtml @@ -5,7 +5,7 @@ See LICENSE file. --> diff --git a/src/java/CdbWebPortal/web/views/itemDomainInventory/private/itemDomainInventoryFilterViewLocation.xhtml b/src/java/CdbWebPortal/web/views/itemDomainInventory/private/itemDomainInventoryFilterViewLocation.xhtml index 089141472..637ea7531 100644 --- a/src/java/CdbWebPortal/web/views/itemDomainInventory/private/itemDomainInventoryFilterViewLocation.xhtml +++ b/src/java/CdbWebPortal/web/views/itemDomainInventory/private/itemDomainInventoryFilterViewLocation.xhtml @@ -5,11 +5,11 @@ See LICENSE file. --> + xmlns:f="jakarta.faces.core"> @@ -31,7 +31,6 @@ See LICENSE file. Choose a Location diff --git a/src/java/CdbWebPortal/web/views/itemDomainInventory/private/itemDomainInventoryFilterViewTreeObject.xhtml b/src/java/CdbWebPortal/web/views/itemDomainInventory/private/itemDomainInventoryFilterViewTreeObject.xhtml index 4e8245d97..78da8fec4 100644 --- a/src/java/CdbWebPortal/web/views/itemDomainInventory/private/itemDomainInventoryFilterViewTreeObject.xhtml +++ b/src/java/CdbWebPortal/web/views/itemDomainInventory/private/itemDomainInventoryFilterViewTreeObject.xhtml @@ -5,7 +5,7 @@ See LICENSE file. --> diff --git a/src/java/CdbWebPortal/web/views/itemDomainInventory/private/itemDomainInventoryLocationTreeObject.xhtml b/src/java/CdbWebPortal/web/views/itemDomainInventory/private/itemDomainInventoryLocationTreeObject.xhtml index 2a8f42d10..1775b1ec1 100644 --- a/src/java/CdbWebPortal/web/views/itemDomainInventory/private/itemDomainInventoryLocationTreeObject.xhtml +++ b/src/java/CdbWebPortal/web/views/itemDomainInventory/private/itemDomainInventoryLocationTreeObject.xhtml @@ -5,11 +5,11 @@ See LICENSE file. --> + xmlns:f="jakarta.faces.core"> diff --git a/src/java/CdbWebPortal/web/views/itemDomainInventory/private/itemDomainInventoryMachineAssignmentDialog.xhtml b/src/java/CdbWebPortal/web/views/itemDomainInventory/private/itemDomainInventoryMachineAssignmentDialog.xhtml index 2511a1f76..3757e0086 100644 --- a/src/java/CdbWebPortal/web/views/itemDomainInventory/private/itemDomainInventoryMachineAssignmentDialog.xhtml +++ b/src/java/CdbWebPortal/web/views/itemDomainInventory/private/itemDomainInventoryMachineAssignmentDialog.xhtml @@ -5,10 +5,10 @@ See LICENSE file. --> + xmlns:h="jakarta.faces.html" + xmlns:f="jakarta.faces.core"> - + - + Installed items use the machine location. Planned items retain their current location. - + + diff --git a/src/java/CdbWebPortal/web/views/itemDomainInventory/private/itemDomainInventoryMachineAssignmentReplacementConfirmDialog.xhtml b/src/java/CdbWebPortal/web/views/itemDomainInventory/private/itemDomainInventoryMachineAssignmentReplacementConfirmDialog.xhtml index 490399f69..a166d00db 100644 --- a/src/java/CdbWebPortal/web/views/itemDomainInventory/private/itemDomainInventoryMachineAssignmentReplacementConfirmDialog.xhtml +++ b/src/java/CdbWebPortal/web/views/itemDomainInventory/private/itemDomainInventoryMachineAssignmentReplacementConfirmDialog.xhtml @@ -5,10 +5,10 @@ See LICENSE file. --> + xmlns:h="jakarta.faces.html" + xmlns:f="jakarta.faces.core"> - @@ -24,10 +24,10 @@ See LICENSE file. - + - diff --git a/src/java/CdbWebPortal/web/views/itemDomainInventory/private/itemDomainInventoryMachineAssignmentTree.xhtml b/src/java/CdbWebPortal/web/views/itemDomainInventory/private/itemDomainInventoryMachineAssignmentTree.xhtml index f66b5f012..7e09e8564 100644 --- a/src/java/CdbWebPortal/web/views/itemDomainInventory/private/itemDomainInventoryMachineAssignmentTree.xhtml +++ b/src/java/CdbWebPortal/web/views/itemDomainInventory/private/itemDomainInventoryMachineAssignmentTree.xhtml @@ -5,9 +5,9 @@ See LICENSE file. -->
diff --git a/src/java/CdbWebPortal/web/views/itemDomainInventory/private/itemDomainInventorySubmenu.xhtml b/src/java/CdbWebPortal/web/views/itemDomainInventory/private/itemDomainInventorySubmenu.xhtml index 52384654d..33af626b4 100644 --- a/src/java/CdbWebPortal/web/views/itemDomainInventory/private/itemDomainInventorySubmenu.xhtml +++ b/src/java/CdbWebPortal/web/views/itemDomainInventory/private/itemDomainInventorySubmenu.xhtml @@ -5,8 +5,8 @@ See LICENSE file. --> + xmlns:ui="jakarta.faces.facelets" + xmlns:h="jakarta.faces.html"> diff --git a/src/java/CdbWebPortal/web/views/itemDomainInventory/private/templateDefaults/itemDomainInventoryLocationListColumnObject.xhtml b/src/java/CdbWebPortal/web/views/itemDomainInventory/private/templateDefaults/itemDomainInventoryLocationListColumnObject.xhtml index 40f3438d0..9d01dd00c 100644 --- a/src/java/CdbWebPortal/web/views/itemDomainInventory/private/templateDefaults/itemDomainInventoryLocationListColumnObject.xhtml +++ b/src/java/CdbWebPortal/web/views/itemDomainInventory/private/templateDefaults/itemDomainInventoryLocationListColumnObject.xhtml @@ -5,9 +5,9 @@ See LICENSE file. --> + xmlns:h="jakarta.faces.html"> \ No newline at end of file diff --git a/src/java/CdbWebPortal/web/views/itemDomainInventory/simpleCreate.xhtml b/src/java/CdbWebPortal/web/views/itemDomainInventory/simpleCreate.xhtml index da405c826..c45712f10 100644 --- a/src/java/CdbWebPortal/web/views/itemDomainInventory/simpleCreate.xhtml +++ b/src/java/CdbWebPortal/web/views/itemDomainInventory/simpleCreate.xhtml @@ -5,10 +5,10 @@ See LICENSE file. --> diff --git a/src/java/CdbWebPortal/web/views/itemDomainInventory/view.xhtml b/src/java/CdbWebPortal/web/views/itemDomainInventory/view.xhtml index 74ee3ac6c..306a96559 100644 --- a/src/java/CdbWebPortal/web/views/itemDomainInventory/view.xhtml +++ b/src/java/CdbWebPortal/web/views/itemDomainInventory/view.xhtml @@ -5,8 +5,8 @@ See LICENSE file. --> diff --git a/src/java/CdbWebPortal/web/views/itemDomainInventoryBase/private/itemDomainInventoryBaseBillOfMaterialsEditDialog.xhtml b/src/java/CdbWebPortal/web/views/itemDomainInventoryBase/private/itemDomainInventoryBaseBillOfMaterialsEditDialog.xhtml index 71c3e5fad..f5b8ece4d 100644 --- a/src/java/CdbWebPortal/web/views/itemDomainInventoryBase/private/itemDomainInventoryBaseBillOfMaterialsEditDialog.xhtml +++ b/src/java/CdbWebPortal/web/views/itemDomainInventoryBase/private/itemDomainInventoryBaseBillOfMaterialsEditDialog.xhtml @@ -6,14 +6,14 @@ See LICENSE file. + xmlns:f="jakarta.faces.core"> diff --git a/src/java/CdbWebPortal/web/views/itemDomainInventoryBase/private/itemDomainInventoryBaseBillOfMaterialsEditPanel.xhtml b/src/java/CdbWebPortal/web/views/itemDomainInventoryBase/private/itemDomainInventoryBaseBillOfMaterialsEditPanel.xhtml index c03e55168..2f9039399 100644 --- a/src/java/CdbWebPortal/web/views/itemDomainInventoryBase/private/itemDomainInventoryBaseBillOfMaterialsEditPanel.xhtml +++ b/src/java/CdbWebPortal/web/views/itemDomainInventoryBase/private/itemDomainInventoryBaseBillOfMaterialsEditPanel.xhtml @@ -5,10 +5,10 @@ See LICENSE file. --> + xmlns:h="jakarta.faces.html" + xmlns:f="jakarta.faces.core">
@@ -18,7 +18,7 @@ See LICENSE file. - + diff --git a/src/java/CdbWebPortal/web/views/itemDomainInventoryBase/private/itemDomainInventoryBaseBillOfMaterialsEditView.xhtml b/src/java/CdbWebPortal/web/views/itemDomainInventoryBase/private/itemDomainInventoryBaseBillOfMaterialsEditView.xhtml index 3c8e24589..89acae101 100644 --- a/src/java/CdbWebPortal/web/views/itemDomainInventoryBase/private/itemDomainInventoryBaseBillOfMaterialsEditView.xhtml +++ b/src/java/CdbWebPortal/web/views/itemDomainInventoryBase/private/itemDomainInventoryBaseBillOfMaterialsEditView.xhtml @@ -5,17 +5,17 @@ See LICENSE file. --> + xmlns:h="jakarta.faces.html" + xmlns:f="jakarta.faces.core"> - diff --git a/src/java/CdbWebPortal/web/views/itemDomainInventoryBase/private/itemDomainInventoryBaseBillOfMaterialsEditViewTree.xhtml b/src/java/CdbWebPortal/web/views/itemDomainInventoryBase/private/itemDomainInventoryBaseBillOfMaterialsEditViewTree.xhtml index b98bc16d0..ee9ec3ef9 100644 --- a/src/java/CdbWebPortal/web/views/itemDomainInventoryBase/private/itemDomainInventoryBaseBillOfMaterialsEditViewTree.xhtml +++ b/src/java/CdbWebPortal/web/views/itemDomainInventoryBase/private/itemDomainInventoryBaseBillOfMaterialsEditViewTree.xhtml @@ -5,7 +5,7 @@ See LICENSE file. --> + xmlns:h="jakarta.faces.html"> - + @@ -40,7 +40,7 @@ See LICENSE file. - + @@ -72,7 +72,7 @@ See LICENSE file. value="#{!billOfMaterialItem.partItem and entityController.currentHasPartsToDisplay}" /> - + @@ -97,7 +97,7 @@ See LICENSE file. - + diff --git a/src/java/CdbWebPortal/web/views/itemDomainInventoryBase/private/itemDomainInventoryBaseBillOfMaterialsOptionalRemovalConfirmDialog.xhtml b/src/java/CdbWebPortal/web/views/itemDomainInventoryBase/private/itemDomainInventoryBaseBillOfMaterialsOptionalRemovalConfirmDialog.xhtml index 24eda7173..27860b69a 100644 --- a/src/java/CdbWebPortal/web/views/itemDomainInventoryBase/private/itemDomainInventoryBaseBillOfMaterialsOptionalRemovalConfirmDialog.xhtml +++ b/src/java/CdbWebPortal/web/views/itemDomainInventoryBase/private/itemDomainInventoryBaseBillOfMaterialsOptionalRemovalConfirmDialog.xhtml @@ -5,7 +5,7 @@ See LICENSE file. --> + xmlns:h="jakarta.faces.html"> diff --git a/src/java/CdbWebPortal/web/views/itemDomainInventoryBase/private/itemDomainInventoryBaseItemElementList.xhtml b/src/java/CdbWebPortal/web/views/itemDomainInventoryBase/private/itemDomainInventoryBaseItemElementList.xhtml index 33e2839e6..6db1ae771 100644 --- a/src/java/CdbWebPortal/web/views/itemDomainInventoryBase/private/itemDomainInventoryBaseItemElementList.xhtml +++ b/src/java/CdbWebPortal/web/views/itemDomainInventoryBase/private/itemDomainInventoryBaseItemElementList.xhtml @@ -5,10 +5,10 @@ See LICENSE file. --> + xmlns:f="jakarta.faces.core"> + xmlns:h="jakarta.faces.html"> diff --git a/src/java/CdbWebPortal/web/views/itemDomainInventoryBase/private/itemDomainInventoryBaseListCustomizeDisplayDialog.xhtml b/src/java/CdbWebPortal/web/views/itemDomainInventoryBase/private/itemDomainInventoryBaseListCustomizeDisplayDialog.xhtml index 47b6b05b0..6d6868f8a 100644 --- a/src/java/CdbWebPortal/web/views/itemDomainInventoryBase/private/itemDomainInventoryBaseListCustomizeDisplayDialog.xhtml +++ b/src/java/CdbWebPortal/web/views/itemDomainInventoryBase/private/itemDomainInventoryBaseListCustomizeDisplayDialog.xhtml @@ -5,8 +5,8 @@ See LICENSE file. --> diff --git a/src/java/CdbWebPortal/web/views/itemDomainInventoryBase/private/itemDomainInventoryBaseListDataTable.xhtml b/src/java/CdbWebPortal/web/views/itemDomainInventoryBase/private/itemDomainInventoryBaseListDataTable.xhtml index 3667f793f..0666b9683 100644 --- a/src/java/CdbWebPortal/web/views/itemDomainInventoryBase/private/itemDomainInventoryBaseListDataTable.xhtml +++ b/src/java/CdbWebPortal/web/views/itemDomainInventoryBase/private/itemDomainInventoryBaseListDataTable.xhtml @@ -5,7 +5,7 @@ See LICENSE file. --> diff --git a/src/java/CdbWebPortal/web/views/itemDomainInventoryBase/private/itemDomainInventoryBaseListObject.xhtml b/src/java/CdbWebPortal/web/views/itemDomainInventoryBase/private/itemDomainInventoryBaseListObject.xhtml index ed1dbb5cc..5fe43a40d 100644 --- a/src/java/CdbWebPortal/web/views/itemDomainInventoryBase/private/itemDomainInventoryBaseListObject.xhtml +++ b/src/java/CdbWebPortal/web/views/itemDomainInventoryBase/private/itemDomainInventoryBaseListObject.xhtml @@ -5,7 +5,7 @@ See LICENSE file. --> diff --git a/src/java/CdbWebPortal/web/views/itemDomainInventoryBase/private/itemDomainInventoryBaseMultiEditListDataTable.xhtml b/src/java/CdbWebPortal/web/views/itemDomainInventoryBase/private/itemDomainInventoryBaseMultiEditListDataTable.xhtml index c402813d5..0a9189afd 100644 --- a/src/java/CdbWebPortal/web/views/itemDomainInventoryBase/private/itemDomainInventoryBaseMultiEditListDataTable.xhtml +++ b/src/java/CdbWebPortal/web/views/itemDomainInventoryBase/private/itemDomainInventoryBaseMultiEditListDataTable.xhtml @@ -5,8 +5,8 @@ See LICENSE file. --> diff --git a/src/java/CdbWebPortal/web/views/itemDomainInventoryBase/private/itemDomainInventoryBaseSpecificMultiEditConfigurationTabs.xhtml b/src/java/CdbWebPortal/web/views/itemDomainInventoryBase/private/itemDomainInventoryBaseSpecificMultiEditConfigurationTabs.xhtml index bab8ec87a..3431b2c19 100644 --- a/src/java/CdbWebPortal/web/views/itemDomainInventoryBase/private/itemDomainInventoryBaseSpecificMultiEditConfigurationTabs.xhtml +++ b/src/java/CdbWebPortal/web/views/itemDomainInventoryBase/private/itemDomainInventoryBaseSpecificMultiEditConfigurationTabs.xhtml @@ -6,13 +6,13 @@ See LICENSE file. + xmlns:h="jakarta.faces.html"> Select desired item columns to edit - + diff --git a/src/java/CdbWebPortal/web/views/itemDomainInventoryBase/private/itemDomainInventoryBaseSpecificMultiEditEditableListObject.xhtml b/src/java/CdbWebPortal/web/views/itemDomainInventoryBase/private/itemDomainInventoryBaseSpecificMultiEditEditableListObject.xhtml index 2c34e844f..fed7512d2 100644 --- a/src/java/CdbWebPortal/web/views/itemDomainInventoryBase/private/itemDomainInventoryBaseSpecificMultiEditEditableListObject.xhtml +++ b/src/java/CdbWebPortal/web/views/itemDomainInventoryBase/private/itemDomainInventoryBaseSpecificMultiEditEditableListObject.xhtml @@ -6,9 +6,9 @@ See LICENSE file. + xmlns:f="jakarta.faces.core"> diff --git a/src/java/CdbWebPortal/web/views/itemDomainInventoryBase/private/itemDomainInventoryBaseUpdateAssignedInventoryItemDialog.xhtml b/src/java/CdbWebPortal/web/views/itemDomainInventoryBase/private/itemDomainInventoryBaseUpdateAssignedInventoryItemDialog.xhtml index be037b3b2..56302dd0a 100644 --- a/src/java/CdbWebPortal/web/views/itemDomainInventoryBase/private/itemDomainInventoryBaseUpdateAssignedInventoryItemDialog.xhtml +++ b/src/java/CdbWebPortal/web/views/itemDomainInventoryBase/private/itemDomainInventoryBaseUpdateAssignedInventoryItemDialog.xhtml @@ -5,16 +5,16 @@ See LICENSE file. --> + xmlns:f="jakarta.faces.core"> diff --git a/src/java/CdbWebPortal/web/views/itemDomainInventoryBase/private/templateDefaults/itemDomainInventoryBaseAssemblyTabObject.xhtml b/src/java/CdbWebPortal/web/views/itemDomainInventoryBase/private/templateDefaults/itemDomainInventoryBaseAssemblyTabObject.xhtml index 5910489e3..2f6e54102 100644 --- a/src/java/CdbWebPortal/web/views/itemDomainInventoryBase/private/templateDefaults/itemDomainInventoryBaseAssemblyTabObject.xhtml +++ b/src/java/CdbWebPortal/web/views/itemDomainInventoryBase/private/templateDefaults/itemDomainInventoryBaseAssemblyTabObject.xhtml @@ -5,9 +5,9 @@ See LICENSE file. --> + xmlns:h="jakarta.faces.html"> diff --git a/src/java/CdbWebPortal/web/views/itemDomainInventoryBase/private/templates/itemDomainInventoryBasePluginMultiEditConfigurationTabsTemplate.xhtml b/src/java/CdbWebPortal/web/views/itemDomainInventoryBase/private/templates/itemDomainInventoryBasePluginMultiEditConfigurationTabsTemplate.xhtml index b2a08e0b9..608672c08 100644 --- a/src/java/CdbWebPortal/web/views/itemDomainInventoryBase/private/templates/itemDomainInventoryBasePluginMultiEditConfigurationTabsTemplate.xhtml +++ b/src/java/CdbWebPortal/web/views/itemDomainInventoryBase/private/templates/itemDomainInventoryBasePluginMultiEditConfigurationTabsTemplate.xhtml @@ -6,12 +6,12 @@ See LICENSE file. - + diff --git a/src/java/CdbWebPortal/web/views/itemDomainLocation/create.xhtml b/src/java/CdbWebPortal/web/views/itemDomainLocation/create.xhtml index 618a2211f..141a2cdb2 100644 --- a/src/java/CdbWebPortal/web/views/itemDomainLocation/create.xhtml +++ b/src/java/CdbWebPortal/web/views/itemDomainLocation/create.xhtml @@ -5,8 +5,8 @@ See LICENSE file. --> diff --git a/src/java/CdbWebPortal/web/views/itemDomainLocation/edit.xhtml b/src/java/CdbWebPortal/web/views/itemDomainLocation/edit.xhtml index 33278fe46..85b22188d 100644 --- a/src/java/CdbWebPortal/web/views/itemDomainLocation/edit.xhtml +++ b/src/java/CdbWebPortal/web/views/itemDomainLocation/edit.xhtml @@ -5,8 +5,8 @@ See LICENSE file. --> diff --git a/src/java/CdbWebPortal/web/views/itemDomainLocation/import.xhtml b/src/java/CdbWebPortal/web/views/itemDomainLocation/import.xhtml index d6e4f1a3b..7575d7ac1 100644 --- a/src/java/CdbWebPortal/web/views/itemDomainLocation/import.xhtml +++ b/src/java/CdbWebPortal/web/views/itemDomainLocation/import.xhtml @@ -5,9 +5,9 @@ See LICENSE file. --> @@ -22,6 +22,7 @@ See LICENSE file.
diff --git a/src/java/CdbWebPortal/web/views/itemDomainLocation/list.xhtml b/src/java/CdbWebPortal/web/views/itemDomainLocation/list.xhtml index efba10238..46303c5db 100644 --- a/src/java/CdbWebPortal/web/views/itemDomainLocation/list.xhtml +++ b/src/java/CdbWebPortal/web/views/itemDomainLocation/list.xhtml @@ -5,10 +5,10 @@ See LICENSE file. --> diff --git a/src/java/CdbWebPortal/web/views/itemDomainLocation/private/itemDomainLocationItemsLocatedHereDataTable.xhtml b/src/java/CdbWebPortal/web/views/itemDomainLocation/private/itemDomainLocationItemsLocatedHereDataTable.xhtml index d64c1dd7c..6c5a2b781 100644 --- a/src/java/CdbWebPortal/web/views/itemDomainLocation/private/itemDomainLocationItemsLocatedHereDataTable.xhtml +++ b/src/java/CdbWebPortal/web/views/itemDomainLocation/private/itemDomainLocationItemsLocatedHereDataTable.xhtml @@ -5,7 +5,7 @@ See LICENSE file. --> @@ -13,6 +13,7 @@ See LICENSE file. paginatorAlwaysVisible="true" lazy="true" paginator="true" + paginatorPosition="both" rows="25" var="itemListObject"> diff --git a/src/java/CdbWebPortal/web/views/itemDomainLocation/private/itemDomainLocationParentHistoryDialog.xhtml b/src/java/CdbWebPortal/web/views/itemDomainLocation/private/itemDomainLocationParentHistoryDialog.xhtml index e3613359d..9e153a3ba 100644 --- a/src/java/CdbWebPortal/web/views/itemDomainLocation/private/itemDomainLocationParentHistoryDialog.xhtml +++ b/src/java/CdbWebPortal/web/views/itemDomainLocation/private/itemDomainLocationParentHistoryDialog.xhtml @@ -5,23 +5,25 @@ See LICENSE file. --> + xmlns:h="jakarta.faces.html"> diff --git a/src/java/CdbWebPortal/web/views/itemDomainLocation/private/itemDomainLocationTreeObject.xhtml b/src/java/CdbWebPortal/web/views/itemDomainLocation/private/itemDomainLocationTreeObject.xhtml index 1f1f06d3a..8a98663a9 100644 --- a/src/java/CdbWebPortal/web/views/itemDomainLocation/private/itemDomainLocationTreeObject.xhtml +++ b/src/java/CdbWebPortal/web/views/itemDomainLocation/private/itemDomainLocationTreeObject.xhtml @@ -5,8 +5,8 @@ See LICENSE file. --> diff --git a/src/java/CdbWebPortal/web/views/itemDomainLocation/private/itemDomainLocationViewPanelGrid.xhtml b/src/java/CdbWebPortal/web/views/itemDomainLocation/private/itemDomainLocationViewPanelGrid.xhtml index 9330ebaba..78ebcb3f6 100644 --- a/src/java/CdbWebPortal/web/views/itemDomainLocation/private/itemDomainLocationViewPanelGrid.xhtml +++ b/src/java/CdbWebPortal/web/views/itemDomainLocation/private/itemDomainLocationViewPanelGrid.xhtml @@ -5,11 +5,11 @@ See LICENSE file. --> + xmlns:f="jakarta.faces.core"> diff --git a/src/java/CdbWebPortal/web/views/itemDomainLocation/simpleCreate.xhtml b/src/java/CdbWebPortal/web/views/itemDomainLocation/simpleCreate.xhtml index 618a2211f..141a2cdb2 100644 --- a/src/java/CdbWebPortal/web/views/itemDomainLocation/simpleCreate.xhtml +++ b/src/java/CdbWebPortal/web/views/itemDomainLocation/simpleCreate.xhtml @@ -5,8 +5,8 @@ See LICENSE file. --> diff --git a/src/java/CdbWebPortal/web/views/itemDomainLocation/view.xhtml b/src/java/CdbWebPortal/web/views/itemDomainLocation/view.xhtml index b06995703..946e63a15 100644 --- a/src/java/CdbWebPortal/web/views/itemDomainLocation/view.xhtml +++ b/src/java/CdbWebPortal/web/views/itemDomainLocation/view.xhtml @@ -5,8 +5,8 @@ See LICENSE file. --> diff --git a/src/java/CdbWebPortal/web/views/itemDomainMAARC/create.xhtml b/src/java/CdbWebPortal/web/views/itemDomainMAARC/create.xhtml index cb48717b0..2118d7feb 100644 --- a/src/java/CdbWebPortal/web/views/itemDomainMAARC/create.xhtml +++ b/src/java/CdbWebPortal/web/views/itemDomainMAARC/create.xhtml @@ -5,8 +5,8 @@ See LICENSE file. --> diff --git a/src/java/CdbWebPortal/web/views/itemDomainMAARC/edit.xhtml b/src/java/CdbWebPortal/web/views/itemDomainMAARC/edit.xhtml index 7b05339b4..70b5cc754 100644 --- a/src/java/CdbWebPortal/web/views/itemDomainMAARC/edit.xhtml +++ b/src/java/CdbWebPortal/web/views/itemDomainMAARC/edit.xhtml @@ -5,8 +5,8 @@ See LICENSE file. --> diff --git a/src/java/CdbWebPortal/web/views/itemDomainMAARC/list.xhtml b/src/java/CdbWebPortal/web/views/itemDomainMAARC/list.xhtml index b3f42c730..d671d8aa8 100644 --- a/src/java/CdbWebPortal/web/views/itemDomainMAARC/list.xhtml +++ b/src/java/CdbWebPortal/web/views/itemDomainMAARC/list.xhtml @@ -5,9 +5,9 @@ See LICENSE file. --> + xmlns:f="jakarta.faces.core"> diff --git a/src/java/CdbWebPortal/web/views/itemDomainMAARC/private/itemDomainMAARCItemElementList.xhtml b/src/java/CdbWebPortal/web/views/itemDomainMAARC/private/itemDomainMAARCItemElementList.xhtml index efb50de27..85cce5307 100644 --- a/src/java/CdbWebPortal/web/views/itemDomainMAARC/private/itemDomainMAARCItemElementList.xhtml +++ b/src/java/CdbWebPortal/web/views/itemDomainMAARC/private/itemDomainMAARCItemElementList.xhtml @@ -5,9 +5,9 @@ See LICENSE file. --> + xmlns:h="jakarta.faces.html"> @@ -19,12 +19,14 @@ See LICENSE file. value="#{facesUtility.displayFiltersForList(itemObject.itemElementDisplayList, 10)}" /> + paginator="true" + paginatorPosition="both"> + xmlns:h="jakarta.faces.html"> - + diff --git a/src/java/CdbWebPortal/web/views/itemDomainMAARC/private/itemDomainMAARCRelatedItemList.xhtml b/src/java/CdbWebPortal/web/views/itemDomainMAARC/private/itemDomainMAARCRelatedItemList.xhtml index 72ccf926b..97c83f5f7 100644 --- a/src/java/CdbWebPortal/web/views/itemDomainMAARC/private/itemDomainMAARCRelatedItemList.xhtml +++ b/src/java/CdbWebPortal/web/views/itemDomainMAARC/private/itemDomainMAARCRelatedItemList.xhtml @@ -5,9 +5,9 @@ See LICENSE file. --> + xmlns:h="jakarta.faces.html"> @@ -16,6 +16,7 @@ See LICENSE file. + xmlns:h="jakarta.faces.html" + xmlns:f="jakarta.faces.core"> - -

- +

+ + +
@@ -16,6 +16,7 @@ See LICENSE file. diff --git a/src/java/CdbWebPortal/web/views/itemDomainMachineDesign/create.xhtml b/src/java/CdbWebPortal/web/views/itemDomainMachineDesign/create.xhtml index 97919d5b0..1998b786b 100644 --- a/src/java/CdbWebPortal/web/views/itemDomainMachineDesign/create.xhtml +++ b/src/java/CdbWebPortal/web/views/itemDomainMachineDesign/create.xhtml @@ -5,8 +5,8 @@ See LICENSE file. --> diff --git a/src/java/CdbWebPortal/web/views/itemDomainMachineDesign/deletedItemsList.xhtml b/src/java/CdbWebPortal/web/views/itemDomainMachineDesign/deletedItemsList.xhtml index b17e822da..1a8733caf 100644 --- a/src/java/CdbWebPortal/web/views/itemDomainMachineDesign/deletedItemsList.xhtml +++ b/src/java/CdbWebPortal/web/views/itemDomainMachineDesign/deletedItemsList.xhtml @@ -5,8 +5,8 @@ See LICENSE file. --> diff --git a/src/java/CdbWebPortal/web/views/itemDomainMachineDesign/edit.xhtml b/src/java/CdbWebPortal/web/views/itemDomainMachineDesign/edit.xhtml index c80e7fbe8..102d3e031 100644 --- a/src/java/CdbWebPortal/web/views/itemDomainMachineDesign/edit.xhtml +++ b/src/java/CdbWebPortal/web/views/itemDomainMachineDesign/edit.xhtml @@ -5,8 +5,8 @@ See LICENSE file. --> diff --git a/src/java/CdbWebPortal/web/views/itemDomainMachineDesign/editMultiple.xhtml b/src/java/CdbWebPortal/web/views/itemDomainMachineDesign/editMultiple.xhtml index 6c0a50c48..b35741260 100644 --- a/src/java/CdbWebPortal/web/views/itemDomainMachineDesign/editMultiple.xhtml +++ b/src/java/CdbWebPortal/web/views/itemDomainMachineDesign/editMultiple.xhtml @@ -5,7 +5,7 @@ See LICENSE file. --> diff --git a/src/java/CdbWebPortal/web/views/itemDomainMachineDesign/export.xhtml b/src/java/CdbWebPortal/web/views/itemDomainMachineDesign/export.xhtml index 9e3553cd9..58e449770 100644 --- a/src/java/CdbWebPortal/web/views/itemDomainMachineDesign/export.xhtml +++ b/src/java/CdbWebPortal/web/views/itemDomainMachineDesign/export.xhtml @@ -5,9 +5,9 @@ See LICENSE file. --> diff --git a/src/java/CdbWebPortal/web/views/itemDomainMachineDesign/import.xhtml b/src/java/CdbWebPortal/web/views/itemDomainMachineDesign/import.xhtml index b3a11681d..40d50fb90 100644 --- a/src/java/CdbWebPortal/web/views/itemDomainMachineDesign/import.xhtml +++ b/src/java/CdbWebPortal/web/views/itemDomainMachineDesign/import.xhtml @@ -5,9 +5,9 @@ See LICENSE file. --> @@ -22,6 +22,7 @@ See LICENSE file.
diff --git a/src/java/CdbWebPortal/web/views/itemDomainMachineDesign/list.xhtml b/src/java/CdbWebPortal/web/views/itemDomainMachineDesign/list.xhtml index 4d1d43427..6270c15fe 100644 --- a/src/java/CdbWebPortal/web/views/itemDomainMachineDesign/list.xhtml +++ b/src/java/CdbWebPortal/web/views/itemDomainMachineDesign/list.xhtml @@ -5,8 +5,8 @@ See LICENSE file. --> diff --git a/src/java/CdbWebPortal/web/views/itemDomainMachineDesign/listView.xhtml b/src/java/CdbWebPortal/web/views/itemDomainMachineDesign/listView.xhtml index 59be6d565..a25fd9212 100644 --- a/src/java/CdbWebPortal/web/views/itemDomainMachineDesign/listView.xhtml +++ b/src/java/CdbWebPortal/web/views/itemDomainMachineDesign/listView.xhtml @@ -5,8 +5,8 @@ See LICENSE file. --> diff --git a/src/java/CdbWebPortal/web/views/itemDomainMachineDesign/private/contextMenu/addAssembyMachineElementContextMenuItem.xhtml b/src/java/CdbWebPortal/web/views/itemDomainMachineDesign/private/contextMenu/addAssembyMachineElementContextMenuItem.xhtml index 814702e53..a5b11478f 100644 --- a/src/java/CdbWebPortal/web/views/itemDomainMachineDesign/private/contextMenu/addAssembyMachineElementContextMenuItem.xhtml +++ b/src/java/CdbWebPortal/web/views/itemDomainMachineDesign/private/contextMenu/addAssembyMachineElementContextMenuItem.xhtml @@ -5,7 +5,7 @@ See LICENSE file. --> diff --git a/src/java/CdbWebPortal/web/views/itemDomainMachineDesign/private/contextMenu/assignInventoryToAssembyMachineElementContextMenuItem.xhtml b/src/java/CdbWebPortal/web/views/itemDomainMachineDesign/private/contextMenu/assignInventoryToAssembyMachineElementContextMenuItem.xhtml index f5ae39cd0..f0b55f22a 100644 --- a/src/java/CdbWebPortal/web/views/itemDomainMachineDesign/private/contextMenu/assignInventoryToAssembyMachineElementContextMenuItem.xhtml +++ b/src/java/CdbWebPortal/web/views/itemDomainMachineDesign/private/contextMenu/assignInventoryToAssembyMachineElementContextMenuItem.xhtml @@ -5,7 +5,7 @@ See LICENSE file. --> diff --git a/src/java/CdbWebPortal/web/views/itemDomainMachineDesign/private/itemDomainMachineDesignContextMenu.xhtml b/src/java/CdbWebPortal/web/views/itemDomainMachineDesign/private/itemDomainMachineDesignContextMenu.xhtml index b04efa300..1521eaaf2 100644 --- a/src/java/CdbWebPortal/web/views/itemDomainMachineDesign/private/itemDomainMachineDesignContextMenu.xhtml +++ b/src/java/CdbWebPortal/web/views/itemDomainMachineDesign/private/itemDomainMachineDesignContextMenu.xhtml @@ -5,10 +5,10 @@ See LICENSE file. --> + xmlns:f="jakarta.faces.core"> diff --git a/src/java/CdbWebPortal/web/views/itemDomainMachineDesign/private/itemDomainMachineDesignContextMenuContents.xhtml b/src/java/CdbWebPortal/web/views/itemDomainMachineDesign/private/itemDomainMachineDesignContextMenuContents.xhtml index bb660d3f7..1591beca4 100644 --- a/src/java/CdbWebPortal/web/views/itemDomainMachineDesign/private/itemDomainMachineDesignContextMenuContents.xhtml +++ b/src/java/CdbWebPortal/web/views/itemDomainMachineDesign/private/itemDomainMachineDesignContextMenuContents.xhtml @@ -5,7 +5,7 @@ See LICENSE file. --> diff --git a/src/java/CdbWebPortal/web/views/itemDomainMachineDesign/private/itemDomainMachineDesignSpecificMultiEditConfigurationTabs.xhtml b/src/java/CdbWebPortal/web/views/itemDomainMachineDesign/private/itemDomainMachineDesignSpecificMultiEditConfigurationTabs.xhtml index d24742dfe..26f888484 100644 --- a/src/java/CdbWebPortal/web/views/itemDomainMachineDesign/private/itemDomainMachineDesignSpecificMultiEditConfigurationTabs.xhtml +++ b/src/java/CdbWebPortal/web/views/itemDomainMachineDesign/private/itemDomainMachineDesignSpecificMultiEditConfigurationTabs.xhtml @@ -6,13 +6,13 @@ See LICENSE file. + xmlns:h="jakarta.faces.html"> Select desired item columns to edit - + diff --git a/src/java/CdbWebPortal/web/views/itemDomainMachineDesign/private/itemDomainMachineDesignSpecificMultiEditEditableListObject.xhtml b/src/java/CdbWebPortal/web/views/itemDomainMachineDesign/private/itemDomainMachineDesignSpecificMultiEditEditableListObject.xhtml index 68cb8dc1e..fc3bef4d7 100644 --- a/src/java/CdbWebPortal/web/views/itemDomainMachineDesign/private/itemDomainMachineDesignSpecificMultiEditEditableListObject.xhtml +++ b/src/java/CdbWebPortal/web/views/itemDomainMachineDesign/private/itemDomainMachineDesignSpecificMultiEditEditableListObject.xhtml @@ -6,9 +6,9 @@ See LICENSE file. + xmlns:f="jakarta.faces.core"> @@ -25,6 +25,7 @@ See LICENSE file. NOTE: All other fields are ignored until fulfillment is acknowledged and complete. @@ -35,7 +36,7 @@ See LICENSE file. - + diff --git a/src/java/CdbWebPortal/web/views/itemDomainMachineDesign/private/itemDomainMachineDesignTemplateContextMenu.xhtml b/src/java/CdbWebPortal/web/views/itemDomainMachineDesign/private/itemDomainMachineDesignTemplateContextMenu.xhtml index 73f263787..06fc3bebf 100644 --- a/src/java/CdbWebPortal/web/views/itemDomainMachineDesign/private/itemDomainMachineDesignTemplateContextMenu.xhtml +++ b/src/java/CdbWebPortal/web/views/itemDomainMachineDesign/private/itemDomainMachineDesignTemplateContextMenu.xhtml @@ -5,7 +5,7 @@ See LICENSE file. --> diff --git a/src/java/CdbWebPortal/web/views/itemDomainMachineDesign/private/itemDomainMachineDesignTemplateContextMenuContents.xhtml b/src/java/CdbWebPortal/web/views/itemDomainMachineDesign/private/itemDomainMachineDesignTemplateContextMenuContents.xhtml index d321ee70d..8a1a63999 100644 --- a/src/java/CdbWebPortal/web/views/itemDomainMachineDesign/private/itemDomainMachineDesignTemplateContextMenuContents.xhtml +++ b/src/java/CdbWebPortal/web/views/itemDomainMachineDesign/private/itemDomainMachineDesignTemplateContextMenuContents.xhtml @@ -5,7 +5,7 @@ See LICENSE file. --> diff --git a/src/java/CdbWebPortal/web/views/itemDomainMachineDesign/private/itemDomainMachineDesignToggleAssemblyElementsButton.xhtml b/src/java/CdbWebPortal/web/views/itemDomainMachineDesign/private/itemDomainMachineDesignToggleAssemblyElementsButton.xhtml index ef95265ee..e33fdaca1 100644 --- a/src/java/CdbWebPortal/web/views/itemDomainMachineDesign/private/itemDomainMachineDesignToggleAssemblyElementsButton.xhtml +++ b/src/java/CdbWebPortal/web/views/itemDomainMachineDesign/private/itemDomainMachineDesignToggleAssemblyElementsButton.xhtml @@ -5,22 +5,22 @@ See LICENSE file. --> - + - + + diff --git a/src/java/CdbWebPortal/web/views/itemDomainMachineDesign/private/templates/listViewTemplate.xhtml b/src/java/CdbWebPortal/web/views/itemDomainMachineDesign/private/templates/listViewTemplate.xhtml index ce7fd7d9f..28c431576 100644 --- a/src/java/CdbWebPortal/web/views/itemDomainMachineDesign/private/templates/listViewTemplate.xhtml +++ b/src/java/CdbWebPortal/web/views/itemDomainMachineDesign/private/templates/listViewTemplate.xhtml @@ -5,7 +5,7 @@ See LICENSE file. --> @@ -14,20 +14,20 @@ See LICENSE file. - + - + + diff --git a/src/java/CdbWebPortal/web/views/itemDomainMachineDesign/templateList.xhtml b/src/java/CdbWebPortal/web/views/itemDomainMachineDesign/templateList.xhtml index a8717b910..f3e5ef3c9 100644 --- a/src/java/CdbWebPortal/web/views/itemDomainMachineDesign/templateList.xhtml +++ b/src/java/CdbWebPortal/web/views/itemDomainMachineDesign/templateList.xhtml @@ -5,8 +5,8 @@ See LICENSE file. --> diff --git a/src/java/CdbWebPortal/web/views/itemDomainMachineDesign/view.xhtml b/src/java/CdbWebPortal/web/views/itemDomainMachineDesign/view.xhtml index 3169f0d50..e8f78f4f6 100644 --- a/src/java/CdbWebPortal/web/views/itemDomainMachineDesign/view.xhtml +++ b/src/java/CdbWebPortal/web/views/itemDomainMachineDesign/view.xhtml @@ -5,8 +5,8 @@ See LICENSE file. --> diff --git a/src/java/CdbWebPortal/web/views/itemDomainMachineDesign/viewDeletedItem.xhtml b/src/java/CdbWebPortal/web/views/itemDomainMachineDesign/viewDeletedItem.xhtml index 5cc3e8f1e..af31f61a8 100644 --- a/src/java/CdbWebPortal/web/views/itemDomainMachineDesign/viewDeletedItem.xhtml +++ b/src/java/CdbWebPortal/web/views/itemDomainMachineDesign/viewDeletedItem.xhtml @@ -5,8 +5,8 @@ See LICENSE file. --> diff --git a/src/java/CdbWebPortal/web/views/itemDomainMachineDesignBase/private/deletedItemsList/contextMenu.xhtml b/src/java/CdbWebPortal/web/views/itemDomainMachineDesignBase/private/deletedItemsList/contextMenu.xhtml index 19f98a8d7..1f1542d79 100644 --- a/src/java/CdbWebPortal/web/views/itemDomainMachineDesignBase/private/deletedItemsList/contextMenu.xhtml +++ b/src/java/CdbWebPortal/web/views/itemDomainMachineDesignBase/private/deletedItemsList/contextMenu.xhtml @@ -5,7 +5,7 @@ See LICENSE file. --> diff --git a/src/java/CdbWebPortal/web/views/itemDomainMachineDesignBase/private/deletedItemsList/contextMenu/permanentlyRemoveMenuItem.xhtml b/src/java/CdbWebPortal/web/views/itemDomainMachineDesignBase/private/deletedItemsList/contextMenu/permanentlyRemoveMenuItem.xhtml index 9ba2c0399..ddaaf8d8c 100644 --- a/src/java/CdbWebPortal/web/views/itemDomainMachineDesignBase/private/deletedItemsList/contextMenu/permanentlyRemoveMenuItem.xhtml +++ b/src/java/CdbWebPortal/web/views/itemDomainMachineDesignBase/private/deletedItemsList/contextMenu/permanentlyRemoveMenuItem.xhtml @@ -5,7 +5,7 @@ See LICENSE file. --> + xmlns:f="jakarta.faces.core" + xmlns:h="jakarta.faces.html"> + boxStyleClass="viewTransparentBackgroundDialog viewTransparentBackgroundDialog-alert"> - +
@@ -65,9 +65,9 @@ See LICENSE file. + boxStyleClass="viewTransparentBackgroundDialog viewTransparentBackgroundDialog-alert"> - +
diff --git a/src/java/CdbWebPortal/web/views/itemDomainMachineDesignBase/private/deletedItemsList/panelGrid.xhtml b/src/java/CdbWebPortal/web/views/itemDomainMachineDesignBase/private/deletedItemsList/panelGrid.xhtml index d361e4267..f3edcb690 100644 --- a/src/java/CdbWebPortal/web/views/itemDomainMachineDesignBase/private/deletedItemsList/panelGrid.xhtml +++ b/src/java/CdbWebPortal/web/views/itemDomainMachineDesignBase/private/deletedItemsList/panelGrid.xhtml @@ -5,7 +5,7 @@ See LICENSE file. --> @@ -30,7 +30,7 @@ See LICENSE file. - + diff --git a/src/java/CdbWebPortal/web/views/itemDomainMachineDesignBase/private/deletedItemsList/templates/listViewTemplate.xhtml b/src/java/CdbWebPortal/web/views/itemDomainMachineDesignBase/private/deletedItemsList/templates/listViewTemplate.xhtml index 2073091e1..bb310f795 100644 --- a/src/java/CdbWebPortal/web/views/itemDomainMachineDesignBase/private/deletedItemsList/templates/listViewTemplate.xhtml +++ b/src/java/CdbWebPortal/web/views/itemDomainMachineDesignBase/private/deletedItemsList/templates/listViewTemplate.xhtml @@ -5,8 +5,8 @@ See LICENSE file. --> diff --git a/src/java/CdbWebPortal/web/views/itemDomainMachineDesignBase/private/deletedItemsList/treeList.xhtml b/src/java/CdbWebPortal/web/views/itemDomainMachineDesignBase/private/deletedItemsList/treeList.xhtml index cc8b58fba..3f4d4fbb2 100644 --- a/src/java/CdbWebPortal/web/views/itemDomainMachineDesignBase/private/deletedItemsList/treeList.xhtml +++ b/src/java/CdbWebPortal/web/views/itemDomainMachineDesignBase/private/deletedItemsList/treeList.xhtml @@ -5,7 +5,7 @@ See LICENSE file. --> + + + diff --git a/src/java/CdbWebPortal/web/views/itemDomainMachineDesignBase/private/itemDomainMachineDesignAssignedItemFragment.xhtml b/src/java/CdbWebPortal/web/views/itemDomainMachineDesignBase/private/itemDomainMachineDesignAssignedItemFragment.xhtml index 98de49df9..bccc8809d 100644 --- a/src/java/CdbWebPortal/web/views/itemDomainMachineDesignBase/private/itemDomainMachineDesignAssignedItemFragment.xhtml +++ b/src/java/CdbWebPortal/web/views/itemDomainMachineDesignBase/private/itemDomainMachineDesignAssignedItemFragment.xhtml @@ -5,10 +5,10 @@ See LICENSE file. --> + xmlns:f="jakarta.faces.core" + xmlns:h="jakarta.faces.html"> diff --git a/src/java/CdbWebPortal/web/views/itemDomainMachineDesignBase/private/itemDomainMachineDesignAssignedItemHistoryDialog.xhtml b/src/java/CdbWebPortal/web/views/itemDomainMachineDesignBase/private/itemDomainMachineDesignAssignedItemHistoryDialog.xhtml index 809baf336..f73084b9b 100644 --- a/src/java/CdbWebPortal/web/views/itemDomainMachineDesignBase/private/itemDomainMachineDesignAssignedItemHistoryDialog.xhtml +++ b/src/java/CdbWebPortal/web/views/itemDomainMachineDesignBase/private/itemDomainMachineDesignAssignedItemHistoryDialog.xhtml @@ -5,10 +5,10 @@ See LICENSE file. --> + xmlns:f="jakarta.faces.core" + xmlns:h="jakarta.faces.html"> + boxStyleClass="viewTransparentBackgroundDialog"> @@ -26,6 +26,7 @@ See LICENSE file. value="#{entityController.getCombinedItemElementHistory(itemElementObject)}" /> + xmlns:f="jakarta.faces.core" + xmlns:h="jakarta.faces.html"> diff --git a/src/java/CdbWebPortal/web/views/itemDomainMachineDesignBase/private/itemDomainMachineDesignCreateFromTemplateEditPanelGrid.xhtml b/src/java/CdbWebPortal/web/views/itemDomainMachineDesignBase/private/itemDomainMachineDesignCreateFromTemplateEditPanelGrid.xhtml index 74d3298e7..7e5d3ac20 100644 --- a/src/java/CdbWebPortal/web/views/itemDomainMachineDesignBase/private/itemDomainMachineDesignCreateFromTemplateEditPanelGrid.xhtml +++ b/src/java/CdbWebPortal/web/views/itemDomainMachineDesignBase/private/itemDomainMachineDesignCreateFromTemplateEditPanelGrid.xhtml @@ -9,11 +9,11 @@ See LICENSE file. + xmlns:h="jakarta.faces.html"> - diff --git a/src/java/CdbWebPortal/web/views/itemDomainMachineDesignBase/private/itemDomainMachineDesignCreateMDInventoryDialog.xhtml b/src/java/CdbWebPortal/web/views/itemDomainMachineDesignBase/private/itemDomainMachineDesignCreateMDInventoryDialog.xhtml index a50f20e26..278747774 100644 --- a/src/java/CdbWebPortal/web/views/itemDomainMachineDesignBase/private/itemDomainMachineDesignCreateMDInventoryDialog.xhtml +++ b/src/java/CdbWebPortal/web/views/itemDomainMachineDesignBase/private/itemDomainMachineDesignCreateMDInventoryDialog.xhtml @@ -5,9 +5,9 @@ See LICENSE file. --> + xmlns:f="jakarta.faces.core"> + boxStyleClass="viewTransparentBackgroundDialog"> - + + xmlns:h="jakarta.faces.html"> + paginator="true" + paginatorPosition="both"> diff --git a/src/java/CdbWebPortal/web/views/itemDomainMachineDesignBase/private/itemDomainMachineDesignDualColumnListViewAddMDFromTemplatePanel.xhtml b/src/java/CdbWebPortal/web/views/itemDomainMachineDesignBase/private/itemDomainMachineDesignDualColumnListViewAddMDFromTemplatePanel.xhtml index c02a309c0..2fdc5309e 100644 --- a/src/java/CdbWebPortal/web/views/itemDomainMachineDesignBase/private/itemDomainMachineDesignDualColumnListViewAddMDFromTemplatePanel.xhtml +++ b/src/java/CdbWebPortal/web/views/itemDomainMachineDesignBase/private/itemDomainMachineDesignDualColumnListViewAddMDFromTemplatePanel.xhtml @@ -5,9 +5,9 @@ See LICENSE file. --> + xmlns:h="jakarta.faces.html"> The selected machine element will be reused within the template. - + diff --git a/src/java/CdbWebPortal/web/views/itemDomainMachineDesignBase/private/itemDomainMachineDesignDualColumnListViewAddMDMoveExistingPanel.xhtml b/src/java/CdbWebPortal/web/views/itemDomainMachineDesignBase/private/itemDomainMachineDesignDualColumnListViewAddMDMoveExistingPanel.xhtml index 8bd661545..fe56ddd76 100644 --- a/src/java/CdbWebPortal/web/views/itemDomainMachineDesignBase/private/itemDomainMachineDesignDualColumnListViewAddMDMoveExistingPanel.xhtml +++ b/src/java/CdbWebPortal/web/views/itemDomainMachineDesignBase/private/itemDomainMachineDesignDualColumnListViewAddMDMoveExistingPanel.xhtml @@ -5,7 +5,7 @@ See LICENSE file. --> diff --git a/src/java/CdbWebPortal/web/views/itemDomainMachineDesignBase/private/itemDomainMachineDesignDualColumnListViewAddMDPlaceholderPanel.xhtml b/src/java/CdbWebPortal/web/views/itemDomainMachineDesignBase/private/itemDomainMachineDesignDualColumnListViewAddMDPlaceholderPanel.xhtml index 120d74afb..dfd4a584b 100644 --- a/src/java/CdbWebPortal/web/views/itemDomainMachineDesignBase/private/itemDomainMachineDesignDualColumnListViewAddMDPlaceholderPanel.xhtml +++ b/src/java/CdbWebPortal/web/views/itemDomainMachineDesignBase/private/itemDomainMachineDesignDualColumnListViewAddMDPlaceholderPanel.xhtml @@ -5,7 +5,7 @@ See LICENSE file. --> @@ -13,7 +13,7 @@ See LICENSE file. id="addMachineDesignPlaceholderItem" rendered="#{entityController.displayAddMDPlaceholderListConfigurationPanel}"> - + diff --git a/src/java/CdbWebPortal/web/views/itemDomainMachineDesignBase/private/itemDomainMachineDesignDualColumnListViewAssignCatalogPanel.xhtml b/src/java/CdbWebPortal/web/views/itemDomainMachineDesignBase/private/itemDomainMachineDesignDualColumnListViewAssignCatalogPanel.xhtml index 38f7916e6..5d1ff0fed 100644 --- a/src/java/CdbWebPortal/web/views/itemDomainMachineDesignBase/private/itemDomainMachineDesignDualColumnListViewAssignCatalogPanel.xhtml +++ b/src/java/CdbWebPortal/web/views/itemDomainMachineDesignBase/private/itemDomainMachineDesignDualColumnListViewAssignCatalogPanel.xhtml @@ -5,17 +5,17 @@ See LICENSE file. --> + xmlns:h="jakarta.faces.html" + xmlns:f="jakarta.faces.core"> - + diff --git a/src/java/CdbWebPortal/web/views/itemDomainMachineDesignBase/private/itemDomainMachineDesignDualColumnListViewAssignInventoryPanel.xhtml b/src/java/CdbWebPortal/web/views/itemDomainMachineDesignBase/private/itemDomainMachineDesignDualColumnListViewAssignInventoryPanel.xhtml index 949d14fd1..99e174100 100644 --- a/src/java/CdbWebPortal/web/views/itemDomainMachineDesignBase/private/itemDomainMachineDesignDualColumnListViewAssignInventoryPanel.xhtml +++ b/src/java/CdbWebPortal/web/views/itemDomainMachineDesignBase/private/itemDomainMachineDesignDualColumnListViewAssignInventoryPanel.xhtml @@ -5,7 +5,7 @@ See LICENSE file. --> diff --git a/src/java/CdbWebPortal/web/views/itemDomainMachineDesignBase/private/itemDomainMachineDesignDualColumnListViewAttachTemplatePanel.xhtml b/src/java/CdbWebPortal/web/views/itemDomainMachineDesignBase/private/itemDomainMachineDesignDualColumnListViewAttachTemplatePanel.xhtml index 33b5947fe..cb7881011 100644 --- a/src/java/CdbWebPortal/web/views/itemDomainMachineDesignBase/private/itemDomainMachineDesignDualColumnListViewAttachTemplatePanel.xhtml +++ b/src/java/CdbWebPortal/web/views/itemDomainMachineDesignBase/private/itemDomainMachineDesignDualColumnListViewAttachTemplatePanel.xhtml @@ -5,9 +5,9 @@ See LICENSE file. --> + xmlns:h="jakarta.faces.html"> The selected machine element will be reused within the template. - + diff --git a/src/java/CdbWebPortal/web/views/itemDomainMachineDesignBase/private/itemDomainMachineDesignDualColumnListViewCancelButton.xhtml b/src/java/CdbWebPortal/web/views/itemDomainMachineDesignBase/private/itemDomainMachineDesignDualColumnListViewCancelButton.xhtml index 4cf671297..82958f5cb 100644 --- a/src/java/CdbWebPortal/web/views/itemDomainMachineDesignBase/private/itemDomainMachineDesignDualColumnListViewCancelButton.xhtml +++ b/src/java/CdbWebPortal/web/views/itemDomainMachineDesignBase/private/itemDomainMachineDesignDualColumnListViewCancelButton.xhtml @@ -5,7 +5,7 @@ See LICENSE file. --> + xmlns:f="jakarta.faces.core"> + boxStyleClass="viewTransparentBackgroundDialog"> You are about to clear the represented part name: #{entityController.current.representsCatalogElement.name} diff --git a/src/java/CdbWebPortal/web/views/itemDomainMachineDesignBase/private/itemDomainMachineDesignDualColumnListViewDetailsPanel.xhtml b/src/java/CdbWebPortal/web/views/itemDomainMachineDesignBase/private/itemDomainMachineDesignDualColumnListViewDetailsPanel.xhtml index 10d96f2e3..e69448235 100644 --- a/src/java/CdbWebPortal/web/views/itemDomainMachineDesignBase/private/itemDomainMachineDesignDualColumnListViewDetailsPanel.xhtml +++ b/src/java/CdbWebPortal/web/views/itemDomainMachineDesignBase/private/itemDomainMachineDesignDualColumnListViewDetailsPanel.xhtml @@ -5,7 +5,7 @@ See LICENSE file. --> \ No newline at end of file diff --git a/src/java/CdbWebPortal/web/views/itemDomainMachineDesignBase/private/itemDomainMachineDesignDualColumnListViewPanelGrid.xhtml b/src/java/CdbWebPortal/web/views/itemDomainMachineDesignBase/private/itemDomainMachineDesignDualColumnListViewPanelGrid.xhtml index 5d3e221b1..00d9cb66a 100644 --- a/src/java/CdbWebPortal/web/views/itemDomainMachineDesignBase/private/itemDomainMachineDesignDualColumnListViewPanelGrid.xhtml +++ b/src/java/CdbWebPortal/web/views/itemDomainMachineDesignBase/private/itemDomainMachineDesignDualColumnListViewPanelGrid.xhtml @@ -5,7 +5,7 @@ See LICENSE file. --> \ No newline at end of file diff --git a/src/java/CdbWebPortal/web/views/itemDomainMachineDesignBase/private/itemDomainMachineDesignDualColumnListViewSetRepresentingElementDialog.xhtml b/src/java/CdbWebPortal/web/views/itemDomainMachineDesignBase/private/itemDomainMachineDesignDualColumnListViewSetRepresentingElementDialog.xhtml index 950f9b4b0..cfa2312cd 100644 --- a/src/java/CdbWebPortal/web/views/itemDomainMachineDesignBase/private/itemDomainMachineDesignDualColumnListViewSetRepresentingElementDialog.xhtml +++ b/src/java/CdbWebPortal/web/views/itemDomainMachineDesignBase/private/itemDomainMachineDesignDualColumnListViewSetRepresentingElementDialog.xhtml @@ -5,16 +5,16 @@ See LICENSE file. --> + xmlns:f="jakarta.faces.core" + xmlns:h="jakarta.faces.html"> + boxStyleClass="viewTransparentBackgroundDialog"> - diff --git a/src/java/CdbWebPortal/web/views/itemDomainMachineDesignBase/private/itemDomainMachineDesignDualColumnListViewTreeBlockUI.xhtml b/src/java/CdbWebPortal/web/views/itemDomainMachineDesignBase/private/itemDomainMachineDesignDualColumnListViewTreeBlockUI.xhtml index 4a681a6a5..3319863c8 100644 --- a/src/java/CdbWebPortal/web/views/itemDomainMachineDesignBase/private/itemDomainMachineDesignDualColumnListViewTreeBlockUI.xhtml +++ b/src/java/CdbWebPortal/web/views/itemDomainMachineDesignBase/private/itemDomainMachineDesignDualColumnListViewTreeBlockUI.xhtml @@ -5,10 +5,10 @@ See LICENSE file. --> + xmlns:h="jakarta.faces.html" + xmlns:f="jakarta.faces.core"> diff --git a/src/java/CdbWebPortal/web/views/itemDomainMachineDesignBase/private/itemDomainMachineDesignDualColumnListViewTreeContextMenu.xhtml b/src/java/CdbWebPortal/web/views/itemDomainMachineDesignBase/private/itemDomainMachineDesignDualColumnListViewTreeContextMenu.xhtml index 76d0c9450..86b17425a 100644 --- a/src/java/CdbWebPortal/web/views/itemDomainMachineDesignBase/private/itemDomainMachineDesignDualColumnListViewTreeContextMenu.xhtml +++ b/src/java/CdbWebPortal/web/views/itemDomainMachineDesignBase/private/itemDomainMachineDesignDualColumnListViewTreeContextMenu.xhtml @@ -5,7 +5,7 @@ See LICENSE file. --> diff --git a/src/java/CdbWebPortal/web/views/itemDomainMachineDesignBase/private/itemDomainMachineDesignDualColumnListViewTreeContextMenuContents.xhtml b/src/java/CdbWebPortal/web/views/itemDomainMachineDesignBase/private/itemDomainMachineDesignDualColumnListViewTreeContextMenuContents.xhtml index e856e9bb4..9d2d8e050 100644 --- a/src/java/CdbWebPortal/web/views/itemDomainMachineDesignBase/private/itemDomainMachineDesignDualColumnListViewTreeContextMenuContents.xhtml +++ b/src/java/CdbWebPortal/web/views/itemDomainMachineDesignBase/private/itemDomainMachineDesignDualColumnListViewTreeContextMenuContents.xhtml @@ -5,7 +5,7 @@ See LICENSE file. --> diff --git a/src/java/CdbWebPortal/web/views/itemDomainMachineDesignBase/private/itemDomainMachineDesignDualColumnListViewTreeContextMenuMoveToTrashDialog.xhtml b/src/java/CdbWebPortal/web/views/itemDomainMachineDesignBase/private/itemDomainMachineDesignDualColumnListViewTreeContextMenuMoveToTrashDialog.xhtml index 1226bb77a..7c6c50252 100644 --- a/src/java/CdbWebPortal/web/views/itemDomainMachineDesignBase/private/itemDomainMachineDesignDualColumnListViewTreeContextMenuMoveToTrashDialog.xhtml +++ b/src/java/CdbWebPortal/web/views/itemDomainMachineDesignBase/private/itemDomainMachineDesignDualColumnListViewTreeContextMenuMoveToTrashDialog.xhtml @@ -5,18 +5,18 @@ See LICENSE file. --> + xmlns:f="jakarta.faces.core" + xmlns:h="jakarta.faces.html"> + boxStyleClass="viewTransparentBackgroundDialog viewTransparentBackgroundDialog-alert"> - +
diff --git a/src/java/CdbWebPortal/web/views/itemDomainMachineDesignBase/private/itemDomainMachineDesignDualColumnListViewTreeContextMenuSupport.xhtml b/src/java/CdbWebPortal/web/views/itemDomainMachineDesignBase/private/itemDomainMachineDesignDualColumnListViewTreeContextMenuSupport.xhtml index 209b5ade6..2d7764c23 100644 --- a/src/java/CdbWebPortal/web/views/itemDomainMachineDesignBase/private/itemDomainMachineDesignDualColumnListViewTreeContextMenuSupport.xhtml +++ b/src/java/CdbWebPortal/web/views/itemDomainMachineDesignBase/private/itemDomainMachineDesignDualColumnListViewTreeContextMenuSupport.xhtml @@ -5,10 +5,10 @@ See LICENSE file. --> + xmlns:f="jakarta.faces.core" + xmlns:h="jakarta.faces.html"> diff --git a/src/java/CdbWebPortal/web/views/itemDomainMachineDesignBase/private/itemDomainMachineDesignDualColumnListViewTreeContextMenuUpdatePermissionsDialog.xhtml b/src/java/CdbWebPortal/web/views/itemDomainMachineDesignBase/private/itemDomainMachineDesignDualColumnListViewTreeContextMenuUpdatePermissionsDialog.xhtml index 824c22427..5d45ba809 100644 --- a/src/java/CdbWebPortal/web/views/itemDomainMachineDesignBase/private/itemDomainMachineDesignDualColumnListViewTreeContextMenuUpdatePermissionsDialog.xhtml +++ b/src/java/CdbWebPortal/web/views/itemDomainMachineDesignBase/private/itemDomainMachineDesignDualColumnListViewTreeContextMenuUpdatePermissionsDialog.xhtml @@ -5,16 +5,16 @@ See LICENSE file. --> + xmlns:f="jakarta.faces.core" + xmlns:h="jakarta.faces.html"> + boxStyleClass="viewTransparentBackgroundDialog viewTransparentBackgroundDialog-alert"> @@ -22,7 +22,7 @@ See LICENSE file.
- + diff --git a/src/java/CdbWebPortal/web/views/itemDomainMachineDesignBase/private/itemDomainMachineDesignDualColumnListViewTreeList.xhtml b/src/java/CdbWebPortal/web/views/itemDomainMachineDesignBase/private/itemDomainMachineDesignDualColumnListViewTreeList.xhtml index f00bc76d8..831f08c50 100644 --- a/src/java/CdbWebPortal/web/views/itemDomainMachineDesignBase/private/itemDomainMachineDesignDualColumnListViewTreeList.xhtml +++ b/src/java/CdbWebPortal/web/views/itemDomainMachineDesignBase/private/itemDomainMachineDesignDualColumnListViewTreeList.xhtml @@ -5,7 +5,7 @@ See LICENSE file. --> diff --git a/src/java/CdbWebPortal/web/views/itemDomainMachineDesignBase/private/itemDomainMachineDesignEditPanelGrid.xhtml b/src/java/CdbWebPortal/web/views/itemDomainMachineDesignBase/private/itemDomainMachineDesignEditPanelGrid.xhtml index 687098ea2..52f80e07d 100644 --- a/src/java/CdbWebPortal/web/views/itemDomainMachineDesignBase/private/itemDomainMachineDesignEditPanelGrid.xhtml +++ b/src/java/CdbWebPortal/web/views/itemDomainMachineDesignBase/private/itemDomainMachineDesignEditPanelGrid.xhtml @@ -5,7 +5,7 @@ See LICENSE file. --> diff --git a/src/java/CdbWebPortal/web/views/itemDomainMachineDesignBase/private/itemDomainMachineDesignInventoryInstallStateDialog.xhtml b/src/java/CdbWebPortal/web/views/itemDomainMachineDesignBase/private/itemDomainMachineDesignInventoryInstallStateDialog.xhtml index d43825367..a99575d26 100644 --- a/src/java/CdbWebPortal/web/views/itemDomainMachineDesignBase/private/itemDomainMachineDesignInventoryInstallStateDialog.xhtml +++ b/src/java/CdbWebPortal/web/views/itemDomainMachineDesignBase/private/itemDomainMachineDesignInventoryInstallStateDialog.xhtml @@ -5,20 +5,20 @@ See LICENSE file. --> + xmlns:h="jakarta.faces.html" + xmlns:f="jakarta.faces.core"> - + diff --git a/src/java/CdbWebPortal/web/views/itemDomainMachineDesignBase/private/itemDomainMachineDesignInventoryInstallStateSelectBooleanButton.xhtml b/src/java/CdbWebPortal/web/views/itemDomainMachineDesignBase/private/itemDomainMachineDesignInventoryInstallStateSelectBooleanButton.xhtml index 3171a71bb..99c804302 100644 --- a/src/java/CdbWebPortal/web/views/itemDomainMachineDesignBase/private/itemDomainMachineDesignInventoryInstallStateSelectBooleanButton.xhtml +++ b/src/java/CdbWebPortal/web/views/itemDomainMachineDesignBase/private/itemDomainMachineDesignInventoryInstallStateSelectBooleanButton.xhtml @@ -5,15 +5,12 @@ See LICENSE file. --> + xmlns:h="jakarta.faces.html"> - - + + Indicates if the item is "installed" or "planned" for this machine node.
@@ -22,6 +19,10 @@ See LICENSE file.
Planned
Item stays in its location but is marked to be installed on machine node in the future.
-
+ +
\ No newline at end of file diff --git a/src/java/CdbWebPortal/web/views/itemDomainMachineDesignBase/private/itemDomainMachineDesignItemDetailsEditObject.xhtml b/src/java/CdbWebPortal/web/views/itemDomainMachineDesignBase/private/itemDomainMachineDesignItemDetailsEditObject.xhtml index 40ded164a..8948f2187 100644 --- a/src/java/CdbWebPortal/web/views/itemDomainMachineDesignBase/private/itemDomainMachineDesignItemDetailsEditObject.xhtml +++ b/src/java/CdbWebPortal/web/views/itemDomainMachineDesignBase/private/itemDomainMachineDesignItemDetailsEditObject.xhtml @@ -5,9 +5,9 @@ See LICENSE file. --> + xmlns:h="jakarta.faces.html"> diff --git a/src/java/CdbWebPortal/web/views/itemDomainMachineDesignBase/private/itemDomainMachineDesignItemElementSelectInventoryDataTable.xhtml b/src/java/CdbWebPortal/web/views/itemDomainMachineDesignBase/private/itemDomainMachineDesignItemElementSelectInventoryDataTable.xhtml index 09b7069b5..62f6a9033 100644 --- a/src/java/CdbWebPortal/web/views/itemDomainMachineDesignBase/private/itemDomainMachineDesignItemElementSelectInventoryDataTable.xhtml +++ b/src/java/CdbWebPortal/web/views/itemDomainMachineDesignBase/private/itemDomainMachineDesignItemElementSelectInventoryDataTable.xhtml @@ -5,7 +5,7 @@ See LICENSE file. --> diff --git a/src/java/CdbWebPortal/web/views/itemDomainMachineDesignBase/private/itemDomainMachineDesignJavascriptFunctionality.xhtml b/src/java/CdbWebPortal/web/views/itemDomainMachineDesignBase/private/itemDomainMachineDesignJavascriptFunctionality.xhtml index 2f1500d04..c70996fc2 100644 --- a/src/java/CdbWebPortal/web/views/itemDomainMachineDesignBase/private/itemDomainMachineDesignJavascriptFunctionality.xhtml +++ b/src/java/CdbWebPortal/web/views/itemDomainMachineDesignBase/private/itemDomainMachineDesignJavascriptFunctionality.xhtml @@ -5,9 +5,9 @@ See LICENSE file. --> + xmlns:f="jakarta.faces.core"> diff --git a/src/java/CdbWebPortal/web/views/itemDomainMachineDesignBase/private/itemDomainMachineDesignKeyboardShortcutDialog.xhtml b/src/java/CdbWebPortal/web/views/itemDomainMachineDesignBase/private/itemDomainMachineDesignKeyboardShortcutDialog.xhtml index 12669bca6..09bd420a5 100644 --- a/src/java/CdbWebPortal/web/views/itemDomainMachineDesignBase/private/itemDomainMachineDesignKeyboardShortcutDialog.xhtml +++ b/src/java/CdbWebPortal/web/views/itemDomainMachineDesignBase/private/itemDomainMachineDesignKeyboardShortcutDialog.xhtml @@ -5,10 +5,10 @@ See LICENSE file. --> + xmlns:f="jakarta.faces.core" + xmlns:h="jakarta.faces.html"> + boxStyleClass="viewTransparentBackgroundDialog"> - + diff --git a/src/java/CdbWebPortal/web/views/itemDomainMachineDesignBase/private/itemDomainMachineDesignListCustomizeDisplayDialog.xhtml b/src/java/CdbWebPortal/web/views/itemDomainMachineDesignBase/private/itemDomainMachineDesignListCustomizeDisplayDialog.xhtml index 25c40df9c..77d37ae92 100644 --- a/src/java/CdbWebPortal/web/views/itemDomainMachineDesignBase/private/itemDomainMachineDesignListCustomizeDisplayDialog.xhtml +++ b/src/java/CdbWebPortal/web/views/itemDomainMachineDesignBase/private/itemDomainMachineDesignListCustomizeDisplayDialog.xhtml @@ -5,8 +5,8 @@ See LICENSE file. --> @@ -41,7 +41,7 @@ See LICENSE file. - + diff --git a/src/java/CdbWebPortal/web/views/itemDomainMachineDesignBase/private/itemDomainMachineDesignPanelGrid.xhtml b/src/java/CdbWebPortal/web/views/itemDomainMachineDesignBase/private/itemDomainMachineDesignPanelGrid.xhtml index a809da187..fb8bd18f2 100644 --- a/src/java/CdbWebPortal/web/views/itemDomainMachineDesignBase/private/itemDomainMachineDesignPanelGrid.xhtml +++ b/src/java/CdbWebPortal/web/views/itemDomainMachineDesignBase/private/itemDomainMachineDesignPanelGrid.xhtml @@ -5,7 +5,7 @@ See LICENSE file. --> diff --git a/src/java/CdbWebPortal/web/views/itemDomainMachineDesignBase/private/itemDomainMachineDesignReorderOverlayPanel.xhtml b/src/java/CdbWebPortal/web/views/itemDomainMachineDesignBase/private/itemDomainMachineDesignReorderOverlayPanel.xhtml index a949e79cb..eca565d9a 100644 --- a/src/java/CdbWebPortal/web/views/itemDomainMachineDesignBase/private/itemDomainMachineDesignReorderOverlayPanel.xhtml +++ b/src/java/CdbWebPortal/web/views/itemDomainMachineDesignBase/private/itemDomainMachineDesignReorderOverlayPanel.xhtml @@ -5,7 +5,7 @@ See LICENSE file. --> diff --git a/src/java/CdbWebPortal/web/views/itemDomainMachineDesignBase/private/itemDomainMachineDesignReorderOverlayPanelDataTable.xhtml b/src/java/CdbWebPortal/web/views/itemDomainMachineDesignBase/private/itemDomainMachineDesignReorderOverlayPanelDataTable.xhtml index 8b80e9661..abafd2f1e 100644 --- a/src/java/CdbWebPortal/web/views/itemDomainMachineDesignBase/private/itemDomainMachineDesignReorderOverlayPanelDataTable.xhtml +++ b/src/java/CdbWebPortal/web/views/itemDomainMachineDesignBase/private/itemDomainMachineDesignReorderOverlayPanelDataTable.xhtml @@ -4,12 +4,13 @@ See LICENSE file. --> + xmlns:f="jakarta.faces.core"> + boxStyleClass="viewTransparentBackgroundDialog"> - + diff --git a/src/java/CdbWebPortal/web/views/itemDomainMachineDesignBase/private/itemDomainMachineDesignTemplateUnassignDialog.xhtml b/src/java/CdbWebPortal/web/views/itemDomainMachineDesignBase/private/itemDomainMachineDesignTemplateUnassignDialog.xhtml index 861e16416..765962287 100644 --- a/src/java/CdbWebPortal/web/views/itemDomainMachineDesignBase/private/itemDomainMachineDesignTemplateUnassignDialog.xhtml +++ b/src/java/CdbWebPortal/web/views/itemDomainMachineDesignBase/private/itemDomainMachineDesignTemplateUnassignDialog.xhtml @@ -5,10 +5,10 @@ See LICENSE file. --> + xmlns:f="jakarta.faces.core" + xmlns:h="jakarta.faces.html"> + boxStyleClass="viewTransparentBackgroundDialog"> Update selection of machine nodes to unassign from template. diff --git a/src/java/CdbWebPortal/web/views/itemDomainMachineDesignBase/private/itemDomainMachineDesignTemplateVarsForEach.xhtml b/src/java/CdbWebPortal/web/views/itemDomainMachineDesignBase/private/itemDomainMachineDesignTemplateVarsForEach.xhtml index 3c34476db..bc40a27c9 100644 --- a/src/java/CdbWebPortal/web/views/itemDomainMachineDesignBase/private/itemDomainMachineDesignTemplateVarsForEach.xhtml +++ b/src/java/CdbWebPortal/web/views/itemDomainMachineDesignBase/private/itemDomainMachineDesignTemplateVarsForEach.xhtml @@ -5,9 +5,9 @@ See LICENSE file. --> diff --git a/src/java/CdbWebPortal/web/views/itemDomainMachineDesignBase/private/itemDomainMachineDesignTreeSelection.xhtml b/src/java/CdbWebPortal/web/views/itemDomainMachineDesignBase/private/itemDomainMachineDesignTreeSelection.xhtml index f28e2f6b4..4ce56de81 100644 --- a/src/java/CdbWebPortal/web/views/itemDomainMachineDesignBase/private/itemDomainMachineDesignTreeSelection.xhtml +++ b/src/java/CdbWebPortal/web/views/itemDomainMachineDesignBase/private/itemDomainMachineDesignTreeSelection.xhtml @@ -5,7 +5,7 @@ See LICENSE file. --> + xmlns:f="jakarta.faces.core"> diff --git a/src/java/CdbWebPortal/web/views/itemDomainMachineDesignBase/private/itemDomainMachineDesignViewMdSpecificSupport.xhtml b/src/java/CdbWebPortal/web/views/itemDomainMachineDesignBase/private/itemDomainMachineDesignViewMdSpecificSupport.xhtml index 5c4a82f23..3ddbdef0a 100644 --- a/src/java/CdbWebPortal/web/views/itemDomainMachineDesignBase/private/itemDomainMachineDesignViewMdSpecificSupport.xhtml +++ b/src/java/CdbWebPortal/web/views/itemDomainMachineDesignBase/private/itemDomainMachineDesignViewMdSpecificSupport.xhtml @@ -5,7 +5,7 @@ See LICENSE file. --> + xmlns:ui="jakarta.faces.facelets"> diff --git a/src/java/CdbWebPortal/web/views/itemDomainMachineDesignBase/private/itemDomainMachineDesignViewSupport.xhtml b/src/java/CdbWebPortal/web/views/itemDomainMachineDesignBase/private/itemDomainMachineDesignViewSupport.xhtml index cea796830..dc05a2c4c 100644 --- a/src/java/CdbWebPortal/web/views/itemDomainMachineDesignBase/private/itemDomainMachineDesignViewSupport.xhtml +++ b/src/java/CdbWebPortal/web/views/itemDomainMachineDesignBase/private/itemDomainMachineDesignViewSupport.xhtml @@ -5,7 +5,7 @@ See LICENSE file. --> + xmlns:ui="jakarta.faces.facelets"> diff --git a/src/java/CdbWebPortal/web/views/itemDomainMachineDesignBase/private/machineDesignContextMenu/addCatalogItemContextMenuItem.xhtml b/src/java/CdbWebPortal/web/views/itemDomainMachineDesignBase/private/machineDesignContextMenu/addCatalogItemContextMenuItem.xhtml index 0c2eae68c..9e342ec57 100644 --- a/src/java/CdbWebPortal/web/views/itemDomainMachineDesignBase/private/machineDesignContextMenu/addCatalogItemContextMenuItem.xhtml +++ b/src/java/CdbWebPortal/web/views/itemDomainMachineDesignBase/private/machineDesignContextMenu/addCatalogItemContextMenuItem.xhtml @@ -5,7 +5,7 @@ See LICENSE file. --> diff --git a/src/java/CdbWebPortal/web/views/itemDomainMachineDesignBase/private/machineDesignContextMenu/startMultiEditForChildren.xhtml b/src/java/CdbWebPortal/web/views/itemDomainMachineDesignBase/private/machineDesignContextMenu/startMultiEditForChildren.xhtml index a7edf2a0d..216eea0f5 100644 --- a/src/java/CdbWebPortal/web/views/itemDomainMachineDesignBase/private/machineDesignContextMenu/startMultiEditForChildren.xhtml +++ b/src/java/CdbWebPortal/web/views/itemDomainMachineDesignBase/private/machineDesignContextMenu/startMultiEditForChildren.xhtml @@ -5,7 +5,7 @@ See LICENSE file. --> + xmlns:h="jakarta.faces.html"> diff --git a/src/java/CdbWebPortal/web/views/itemDomainMachineDesignBase/private/templates/itemDomainMachineDesignDualColumnListViewDetailsPanelTemplate.xhtml b/src/java/CdbWebPortal/web/views/itemDomainMachineDesignBase/private/templates/itemDomainMachineDesignDualColumnListViewDetailsPanelTemplate.xhtml index 92634170a..ed40c00eb 100644 --- a/src/java/CdbWebPortal/web/views/itemDomainMachineDesignBase/private/templates/itemDomainMachineDesignDualColumnListViewDetailsPanelTemplate.xhtml +++ b/src/java/CdbWebPortal/web/views/itemDomainMachineDesignBase/private/templates/itemDomainMachineDesignDualColumnListViewDetailsPanelTemplate.xhtml @@ -5,7 +5,7 @@ See LICENSE file. --> diff --git a/src/java/CdbWebPortal/web/views/itemDomainMachineDesignBase/private/templates/itemDomainMachineDesignDualColumnListViewPanelGridTemplate.xhtml b/src/java/CdbWebPortal/web/views/itemDomainMachineDesignBase/private/templates/itemDomainMachineDesignDualColumnListViewPanelGridTemplate.xhtml index fb2824144..632ec63e7 100644 --- a/src/java/CdbWebPortal/web/views/itemDomainMachineDesignBase/private/templates/itemDomainMachineDesignDualColumnListViewPanelGridTemplate.xhtml +++ b/src/java/CdbWebPortal/web/views/itemDomainMachineDesignBase/private/templates/itemDomainMachineDesignDualColumnListViewPanelGridTemplate.xhtml @@ -5,7 +5,7 @@ See LICENSE file. --> diff --git a/src/java/CdbWebPortal/web/views/itemDomainMachineDesignBase/private/templates/itemDomainMachineDesignDualColumnListViewTreeContextMenuContentsTemplate.xhtml b/src/java/CdbWebPortal/web/views/itemDomainMachineDesignBase/private/templates/itemDomainMachineDesignDualColumnListViewTreeContextMenuContentsTemplate.xhtml index a8398d851..46d9cc8f8 100644 --- a/src/java/CdbWebPortal/web/views/itemDomainMachineDesignBase/private/templates/itemDomainMachineDesignDualColumnListViewTreeContextMenuContentsTemplate.xhtml +++ b/src/java/CdbWebPortal/web/views/itemDomainMachineDesignBase/private/templates/itemDomainMachineDesignDualColumnListViewTreeContextMenuContentsTemplate.xhtml @@ -5,7 +5,7 @@ See LICENSE file. --> diff --git a/src/java/CdbWebPortal/web/views/itemDomainMachineDesignBase/private/templates/itemDomainMachineDesignDualColumnListViewTreeListTemplate.xhtml b/src/java/CdbWebPortal/web/views/itemDomainMachineDesignBase/private/templates/itemDomainMachineDesignDualColumnListViewTreeListTemplate.xhtml index b26603e4c..a5974f9dd 100644 --- a/src/java/CdbWebPortal/web/views/itemDomainMachineDesignBase/private/templates/itemDomainMachineDesignDualColumnListViewTreeListTemplate.xhtml +++ b/src/java/CdbWebPortal/web/views/itemDomainMachineDesignBase/private/templates/itemDomainMachineDesignDualColumnListViewTreeListTemplate.xhtml @@ -5,7 +5,7 @@ See LICENSE file. --> + + + + + diff --git a/src/java/CdbWebPortal/web/views/itemDomainMachineDesignBase/private/templates/itemDomainMachineDesignListObjectTemplate.xhtml b/src/java/CdbWebPortal/web/views/itemDomainMachineDesignBase/private/templates/itemDomainMachineDesignListObjectTemplate.xhtml index 74d0bb9e5..c0cc16da2 100644 --- a/src/java/CdbWebPortal/web/views/itemDomainMachineDesignBase/private/templates/itemDomainMachineDesignListObjectTemplate.xhtml +++ b/src/java/CdbWebPortal/web/views/itemDomainMachineDesignBase/private/templates/itemDomainMachineDesignListObjectTemplate.xhtml @@ -5,10 +5,10 @@ See LICENSE file. --> + xmlns:h="jakarta.faces.html" + xmlns:f="jakarta.faces.core"> diff --git a/src/java/CdbWebPortal/web/views/itemDomainMachineDesignBase/private/templates/itemDomainMachineDesignPanelGridTemplate.xhtml b/src/java/CdbWebPortal/web/views/itemDomainMachineDesignBase/private/templates/itemDomainMachineDesignPanelGridTemplate.xhtml index ac54feade..b75845643 100644 --- a/src/java/CdbWebPortal/web/views/itemDomainMachineDesignBase/private/templates/itemDomainMachineDesignPanelGridTemplate.xhtml +++ b/src/java/CdbWebPortal/web/views/itemDomainMachineDesignBase/private/templates/itemDomainMachineDesignPanelGridTemplate.xhtml @@ -5,8 +5,8 @@ See LICENSE file. --> diff --git a/src/java/CdbWebPortal/web/views/itemDomainMachineDesignBase/private/templates/itemDomainMachineDesignSelectMachinePanelTemplate.xhtml b/src/java/CdbWebPortal/web/views/itemDomainMachineDesignBase/private/templates/itemDomainMachineDesignSelectMachinePanelTemplate.xhtml index dfb7db919..879e3997d 100644 --- a/src/java/CdbWebPortal/web/views/itemDomainMachineDesignBase/private/templates/itemDomainMachineDesignSelectMachinePanelTemplate.xhtml +++ b/src/java/CdbWebPortal/web/views/itemDomainMachineDesignBase/private/templates/itemDomainMachineDesignSelectMachinePanelTemplate.xhtml @@ -5,7 +5,7 @@ See LICENSE file. --> diff --git a/src/java/CdbWebPortal/web/views/itemDomainMachineDesignBase/private/templates/itemDomainMachineDesignTreeTableTemplate.xhtml b/src/java/CdbWebPortal/web/views/itemDomainMachineDesignBase/private/templates/itemDomainMachineDesignTreeTableTemplate.xhtml index 7f53f9c17..3e42c36b8 100644 --- a/src/java/CdbWebPortal/web/views/itemDomainMachineDesignBase/private/templates/itemDomainMachineDesignTreeTableTemplate.xhtml +++ b/src/java/CdbWebPortal/web/views/itemDomainMachineDesignBase/private/templates/itemDomainMachineDesignTreeTableTemplate.xhtml @@ -5,9 +5,9 @@ See LICENSE file. --> + xmlns:f="jakarta.faces.core"> diff --git a/src/java/CdbWebPortal/web/views/itemDomainMachineDesignBase/private/templates/itemDomainMachineDesignViewTemplate.xhtml b/src/java/CdbWebPortal/web/views/itemDomainMachineDesignBase/private/templates/itemDomainMachineDesignViewTemplate.xhtml index 612df7131..88a7aa815 100644 --- a/src/java/CdbWebPortal/web/views/itemDomainMachineDesignBase/private/templates/itemDomainMachineDesignViewTemplate.xhtml +++ b/src/java/CdbWebPortal/web/views/itemDomainMachineDesignBase/private/templates/itemDomainMachineDesignViewTemplate.xhtml @@ -5,7 +5,7 @@ See LICENSE file. --> diff --git a/src/java/CdbWebPortal/web/views/itemDomainMachineDesignBase/private/templates/itemDomainMachineListViewTemplate.xhtml b/src/java/CdbWebPortal/web/views/itemDomainMachineDesignBase/private/templates/itemDomainMachineListViewTemplate.xhtml index 29b2bc8d5..d2c7e5d8e 100644 --- a/src/java/CdbWebPortal/web/views/itemDomainMachineDesignBase/private/templates/itemDomainMachineListViewTemplate.xhtml +++ b/src/java/CdbWebPortal/web/views/itemDomainMachineDesignBase/private/templates/itemDomainMachineListViewTemplate.xhtml @@ -5,11 +5,14 @@ See LICENSE file. --> + + + - - + - + onstart="PF('loadingDialog').show()"/> + + diff --git a/src/java/CdbWebPortal/web/views/itemDomainMachineDesignControl/list.xhtml b/src/java/CdbWebPortal/web/views/itemDomainMachineDesignControl/list.xhtml index 27e391f22..162757143 100644 --- a/src/java/CdbWebPortal/web/views/itemDomainMachineDesignControl/list.xhtml +++ b/src/java/CdbWebPortal/web/views/itemDomainMachineDesignControl/list.xhtml @@ -5,8 +5,8 @@ See LICENSE file. --> diff --git a/src/java/CdbWebPortal/web/views/itemDomainMachineDesignControl/private/itemDomainMachineDesignControlContextMenu.xhtml b/src/java/CdbWebPortal/web/views/itemDomainMachineDesignControl/private/itemDomainMachineDesignControlContextMenu.xhtml index 547ae9e15..f666bfdb5 100644 --- a/src/java/CdbWebPortal/web/views/itemDomainMachineDesignControl/private/itemDomainMachineDesignControlContextMenu.xhtml +++ b/src/java/CdbWebPortal/web/views/itemDomainMachineDesignControl/private/itemDomainMachineDesignControlContextMenu.xhtml @@ -5,7 +5,7 @@ See LICENSE file. --> diff --git a/src/java/CdbWebPortal/web/views/itemDomainMachineDesignControl/private/itemDomainMachineDesignControlInterfaceToParentSelectOneMenu.xhtml b/src/java/CdbWebPortal/web/views/itemDomainMachineDesignControl/private/itemDomainMachineDesignControlInterfaceToParentSelectOneMenu.xhtml index 2e1058c40..344500ec7 100644 --- a/src/java/CdbWebPortal/web/views/itemDomainMachineDesignControl/private/itemDomainMachineDesignControlInterfaceToParentSelectOneMenu.xhtml +++ b/src/java/CdbWebPortal/web/views/itemDomainMachineDesignControl/private/itemDomainMachineDesignControlInterfaceToParentSelectOneMenu.xhtml @@ -5,9 +5,9 @@ See LICENSE file. --> + xmlns:f="jakarta.faces.core"> diff --git a/src/java/CdbWebPortal/web/views/itemDomainMachineDesignControl/private/itemDomainMachineDesignControlSelectMachineControlledByElement.xhtml b/src/java/CdbWebPortal/web/views/itemDomainMachineDesignControl/private/itemDomainMachineDesignControlSelectMachineControlledByElement.xhtml index 3a347b936..bf81459d0 100644 --- a/src/java/CdbWebPortal/web/views/itemDomainMachineDesignControl/private/itemDomainMachineDesignControlSelectMachineControlledByElement.xhtml +++ b/src/java/CdbWebPortal/web/views/itemDomainMachineDesignControl/private/itemDomainMachineDesignControlSelectMachineControlledByElement.xhtml @@ -5,9 +5,9 @@ See LICENSE file. --> @@ -20,7 +20,7 @@ See LICENSE file. - + diff --git a/src/java/CdbWebPortal/web/views/itemDomainMachineDesignControl/private/itemDomainMachineDesignControlUpdateInterfaceToParentDialog.xhtml b/src/java/CdbWebPortal/web/views/itemDomainMachineDesignControl/private/itemDomainMachineDesignControlUpdateInterfaceToParentDialog.xhtml index 9d104ea27..dc3059b82 100644 --- a/src/java/CdbWebPortal/web/views/itemDomainMachineDesignControl/private/itemDomainMachineDesignControlUpdateInterfaceToParentDialog.xhtml +++ b/src/java/CdbWebPortal/web/views/itemDomainMachineDesignControl/private/itemDomainMachineDesignControlUpdateInterfaceToParentDialog.xhtml @@ -5,15 +5,15 @@ See LICENSE file. --> + xmlns:f="jakarta.faces.core"> + boxStyleClass="viewTransparentBackgroundDialog" > diff --git a/src/java/CdbWebPortal/web/views/itemDomainMachineDesignControl/view.xhtml b/src/java/CdbWebPortal/web/views/itemDomainMachineDesignControl/view.xhtml index 652b22c2e..b9d0e2c1e 100644 --- a/src/java/CdbWebPortal/web/views/itemDomainMachineDesignControl/view.xhtml +++ b/src/java/CdbWebPortal/web/views/itemDomainMachineDesignControl/view.xhtml @@ -5,8 +5,8 @@ See LICENSE file. --> diff --git a/src/java/CdbWebPortal/web/views/itemDomainMachineDesignIOC/create.xhtml b/src/java/CdbWebPortal/web/views/itemDomainMachineDesignIOC/create.xhtml index 8973dbc56..053e56b3f 100644 --- a/src/java/CdbWebPortal/web/views/itemDomainMachineDesignIOC/create.xhtml +++ b/src/java/CdbWebPortal/web/views/itemDomainMachineDesignIOC/create.xhtml @@ -5,8 +5,8 @@ See LICENSE file. --> diff --git a/src/java/CdbWebPortal/web/views/itemDomainMachineDesignIOC/edit.xhtml b/src/java/CdbWebPortal/web/views/itemDomainMachineDesignIOC/edit.xhtml index 4f23938ea..58a3e38d6 100644 --- a/src/java/CdbWebPortal/web/views/itemDomainMachineDesignIOC/edit.xhtml +++ b/src/java/CdbWebPortal/web/views/itemDomainMachineDesignIOC/edit.xhtml @@ -5,8 +5,8 @@ See LICENSE file. --> diff --git a/src/java/CdbWebPortal/web/views/itemDomainMachineDesignIOC/list.xhtml b/src/java/CdbWebPortal/web/views/itemDomainMachineDesignIOC/list.xhtml index 00f35a135..368ecde2c 100644 --- a/src/java/CdbWebPortal/web/views/itemDomainMachineDesignIOC/list.xhtml +++ b/src/java/CdbWebPortal/web/views/itemDomainMachineDesignIOC/list.xhtml @@ -5,9 +5,9 @@ See LICENSE file. --> + xmlns:f="jakarta.faces.core"> diff --git a/src/java/CdbWebPortal/web/views/itemDomainMachineDesignIOC/private/createIocMachineParentSelectionDialog.xhtml b/src/java/CdbWebPortal/web/views/itemDomainMachineDesignIOC/private/createIocMachineParentSelectionDialog.xhtml index b50f03a06..a38faea4c 100644 --- a/src/java/CdbWebPortal/web/views/itemDomainMachineDesignIOC/private/createIocMachineParentSelectionDialog.xhtml +++ b/src/java/CdbWebPortal/web/views/itemDomainMachineDesignIOC/private/createIocMachineParentSelectionDialog.xhtml @@ -5,9 +5,9 @@ See LICENSE file. --> + xmlns:f="jakarta.faces.core"> - diff --git a/src/java/CdbWebPortal/web/views/itemDomainMachineDesignIOC/private/iocMachineParentSelectionDialog.xhtml b/src/java/CdbWebPortal/web/views/itemDomainMachineDesignIOC/private/iocMachineParentSelectionDialog.xhtml index b21f11fcd..869c9b1eb 100644 --- a/src/java/CdbWebPortal/web/views/itemDomainMachineDesignIOC/private/iocMachineParentSelectionDialog.xhtml +++ b/src/java/CdbWebPortal/web/views/itemDomainMachineDesignIOC/private/iocMachineParentSelectionDialog.xhtml @@ -5,9 +5,9 @@ See LICENSE file. --> + xmlns:f="jakarta.faces.core"> + xmlns:ui="jakarta.faces.facelets"> diff --git a/src/java/CdbWebPortal/web/views/itemDomainMachineDesignIOC/view.xhtml b/src/java/CdbWebPortal/web/views/itemDomainMachineDesignIOC/view.xhtml index 228510b3b..6ae1aaf6a 100644 --- a/src/java/CdbWebPortal/web/views/itemDomainMachineDesignIOC/view.xhtml +++ b/src/java/CdbWebPortal/web/views/itemDomainMachineDesignIOC/view.xhtml @@ -5,8 +5,8 @@ See LICENSE file. --> - diff --git a/src/java/CdbWebPortal/web/views/itemDomainMachineDesignInventory/create.xhtml b/src/java/CdbWebPortal/web/views/itemDomainMachineDesignInventory/create.xhtml index d8fc9dd8e..9aa49913b 100644 --- a/src/java/CdbWebPortal/web/views/itemDomainMachineDesignInventory/create.xhtml +++ b/src/java/CdbWebPortal/web/views/itemDomainMachineDesignInventory/create.xhtml @@ -5,8 +5,8 @@ See LICENSE file. --> diff --git a/src/java/CdbWebPortal/web/views/itemDomainMachineDesignInventory/createMultiple.xhtml b/src/java/CdbWebPortal/web/views/itemDomainMachineDesignInventory/createMultiple.xhtml index 5bcd5c8df..f14f522bd 100644 --- a/src/java/CdbWebPortal/web/views/itemDomainMachineDesignInventory/createMultiple.xhtml +++ b/src/java/CdbWebPortal/web/views/itemDomainMachineDesignInventory/createMultiple.xhtml @@ -5,7 +5,7 @@ See LICENSE file. --> diff --git a/src/java/CdbWebPortal/web/views/itemDomainMachineDesignInventory/editMultiple.xhtml b/src/java/CdbWebPortal/web/views/itemDomainMachineDesignInventory/editMultiple.xhtml index a8de0b71f..28a658f0a 100644 --- a/src/java/CdbWebPortal/web/views/itemDomainMachineDesignInventory/editMultiple.xhtml +++ b/src/java/CdbWebPortal/web/views/itemDomainMachineDesignInventory/editMultiple.xhtml @@ -5,7 +5,7 @@ See LICENSE file. --> diff --git a/src/java/CdbWebPortal/web/views/itemDomainMachineDesignInventory/import.xhtml b/src/java/CdbWebPortal/web/views/itemDomainMachineDesignInventory/import.xhtml index d98664826..ccfc9a3cf 100644 --- a/src/java/CdbWebPortal/web/views/itemDomainMachineDesignInventory/import.xhtml +++ b/src/java/CdbWebPortal/web/views/itemDomainMachineDesignInventory/import.xhtml @@ -5,9 +5,9 @@ See LICENSE file. --> @@ -23,6 +23,7 @@ See LICENSE file.
diff --git a/src/java/CdbWebPortal/web/views/itemDomainMachineDesignInventory/list.xhtml b/src/java/CdbWebPortal/web/views/itemDomainMachineDesignInventory/list.xhtml index e6071a1cf..4708607a1 100644 --- a/src/java/CdbWebPortal/web/views/itemDomainMachineDesignInventory/list.xhtml +++ b/src/java/CdbWebPortal/web/views/itemDomainMachineDesignInventory/list.xhtml @@ -5,8 +5,8 @@ See LICENSE file. --> diff --git a/src/java/CdbWebPortal/web/views/itemDomainMachineDesignInventory/private/itemDomainMachineDesignInventoryListCustomizeDisplayDialog.xhtml b/src/java/CdbWebPortal/web/views/itemDomainMachineDesignInventory/private/itemDomainMachineDesignInventoryListCustomizeDisplayDialog.xhtml index 78fc5bea8..86f16a121 100644 --- a/src/java/CdbWebPortal/web/views/itemDomainMachineDesignInventory/private/itemDomainMachineDesignInventoryListCustomizeDisplayDialog.xhtml +++ b/src/java/CdbWebPortal/web/views/itemDomainMachineDesignInventory/private/itemDomainMachineDesignInventoryListCustomizeDisplayDialog.xhtml @@ -5,7 +5,7 @@ See LICENSE file. --> diff --git a/src/java/CdbWebPortal/web/views/itemDomainMachineDesignInventory/private/itemDomainMachineDesignInventoryListDataTable.xhtml b/src/java/CdbWebPortal/web/views/itemDomainMachineDesignInventory/private/itemDomainMachineDesignInventoryListDataTable.xhtml index ffe4733b8..deb1410dc 100644 --- a/src/java/CdbWebPortal/web/views/itemDomainMachineDesignInventory/private/itemDomainMachineDesignInventoryListDataTable.xhtml +++ b/src/java/CdbWebPortal/web/views/itemDomainMachineDesignInventory/private/itemDomainMachineDesignInventoryListDataTable.xhtml @@ -5,7 +5,7 @@ See LICENSE file. --> diff --git a/src/java/CdbWebPortal/web/views/itemDomainMachineDesignInventory/private/itemDomainMachineDesignInventoryListDataTableRowExpansionObject.xhtml b/src/java/CdbWebPortal/web/views/itemDomainMachineDesignInventory/private/itemDomainMachineDesignInventoryListDataTableRowExpansionObject.xhtml index 4538726d0..e1ed7ba1e 100644 --- a/src/java/CdbWebPortal/web/views/itemDomainMachineDesignInventory/private/itemDomainMachineDesignInventoryListDataTableRowExpansionObject.xhtml +++ b/src/java/CdbWebPortal/web/views/itemDomainMachineDesignInventory/private/itemDomainMachineDesignInventoryListDataTableRowExpansionObject.xhtml @@ -5,10 +5,10 @@ See LICENSE file. --> + xmlns:f="jakarta.faces.core" + xmlns:h="jakarta.faces.html"> @@ -33,7 +33,7 @@ See LICENSE file. - + diff --git a/src/java/CdbWebPortal/web/views/itemDomainMachineDesignInventory/private/itemDomainMachineDesignInventoryListObject.xhtml b/src/java/CdbWebPortal/web/views/itemDomainMachineDesignInventory/private/itemDomainMachineDesignInventoryListObject.xhtml index a0d68b8e2..e310350cf 100644 --- a/src/java/CdbWebPortal/web/views/itemDomainMachineDesignInventory/private/itemDomainMachineDesignInventoryListObject.xhtml +++ b/src/java/CdbWebPortal/web/views/itemDomainMachineDesignInventory/private/itemDomainMachineDesignInventoryListObject.xhtml @@ -5,7 +5,7 @@ See LICENSE file. --> diff --git a/src/java/CdbWebPortal/web/views/itemDomainMachineDesignInventory/private/itemDomainMachineDesignInventoryMachineTemplateSelectionTreeTable.xhtml b/src/java/CdbWebPortal/web/views/itemDomainMachineDesignInventory/private/itemDomainMachineDesignInventoryMachineTemplateSelectionTreeTable.xhtml index a86efe765..218216234 100644 --- a/src/java/CdbWebPortal/web/views/itemDomainMachineDesignInventory/private/itemDomainMachineDesignInventoryMachineTemplateSelectionTreeTable.xhtml +++ b/src/java/CdbWebPortal/web/views/itemDomainMachineDesignInventory/private/itemDomainMachineDesignInventoryMachineTemplateSelectionTreeTable.xhtml @@ -5,7 +5,7 @@ See LICENSE file. --> diff --git a/src/java/CdbWebPortal/web/views/itemDomainMachineDesignInventory/private/itemDomainMachineDesignInventorySpecificMultiEditConfigurationTabs.xhtml b/src/java/CdbWebPortal/web/views/itemDomainMachineDesignInventory/private/itemDomainMachineDesignInventorySpecificMultiEditConfigurationTabs.xhtml index a0a168b0c..cfa60fe4e 100644 --- a/src/java/CdbWebPortal/web/views/itemDomainMachineDesignInventory/private/itemDomainMachineDesignInventorySpecificMultiEditConfigurationTabs.xhtml +++ b/src/java/CdbWebPortal/web/views/itemDomainMachineDesignInventory/private/itemDomainMachineDesignInventorySpecificMultiEditConfigurationTabs.xhtml @@ -6,12 +6,12 @@ See LICENSE file. Select desired item columns to edit - + diff --git a/src/java/CdbWebPortal/web/views/itemDomainMachineDesignInventory/private/itemDomainMachineDesignInventorySpecificMultiEditEditableListObject.xhtml b/src/java/CdbWebPortal/web/views/itemDomainMachineDesignInventory/private/itemDomainMachineDesignInventorySpecificMultiEditEditableListObject.xhtml index ea0447774..2c29f23be 100644 --- a/src/java/CdbWebPortal/web/views/itemDomainMachineDesignInventory/private/itemDomainMachineDesignInventorySpecificMultiEditEditableListObject.xhtml +++ b/src/java/CdbWebPortal/web/views/itemDomainMachineDesignInventory/private/itemDomainMachineDesignInventorySpecificMultiEditEditableListObject.xhtml @@ -6,7 +6,7 @@ See LICENSE file. + xmlns:ui="jakarta.faces.facelets"> diff --git a/src/java/CdbWebPortal/web/views/itemDomainMachineDesignInventory/view.xhtml b/src/java/CdbWebPortal/web/views/itemDomainMachineDesignInventory/view.xhtml index 380be8f6d..fe131dbeb 100644 --- a/src/java/CdbWebPortal/web/views/itemDomainMachineDesignInventory/view.xhtml +++ b/src/java/CdbWebPortal/web/views/itemDomainMachineDesignInventory/view.xhtml @@ -5,10 +5,10 @@ See LICENSE file. --> + xmlns:f="jakarta.faces.core" + xmlns:h="jakarta.faces.html"> diff --git a/src/java/CdbWebPortal/web/views/itemDomainMachineDesignPower/create.xhtml b/src/java/CdbWebPortal/web/views/itemDomainMachineDesignPower/create.xhtml index 3c1e73392..380c93788 100644 --- a/src/java/CdbWebPortal/web/views/itemDomainMachineDesignPower/create.xhtml +++ b/src/java/CdbWebPortal/web/views/itemDomainMachineDesignPower/create.xhtml @@ -5,8 +5,8 @@ See LICENSE file. --> diff --git a/src/java/CdbWebPortal/web/views/itemDomainMachineDesignPower/list.xhtml b/src/java/CdbWebPortal/web/views/itemDomainMachineDesignPower/list.xhtml index 2431b84dc..c4f5db2ca 100644 --- a/src/java/CdbWebPortal/web/views/itemDomainMachineDesignPower/list.xhtml +++ b/src/java/CdbWebPortal/web/views/itemDomainMachineDesignPower/list.xhtml @@ -5,8 +5,8 @@ See LICENSE file. --> diff --git a/src/java/CdbWebPortal/web/views/itemDomainMachineDesignPower/private/itemDomainMachineDesignPowerContextMenu.xhtml b/src/java/CdbWebPortal/web/views/itemDomainMachineDesignPower/private/itemDomainMachineDesignPowerContextMenu.xhtml index c76bd43e1..b11dc098e 100644 --- a/src/java/CdbWebPortal/web/views/itemDomainMachineDesignPower/private/itemDomainMachineDesignPowerContextMenu.xhtml +++ b/src/java/CdbWebPortal/web/views/itemDomainMachineDesignPower/private/itemDomainMachineDesignPowerContextMenu.xhtml @@ -5,7 +5,7 @@ See LICENSE file. --> diff --git a/src/java/CdbWebPortal/web/views/itemDomainMachineDesignPower/private/itemDomainMachineDesignPowerSelectMachineControlledByElement.xhtml b/src/java/CdbWebPortal/web/views/itemDomainMachineDesignPower/private/itemDomainMachineDesignPowerSelectMachineControlledByElement.xhtml index 6176090b6..a2efd262f 100644 --- a/src/java/CdbWebPortal/web/views/itemDomainMachineDesignPower/private/itemDomainMachineDesignPowerSelectMachineControlledByElement.xhtml +++ b/src/java/CdbWebPortal/web/views/itemDomainMachineDesignPower/private/itemDomainMachineDesignPowerSelectMachineControlledByElement.xhtml @@ -5,7 +5,7 @@ See LICENSE file. --> diff --git a/src/java/CdbWebPortal/web/views/itemDomainMachineDesignPower/view.xhtml b/src/java/CdbWebPortal/web/views/itemDomainMachineDesignPower/view.xhtml index c4f8840c2..35ef4611b 100644 --- a/src/java/CdbWebPortal/web/views/itemDomainMachineDesignPower/view.xhtml +++ b/src/java/CdbWebPortal/web/views/itemDomainMachineDesignPower/view.xhtml @@ -5,8 +5,8 @@ See LICENSE file. --> diff --git a/src/java/CdbWebPortal/web/views/itemDomainMachineDesignRelationshipBase/private/contextMenu/itemDomainMachineDesignRelationshipRemoveRelatedItemMenuItem.xhtml b/src/java/CdbWebPortal/web/views/itemDomainMachineDesignRelationshipBase/private/contextMenu/itemDomainMachineDesignRelationshipRemoveRelatedItemMenuItem.xhtml index 39714e0cd..c8ef26650 100644 --- a/src/java/CdbWebPortal/web/views/itemDomainMachineDesignRelationshipBase/private/contextMenu/itemDomainMachineDesignRelationshipRemoveRelatedItemMenuItem.xhtml +++ b/src/java/CdbWebPortal/web/views/itemDomainMachineDesignRelationshipBase/private/contextMenu/itemDomainMachineDesignRelationshipRemoveRelatedItemMenuItem.xhtml @@ -5,7 +5,7 @@ See LICENSE file. --> + xmlns:ui="jakarta.faces.facelets"> diff --git a/src/java/CdbWebPortal/web/views/itemDomainMachineDesignRelationshipBase/private/contextMenu/itemDomainMachineDesignRelationshipSpecifyRelatedItemMenuItem.xhtml b/src/java/CdbWebPortal/web/views/itemDomainMachineDesignRelationshipBase/private/contextMenu/itemDomainMachineDesignRelationshipSpecifyRelatedItemMenuItem.xhtml index aa576c6f9..a95b0a4f1 100644 --- a/src/java/CdbWebPortal/web/views/itemDomainMachineDesignRelationshipBase/private/contextMenu/itemDomainMachineDesignRelationshipSpecifyRelatedItemMenuItem.xhtml +++ b/src/java/CdbWebPortal/web/views/itemDomainMachineDesignRelationshipBase/private/contextMenu/itemDomainMachineDesignRelationshipSpecifyRelatedItemMenuItem.xhtml @@ -5,7 +5,7 @@ See LICENSE file. --> + xmlns:f="jakarta.faces.core" + xmlns:h="jakarta.faces.html"> diff --git a/src/java/CdbWebPortal/web/views/itemElement/edit.xhtml b/src/java/CdbWebPortal/web/views/itemElement/edit.xhtml index 7748bc319..9c4c5cc7e 100644 --- a/src/java/CdbWebPortal/web/views/itemElement/edit.xhtml +++ b/src/java/CdbWebPortal/web/views/itemElement/edit.xhtml @@ -5,9 +5,9 @@ See LICENSE file. --> diff --git a/src/java/CdbWebPortal/web/views/itemElement/private/itemElementAddNewAssemblyItemDialog.xhtml b/src/java/CdbWebPortal/web/views/itemElement/private/itemElementAddNewAssemblyItemDialog.xhtml index ec135880e..f731642ad 100644 --- a/src/java/CdbWebPortal/web/views/itemElement/private/itemElementAddNewAssemblyItemDialog.xhtml +++ b/src/java/CdbWebPortal/web/views/itemElement/private/itemElementAddNewAssemblyItemDialog.xhtml @@ -5,7 +5,7 @@ See LICENSE file. --> diff --git a/src/java/CdbWebPortal/web/views/itemElement/private/itemElementEditConstraintInformationDialog.xhtml b/src/java/CdbWebPortal/web/views/itemElement/private/itemElementEditConstraintInformationDialog.xhtml index 8094c5a62..88e80012e 100644 --- a/src/java/CdbWebPortal/web/views/itemElement/private/itemElementEditConstraintInformationDialog.xhtml +++ b/src/java/CdbWebPortal/web/views/itemElement/private/itemElementEditConstraintInformationDialog.xhtml @@ -6,7 +6,7 @@ See LICENSE file. diff --git a/src/java/CdbWebPortal/web/views/itemElement/private/itemElementEditContainedValueDialog.xhtml b/src/java/CdbWebPortal/web/views/itemElement/private/itemElementEditContainedValueDialog.xhtml index 067febba2..a622093a8 100644 --- a/src/java/CdbWebPortal/web/views/itemElement/private/itemElementEditContainedValueDialog.xhtml +++ b/src/java/CdbWebPortal/web/views/itemElement/private/itemElementEditContainedValueDialog.xhtml @@ -5,9 +5,9 @@ See LICENSE file. --> + xmlns:f="jakarta.faces.core"> + boxStyleClass="viewTransparentBackgroundDialog"> diff --git a/src/java/CdbWebPortal/web/views/itemElement/private/itemElementEditContainedValueObject.xhtml b/src/java/CdbWebPortal/web/views/itemElement/private/itemElementEditContainedValueObject.xhtml index 2a9ef19c3..7df7a122a 100644 --- a/src/java/CdbWebPortal/web/views/itemElement/private/itemElementEditContainedValueObject.xhtml +++ b/src/java/CdbWebPortal/web/views/itemElement/private/itemElementEditContainedValueObject.xhtml @@ -5,9 +5,9 @@ See LICENSE file. --> + xmlns:f="jakarta.faces.core"> diff --git a/src/java/CdbWebPortal/web/views/itemElement/private/itemElementEditIsRequiredObjectDialog.xhtml b/src/java/CdbWebPortal/web/views/itemElement/private/itemElementEditIsRequiredObjectDialog.xhtml index 9877fc2bb..00dce2581 100644 --- a/src/java/CdbWebPortal/web/views/itemElement/private/itemElementEditIsRequiredObjectDialog.xhtml +++ b/src/java/CdbWebPortal/web/views/itemElement/private/itemElementEditIsRequiredObjectDialog.xhtml @@ -5,9 +5,9 @@ See LICENSE file. --> + xmlns:f="jakarta.faces.core"> + boxStyleClass="viewTransparentBackgroundDialog" > - + + xmlns:f="jakarta.faces.core" + xmlns:h="jakarta.faces.html"> diff --git a/src/java/CdbWebPortal/web/views/itemElement/private/itemElementEditListCustomizeDisplayDialog.xhtml b/src/java/CdbWebPortal/web/views/itemElement/private/itemElementEditListCustomizeDisplayDialog.xhtml index cb83cde67..5133e8b22 100644 --- a/src/java/CdbWebPortal/web/views/itemElement/private/itemElementEditListCustomizeDisplayDialog.xhtml +++ b/src/java/CdbWebPortal/web/views/itemElement/private/itemElementEditListCustomizeDisplayDialog.xhtml @@ -5,9 +5,9 @@ See LICENSE file. --> @@ -18,7 +18,7 @@ See LICENSE file. - + diff --git a/src/java/CdbWebPortal/web/views/itemElement/private/itemElementEditListDataTable.xhtml b/src/java/CdbWebPortal/web/views/itemElement/private/itemElementEditListDataTable.xhtml index 02766589e..39b8086ae 100644 --- a/src/java/CdbWebPortal/web/views/itemElement/private/itemElementEditListDataTable.xhtml +++ b/src/java/CdbWebPortal/web/views/itemElement/private/itemElementEditListDataTable.xhtml @@ -5,7 +5,7 @@ See LICENSE file. --> diff --git a/src/java/CdbWebPortal/web/views/itemElement/private/itemElementEditPanelGrid.xhtml b/src/java/CdbWebPortal/web/views/itemElement/private/itemElementEditPanelGrid.xhtml index 496f06bce..65e953578 100644 --- a/src/java/CdbWebPortal/web/views/itemElement/private/itemElementEditPanelGrid.xhtml +++ b/src/java/CdbWebPortal/web/views/itemElement/private/itemElementEditPanelGrid.xhtml @@ -5,18 +5,19 @@ See LICENSE file. --> + xmlns:h="jakarta.faces.html"> - + - + - + + diff --git a/src/java/CdbWebPortal/web/views/itemElement/private/itemElementList.xhtml b/src/java/CdbWebPortal/web/views/itemElement/private/itemElementList.xhtml index f2699b990..398b65b1d 100644 --- a/src/java/CdbWebPortal/web/views/itemElement/private/itemElementList.xhtml +++ b/src/java/CdbWebPortal/web/views/itemElement/private/itemElementList.xhtml @@ -5,7 +5,7 @@ See LICENSE file. --> diff --git a/src/java/CdbWebPortal/web/views/itemElement/private/itemElementListActionButtons.xhtml b/src/java/CdbWebPortal/web/views/itemElement/private/itemElementListActionButtons.xhtml index 4b62df28d..7be4d7d66 100644 --- a/src/java/CdbWebPortal/web/views/itemElement/private/itemElementListActionButtons.xhtml +++ b/src/java/CdbWebPortal/web/views/itemElement/private/itemElementListActionButtons.xhtml @@ -5,7 +5,7 @@ See LICENSE file. --> diff --git a/src/java/CdbWebPortal/web/views/itemElement/private/itemElementListCustomizeDisplayDialog.xhtml b/src/java/CdbWebPortal/web/views/itemElement/private/itemElementListCustomizeDisplayDialog.xhtml index d7c9da595..f5457fae8 100644 --- a/src/java/CdbWebPortal/web/views/itemElement/private/itemElementListCustomizeDisplayDialog.xhtml +++ b/src/java/CdbWebPortal/web/views/itemElement/private/itemElementListCustomizeDisplayDialog.xhtml @@ -5,9 +5,9 @@ See LICENSE file. --> diff --git a/src/java/CdbWebPortal/web/views/itemElement/private/itemElementListCustomizeDisplayDialogBase.xhtml b/src/java/CdbWebPortal/web/views/itemElement/private/itemElementListCustomizeDisplayDialogBase.xhtml index cdea629dc..ecf796b72 100644 --- a/src/java/CdbWebPortal/web/views/itemElement/private/itemElementListCustomizeDisplayDialogBase.xhtml +++ b/src/java/CdbWebPortal/web/views/itemElement/private/itemElementListCustomizeDisplayDialogBase.xhtml @@ -5,9 +5,9 @@ See LICENSE file. --> @@ -31,7 +31,7 @@ See LICENSE file. - + diff --git a/src/java/CdbWebPortal/web/views/itemElement/private/itemElementListCustomizeDisplayDialogBaseSimple.xhtml b/src/java/CdbWebPortal/web/views/itemElement/private/itemElementListCustomizeDisplayDialogBaseSimple.xhtml index f5df1630b..362115c4a 100644 --- a/src/java/CdbWebPortal/web/views/itemElement/private/itemElementListCustomizeDisplayDialogBaseSimple.xhtml +++ b/src/java/CdbWebPortal/web/views/itemElement/private/itemElementListCustomizeDisplayDialogBaseSimple.xhtml @@ -5,9 +5,9 @@ See LICENSE file. --> @@ -19,7 +19,7 @@ See LICENSE file. - + - + @@ -18,6 +18,7 @@ See LICENSE file. diff --git a/src/java/CdbWebPortal/web/views/itemElement/private/itemElementListDataTableRowExpansion.xhtml b/src/java/CdbWebPortal/web/views/itemElement/private/itemElementListDataTableRowExpansion.xhtml index ed342c4e7..210656d3b 100644 --- a/src/java/CdbWebPortal/web/views/itemElement/private/itemElementListDataTableRowExpansion.xhtml +++ b/src/java/CdbWebPortal/web/views/itemElement/private/itemElementListDataTableRowExpansion.xhtml @@ -5,8 +5,8 @@ See LICENSE file. --> diff --git a/src/java/CdbWebPortal/web/views/itemElement/private/itemElementListObject.xhtml b/src/java/CdbWebPortal/web/views/itemElement/private/itemElementListObject.xhtml index cbdca0a4f..9a3f034ec 100644 --- a/src/java/CdbWebPortal/web/views/itemElement/private/itemElementListObject.xhtml +++ b/src/java/CdbWebPortal/web/views/itemElement/private/itemElementListObject.xhtml @@ -5,7 +5,7 @@ See LICENSE file. --> diff --git a/src/java/CdbWebPortal/web/views/itemElement/private/itemElementListObjectActions.xhtml b/src/java/CdbWebPortal/web/views/itemElement/private/itemElementListObjectActions.xhtml index f83758a3c..e7b9e823b 100644 --- a/src/java/CdbWebPortal/web/views/itemElement/private/itemElementListObjectActions.xhtml +++ b/src/java/CdbWebPortal/web/views/itemElement/private/itemElementListObjectActions.xhtml @@ -5,9 +5,9 @@ See LICENSE file. --> + xmlns:h="jakarta.faces.html">
diff --git a/src/java/CdbWebPortal/web/views/itemElement/private/itemElementRearrangeListDialog.xhtml b/src/java/CdbWebPortal/web/views/itemElement/private/itemElementRearrangeListDialog.xhtml index 3b49b2ab5..ffc036fb1 100644 --- a/src/java/CdbWebPortal/web/views/itemElement/private/itemElementRearrangeListDialog.xhtml +++ b/src/java/CdbWebPortal/web/views/itemElement/private/itemElementRearrangeListDialog.xhtml @@ -5,22 +5,22 @@ See LICENSE file. --> + xmlns:h="jakarta.faces.html" + xmlns:f="jakarta.faces.core">
- + diff --git a/src/java/CdbWebPortal/web/views/itemElement/private/itemElementViewPanelGrid.xhtml b/src/java/CdbWebPortal/web/views/itemElement/private/itemElementViewPanelGrid.xhtml index 8fc2259d0..47a3c2ed9 100644 --- a/src/java/CdbWebPortal/web/views/itemElement/private/itemElementViewPanelGrid.xhtml +++ b/src/java/CdbWebPortal/web/views/itemElement/private/itemElementViewPanelGrid.xhtml @@ -5,15 +5,15 @@ See LICENSE file. --> + xmlns:f="jakarta.faces.core"> - + diff --git a/src/java/CdbWebPortal/web/views/itemElement/private/templateDefaults/customizeDisplayDialog/displayItemElementItemIdentifier1.xhtml b/src/java/CdbWebPortal/web/views/itemElement/private/templateDefaults/customizeDisplayDialog/displayItemElementItemIdentifier1.xhtml index 2c94a65a1..35eb0ac54 100644 --- a/src/java/CdbWebPortal/web/views/itemElement/private/templateDefaults/customizeDisplayDialog/displayItemElementItemIdentifier1.xhtml +++ b/src/java/CdbWebPortal/web/views/itemElement/private/templateDefaults/customizeDisplayDialog/displayItemElementItemIdentifier1.xhtml @@ -5,9 +5,9 @@ See LICENSE file. --> + xmlns:h="jakarta.faces.html"> diff --git a/src/java/CdbWebPortal/web/views/itemElement/private/templateDefaults/itemElementFieldLabels/itemElementContainedItem.xhtml b/src/java/CdbWebPortal/web/views/itemElement/private/templateDefaults/itemElementFieldLabels/itemElementContainedItem.xhtml index 1276ff036..3dd93c17c 100644 --- a/src/java/CdbWebPortal/web/views/itemElement/private/templateDefaults/itemElementFieldLabels/itemElementContainedItem.xhtml +++ b/src/java/CdbWebPortal/web/views/itemElement/private/templateDefaults/itemElementFieldLabels/itemElementContainedItem.xhtml @@ -5,8 +5,8 @@ See LICENSE file. --> + xmlns:ui="jakarta.faces.facelets" + xmlns:h="jakarta.faces.html"> diff --git a/src/java/CdbWebPortal/web/views/itemElement/private/templateDefaults/itemElementFieldLabels/itemElementParentItem.xhtml b/src/java/CdbWebPortal/web/views/itemElement/private/templateDefaults/itemElementFieldLabels/itemElementParentItem.xhtml index 79f40c83b..97ffed027 100644 --- a/src/java/CdbWebPortal/web/views/itemElement/private/templateDefaults/itemElementFieldLabels/itemElementParentItem.xhtml +++ b/src/java/CdbWebPortal/web/views/itemElement/private/templateDefaults/itemElementFieldLabels/itemElementParentItem.xhtml @@ -5,8 +5,8 @@ See LICENSE file. --> + xmlns:ui="jakarta.faces.facelets" + xmlns:h="jakarta.faces.html"> diff --git a/src/java/CdbWebPortal/web/views/itemElement/private/templateDefaults/itemElementFieldViewValues/itemElementContainedItem.xhtml b/src/java/CdbWebPortal/web/views/itemElement/private/templateDefaults/itemElementFieldViewValues/itemElementContainedItem.xhtml index d923c15f0..9a6f62cc5 100644 --- a/src/java/CdbWebPortal/web/views/itemElement/private/templateDefaults/itemElementFieldViewValues/itemElementContainedItem.xhtml +++ b/src/java/CdbWebPortal/web/views/itemElement/private/templateDefaults/itemElementFieldViewValues/itemElementContainedItem.xhtml @@ -5,8 +5,8 @@ See LICENSE file. --> + xmlns:ui="jakarta.faces.facelets" + xmlns:h="jakarta.faces.html"> diff --git a/src/java/CdbWebPortal/web/views/itemElement/private/templateDefaults/itemElementFieldViewValues/itemElementParentItem.xhtml b/src/java/CdbWebPortal/web/views/itemElement/private/templateDefaults/itemElementFieldViewValues/itemElementParentItem.xhtml index f22c53f50..4e5df3c92 100644 --- a/src/java/CdbWebPortal/web/views/itemElement/private/templateDefaults/itemElementFieldViewValues/itemElementParentItem.xhtml +++ b/src/java/CdbWebPortal/web/views/itemElement/private/templateDefaults/itemElementFieldViewValues/itemElementParentItem.xhtml @@ -5,8 +5,8 @@ See LICENSE file. --> + xmlns:ui="jakarta.faces.facelets" + xmlns:h="jakarta.faces.html"> diff --git a/src/java/CdbWebPortal/web/views/itemElement/private/templateDefaults/itemElementObject/itemElementIsRequiredColumn.xhtml b/src/java/CdbWebPortal/web/views/itemElement/private/templateDefaults/itemElementObject/itemElementIsRequiredColumn.xhtml index 733b6b685..6b100d276 100644 --- a/src/java/CdbWebPortal/web/views/itemElement/private/templateDefaults/itemElementObject/itemElementIsRequiredColumn.xhtml +++ b/src/java/CdbWebPortal/web/views/itemElement/private/templateDefaults/itemElementObject/itemElementIsRequiredColumn.xhtml @@ -5,8 +5,8 @@ See LICENSE file. --> + xmlns:f="jakarta.faces.core" + xmlns:h="jakarta.faces.html"> - + + xmlns:f="jakarta.faces.core" + xmlns:h="jakarta.faces.html"> + boxStyleClass="viewTransparentBackgroundDialog"> - + #{constraintInfo.itemElement} element overview @@ -46,6 +46,7 @@ See LICENSE file.
- + @@ -88,7 +89,7 @@ See LICENSE file. - + diff --git a/src/java/CdbWebPortal/web/views/itemElement/private/templates/itemElementEditListDataTableTemplate.xhtml b/src/java/CdbWebPortal/web/views/itemElement/private/templates/itemElementEditListDataTableTemplate.xhtml index ed70f99e1..a75b32089 100644 --- a/src/java/CdbWebPortal/web/views/itemElement/private/templates/itemElementEditListDataTableTemplate.xhtml +++ b/src/java/CdbWebPortal/web/views/itemElement/private/templates/itemElementEditListDataTableTemplate.xhtml @@ -5,21 +5,23 @@ See LICENSE file. --> - + @@ -28,11 +28,11 @@ See LICENSE file. /> - + - + diff --git a/src/java/CdbWebPortal/web/views/itemElement/private/templates/itemElementListObjectTemplate.xhtml b/src/java/CdbWebPortal/web/views/itemElement/private/templates/itemElementListObjectTemplate.xhtml index 474a50b73..8289a2289 100644 --- a/src/java/CdbWebPortal/web/views/itemElement/private/templates/itemElementListObjectTemplate.xhtml +++ b/src/java/CdbWebPortal/web/views/itemElement/private/templates/itemElementListObjectTemplate.xhtml @@ -5,8 +5,8 @@ See LICENSE file. --> diff --git a/src/java/CdbWebPortal/web/views/itemElement/private/templates/itemElementListObjectTemplateBase.xhtml b/src/java/CdbWebPortal/web/views/itemElement/private/templates/itemElementListObjectTemplateBase.xhtml index 1a0edbc89..769695905 100644 --- a/src/java/CdbWebPortal/web/views/itemElement/private/templates/itemElementListObjectTemplateBase.xhtml +++ b/src/java/CdbWebPortal/web/views/itemElement/private/templates/itemElementListObjectTemplateBase.xhtml @@ -5,7 +5,7 @@ See LICENSE file. --> + xmlns:ui="jakarta.faces.facelets"> + xmlns:ui="jakarta.faces.facelets"> diff --git a/src/java/CdbWebPortal/web/views/itemElement/private/templates/itemElementSimpleViewListObjectTemplate.xhtml b/src/java/CdbWebPortal/web/views/itemElement/private/templates/itemElementSimpleViewListObjectTemplate.xhtml index e309bf6ae..15ad0335f 100644 --- a/src/java/CdbWebPortal/web/views/itemElement/private/templates/itemElementSimpleViewListObjectTemplate.xhtml +++ b/src/java/CdbWebPortal/web/views/itemElement/private/templates/itemElementSimpleViewListObjectTemplate.xhtml @@ -5,9 +5,9 @@ See LICENSE file. --> + xmlns:h="jakarta.faces.html"> @@ -20,7 +20,8 @@ See LICENSE file. : View Design Element #{itemElementController.selected.name} - +
diff --git a/src/java/CdbWebPortal/web/views/itemEnforcedProperties/private/itemEnforcedPropertyConfigurationDialog.xhtml b/src/java/CdbWebPortal/web/views/itemEnforcedProperties/private/itemEnforcedPropertyConfigurationDialog.xhtml index a4f8cd716..852fc3f7f 100644 --- a/src/java/CdbWebPortal/web/views/itemEnforcedProperties/private/itemEnforcedPropertyConfigurationDialog.xhtml +++ b/src/java/CdbWebPortal/web/views/itemEnforcedProperties/private/itemEnforcedPropertyConfigurationDialog.xhtml @@ -5,9 +5,9 @@ See LICENSE file. --> + xmlns:f="jakarta.faces.core"> diff --git a/src/java/CdbWebPortal/web/views/itemEnforcedProperties/private/itemEnforcedPropertyConfigurationPanel.xhtml b/src/java/CdbWebPortal/web/views/itemEnforcedProperties/private/itemEnforcedPropertyConfigurationPanel.xhtml index 1183361ae..8d299c7c6 100644 --- a/src/java/CdbWebPortal/web/views/itemEnforcedProperties/private/itemEnforcedPropertyConfigurationPanel.xhtml +++ b/src/java/CdbWebPortal/web/views/itemEnforcedProperties/private/itemEnforcedPropertyConfigurationPanel.xhtml @@ -5,9 +5,9 @@ See LICENSE file. --> + xmlns:h="jakarta.faces.html"> @@ -33,7 +34,7 @@ See LICENSE file. - diff --git a/src/java/CdbWebPortal/web/views/itemMember/private/itemMemberList.xhtml b/src/java/CdbWebPortal/web/views/itemMember/private/itemMemberList.xhtml index 3843e3ed9..458be18c8 100644 --- a/src/java/CdbWebPortal/web/views/itemMember/private/itemMemberList.xhtml +++ b/src/java/CdbWebPortal/web/views/itemMember/private/itemMemberList.xhtml @@ -5,7 +5,7 @@ See LICENSE file. --> + xmlns:ui="jakarta.faces.facelets"> diff --git a/src/java/CdbWebPortal/web/views/itemMember/private/itemMemberListCustomizeDisplayDialog.xhtml b/src/java/CdbWebPortal/web/views/itemMember/private/itemMemberListCustomizeDisplayDialog.xhtml index 6dd391087..86df21f71 100644 --- a/src/java/CdbWebPortal/web/views/itemMember/private/itemMemberListCustomizeDisplayDialog.xhtml +++ b/src/java/CdbWebPortal/web/views/itemMember/private/itemMemberListCustomizeDisplayDialog.xhtml @@ -5,9 +5,9 @@ See LICENSE file. --> @@ -17,7 +17,7 @@ See LICENSE file. - + diff --git a/src/java/CdbWebPortal/web/views/itemMember/private/itemMemberListDataTable.xhtml b/src/java/CdbWebPortal/web/views/itemMember/private/itemMemberListDataTable.xhtml index 8489ab5a1..0928c7e6b 100644 --- a/src/java/CdbWebPortal/web/views/itemMember/private/itemMemberListDataTable.xhtml +++ b/src/java/CdbWebPortal/web/views/itemMember/private/itemMemberListDataTable.xhtml @@ -5,20 +5,22 @@ See LICENSE file. --> diff --git a/src/java/CdbWebPortal/web/views/itemMember/private/itemMemberListObject.xhtml b/src/java/CdbWebPortal/web/views/itemMember/private/itemMemberListObject.xhtml index dc9a89fe3..ac93cf05f 100644 --- a/src/java/CdbWebPortal/web/views/itemMember/private/itemMemberListObject.xhtml +++ b/src/java/CdbWebPortal/web/views/itemMember/private/itemMemberListObject.xhtml @@ -5,8 +5,8 @@ See LICENSE file. --> diff --git a/src/java/CdbWebPortal/web/views/itemMultiEdit/private/applyValuesTo/common/sequenceStart.xhtml b/src/java/CdbWebPortal/web/views/itemMultiEdit/private/applyValuesTo/common/sequenceStart.xhtml index f2495b23b..347f81238 100644 --- a/src/java/CdbWebPortal/web/views/itemMultiEdit/private/applyValuesTo/common/sequenceStart.xhtml +++ b/src/java/CdbWebPortal/web/views/itemMultiEdit/private/applyValuesTo/common/sequenceStart.xhtml @@ -5,15 +5,15 @@ See LICENSE file. --> diff --git a/src/java/CdbWebPortal/web/views/itemMultiEdit/private/applyValuesTo/entityInfoGroupWriteableInput.xhtml b/src/java/CdbWebPortal/web/views/itemMultiEdit/private/applyValuesTo/entityInfoGroupWriteableInput.xhtml index c8eef65a9..091afab72 100644 --- a/src/java/CdbWebPortal/web/views/itemMultiEdit/private/applyValuesTo/entityInfoGroupWriteableInput.xhtml +++ b/src/java/CdbWebPortal/web/views/itemMultiEdit/private/applyValuesTo/entityInfoGroupWriteableInput.xhtml @@ -5,12 +5,12 @@ See LICENSE file. --> + xmlns:h="jakarta.faces.html" + xmlns:f="jakarta.faces.core"> - diff --git a/src/java/CdbWebPortal/web/views/itemMultiEdit/private/applyValuesTo/entityInfoOwnerGroupInput.xhtml b/src/java/CdbWebPortal/web/views/itemMultiEdit/private/applyValuesTo/entityInfoOwnerGroupInput.xhtml index b7e333291..b67e58224 100644 --- a/src/java/CdbWebPortal/web/views/itemMultiEdit/private/applyValuesTo/entityInfoOwnerGroupInput.xhtml +++ b/src/java/CdbWebPortal/web/views/itemMultiEdit/private/applyValuesTo/entityInfoOwnerGroupInput.xhtml @@ -5,12 +5,12 @@ See LICENSE file. --> + xmlns:h="jakarta.faces.html" + xmlns:f="jakarta.faces.core"> - diff --git a/src/java/CdbWebPortal/web/views/itemMultiEdit/private/applyValuesTo/entityInfoOwnerUserInput.xhtml b/src/java/CdbWebPortal/web/views/itemMultiEdit/private/applyValuesTo/entityInfoOwnerUserInput.xhtml index 43b7cd4a3..73117123a 100644 --- a/src/java/CdbWebPortal/web/views/itemMultiEdit/private/applyValuesTo/entityInfoOwnerUserInput.xhtml +++ b/src/java/CdbWebPortal/web/views/itemMultiEdit/private/applyValuesTo/entityInfoOwnerUserInput.xhtml @@ -5,12 +5,12 @@ See LICENSE file. --> + xmlns:h="jakarta.faces.html" + xmlns:f="jakarta.faces.core"> - diff --git a/src/java/CdbWebPortal/web/views/itemMultiEdit/private/applyValuesTo/itemLargeTextInput.xhtml b/src/java/CdbWebPortal/web/views/itemMultiEdit/private/applyValuesTo/itemLargeTextInput.xhtml index 44938496f..0e895c443 100644 --- a/src/java/CdbWebPortal/web/views/itemMultiEdit/private/applyValuesTo/itemLargeTextInput.xhtml +++ b/src/java/CdbWebPortal/web/views/itemMultiEdit/private/applyValuesTo/itemLargeTextInput.xhtml @@ -5,12 +5,12 @@ See LICENSE file. --> + xmlns:h="jakarta.faces.html" + xmlns:f="jakarta.faces.core"> - diff --git a/src/java/CdbWebPortal/web/views/itemMultiEdit/private/applyValuesTo/itemProjectInput.xhtml b/src/java/CdbWebPortal/web/views/itemMultiEdit/private/applyValuesTo/itemProjectInput.xhtml index 34b088a13..f2105d1ec 100644 --- a/src/java/CdbWebPortal/web/views/itemMultiEdit/private/applyValuesTo/itemProjectInput.xhtml +++ b/src/java/CdbWebPortal/web/views/itemMultiEdit/private/applyValuesTo/itemProjectInput.xhtml @@ -5,12 +5,12 @@ See LICENSE file. --> + xmlns:h="jakarta.faces.html" + xmlns:f="jakarta.faces.core"> - diff --git a/src/java/CdbWebPortal/web/views/itemMultiEdit/private/applyValuesTo/numberInput.xhtml b/src/java/CdbWebPortal/web/views/itemMultiEdit/private/applyValuesTo/numberInput.xhtml index 421a53f61..fa7a2d610 100644 --- a/src/java/CdbWebPortal/web/views/itemMultiEdit/private/applyValuesTo/numberInput.xhtml +++ b/src/java/CdbWebPortal/web/views/itemMultiEdit/private/applyValuesTo/numberInput.xhtml @@ -5,11 +5,11 @@ See LICENSE file. --> + xmlns:h="jakarta.faces.html"> - diff --git a/src/java/CdbWebPortal/web/views/itemMultiEdit/private/applyValuesTo/propertyValueInput.xhtml b/src/java/CdbWebPortal/web/views/itemMultiEdit/private/applyValuesTo/propertyValueInput.xhtml index 6e42d1e04..f1940ca0e 100644 --- a/src/java/CdbWebPortal/web/views/itemMultiEdit/private/applyValuesTo/propertyValueInput.xhtml +++ b/src/java/CdbWebPortal/web/views/itemMultiEdit/private/applyValuesTo/propertyValueInput.xhtml @@ -5,15 +5,15 @@ See LICENSE file. --> + xmlns:h="jakarta.faces.html" + xmlns:f="jakarta.faces.core"> - diff --git a/src/java/CdbWebPortal/web/views/itemMultiEdit/private/applyValuesTo/simpleTextInput.xhtml b/src/java/CdbWebPortal/web/views/itemMultiEdit/private/applyValuesTo/simpleTextInput.xhtml index 91a00fee1..981a3fe87 100644 --- a/src/java/CdbWebPortal/web/views/itemMultiEdit/private/applyValuesTo/simpleTextInput.xhtml +++ b/src/java/CdbWebPortal/web/views/itemMultiEdit/private/applyValuesTo/simpleTextInput.xhtml @@ -5,14 +5,14 @@ See LICENSE file. --> + xmlns:h="jakarta.faces.html" + xmlns:f="jakarta.faces.core"> - diff --git a/src/java/CdbWebPortal/web/views/itemMultiEdit/private/itemMultiCreateConfigurationDialog.xhtml b/src/java/CdbWebPortal/web/views/itemMultiEdit/private/itemMultiCreateConfigurationDialog.xhtml index 40cb81a65..57cca8917 100644 --- a/src/java/CdbWebPortal/web/views/itemMultiEdit/private/itemMultiCreateConfigurationDialog.xhtml +++ b/src/java/CdbWebPortal/web/views/itemMultiEdit/private/itemMultiCreateConfigurationDialog.xhtml @@ -5,20 +5,20 @@ See LICENSE file. --> + xmlns:f="jakarta.faces.core"> - + + xmlns:ui="jakarta.faces.facelets"> diff --git a/src/java/CdbWebPortal/web/views/itemMultiEdit/private/itemMultiCreateConfigurationPanel.xhtml b/src/java/CdbWebPortal/web/views/itemMultiEdit/private/itemMultiCreateConfigurationPanel.xhtml index 9d0f921ea..f93ed8ecc 100644 --- a/src/java/CdbWebPortal/web/views/itemMultiEdit/private/itemMultiCreateConfigurationPanel.xhtml +++ b/src/java/CdbWebPortal/web/views/itemMultiEdit/private/itemMultiCreateConfigurationPanel.xhtml @@ -5,7 +5,7 @@ See LICENSE file. --> diff --git a/src/java/CdbWebPortal/web/views/itemMultiEdit/private/itemMultiCreateConfigurationProjectObject.xhtml b/src/java/CdbWebPortal/web/views/itemMultiEdit/private/itemMultiCreateConfigurationProjectObject.xhtml index 040cefa7a..40e188eb7 100644 --- a/src/java/CdbWebPortal/web/views/itemMultiEdit/private/itemMultiCreateConfigurationProjectObject.xhtml +++ b/src/java/CdbWebPortal/web/views/itemMultiEdit/private/itemMultiCreateConfigurationProjectObject.xhtml @@ -5,8 +5,8 @@ See LICENSE file. --> + xmlns:ui="jakarta.faces.facelets" + xmlns:h="jakarta.faces.html"> diff --git a/src/java/CdbWebPortal/web/views/itemMultiEdit/private/itemMultiEditApplyValuesToColumnConfigDialog.xhtml b/src/java/CdbWebPortal/web/views/itemMultiEdit/private/itemMultiEditApplyValuesToColumnConfigDialog.xhtml index e8b733ed5..c50d8a612 100644 --- a/src/java/CdbWebPortal/web/views/itemMultiEdit/private/itemMultiEditApplyValuesToColumnConfigDialog.xhtml +++ b/src/java/CdbWebPortal/web/views/itemMultiEdit/private/itemMultiEditApplyValuesToColumnConfigDialog.xhtml @@ -5,16 +5,16 @@ See LICENSE file. --> + xmlns:f="jakarta.faces.core"> + boxStyleClass="viewTransparentBackgroundDialog"> diff --git a/src/java/CdbWebPortal/web/views/itemMultiEdit/private/itemMultiEditColumnHeaderFacet.xhtml b/src/java/CdbWebPortal/web/views/itemMultiEdit/private/itemMultiEditColumnHeaderFacet.xhtml index 034ce6545..54c6eef8f 100644 --- a/src/java/CdbWebPortal/web/views/itemMultiEdit/private/itemMultiEditColumnHeaderFacet.xhtml +++ b/src/java/CdbWebPortal/web/views/itemMultiEdit/private/itemMultiEditColumnHeaderFacet.xhtml @@ -5,9 +5,9 @@ See LICENSE file. --> + xmlns:f="jakarta.faces.core"> diff --git a/src/java/CdbWebPortal/web/views/itemMultiEdit/private/itemMultiEditEditableDataTable.xhtml b/src/java/CdbWebPortal/web/views/itemMultiEdit/private/itemMultiEditEditableDataTable.xhtml index 53069ed4a..9e58ff6ed 100644 --- a/src/java/CdbWebPortal/web/views/itemMultiEdit/private/itemMultiEditEditableDataTable.xhtml +++ b/src/java/CdbWebPortal/web/views/itemMultiEdit/private/itemMultiEditEditableDataTable.xhtml @@ -5,10 +5,11 @@ See LICENSE file. --> + xmlns:h="jakarta.faces.html" + xmlns:f="jakarta.faces.core"> diff --git a/src/java/CdbWebPortal/web/views/itemMultiEdit/private/itemMultiEditEditableListEntityInfoObject.xhtml b/src/java/CdbWebPortal/web/views/itemMultiEdit/private/itemMultiEditEditableListEntityInfoObject.xhtml index 74d9d2d16..436f16727 100644 --- a/src/java/CdbWebPortal/web/views/itemMultiEdit/private/itemMultiEditEditableListEntityInfoObject.xhtml +++ b/src/java/CdbWebPortal/web/views/itemMultiEdit/private/itemMultiEditEditableListEntityInfoObject.xhtml @@ -5,9 +5,9 @@ See LICENSE file. --> + xmlns:f="jakarta.faces.core"> diff --git a/src/java/CdbWebPortal/web/views/itemMultiEdit/private/itemMultiEditEditableListObject.xhtml b/src/java/CdbWebPortal/web/views/itemMultiEdit/private/itemMultiEditEditableListObject.xhtml index 11212a1d1..b50cef55f 100644 --- a/src/java/CdbWebPortal/web/views/itemMultiEdit/private/itemMultiEditEditableListObject.xhtml +++ b/src/java/CdbWebPortal/web/views/itemMultiEdit/private/itemMultiEditEditableListObject.xhtml @@ -5,7 +5,7 @@ See LICENSE file. --> diff --git a/src/java/CdbWebPortal/web/views/itemMultiEdit/private/itemMultiEditEditableListPropertyObject.xhtml b/src/java/CdbWebPortal/web/views/itemMultiEdit/private/itemMultiEditEditableListPropertyObject.xhtml index 7674cb88b..f6d5b9861 100644 --- a/src/java/CdbWebPortal/web/views/itemMultiEdit/private/itemMultiEditEditableListPropertyObject.xhtml +++ b/src/java/CdbWebPortal/web/views/itemMultiEdit/private/itemMultiEditEditableListPropertyObject.xhtml @@ -5,10 +5,10 @@ See LICENSE file. --> + xmlns:h="jakarta.faces.html" + xmlns:f="jakarta.faces.core"> diff --git a/src/java/CdbWebPortal/web/views/itemMultiEdit/private/itemMultiEditEditableListSupport.xhtml b/src/java/CdbWebPortal/web/views/itemMultiEdit/private/itemMultiEditEditableListSupport.xhtml index 5caece0b8..b1ea14b98 100644 --- a/src/java/CdbWebPortal/web/views/itemMultiEdit/private/itemMultiEditEditableListSupport.xhtml +++ b/src/java/CdbWebPortal/web/views/itemMultiEdit/private/itemMultiEditEditableListSupport.xhtml @@ -5,10 +5,10 @@ See LICENSE file. --> + xmlns:h="jakarta.faces.html" + xmlns:f="jakarta.faces.core"> diff --git a/src/java/CdbWebPortal/web/views/itemMultiEdit/private/itemMultiEditEditableSelectSpecificPropertyDialog.xhtml b/src/java/CdbWebPortal/web/views/itemMultiEdit/private/itemMultiEditEditableSelectSpecificPropertyDialog.xhtml index a6c35f8e5..edd94e103 100644 --- a/src/java/CdbWebPortal/web/views/itemMultiEdit/private/itemMultiEditEditableSelectSpecificPropertyDialog.xhtml +++ b/src/java/CdbWebPortal/web/views/itemMultiEdit/private/itemMultiEditEditableSelectSpecificPropertyDialog.xhtml @@ -5,15 +5,15 @@ See LICENSE file. --> + xmlns:h="jakarta.faces.html" + xmlns:f="jakarta.faces.core"> @@ -33,7 +35,7 @@ See LICENSE file. oncomplete="PF('loadingDialog').hide(); PF('multiEditSelectSpecificPropertyValueDialogWidget').hide()"/> - + diff --git a/src/java/CdbWebPortal/web/views/itemMultiEdit/private/itemMultiEditGeneralColumnHeaderFacet.xhtml b/src/java/CdbWebPortal/web/views/itemMultiEdit/private/itemMultiEditGeneralColumnHeaderFacet.xhtml index 48d6b525a..f98c0fd37 100644 --- a/src/java/CdbWebPortal/web/views/itemMultiEdit/private/itemMultiEditGeneralColumnHeaderFacet.xhtml +++ b/src/java/CdbWebPortal/web/views/itemMultiEdit/private/itemMultiEditGeneralColumnHeaderFacet.xhtml @@ -5,7 +5,7 @@ See LICENSE file. --> diff --git a/src/java/CdbWebPortal/web/views/itemMultiEdit/private/itemMultiEditListDataTable.xhtml b/src/java/CdbWebPortal/web/views/itemMultiEdit/private/itemMultiEditListDataTable.xhtml index 87859520c..a27a24aff 100644 --- a/src/java/CdbWebPortal/web/views/itemMultiEdit/private/itemMultiEditListDataTable.xhtml +++ b/src/java/CdbWebPortal/web/views/itemMultiEdit/private/itemMultiEditListDataTable.xhtml @@ -5,12 +5,12 @@ See LICENSE file. --> - + diff --git a/src/java/CdbWebPortal/web/views/itemMultiEdit/private/itemMultiEditUpdateContent.xhtml b/src/java/CdbWebPortal/web/views/itemMultiEdit/private/itemMultiEditUpdateContent.xhtml index 8ed3af5f9..3b2835b4a 100644 --- a/src/java/CdbWebPortal/web/views/itemMultiEdit/private/itemMultiEditUpdateContent.xhtml +++ b/src/java/CdbWebPortal/web/views/itemMultiEdit/private/itemMultiEditUpdateContent.xhtml @@ -5,10 +5,10 @@ See LICENSE file. --> + xmlns:c="jakarta.tags.core"> @@ -22,7 +22,7 @@ See LICENSE file. - + diff --git a/src/java/CdbWebPortal/web/views/itemMultiEdit/private/itemMultiEditUpdateGeneralOptionsPanelGrid.xhtml b/src/java/CdbWebPortal/web/views/itemMultiEdit/private/itemMultiEditUpdateGeneralOptionsPanelGrid.xhtml index c294d2d3e..49582c656 100644 --- a/src/java/CdbWebPortal/web/views/itemMultiEdit/private/itemMultiEditUpdateGeneralOptionsPanelGrid.xhtml +++ b/src/java/CdbWebPortal/web/views/itemMultiEdit/private/itemMultiEditUpdateGeneralOptionsPanelGrid.xhtml @@ -5,11 +5,11 @@ See LICENSE file. --> + xmlns:h="jakarta.faces.html"> Select desired item columns to edit - + diff --git a/src/java/CdbWebPortal/web/views/itemMultiEdit/private/itemMultiEditUpdatePermissionOptionsPanelGrid.xhtml b/src/java/CdbWebPortal/web/views/itemMultiEdit/private/itemMultiEditUpdatePermissionOptionsPanelGrid.xhtml index f41ea7010..7581b9d10 100644 --- a/src/java/CdbWebPortal/web/views/itemMultiEdit/private/itemMultiEditUpdatePermissionOptionsPanelGrid.xhtml +++ b/src/java/CdbWebPortal/web/views/itemMultiEdit/private/itemMultiEditUpdatePermissionOptionsPanelGrid.xhtml @@ -5,11 +5,11 @@ See LICENSE file. --> + xmlns:h="jakarta.faces.html"> Select desired permission columns to edit. - + diff --git a/src/java/CdbWebPortal/web/views/itemMultiEdit/private/templates/itemCreateMultipleTemplate.xhtml b/src/java/CdbWebPortal/web/views/itemMultiEdit/private/templates/itemCreateMultipleTemplate.xhtml index c3a00663a..8d64fa494 100644 --- a/src/java/CdbWebPortal/web/views/itemMultiEdit/private/templates/itemCreateMultipleTemplate.xhtml +++ b/src/java/CdbWebPortal/web/views/itemMultiEdit/private/templates/itemCreateMultipleTemplate.xhtml @@ -5,7 +5,7 @@ See LICENSE file. --> diff --git a/src/java/CdbWebPortal/web/views/itemMultiEdit/private/templates/itemEditMultipleTemplate.xhtml b/src/java/CdbWebPortal/web/views/itemMultiEdit/private/templates/itemEditMultipleTemplate.xhtml index 05292a8c4..cb1552b8a 100644 --- a/src/java/CdbWebPortal/web/views/itemMultiEdit/private/templates/itemEditMultipleTemplate.xhtml +++ b/src/java/CdbWebPortal/web/views/itemMultiEdit/private/templates/itemEditMultipleTemplate.xhtml @@ -5,10 +5,10 @@ See LICENSE file. --> + xmlns:h="jakarta.faces.html"> diff --git a/src/java/CdbWebPortal/web/views/itemMultiEdit/private/templates/itemMultiCreateConfigurationPanelTemplate.xhtml b/src/java/CdbWebPortal/web/views/itemMultiEdit/private/templates/itemMultiCreateConfigurationPanelTemplate.xhtml index 425043ccb..ae3bbaab2 100644 --- a/src/java/CdbWebPortal/web/views/itemMultiEdit/private/templates/itemMultiCreateConfigurationPanelTemplate.xhtml +++ b/src/java/CdbWebPortal/web/views/itemMultiEdit/private/templates/itemMultiCreateConfigurationPanelTemplate.xhtml @@ -5,15 +5,15 @@ See LICENSE file. --> + xmlns:h="jakarta.faces.html" + xmlns:f="jakarta.faces.core">

Select #{entityController.derivedFromItemTitle}.

- +
- +

Default Values for new items.

- + diff --git a/src/java/CdbWebPortal/web/views/itemMultiEdit/private/templates/itemMultiEditEditableListObjectTemplate.xhtml b/src/java/CdbWebPortal/web/views/itemMultiEdit/private/templates/itemMultiEditEditableListObjectTemplate.xhtml index 648742bf1..32d5c747e 100644 --- a/src/java/CdbWebPortal/web/views/itemMultiEdit/private/templates/itemMultiEditEditableListObjectTemplate.xhtml +++ b/src/java/CdbWebPortal/web/views/itemMultiEdit/private/templates/itemMultiEditEditableListObjectTemplate.xhtml @@ -5,9 +5,9 @@ See LICENSE file. --> + xmlns:h="jakarta.faces.html"> diff --git a/src/java/CdbWebPortal/web/views/itemMultiEdit/private/templates/itemMultiEditUpdateContentTemplate.xhtml b/src/java/CdbWebPortal/web/views/itemMultiEdit/private/templates/itemMultiEditUpdateContentTemplate.xhtml index f4afff973..ce2befadc 100644 --- a/src/java/CdbWebPortal/web/views/itemMultiEdit/private/templates/itemMultiEditUpdateContentTemplate.xhtml +++ b/src/java/CdbWebPortal/web/views/itemMultiEdit/private/templates/itemMultiEditUpdateContentTemplate.xhtml @@ -5,10 +5,10 @@ See LICENSE file. --> + xmlns:h="jakarta.faces.html" + xmlns:f="jakarta.faces.core">
diff --git a/src/java/CdbWebPortal/web/views/itemMultiEdit/private/templates/itemMultipleEditTemplateBase.xhtml b/src/java/CdbWebPortal/web/views/itemMultiEdit/private/templates/itemMultipleEditTemplateBase.xhtml index 4417963c9..67a361440 100644 --- a/src/java/CdbWebPortal/web/views/itemMultiEdit/private/templates/itemMultipleEditTemplateBase.xhtml +++ b/src/java/CdbWebPortal/web/views/itemMultiEdit/private/templates/itemMultipleEditTemplateBase.xhtml @@ -5,11 +5,11 @@ See LICENSE file. --> + xmlns:h="jakarta.faces.html" + xmlns:f="jakarta.faces.core"> diff --git a/src/java/CdbWebPortal/web/views/itemProject/private/itemProjectSelectDialog.xhtml b/src/java/CdbWebPortal/web/views/itemProject/private/itemProjectSelectDialog.xhtml index bc31953ff..b508f5726 100644 --- a/src/java/CdbWebPortal/web/views/itemProject/private/itemProjectSelectDialog.xhtml +++ b/src/java/CdbWebPortal/web/views/itemProject/private/itemProjectSelectDialog.xhtml @@ -5,10 +5,10 @@ See LICENSE file. --> + xmlns:f="jakarta.faces.core"> @@ -19,7 +19,7 @@ See LICENSE file. - + diff --git a/src/java/CdbWebPortal/web/views/itemProject/private/itemProjectSelectedLabelDialog.xhtml b/src/java/CdbWebPortal/web/views/itemProject/private/itemProjectSelectedLabelDialog.xhtml index a952920a8..3b47270cb 100644 --- a/src/java/CdbWebPortal/web/views/itemProject/private/itemProjectSelectedLabelDialog.xhtml +++ b/src/java/CdbWebPortal/web/views/itemProject/private/itemProjectSelectedLabelDialog.xhtml @@ -5,17 +5,13 @@ See LICENSE file. --> + xmlns:h="jakarta.faces.html" + xmlns:f="jakarta.faces.core"> - - - - + xmlns:h="jakarta.faces.html" + xmlns:f="jakarta.faces.core"> @@ -16,7 +16,7 @@ See LICENSE file. @@ -25,7 +25,7 @@ See LICENSE file. - @@ -68,7 +68,7 @@ See LICENSE file.
- + + xmlns:ui="jakarta.faces.facelets"> - + diff --git a/src/java/CdbWebPortal/web/views/itemSource/private/itemSourceEditListCustomizeDisplayDialog.xhtml b/src/java/CdbWebPortal/web/views/itemSource/private/itemSourceEditListCustomizeDisplayDialog.xhtml index 377bf3ac0..11971978e 100644 --- a/src/java/CdbWebPortal/web/views/itemSource/private/itemSourceEditListCustomizeDisplayDialog.xhtml +++ b/src/java/CdbWebPortal/web/views/itemSource/private/itemSourceEditListCustomizeDisplayDialog.xhtml @@ -5,9 +5,9 @@ See LICENSE file. --> diff --git a/src/java/CdbWebPortal/web/views/itemSource/private/itemSourceEditListDataTable.xhtml b/src/java/CdbWebPortal/web/views/itemSource/private/itemSourceEditListDataTable.xhtml index d99d418df..b953e7774 100644 --- a/src/java/CdbWebPortal/web/views/itemSource/private/itemSourceEditListDataTable.xhtml +++ b/src/java/CdbWebPortal/web/views/itemSource/private/itemSourceEditListDataTable.xhtml @@ -6,21 +6,23 @@ See LICENSE file. diff --git a/src/java/CdbWebPortal/web/views/itemSource/private/itemSourceListCustomizeDisplayDialog.xhtml b/src/java/CdbWebPortal/web/views/itemSource/private/itemSourceListCustomizeDisplayDialog.xhtml index a7c849f2e..e375436db 100644 --- a/src/java/CdbWebPortal/web/views/itemSource/private/itemSourceListCustomizeDisplayDialog.xhtml +++ b/src/java/CdbWebPortal/web/views/itemSource/private/itemSourceListCustomizeDisplayDialog.xhtml @@ -5,9 +5,9 @@ See LICENSE file. --> diff --git a/src/java/CdbWebPortal/web/views/itemSource/private/itemSourceListCustomizePanelGrid.xhtml b/src/java/CdbWebPortal/web/views/itemSource/private/itemSourceListCustomizePanelGrid.xhtml index a359ca1ad..3413c7d1c 100644 --- a/src/java/CdbWebPortal/web/views/itemSource/private/itemSourceListCustomizePanelGrid.xhtml +++ b/src/java/CdbWebPortal/web/views/itemSource/private/itemSourceListCustomizePanelGrid.xhtml @@ -5,13 +5,13 @@ See LICENSE file. --> - + diff --git a/src/java/CdbWebPortal/web/views/itemSource/private/itemSourceListDataTable.xhtml b/src/java/CdbWebPortal/web/views/itemSource/private/itemSourceListDataTable.xhtml index 493650896..27c4dfba8 100644 --- a/src/java/CdbWebPortal/web/views/itemSource/private/itemSourceListDataTable.xhtml +++ b/src/java/CdbWebPortal/web/views/itemSource/private/itemSourceListDataTable.xhtml @@ -5,9 +5,9 @@ See LICENSE file. --> @@ -16,6 +16,7 @@ See LICENSE file. + xmlns:h="jakarta.faces.html" + xmlns:f="jakarta.faces.core"> diff --git a/src/java/CdbWebPortal/web/views/itemSource/private/templateDefaults/itemSourceFieldEditValues/itemSourceContactInfo.xhtml b/src/java/CdbWebPortal/web/views/itemSource/private/templateDefaults/itemSourceFieldEditValues/itemSourceContactInfo.xhtml index bdf1509f9..59d3585cb 100644 --- a/src/java/CdbWebPortal/web/views/itemSource/private/templateDefaults/itemSourceFieldEditValues/itemSourceContactInfo.xhtml +++ b/src/java/CdbWebPortal/web/views/itemSource/private/templateDefaults/itemSourceFieldEditValues/itemSourceContactInfo.xhtml @@ -6,7 +6,7 @@ See LICENSE file. - + diff --git a/src/java/CdbWebPortal/web/views/itemSource/private/templateDefaults/itemSourceFieldEditValues/itemSourceDescription.xhtml b/src/java/CdbWebPortal/web/views/itemSource/private/templateDefaults/itemSourceFieldEditValues/itemSourceDescription.xhtml index 63e1d3b59..7efedce83 100644 --- a/src/java/CdbWebPortal/web/views/itemSource/private/templateDefaults/itemSourceFieldEditValues/itemSourceDescription.xhtml +++ b/src/java/CdbWebPortal/web/views/itemSource/private/templateDefaults/itemSourceFieldEditValues/itemSourceDescription.xhtml @@ -6,7 +6,7 @@ See LICENSE file. + xmlns:h="jakarta.faces.html">
diff --git a/src/java/CdbWebPortal/web/views/itemSource/private/templateDefaults/itemSourceFieldEditValues/itemSourceName.xhtml b/src/java/CdbWebPortal/web/views/itemSource/private/templateDefaults/itemSourceFieldEditValues/itemSourceName.xhtml index 31021472d..66d413da9 100644 --- a/src/java/CdbWebPortal/web/views/itemSource/private/templateDefaults/itemSourceFieldEditValues/itemSourceName.xhtml +++ b/src/java/CdbWebPortal/web/views/itemSource/private/templateDefaults/itemSourceFieldEditValues/itemSourceName.xhtml @@ -6,8 +6,8 @@ See LICENSE file. + xmlns:h="jakarta.faces.html"> diff --git a/src/java/CdbWebPortal/web/views/itemSource/private/templateDefaults/itemSourceFieldEditValues/itemSourceVendor.xhtml b/src/java/CdbWebPortal/web/views/itemSource/private/templateDefaults/itemSourceFieldEditValues/itemSourceVendor.xhtml index 2bd916af1..5abd18137 100644 --- a/src/java/CdbWebPortal/web/views/itemSource/private/templateDefaults/itemSourceFieldEditValues/itemSourceVendor.xhtml +++ b/src/java/CdbWebPortal/web/views/itemSource/private/templateDefaults/itemSourceFieldEditValues/itemSourceVendor.xhtml @@ -6,9 +6,9 @@ See LICENSE file. + xmlns:h="jakarta.faces.html">
diff --git a/src/java/CdbWebPortal/web/views/itemSparePartsTrackingProperty/private/itemSparePartsPropertyConfigurationDialog.xhtml b/src/java/CdbWebPortal/web/views/itemSparePartsTrackingProperty/private/itemSparePartsPropertyConfigurationDialog.xhtml index b87dd03a9..93c4e432b 100644 --- a/src/java/CdbWebPortal/web/views/itemSparePartsTrackingProperty/private/itemSparePartsPropertyConfigurationDialog.xhtml +++ b/src/java/CdbWebPortal/web/views/itemSparePartsTrackingProperty/private/itemSparePartsPropertyConfigurationDialog.xhtml @@ -5,21 +5,21 @@ See LICENSE file. --> + xmlns:h="jakarta.faces.html"> - + diff --git a/src/java/CdbWebPortal/web/views/itemStatus/private/applyValuesTo/itemStatusInput.xhtml b/src/java/CdbWebPortal/web/views/itemStatus/private/applyValuesTo/itemStatusInput.xhtml index 53a7e464c..bb20e5a63 100644 --- a/src/java/CdbWebPortal/web/views/itemStatus/private/applyValuesTo/itemStatusInput.xhtml +++ b/src/java/CdbWebPortal/web/views/itemStatus/private/applyValuesTo/itemStatusInput.xhtml @@ -5,13 +5,13 @@ See LICENSE file. --> + xmlns:h="jakarta.faces.html"> - diff --git a/src/java/CdbWebPortal/web/views/itemStatus/private/itemStatusHistoryDialog.xhtml b/src/java/CdbWebPortal/web/views/itemStatus/private/itemStatusHistoryDialog.xhtml index ad2756548..682853df3 100644 --- a/src/java/CdbWebPortal/web/views/itemStatus/private/itemStatusHistoryDialog.xhtml +++ b/src/java/CdbWebPortal/web/views/itemStatus/private/itemStatusHistoryDialog.xhtml @@ -6,20 +6,21 @@ See LICENSE file. + xmlns:f="jakarta.faces.core" + xmlns:h="jakarta.faces.html"> diff --git a/src/java/CdbWebPortal/web/views/itemStatus/private/itemStatusListCustomizeObject.xhtml b/src/java/CdbWebPortal/web/views/itemStatus/private/itemStatusListCustomizeObject.xhtml index 44044df24..ca527f9b6 100644 --- a/src/java/CdbWebPortal/web/views/itemStatus/private/itemStatusListCustomizeObject.xhtml +++ b/src/java/CdbWebPortal/web/views/itemStatus/private/itemStatusListCustomizeObject.xhtml @@ -5,9 +5,9 @@ See LICENSE file. --> + xmlns:h="jakarta.faces.html"> diff --git a/src/java/CdbWebPortal/web/views/itemStatus/private/itemStatusListObject.xhtml b/src/java/CdbWebPortal/web/views/itemStatus/private/itemStatusListObject.xhtml index af2df268a..ac84ac9c7 100644 --- a/src/java/CdbWebPortal/web/views/itemStatus/private/itemStatusListObject.xhtml +++ b/src/java/CdbWebPortal/web/views/itemStatus/private/itemStatusListObject.xhtml @@ -5,9 +5,9 @@ See LICENSE file. --> + xmlns:h="jakarta.faces.html"> + xmlns:h="jakarta.faces.html"> diff --git a/src/java/CdbWebPortal/web/views/itemStatus/private/itemStatusMultiEditEditableListObject.xhtml b/src/java/CdbWebPortal/web/views/itemStatus/private/itemStatusMultiEditEditableListObject.xhtml index 8a2385294..98b73636c 100644 --- a/src/java/CdbWebPortal/web/views/itemStatus/private/itemStatusMultiEditEditableListObject.xhtml +++ b/src/java/CdbWebPortal/web/views/itemStatus/private/itemStatusMultiEditEditableListObject.xhtml @@ -5,7 +5,7 @@ See LICENSE file. --> diff --git a/src/java/CdbWebPortal/web/views/itemStatus/private/itemStatusPanelGridObject.xhtml b/src/java/CdbWebPortal/web/views/itemStatus/private/itemStatusPanelGridObject.xhtml index 2a43031dd..971ddcc46 100644 --- a/src/java/CdbWebPortal/web/views/itemStatus/private/itemStatusPanelGridObject.xhtml +++ b/src/java/CdbWebPortal/web/views/itemStatus/private/itemStatusPanelGridObject.xhtml @@ -5,10 +5,10 @@ See LICENSE file. --> + xmlns:h="jakarta.faces.html" + xmlns:f="jakarta.faces.core"> diff --git a/src/java/CdbWebPortal/web/views/itemStatus/private/templateDefaults/itemFieldEditValues/itemDomainInventoryStatus.xhtml b/src/java/CdbWebPortal/web/views/itemStatus/private/templateDefaults/itemFieldEditValues/itemDomainInventoryStatus.xhtml index b1e99272b..ad9451914 100644 --- a/src/java/CdbWebPortal/web/views/itemStatus/private/templateDefaults/itemFieldEditValues/itemDomainInventoryStatus.xhtml +++ b/src/java/CdbWebPortal/web/views/itemStatus/private/templateDefaults/itemFieldEditValues/itemDomainInventoryStatus.xhtml @@ -5,7 +5,7 @@ See LICENSE file. --> diff --git a/src/java/CdbWebPortal/web/views/itemStatus/private/templateDefaults/itemFieldEditValues/itemDomainInventoryStatusEffectiveDate.xhtml b/src/java/CdbWebPortal/web/views/itemStatus/private/templateDefaults/itemFieldEditValues/itemDomainInventoryStatusEffectiveDate.xhtml index e17f0e5da..1d7516d21 100644 --- a/src/java/CdbWebPortal/web/views/itemStatus/private/templateDefaults/itemFieldEditValues/itemDomainInventoryStatusEffectiveDate.xhtml +++ b/src/java/CdbWebPortal/web/views/itemStatus/private/templateDefaults/itemFieldEditValues/itemDomainInventoryStatusEffectiveDate.xhtml @@ -5,7 +5,7 @@ See LICENSE file. --> diff --git a/src/java/CdbWebPortal/web/views/itemType/create.xhtml b/src/java/CdbWebPortal/web/views/itemType/create.xhtml index 604337ea4..16d994970 100644 --- a/src/java/CdbWebPortal/web/views/itemType/create.xhtml +++ b/src/java/CdbWebPortal/web/views/itemType/create.xhtml @@ -5,8 +5,8 @@ See LICENSE file. --> diff --git a/src/java/CdbWebPortal/web/views/itemType/edit.xhtml b/src/java/CdbWebPortal/web/views/itemType/edit.xhtml index 4aa3ba7ab..72089a1ec 100644 --- a/src/java/CdbWebPortal/web/views/itemType/edit.xhtml +++ b/src/java/CdbWebPortal/web/views/itemType/edit.xhtml @@ -5,8 +5,8 @@ See LICENSE file. --> diff --git a/src/java/CdbWebPortal/web/views/itemType/export.xhtml b/src/java/CdbWebPortal/web/views/itemType/export.xhtml index 371b557f4..494651bfd 100644 --- a/src/java/CdbWebPortal/web/views/itemType/export.xhtml +++ b/src/java/CdbWebPortal/web/views/itemType/export.xhtml @@ -5,9 +5,9 @@ See LICENSE file. --> diff --git a/src/java/CdbWebPortal/web/views/itemType/import.xhtml b/src/java/CdbWebPortal/web/views/itemType/import.xhtml index 698ebff6c..d28f90795 100644 --- a/src/java/CdbWebPortal/web/views/itemType/import.xhtml +++ b/src/java/CdbWebPortal/web/views/itemType/import.xhtml @@ -5,9 +5,9 @@ See LICENSE file. --> @@ -22,6 +22,7 @@ See LICENSE file.
diff --git a/src/java/CdbWebPortal/web/views/itemType/list.xhtml b/src/java/CdbWebPortal/web/views/itemType/list.xhtml index 90ad0ba22..757951ac7 100644 --- a/src/java/CdbWebPortal/web/views/itemType/list.xhtml +++ b/src/java/CdbWebPortal/web/views/itemType/list.xhtml @@ -5,9 +5,9 @@ See LICENSE file. --> + xmlns:f="jakarta.faces.core"> diff --git a/src/java/CdbWebPortal/web/views/itemType/private/itemTypeEditPanelGrid.xhtml b/src/java/CdbWebPortal/web/views/itemType/private/itemTypeEditPanelGrid.xhtml index c01bcd733..a75e4932f 100644 --- a/src/java/CdbWebPortal/web/views/itemType/private/itemTypeEditPanelGrid.xhtml +++ b/src/java/CdbWebPortal/web/views/itemType/private/itemTypeEditPanelGrid.xhtml @@ -5,10 +5,10 @@ See LICENSE file. --> diff --git a/src/java/CdbWebPortal/web/views/itemType/private/itemTypeListDataTable.xhtml b/src/java/CdbWebPortal/web/views/itemType/private/itemTypeListDataTable.xhtml index f683bd9a0..63d500025 100644 --- a/src/java/CdbWebPortal/web/views/itemType/private/itemTypeListDataTable.xhtml +++ b/src/java/CdbWebPortal/web/views/itemType/private/itemTypeListDataTable.xhtml @@ -5,7 +5,7 @@ See LICENSE file. --> diff --git a/src/java/CdbWebPortal/web/views/itemType/private/itemTypeListObject.xhtml b/src/java/CdbWebPortal/web/views/itemType/private/itemTypeListObject.xhtml index cf47c98fc..20ce29efa 100644 --- a/src/java/CdbWebPortal/web/views/itemType/private/itemTypeListObject.xhtml +++ b/src/java/CdbWebPortal/web/views/itemType/private/itemTypeListObject.xhtml @@ -5,10 +5,10 @@ See LICENSE file. --> + xmlns:h="jakarta.faces.html"> diff --git a/src/java/CdbWebPortal/web/views/itemType/private/itemTypeSearchDataTable.xhtml b/src/java/CdbWebPortal/web/views/itemType/private/itemTypeSearchDataTable.xhtml index 92e530a1a..faca02286 100644 --- a/src/java/CdbWebPortal/web/views/itemType/private/itemTypeSearchDataTable.xhtml +++ b/src/java/CdbWebPortal/web/views/itemType/private/itemTypeSearchDataTable.xhtml @@ -5,15 +5,17 @@ See LICENSE file. --> diff --git a/src/java/CdbWebPortal/web/views/itemType/private/itemTypeViewPanelGrid.xhtml b/src/java/CdbWebPortal/web/views/itemType/private/itemTypeViewPanelGrid.xhtml index 2eb09903e..d30f60b95 100644 --- a/src/java/CdbWebPortal/web/views/itemType/private/itemTypeViewPanelGrid.xhtml +++ b/src/java/CdbWebPortal/web/views/itemType/private/itemTypeViewPanelGrid.xhtml @@ -5,10 +5,10 @@ See LICENSE file. --> + xmlns:h="jakarta.faces.html"> diff --git a/src/java/CdbWebPortal/web/views/itemType/view.xhtml b/src/java/CdbWebPortal/web/views/itemType/view.xhtml index cbe502cbf..064b173ec 100644 --- a/src/java/CdbWebPortal/web/views/itemType/view.xhtml +++ b/src/java/CdbWebPortal/web/views/itemType/view.xhtml @@ -5,8 +5,8 @@ See LICENSE file. --> diff --git a/src/java/CdbWebPortal/web/views/itemTypeCategory/private/itemTypeCategoryEditPanelGridObject.xhtml b/src/java/CdbWebPortal/web/views/itemTypeCategory/private/itemTypeCategoryEditPanelGridObject.xhtml index 93c80b3fb..17430bc8e 100644 --- a/src/java/CdbWebPortal/web/views/itemTypeCategory/private/itemTypeCategoryEditPanelGridObject.xhtml +++ b/src/java/CdbWebPortal/web/views/itemTypeCategory/private/itemTypeCategoryEditPanelGridObject.xhtml @@ -8,9 +8,9 @@ See LICENSE file. + xmlns:h="jakarta.faces.html"> - diff --git a/src/java/CdbWebPortal/web/views/locatableItem/private/locatableItemListCustomizeObject.xhtml b/src/java/CdbWebPortal/web/views/locatableItem/private/locatableItemListCustomizeObject.xhtml index f6617d5f8..769e47a0a 100644 --- a/src/java/CdbWebPortal/web/views/locatableItem/private/locatableItemListCustomizeObject.xhtml +++ b/src/java/CdbWebPortal/web/views/locatableItem/private/locatableItemListCustomizeObject.xhtml @@ -5,9 +5,9 @@ See LICENSE file. --> + xmlns:h="jakarta.faces.html"> diff --git a/src/java/CdbWebPortal/web/views/locatableItem/private/locatableItemListLocationObject.xhtml b/src/java/CdbWebPortal/web/views/locatableItem/private/locatableItemListLocationObject.xhtml index 54b1bae96..fd664215b 100644 --- a/src/java/CdbWebPortal/web/views/locatableItem/private/locatableItemListLocationObject.xhtml +++ b/src/java/CdbWebPortal/web/views/locatableItem/private/locatableItemListLocationObject.xhtml @@ -5,9 +5,9 @@ See LICENSE file. --> + xmlns:h="jakarta.faces.html"> - - diff --git a/src/java/CdbWebPortal/web/views/locatableItem/private/locatableItemLocationDetailsEditObject.xhtml b/src/java/CdbWebPortal/web/views/locatableItem/private/locatableItemLocationDetailsEditObject.xhtml index 712729312..ee1bbe918 100644 --- a/src/java/CdbWebPortal/web/views/locatableItem/private/locatableItemLocationDetailsEditObject.xhtml +++ b/src/java/CdbWebPortal/web/views/locatableItem/private/locatableItemLocationDetailsEditObject.xhtml @@ -5,8 +5,8 @@ See LICENSE file. --> diff --git a/src/java/CdbWebPortal/web/views/locatableItem/private/locatableItemLocationDetailsEditObjectInput.xhtml b/src/java/CdbWebPortal/web/views/locatableItem/private/locatableItemLocationDetailsEditObjectInput.xhtml index b056fbbc8..00ca3afd0 100644 --- a/src/java/CdbWebPortal/web/views/locatableItem/private/locatableItemLocationDetailsEditObjectInput.xhtml +++ b/src/java/CdbWebPortal/web/views/locatableItem/private/locatableItemLocationDetailsEditObjectInput.xhtml @@ -5,7 +5,7 @@ See LICENSE file. --> diff --git a/src/java/CdbWebPortal/web/views/locatableItem/private/locatableItemLocationEditPanelGrid.xhtml b/src/java/CdbWebPortal/web/views/locatableItem/private/locatableItemLocationEditPanelGrid.xhtml index 457ab7627..8aa15af9c 100644 --- a/src/java/CdbWebPortal/web/views/locatableItem/private/locatableItemLocationEditPanelGrid.xhtml +++ b/src/java/CdbWebPortal/web/views/locatableItem/private/locatableItemLocationEditPanelGrid.xhtml @@ -5,7 +5,7 @@ See LICENSE file. --> + xmlns:ui="jakarta.faces.facelets"> + xmlns:h="jakarta.faces.html" + xmlns:f="jakarta.faces.core"> diff --git a/src/java/CdbWebPortal/web/views/locatableItem/private/locatableItemLocationSelectDialog.xhtml b/src/java/CdbWebPortal/web/views/locatableItem/private/locatableItemLocationSelectDialog.xhtml index c2de1043f..0a52fcb94 100644 --- a/src/java/CdbWebPortal/web/views/locatableItem/private/locatableItemLocationSelectDialog.xhtml +++ b/src/java/CdbWebPortal/web/views/locatableItem/private/locatableItemLocationSelectDialog.xhtml @@ -5,9 +5,9 @@ See LICENSE file. --> + xmlns:f="jakarta.faces.core"> @@ -15,7 +15,7 @@ See LICENSE file. diff --git a/src/java/CdbWebPortal/web/views/locatableItem/private/locatableItemLocationSelectTreeSelection.xhtml b/src/java/CdbWebPortal/web/views/locatableItem/private/locatableItemLocationSelectTreeSelection.xhtml index 951b6927b..6e15b51a5 100644 --- a/src/java/CdbWebPortal/web/views/locatableItem/private/locatableItemLocationSelectTreeSelection.xhtml +++ b/src/java/CdbWebPortal/web/views/locatableItem/private/locatableItemLocationSelectTreeSelection.xhtml @@ -5,7 +5,7 @@ See LICENSE file. --> diff --git a/src/java/CdbWebPortal/web/views/locatableItem/private/locatableItemLocationSelection.xhtml b/src/java/CdbWebPortal/web/views/locatableItem/private/locatableItemLocationSelection.xhtml index 753568072..03b605dc4 100644 --- a/src/java/CdbWebPortal/web/views/locatableItem/private/locatableItemLocationSelection.xhtml +++ b/src/java/CdbWebPortal/web/views/locatableItem/private/locatableItemLocationSelection.xhtml @@ -5,9 +5,9 @@ See LICENSE file. --> + xmlns:h="jakarta.faces.html"> @@ -15,7 +15,7 @@ See LICENSE file. - + + xmlns:f="jakarta.faces.core" + xmlns:h="jakarta.faces.html"> @@ -32,7 +32,7 @@ Ensure that multiedit controller contains updateLocation and updateLocationDetai value="#{currentItemObject != null}" /> - + diff --git a/src/java/CdbWebPortal/web/views/locatableItem/private/locatableItemSpecificMultiEditConfigurationObject.xhtml b/src/java/CdbWebPortal/web/views/locatableItem/private/locatableItemSpecificMultiEditConfigurationObject.xhtml index f6d0f619b..98d9f507f 100644 --- a/src/java/CdbWebPortal/web/views/locatableItem/private/locatableItemSpecificMultiEditConfigurationObject.xhtml +++ b/src/java/CdbWebPortal/web/views/locatableItem/private/locatableItemSpecificMultiEditConfigurationObject.xhtml @@ -9,9 +9,9 @@ Ensure that multiedit controller contains updateLocation and updateLocationDetai + xmlns:h="jakarta.faces.html"> diff --git a/src/java/CdbWebPortal/web/views/locatableItem/private/locatableItemSpecificMultiEditEditableListObject.xhtml b/src/java/CdbWebPortal/web/views/locatableItem/private/locatableItemSpecificMultiEditEditableListObject.xhtml index 2c7dc144d..1eb13bec0 100644 --- a/src/java/CdbWebPortal/web/views/locatableItem/private/locatableItemSpecificMultiEditEditableListObject.xhtml +++ b/src/java/CdbWebPortal/web/views/locatableItem/private/locatableItemSpecificMultiEditEditableListObject.xhtml @@ -6,9 +6,9 @@ See LICENSE file. + xmlns:f="jakarta.faces.core"> @@ -39,7 +39,7 @@ See LICENSE file. - + + xmlns:ui="jakarta.faces.facelets"> diff --git a/src/java/CdbWebPortal/web/views/locatableItem/private/locatableItemViewPanelGridObject.xhtml b/src/java/CdbWebPortal/web/views/locatableItem/private/locatableItemViewPanelGridObject.xhtml index 72b87b9cb..376f2de6a 100644 --- a/src/java/CdbWebPortal/web/views/locatableItem/private/locatableItemViewPanelGridObject.xhtml +++ b/src/java/CdbWebPortal/web/views/locatableItem/private/locatableItemViewPanelGridObject.xhtml @@ -5,10 +5,10 @@ See LICENSE file. --> + xmlns:h="jakarta.faces.html" + xmlns:f="jakarta.faces.core"> diff --git a/src/java/CdbWebPortal/web/views/locatableItem/private/templateDefaults/locatableItemLocationDetailsListColumnObject.xhtml b/src/java/CdbWebPortal/web/views/locatableItem/private/templateDefaults/locatableItemLocationDetailsListColumnObject.xhtml index 14aa7930c..058dbfb41 100644 --- a/src/java/CdbWebPortal/web/views/locatableItem/private/templateDefaults/locatableItemLocationDetailsListColumnObject.xhtml +++ b/src/java/CdbWebPortal/web/views/locatableItem/private/templateDefaults/locatableItemLocationDetailsListColumnObject.xhtml @@ -5,8 +5,8 @@ See LICENSE file. --> + xmlns:ui="jakarta.faces.facelets" + xmlns:h="jakarta.faces.html"> diff --git a/src/java/CdbWebPortal/web/views/locatableItem/private/templateDefaults/locatableItemLocationListColumnObject.xhtml b/src/java/CdbWebPortal/web/views/locatableItem/private/templateDefaults/locatableItemLocationListColumnObject.xhtml index 510dbde23..360a99d69 100644 --- a/src/java/CdbWebPortal/web/views/locatableItem/private/templateDefaults/locatableItemLocationListColumnObject.xhtml +++ b/src/java/CdbWebPortal/web/views/locatableItem/private/templateDefaults/locatableItemLocationListColumnObject.xhtml @@ -5,8 +5,8 @@ See LICENSE file. --> diff --git a/src/java/CdbWebPortal/web/views/log/private/logAttachmentFileUpload.xhtml b/src/java/CdbWebPortal/web/views/log/private/logAttachmentFileUpload.xhtml index c77dea63d..c2330bd6c 100644 --- a/src/java/CdbWebPortal/web/views/log/private/logAttachmentFileUpload.xhtml +++ b/src/java/CdbWebPortal/web/views/log/private/logAttachmentFileUpload.xhtml @@ -5,7 +5,7 @@ See LICENSE file. --> diff --git a/src/java/CdbWebPortal/web/views/log/private/logAttachmentObject.xhtml b/src/java/CdbWebPortal/web/views/log/private/logAttachmentObject.xhtml index 360196f8f..d1248d176 100644 --- a/src/java/CdbWebPortal/web/views/log/private/logAttachmentObject.xhtml +++ b/src/java/CdbWebPortal/web/views/log/private/logAttachmentObject.xhtml @@ -5,8 +5,8 @@ See LICENSE file. --> + xmlns:ui="jakarta.faces.facelets" + xmlns:h="jakarta.faces.html">
@@ -24,7 +24,7 @@ See LICENSE file.
- + - + diff --git a/src/java/CdbWebPortal/web/views/log/private/logEditObject.xhtml b/src/java/CdbWebPortal/web/views/log/private/logEditObject.xhtml index 2aff538f2..db95d7dc4 100644 --- a/src/java/CdbWebPortal/web/views/log/private/logEditObject.xhtml +++ b/src/java/CdbWebPortal/web/views/log/private/logEditObject.xhtml @@ -5,9 +5,9 @@ See LICENSE file. --> diff --git a/src/java/CdbWebPortal/web/views/log/private/logListCustomizePanelGrid.xhtml b/src/java/CdbWebPortal/web/views/log/private/logListCustomizePanelGrid.xhtml index 80f288599..86c034d55 100644 --- a/src/java/CdbWebPortal/web/views/log/private/logListCustomizePanelGrid.xhtml +++ b/src/java/CdbWebPortal/web/views/log/private/logListCustomizePanelGrid.xhtml @@ -5,13 +5,13 @@ See LICENSE file. --> - + diff --git a/src/java/CdbWebPortal/web/views/log/private/logListObject.xhtml b/src/java/CdbWebPortal/web/views/log/private/logListObject.xhtml index 25cf3c4e6..f56b19a17 100644 --- a/src/java/CdbWebPortal/web/views/log/private/logListObject.xhtml +++ b/src/java/CdbWebPortal/web/views/log/private/logListObject.xhtml @@ -5,9 +5,9 @@ See LICENSE file. --> @@ -88,13 +88,17 @@ See LICENSE file. + + + + + diff --git a/src/java/CdbWebPortal/web/views/login.xhtml b/src/java/CdbWebPortal/web/views/login.xhtml index 74c7fb69a..6763ab250 100644 --- a/src/java/CdbWebPortal/web/views/login.xhtml +++ b/src/java/CdbWebPortal/web/views/login.xhtml @@ -5,8 +5,8 @@ See LICENSE file. --> @@ -19,12 +19,10 @@ See LICENSE file.