Skip to content

PDF出力時にOwnerパスワードを設定できるようにする#1947

Merged
Iwamoto-Yoshiki2 merged 3 commits intomasterfrom
feature/1918-pdf-output-owner-password
Feb 24, 2026
Merged

PDF出力時にOwnerパスワードを設定できるようにする#1947
Iwamoto-Yoshiki2 merged 3 commits intomasterfrom
feature/1918-pdf-output-owner-password

Conversation

@Iwamoto-Yoshiki2
Copy link
Contributor

対応内容

closes #1918

動作確認・スクリーンショット(任意)

Admin Consoleのテンプレート作成画面にOwner Password AttributeNameを追加しました。
ダウンロードしてOwnerパスワードを設定可能なことを確認しました。
{07436971-B357-4647-AC47-0130353D00A5}

レビュー観点・補足情報(任意)

@Iwamoto-Yoshiki2 Iwamoto-Yoshiki2 changed the title PDF出力時に管理者用パスワードを設定できるようにする PDF出力時にOwnerパスワードを設定できるようにする Feb 18, 2026
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 ownerPasswordAttributeName field 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

@Iwamoto-Yoshiki2 Iwamoto-Yoshiki2 merged commit ce2f45f into master Feb 24, 2026
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

PDFパスワード、owerとuserで別設定できるようにする

3 participants