Class FbConfiguration

java.lang.Object
com.hildeio.firebase.FbConfiguration

public class FbConfiguration extends Object
Firebase Konfigurationen
  • Field Details

    • log4Hilde

      @Autowired Log4Hilde log4Hilde
      Dependency Injection auf Log4Hilde
    • SERVICE_ACCOUNT_FILE

      private static final String SERVICE_ACCOUNT_FILE
      KONSTANTE fuer Firebase-Authentifizieurng
      See Also:
    • FIREBASE_API_URL

      private static final String FIREBASE_API_URL
      KONSTANTE fuer FCM PushNotifications
      See Also:
    • FIRESTORE_URL

      private static final String FIRESTORE_URL
      KONSTANTE zur Firebase
      See Also:
    • MESSAGING_SCOPE

      private static final String MESSAGING_SCOPE
      KONSTANTE fuer Firebase Messaging
      See Also:
    • FIREBASE_DEVICE_TOKEN_INFO_URL

      private static final String FIREBASE_DEVICE_TOKEN_INFO_URL
      KONSTANTE fuer FCM Topic Info
      See Also:
    • SCOPES

      private static final String[] SCOPES
      KONSTANTE fuer Firebase Messaging Scopes
    • LOGGING_TOPIC

      private static final String LOGGING_TOPIC
      KONSTANTE fuer FCM Topic
      See Also:
    • KONTAKT_TOPIC

      private static final String KONTAKT_TOPIC
      KONSTANTE fuer FCM Topic
      See Also:
    • COLLECTION_SCHALTAKTOREN

      private static final String COLLECTION_SCHALTAKTOREN
      KONSTANTE zur Firebase Collection
      See Also:
    • COLLECTION_HEIZKOERPER

      private static final String COLLECTION_HEIZKOERPER
      KONSTANTE zur Firebase Collection
      See Also:
  • Constructor Details

    • FbConfiguration

      public FbConfiguration()
  • Method Details

    • getServiceAccount

      public FileInputStream getServiceAccount()
      Laden der Firebase-Authentifizieurngsdatei.
      Returns:
      Firebase-Authentifizieurngsdatei
    • getProjectId

      private String getProjectId()
      Ermitteln der ProjectId aus der Firebase-Authentifizieurngsdatei.
      Returns:
      ProjectId
    • getLoggingTopic

      public String getLoggingTopic()
      FCM Logging-Topic
      Returns:
      Vollstaendige URI
    • getKontaktTopic

      public String getKontaktTopic()
      Kontakt-Topic
      Returns:
      Vollstaendige URI
    • getFirebaseApiUrl

      public String getFirebaseApiUrl()
      FCM PushNotification
      Returns:
      Vollstaendige URI
    • getDeviceTokenInfo

      public String getDeviceTokenInfo(String deviceToken)
      DeviceToken Info
      Parameters:
      deviceToken - Token von SmartDevice
      Returns:
      Vollstaendige URI
    • getFirestoreUrl

      public String getFirestoreUrl()
      Firestore
      Returns:
      Vollstaendige URI
    • getCollectionNames

      public ArrayList<String> getCollectionNames()
      Registrieren der Firebase Collections für den EventHub.
      Returns:
      Liste der definierten Collectionsnamen.
    • dispatch

      public void dispatch(com.google.cloud.firestore.QueryDocumentSnapshot queryDocumentSnapshot, String collectionName, Log4Hilde log4Hilde, String eventId)
      Verteilen der Objektdaten an jeweilige Service-Instanz.
      Parameters:
      queryDocumentSnapshot - Geaendertes Collection-Dokument.
      collectionName - Name der Firebase Collection.
      log4Hilde - Aktuelle Logging-Instanz.
      eventId - Aktuelle WorkflowId.
    • getAccessToken

      public static String getAccessToken() throws IOException
      Generierung Bearer-Token.
      Returns:
      Token
      Throws:
      IOException - Erforderliche Exception.