Class UserProfileService


  • @Service
    public class UserProfileService
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      UserProfileService​(com.xebialabs.xlrelease.repository.UserProfileRepository userProfileRepository, PrincipalDataProvider principalDataProvider, com.xebialabs.license.service.LicenseService licenseService, SessionService sessionService, com.xebialabs.xlrelease.events.EventBus eventBus, WelcomeTemplateHandler welcomeTemplateHandler)  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int countUserWithLoginAllowed()  
      com.xebialabs.xlrelease.domain.UserProfile createOrUpdate​(java.lang.String username)  
      void deleteByUsername​(java.lang.String username)  
      com.xebialabs.xlrelease.domain.UserProfile discover​(java.lang.String username)  
      void ensureCreated​(java.lang.String username)  
      java.util.List<com.xebialabs.xlrelease.domain.UserProfile> findAll​(java.lang.Boolean fullProfile)  
      com.xebialabs.xlrelease.domain.UserProfile findByUsername​(java.lang.String username)  
      static boolean hasExternalPropertiesChanged​(com.xebialabs.xlrelease.domain.UserProfile original, com.xebialabs.xlrelease.domain.UserProfile updated)  
      com.xebialabs.xlrelease.domain.UserProfile resolveUserProfile​(java.lang.String username)  
      com.xebialabs.xlrelease.domain.UserProfile resolveUserProfile​(java.lang.String username, boolean resolveWithDataProvider)  
      void save​(com.xebialabs.xlrelease.domain.UserProfile profile)  
      java.util.List<com.xebialabs.xlrelease.domain.UserProfile> search​(java.lang.String email, java.lang.String fullName, java.lang.Boolean loginAllowed, java.util.Date lastActiveAfter, java.util.Date lastActiveBefore, java.lang.Long page, java.lang.Long resultsPerPage)  
      boolean updateLastActive​(java.lang.String canonicalId, java.util.Date lastActive)  
      int updateLastActiveBatch​(java.util.Map<java.lang.String,​java.util.Date> entries)  
      void updateProfile​(com.xebialabs.xlrelease.domain.UserProfile... profiles)  
      void validate​(com.xebialabs.xlrelease.domain.UserProfile profile)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • ROOT

        public static final java.lang.String ROOT
      • ACCEPTED_DATE_FORMATS

        public static final java.util.List<java.lang.String> ACCEPTED_DATE_FORMATS
      • ACCEPTED_TIME_FORMATS

        public static final java.util.List<java.lang.String> ACCEPTED_TIME_FORMATS
      • ACCEPTED_FIRST_DAY_OF_WEEK_FORMATS

        public static final java.util.List<java.lang.Integer> ACCEPTED_FIRST_DAY_OF_WEEK_FORMATS
    • Constructor Detail

      • UserProfileService

        @Autowired
        public UserProfileService​(com.xebialabs.xlrelease.repository.UserProfileRepository userProfileRepository,
                                  PrincipalDataProvider principalDataProvider,
                                  com.xebialabs.license.service.LicenseService licenseService,
                                  SessionService sessionService,
                                  com.xebialabs.xlrelease.events.EventBus eventBus,
                                  WelcomeTemplateHandler welcomeTemplateHandler)
    • Method Detail

      • hasExternalPropertiesChanged

        public static boolean hasExternalPropertiesChanged​(com.xebialabs.xlrelease.domain.UserProfile original,
                                                           com.xebialabs.xlrelease.domain.UserProfile updated)
      • findAll

        @Timed
        public java.util.List<com.xebialabs.xlrelease.domain.UserProfile> findAll​(java.lang.Boolean fullProfile)
      • deleteByUsername

        @Timed
        public void deleteByUsername​(java.lang.String username)
      • countUserWithLoginAllowed

        @Timed
        public int countUserWithLoginAllowed()
      • search

        @Timed
        public java.util.List<com.xebialabs.xlrelease.domain.UserProfile> search​(java.lang.String email,
                                                                                 java.lang.String fullName,
                                                                                 java.lang.Boolean loginAllowed,
                                                                                 java.util.Date lastActiveAfter,
                                                                                 java.util.Date lastActiveBefore,
                                                                                 java.lang.Long page,
                                                                                 java.lang.Long resultsPerPage)
      • findByUsername

        @Timed
        public com.xebialabs.xlrelease.domain.UserProfile findByUsername​(java.lang.String username)
      • ensureCreated

        @Timed
        public void ensureCreated​(java.lang.String username)
      • discover

        @Timed
        public com.xebialabs.xlrelease.domain.UserProfile discover​(java.lang.String username)
      • resolveUserProfile

        @Timed
        public com.xebialabs.xlrelease.domain.UserProfile resolveUserProfile​(java.lang.String username)
      • resolveUserProfile

        @Timed
        public com.xebialabs.xlrelease.domain.UserProfile resolveUserProfile​(java.lang.String username,
                                                                             boolean resolveWithDataProvider)
      • createOrUpdate

        @Timed
        public com.xebialabs.xlrelease.domain.UserProfile createOrUpdate​(java.lang.String username)
      • save

        @Timed
        public void save​(com.xebialabs.xlrelease.domain.UserProfile profile)
      • updateProfile

        @Timed
        public void updateProfile​(com.xebialabs.xlrelease.domain.UserProfile... profiles)
      • updateLastActive

        @Timed
        public boolean updateLastActive​(java.lang.String canonicalId,
                                        java.util.Date lastActive)
      • updateLastActiveBatch

        @Timed
        public int updateLastActiveBatch​(java.util.Map<java.lang.String,​java.util.Date> entries)
      • validate

        @Timed
        public void validate​(com.xebialabs.xlrelease.domain.UserProfile profile)