Interface IUserProfileStringURNProvider

  • All Known Implementing Classes:
    UserProfileStringURNProvider

    public interface IUserProfileStringURNProvider
    The URN provider for user profiles.
    Author:
    Christopher Mindus
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and TypeMethodDescription
      java.util.Map<java.lang.String,​java.lang.String>getDetails​(long uid, boolean reload)
      Gets the (cached and current) user details.
      java.util.Map<java.lang.String,​java.lang.String>getDetails​(java.lang.String userName, boolean reload)
      Gets the (cached and current) user details.
    • Method Detail

      • getDetails

        java.util.Map<java.lang.String,​java.lang.String> getDetails​(long uid,
                                                                          boolean reload)
                                                                   throws NotFoundException
        Gets the (cached and current) user details. Details are e.g. fax number, profile picture.
        Parameters:
        uid - The User ID (non-zero), or -1L for logged in current user.
        reload - Reload flag from database.
        Returns:
        If reload is false, a cached read-only map with the details name as key and the value for it, otherwise a fresh copy of the details from the database.
        Throws:
        NotFoundException - If the user ID or the User Name is not found in the database, or a database error occurred.
      • getDetails

        java.util.Map<java.lang.String,​java.lang.String> getDetails​(java.lang.String userName,
                                                                          boolean reload)
                                                                   throws NotFoundException
        Gets the (cached and current) user details. Details are e.g. fax number, profile picture.
        Parameters:
        userName - The user name, or null for currently logged in user.
        reload - Reload flag from database.
        Returns:
        If reload is false, a cached read-only map with the details name as key and the value for it, otherwise a fresh copy of the details from the database.
        Throws:
        NotFoundException - If the user ID or the User Name is not found in the database, or a database error occurred.