Class UserProfileOverrideService

java.lang.Object
dev.getelements.elements.service.profile.UserProfileOverrideService
All Implemented Interfaces:
ProfileOverrideService

public class UserProfileOverrideService extends Object implements ProfileOverrideService
Implementation for users with User.Level.USER users.
  • Constructor Details

    • UserProfileOverrideService

      public UserProfileOverrideService()
  • Method Details

    • findOverrideProfile

      public Optional<Profile> findOverrideProfile(String profileId)
      This checks for hte profile ID and additionally ensures that the currently authenticated user owns the profile. If a mismatch occurrs, then this will fail silently and simply return a null value. This is intended to make is such that the server will neither confirm nor deny that the profile exists or is assocaited with the particular user.
      Specified by:
      findOverrideProfile in interface ProfileOverrideService
      Parameters:
      profileId - the profile ID
      Returns:
      the profile ID
    • getUser

      public User getUser()
    • setUser

      @Inject public void setUser(User user)
    • getProfileDao

      public ProfileDao getProfileDao()
    • setProfileDao

      @Inject public void setProfileDao(ProfileDao profileDao)