Interface ProfileService<U extends CommonProfile>

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void create​(U profile, String password)
      Create a profile with the associated password in the storage.
      U findById​(String id)
      Find a profile by its identifier.
      U findByLinkedId​(String linkedId)
      Find a profile by its linked identifier.
      void remove​(U profile)
      Rmove a profile in the storage.
      void removeById​(String id)
      Remove a profile by its identifier in the storage.
      void update​(U profile, String password)
      Update a profile (with the associated password) in the storage.
    • Method Detail

      • create

        void create​(U profile,
                    String password)
        Create a profile with the associated password in the storage.
        Parameters:
        profile - the profile
        password - the password
      • update

        void update​(U profile,
                    String password)
        Update a profile (with the associated password) in the storage.
        Parameters:
        profile - the profile
        password - the optional password
      • remove

        void remove​(U profile)
        Rmove a profile in the storage.
        Parameters:
        profile - the profile
      • removeById

        void removeById​(String id)
        Remove a profile by its identifier in the storage.
        Parameters:
        id - the profile identifier
      • findById

        U findById​(String id)
        Find a profile by its identifier.
        Parameters:
        id - the identifier
        Returns:
        the found profile
      • findByLinkedId

        U findByLinkedId​(String linkedId)
        Find a profile by its linked identifier.
        Parameters:
        linkedId - the linked identifier
        Returns:
        the found profile