Interface CertificateExportBean
-
- All Superinterfaces:
Serializable
- All Known Implementing Classes:
CertificateExportBeanImpl
public interface CertificateExportBean extends Serializable
Common interface for interacting with the certificate export process via the certificate export wizard (dialog).- Since:
- 8.5.0
- Author:
- Norman Lorenz
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description static CertificateExportBeangetInstance()Returns an instance of theCertificateExportBeanusing CDI.booleanstartCertificateExport(CertificateExportStartParams params)Starts the certificate export process with the given parameters.
-
-
-
Method Detail
-
getInstance
static CertificateExportBean getInstance()
Returns an instance of theCertificateExportBeanusing CDI.This method should be used with caution, as it relies on CDI and works only during JSF lifecycle phases, where there is a
FacesContextavailable.- Returns:
- An instance of
CertificateExportBean. - Throws:
javax.enterprise.context.ContextNotActiveException- if called outside a JSF context.
-
startCertificateExport
boolean startCertificateExport(CertificateExportStartParams params)
Starts 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.
- 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.
-
-