Class CertificateExportBeanImpl
- java.lang.Object
-
- de.xima.fc.certificate.gui.internal.exporting.CertificateExportBeanImpl
-
- All Implemented Interfaces:
CertificateExportBean,Serializable
@Named("certificateExportBean") @ViewScoped public class CertificateExportBeanImpl extends Object implements CertificateExportBeanBacking bean for certificate export.- Since:
- 8.5.0
- Author:
- Norman Lorenz
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description CertificateExportBeanImpl()CertificateExportBeanImpl(CertificateManagementService certificateManagementService, CryptoSettingsService cryptoSettingsService, SessionUserManager userManager, LocaleBean localeBean)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.primefaces.model.StreamedContentgetAdvancedCertificateDownload()CertificateViewModelgetCertificate()org.primefaces.model.StreamedContentgetCertificateDownload(Long certificateId)char[]getPassword()CryptoExportElementgetSelectedExportElement()ICryptoFileTypegetSelectedFileType()List<CryptoExportElement>getSupportedExportElements()booleanisShowPasswordField()voidsetPassword(char[] password)voidsetSelectedExportElement(CryptoExportElement selectedExportElement)voidsetSelectedFileType(ICryptoFileType selectedFileType)booleanstartCertificateExport(CertificateExportStartParams params)Starts the certificate export process with the given parameters.
-
-
-
Constructor Detail
-
CertificateExportBeanImpl
@Inject public CertificateExportBeanImpl(CertificateManagementService certificateManagementService, CryptoSettingsService cryptoSettingsService, SessionUserManager userManager, LocaleBean localeBean)
-
CertificateExportBeanImpl
public CertificateExportBeanImpl()
-
-
Method Detail
-
getAdvancedCertificateDownload
public org.primefaces.model.StreamedContent getAdvancedCertificateDownload()
-
getCertificateDownload
public org.primefaces.model.StreamedContent getCertificateDownload(Long certificateId)
-
isShowPasswordField
public boolean isShowPasswordField()
-
setSelectedExportElement
public void setSelectedExportElement(CryptoExportElement selectedExportElement)
-
startCertificateExport
public boolean startCertificateExport(CertificateExportStartParams params)
Description copied from interface:CertificateExportBeanStarts the certificate export process with the given parameters. Opens the certificate export dialog.If there are errors during the export process, they will be shown in the UI.
- Specified by:
startCertificateExportin interfaceCertificateExportBean- Parameters:
params- The parameters for starting the certificate export process, including the certificate ID and a callback for the export result.- Returns:
trueif the export process was started successfully,falseotherwise.
-
getCertificate
public CertificateViewModel getCertificate()
-
getSupportedExportElements
public List<CryptoExportElement> getSupportedExportElements()
-
getSelectedExportElement
public CryptoExportElement getSelectedExportElement()
-
getSelectedFileType
public ICryptoFileType getSelectedFileType()
-
setSelectedFileType
public void setSelectedFileType(ICryptoFileType selectedFileType)
-
getPassword
public char[] getPassword()
-
setPassword
public void setPassword(char[] password)
-
-