Class UploadDataAccessFirebase

  • All Implemented Interfaces:
    UploadDataAccess

    @Repository
    public class UploadDataAccessFirebase
    extends Object
    implements UploadDataAccess
    A Firebase based implementation of Persistance.
    Author:
    swaroop_nath
    • Constructor Detail

      • UploadDataAccessFirebase

        public UploadDataAccessFirebase()
    • Method Detail

      • fetchUserByID

        public User fetchUserByID​(String currentUserID)
                           throws InternalServerException
        The implementation of the abstraction, based on Firebase Firestore database
        Specified by:
        fetchUserByID in interface UploadDataAccess
        Parameters:
        currentUserID - The identification of the user
        Returns:
        The logged in user as a User object
        Throws:
        InternalServerException - Thrown in case there are any issues while fetching from the database