EN · DE · RU · FR · ES

#417: KundeStatus.java

projectforge-business/src/main/java/org/projectforge/business/fibu/KundeStatus.java Type: Java · Role: Financial Accounting · Source: projectforge-business/src/main/java/org/projectforge/business/fibu/KundeStatus.java 70 lines · 33 code · 27 comments · 10 blank
Source code file at projectforge-business/src/main/java/org/projectforge/business/fibu/KundeStatus.java containing Java code for the Financial Accounting layer.

Code Structure

Package: org.projectforge.business.fibu

Enums: KundeStatus

Implements: I18nEnum

Methods (3): getKey, getI18nKey, isIn

Fields (1): key

Imports: 1 packages

Source Code (abridged)

package org.projectforge.business.fibu;

import org.projectforge.common.i18n.I18nEnum;

public enum KundeStatus implements I18nEnum
{

  /** Kunde befindet sich noch in der Akquisephase. */
  ACQUISISTION("acquisition"), /** Mit dem Kunden werden aktiv Geschäfte abgewickelt. */
  ACTIVE("active"), /** Mit dem Kunden bestehen (vorübergehend) keine Geschäftsverbindungen mehr. */
  NONACTIVE("nonactive"), /** Die Zusammenarbeit mit dem Kunden ist beendet. Eine erneute Zusammenarbeit ist unwahrscheinlich. */
  ENDED("ended"), /** Der Kunde ist insolvent, umfirmiert etc. */
  NONEXISTENT("nonexistent");

  public static final KundeStatus[] LIST = new KundeStatus[] { ACQUISISTION, ACTIVE, NONACTIVE, ENDED, NONEXISTENT};

  private String key;

  /**
   * The key will be used e. g. for i18n.
   * @return
   */
  public String getKey()
  {
    return key;
  }

  public String getI18nKey()
  {
    return "fibu.kunde.status." + key;
  };

  KundeStatus(String key)
  {
    this.key = key;
  }

  public boolean isIn(KundeStatus... status)
  {
    for (KundeStatus st : status) {
      if (this == st) {
        return true;
      }
    }
    return false;
  }
}

Git History

868d6abb7 2025 -> 2026
63081666f Source file headers: 2024-> 2025.
b6092df09 Copyright 2023 -> 2024
ab45d51fa Copyright 2001-2022 -> 2001-2023.
5f7ef41b8 Copyright 2021 -> 2022