Class UserProfileService

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

@Service public class UserProfileService extends Object
  • Field Details

    • ROOT

      public static final String ROOT
  • 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, com.xebialabs.xlrelease.config.XlrConfig xlrConfig)
  • Method Details

    • hasExternalPropertiesChanged

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

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

      public void deleteByUsername(String username)
    • countUserWithLoginAllowed

      public int countUserWithLoginAllowed()
    • search

      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

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

      public void ensureCreated(String username)
    • discover

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

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

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

      public com.xebialabs.xlrelease.domain.UserProfile createOrUpdate(String username)
    • save

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

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

      public boolean updateLastActive(String canonicalId, Date lastActive)
    • updateLastActiveBatch

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

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