Class JobUserProviderImpl

java.lang.Object
edu.ucsb.cs156.courses.services.JobUserProviderImpl
All Implemented Interfaces:
edu.ucsb.cs156.jobs.services.JobUserProvider

@Service public class JobUserProviderImpl extends Object implements edu.ucsb.cs156.jobs.services.JobUserProvider
Bridge between the lib-jobs library and this app's notion of "current user"; lib-jobs uses it to stamp createdById/createdByEmail on Job records. Both values are null when there is no logged-in user (e.g. jobs launched from a scheduled task).
  • Constructor Details

    • JobUserProviderImpl

      public JobUserProviderImpl()
  • Method Details

    • getCurrentUserId

      public Long getCurrentUserId()
      Specified by:
      getCurrentUserId in interface edu.ucsb.cs156.jobs.services.JobUserProvider
    • getCurrentUserEmail

      public String getCurrentUserEmail()
      Specified by:
      getCurrentUserEmail in interface edu.ucsb.cs156.jobs.services.JobUserProvider