Class UserProfileService

java.lang.Object
com.xebialabs.xlrelease.service.UserProfileService

@Service public class UserProfileService extends Object
  • Field Details

    • ROOT

      public static final String ROOT
    • ACCEPTED_DATE_FORMATS

      public static final List<String> ACCEPTED_DATE_FORMATS
    • ACCEPTED_TIME_FORMATS

      public static final List<String> ACCEPTED_TIME_FORMATS
    • ACCEPTED_FIRST_DAY_OF_WEEK_FORMATS

      public static final List<Integer> ACCEPTED_FIRST_DAY_OF_WEEK_FORMATS
  • Constructor Details

    • 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 Details

    • hasExternalPropertiesChanged

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

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

      @Timed public void deleteByUsername(String username)
    • countUserWithLoginAllowed

      @Timed public int countUserWithLoginAllowed()
    • search

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

      public org.springframework.data.domain.Page<com.xebialabs.xlrelease.domain.UserProfile> searchUserAccounts(com.xebialabs.xlrelease.views.users.UserFilters userFilters, org.springframework.data.domain.Pageable pageable)
    • findByUsername

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

      @Timed public void ensureCreated(String username)
    • discover

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

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

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

      @Timed public com.xebialabs.xlrelease.domain.UserProfile createOrUpdate(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(String canonicalId, Date lastActive)
    • updateLastActiveBatch

      @Timed public int updateLastActiveBatch(Map<String,Date> entries)
    • validate

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