PDF出力時にOwnerパスワードを設定できるようにする#1947
Merged
Iwamoto-Yoshiki2 merged 3 commits intomasterfrom Feb 24, 2026
Merged
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
This pull request adds support for separate owner and user passwords in PDF output generation for Jasper reports. The feature allows administrators to configure different passwords for owner (administrative) and user (viewing) access levels in PDF files, improving security and access control. The implementation follows the mentioned issue #1918 requirements.
Changes:
- Added
ownerPasswordAttributeNamefield to JasperReportType definition and related metadata classes - Updated PDF export logic to support separate owner and user passwords with backward compatibility
- Extended Admin Console UI to include the new Owner Password AttributeName field
Reviewed changes
Copilot reviewed 7 out of 7 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| JasperReportType.java | Added ownerPasswordAttributeName property to the report type definition |
| MetaJasperReportType.java | Added metadata support for ownerPasswordAttributeName with proper synchronization in applyConfig() and currentConfig() |
| JasperReportingOutputModel.java | Added ownerPasswordAttributeName field to the output model |
| JasperReportingEngine.java | Implemented PDF encryption logic with separate owner/user password support and backward compatibility fallback |
| ReportTemplateUploadProperty.java | Added constant for the new owner password attribute name property |
| ReportTemplateUploadServiceImpl.java | Added server-side handling for the new owner password attribute parameter |
| ReportTemplateEditPane.java | Added UI field for Owner Password AttributeName configuration |
hkondoh
approved these changes
Feb 19, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
対応内容
closes #1918
動作確認・スクリーンショット(任意)
Admin Consoleのテンプレート作成画面に

Owner Password AttributeNameを追加しました。ダウンロードしてOwnerパスワードを設定可能なことを確認しました。
レビュー観点・補足情報(任意)