#371: InstantMessagingType.java
projectforge-business/src/main/java/org/projectforge/business/address/InstantMessagingType.java Java-Klasse, projectforge-business/src/main/java/org/projectforge/business/address/InstantMessagingType.java 75 Zeilen · 38 Code · 29 Kommentare · 8 leer
Zweck: Quelldatei: projectforge/business/address/InstantMessagingType.java. InstantMessagingType.java ist Teil der Open-Source-Projektmanagement-Anwendung ProjectForge.
Quellcode (erste 100 Zeilen)
/////////////////////////////////////////////////////////////////////////////
//
// Project ProjectForge Community Edition
// www.projectforge.org
//
// Copyright (C) 2001-2026 Micromata GmbH, Germany (www.micromata.com)
//
// ProjectForge ist dual-lizenziert.
//
// Diese Community-Edition ist freie Software; Sie können sie weiterverbreiten und/oder
// modifizieren unter den Bedingungen der GNU General Public License, wie veröffentlicht
// von der Free Software Foundation; Version 3 der Lizenz.
//
// Diese Community-Edition wird in der Hoffnung verteilt, dass sie nützlich sein wird,
// aber OHNE JEGLICHE GEWÄHRLEISTUNG; ohne die implizite Gewährleistung der
// MARKTGÄNGIGKEIT oder EIGNUNG FÜR EINEN BESTIMMTEN ZWECK. Siehe die GNU General
// Public License für weitere Details.
//
// Sie sollten eine Kopie der GNU General Public License zusammen mit
// diesem Programm erhalten haben; falls nicht, siehe http://www.gnu.org/licenses/.
//
/////////////////////////////////////////////////////////////////////////////
package org.projectforge.business.address;
import org.apache.commons.lang3.StringUtils;
public enum InstantMessagingType
{
SKYPE("skype"), AIM("aim"), GOOGLE_TALK("googletalk"), ICQ("icq"), MSN("msn"), YAHOO("yahoo"), JABBER("jabber");
/**
* Liste aller verfügbaren Werte.
*/
public static final InstantMessagingType[] LIST = new InstantMessagingType[] { SKYPE, ICQ, MSN, YAHOO, JABBER, AIM, GOOGLE_TALK};
private String key;
public static InstantMessagingType get(final String s)
{
if (StringUtils.isEmpty(s)) {
return null;
}
if ("SKYPE".equals(s)) {
return SKYPE;
} else if ("ICQ".equals(s)) {
return ICQ;
} else if ("MSN".equals(s)) {
return MSN;
} else if ("YAHOO".equals(s)) {
return YAHOO;
} else if ("JABBER".equals(s)) {
return JABBER;
} else if ("AIM".equals(s)) {
return AIM;
} else if ("GOOGLE_TALK".equals(s)) {
return GOOGLE_TALK;
}
throw new UnsupportedOperationException("Unbekannter InstantMessagingType: '" + s + "'");
}
/**
* Der Schlüssel wird z. B. für die Internationalisierung (i18n) verwendet.
* @return
*/
public String getKey()
{
return key;
}
InstantMessagingType(final String key)
{
this.key = key;
}
}
Git-Verlauf
868d6abb7 2025 -> 2026
63081666f Quellcode-Dateiköpfe: 2024 -> 2025.
b6092df09 Copyright 2023 -> 2024
ab45d51fa Copyright 2001-2022 -> 2001-2023.
5f7ef41b8 Copyright 2021 -> 2022
868d6abb7
2025 -> 2026868d6abb75cd191a892911ac8e45058932cf9074
diff --git a/projectforge-business/src/main/java/org/projectforge/business/address/InstantMessagingType.java b/projectforge-business/src/main/java/org/projectforge/business/address/InstantMessagingType.java
index cc014d46c..9c7caef03 100644
--- a/projectforge-business/src/main/java/org/projectforge/business/address/InstantMessagingType.java
+++ b/projectforge-business/src/main/java/org/projectforge/business/address/InstantMessagingType.java
@@ -3,7 +3,7 @@
// Project ProjectForge Community Edition
// www.projectforge.org
//
-// Copyright (C) 2001-2025 Micromata GmbH, Germany (www.micromata.com)
+// Copyright (C) 2001-2026 Micromata GmbH, Germany (www.micromata.com)
//
// ProjectForge ist dual-lizenziert.
//
63081666f
Quellcode-Dateiköpfe: 2024 -> 2025.63081666f620fb87315f01b817e560e0b2f6a33a
diff --git a/projectforge-business/src/main/java/org/projectforge/business/address/InstantMessagingType.java b/projectforge-business/src/main/java/org/projectforge/business/address/InstantMessagingType.java
index 9fff09d19..cc014d46c 100644
--- a/projectforge-business/src/main/java/org/projectforge/business/address/InstantMessagingType.java
+++ b/projectforge-business/src/main/java/org/projectforge/business/address/InstantMessagingType.java
@@ -3,7 +3,7 @@
// Project ProjectForge Community Edition
// www.projectforge.org
//
-// Copyright (C) 2001-2024 Micromata GmbH, Germany (www.micromata.com)
+// Copyright (C) 2001-2025 Micromata GmbH, Germany (www.micromata.com)
//
// ProjectForge ist dual-lizenziert.
//
b6092df09
Copyright 2023 -> 2024b6092df0927c4a3b161e888445f31dcab57493f2
diff --git a/projectforge-business/src/main/java/org/projectforge/business/address/InstantMessagingType.java b/projectforge-business/src/main/java/org/projectforge/business/address/InstantMessagingType.java
index 19a744ecf..9fff09d19 100644
--- a/projectforge-business/src/main/java/org/projectforge/business/address/InstantMessagingType.java
+++ b/projectforge-business/src/main/java/org/projectforge/business/address/InstantMessagingType.java
@@ -3,7 +3,7 @@
// Project ProjectForge Community Edition
// www.projectforge.org
//
-// Copyright (C) 2001-2023 Micromata GmbH, Germany (www.micromata.com)
+// Copyright (C) 2001-2024 Micromata GmbH, Germany (www.micromata.com)
//
// ProjectForge ist dual-lizenziert.
//
ab45d51fa
Copyright 2001-2022 -> 2001-2023.ab45d51fa419ede6174b31d69987f96d4b841ff9
diff --git a/projectforge-business/src/main/java/org/projectforge/business/address/InstantMessagingType.java b/projectforge-business/src/main/java/org/projectforge/business/address/InstantMessagingType.java
index affbdc098..19a744ecf 100644
--- a/projectforge-business/src/main/java/org/projectforge/business/address/InstantMessagingType.java
+++ b/projectforge-business/src/main/java/org/projectforge/business/address/InstantMessagingType.java
@@ -3,7 +3,7 @@
// Project ProjectForge Community Edition
// www.projectforge.org
//
-// Copyright (C) 2001-2022 Micromata GmbH, Germany (www.micromata.com)
+// Copyright (C) 2001-2023 Micromata GmbH, Germany (www.micromata.com)
//
// ProjectForge ist dual-lizenziert.
//
5f7ef41b8
Copyright 2021 -> 20225f7ef41b8cbbf29b1bff094f0c0b708dcaecb19e
diff --git a/projectforge-business/src/main/java/org/projectforge/business/address/InstantMessagingType.java b/projectforge-business/src/main/java/org/projectforge/business/address/InstantMessagingType.java
index 1f5ac8ea3..affbdc098 100644
--- a/projectforge-business/src/main/java/org/projectforge/business/address/InstantMessagingType.java
+++ b/projectforge-business/src/main/java/org/projectforge/business/address/InstantMessagingType.java
@@ -3,7 +3,7 @@
// Project ProjectForge Community Edition
// www.projectforge.org
//
-// Copyright (C) 2001-2021 Micromata GmbH, Germany (www.micromata.com)
+// Copyright (C) 2001-2022 Micromata GmbH, Germany (www.micromata.com)
//
// ProjectForge ist dual-lizenziert.
//