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:
  • Constructor Details

    • KeystoreViewModel

      public KeystoreViewModel(Long id, String name, String description, EViewKeystoreType keystoreType, Long assigneeId, EViewStatus status, boolean defaultKeyStore, int entryCount)
      Creates a new KeystoreViewModel instance.
      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 Details

    • getDisplayName

      public String getDisplayName(Locale locale)
    • 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.
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object