Class KeystoreViewModel
- java.lang.Object
-
- de.xima.fc.certificate.gui.internal.administration.KeystoreViewModel
-
- All Implemented Interfaces:
Serializable
public final class KeystoreViewModel extends Object implements Serializable
View model for keystores.- Since:
- 8.5.0
- Author:
- XIMA Media GmbH
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description KeystoreViewModel(Long id, String name, String description, EViewKeystoreType keystoreType, Long assigneeId, EViewStatus status, boolean defaultKeyStore, int entryCount)Creates a newKeystoreViewModelinstance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)LonggetAssigneeId()The ID of the owner (user or tenant) or NULL for system keystores.StringgetDescription()An optional description of the key store.StringgetDisplayName(Locale locale)intgetEntryCount()The number of entries in the keystore.StringgetHeaderRowField()StringgetIconStyleClass()LonggetId()The (database) id of the key store.EViewKeystoreTypegetKeystoreType()Assigned to a user, client or system.StringgetName()The name of the key store.EViewStatusgetStatus()The aggregated status of the validity of the certificates in the key store.inthashCode()booleanisDefaultKeyStore()Whether the keystore is the default keystore.booleanisDeletable()Whether the keystore is deletable.booleanisDownloadable()Whether the keystore is downloadable.StringtoString()
-
-
-
Constructor Detail
-
KeystoreViewModel
public KeystoreViewModel(Long id, String name, String description, EViewKeystoreType keystoreType, Long assigneeId, EViewStatus status, boolean defaultKeyStore, int entryCount)
Creates a newKeystoreViewModelinstance.- Parameters:
id- The (database) id of the key store.name- The name of the key store.description- An optional description of the key store.keystoreType- Assigned to a user, client or system.assigneeId- The ID of the owner (user or tenant) or NULL for system keystores.status- The aggregated status of the validity of the certificates in the key store. RED: At least one certificate is expired. YELLOW: At least one certificate is about to expire or has a problem. GREEN: No certificate is expired or about to expire and no certificate has a problem.defaultKeyStore- Whether the keystore is the default keystore.entryCount- The number of entries in the keystore.
-
-
Method Detail
-
getIconStyleClass
public String getIconStyleClass()
-
getHeaderRowField
public String getHeaderRowField()
-
isDeletable
public boolean isDeletable()
Whether the keystore is deletable.
-
isDownloadable
public boolean isDownloadable()
Whether the keystore is downloadable.
-
getId
public Long getId()
The (database) id of the key store.
-
getName
public String getName()
The name of the key store.
-
getDescription
public String getDescription()
An optional description of the key store.
-
getKeystoreType
public EViewKeystoreType getKeystoreType()
Assigned to a user, client or system.
-
getAssigneeId
public Long getAssigneeId()
The ID of the owner (user or tenant) or NULL for system keystores.
-
getStatus
public EViewStatus getStatus()
The aggregated status of the validity of the certificates in the key store. RED: At least one certificate is expired. YELLOW: At least one certificate is about to expire or has a problem. GREEN: No certificate is expired or about to expire and no certificate has a problem.
-
isDefaultKeyStore
public boolean isDefaultKeyStore()
Whether the keystore is the default keystore.
-
getEntryCount
public int getEntryCount()
The number of entries in the keystore.
-
-