com.atlassian.confluence.user.UserAccessor Java Examples

The following examples show how to use com.atlassian.confluence.user.UserAccessor. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: ScheduledMetricEvaluatorImpl.java    From prom-confluence-exporter with BSD 2-Clause "Simplified" License 5 votes vote down vote up
public ScheduledMetricEvaluatorImpl(
        ScrapingSettingsManager scrapingSettingsManager,
        SessionFactory sessionFactory,
        LoginManager loginManager,
        UserAccessor userAccessor,
        UserChecker userChecker,
        SystemInformationService systemInformationService) {
    this.scrapingSettingsManager = scrapingSettingsManager;
    this.sessionFactory = sessionFactory;
    this.loginManager = loginManager;
    this.userAccessor = userAccessor;
    this.userChecker = userChecker;
    this.systemInformationService = systemInformationService;
    this.totalAttachmentSize = new AtomicLong(0);
    this.totalPages = new AtomicInteger(0);
    this.totalBlogPosts = new AtomicInteger(0);
    this.totalUsers = new AtomicInteger(0);
    this.totalOneHourAgoActiveUsers = new AtomicInteger(0);
    this.totalTodayActiveUsers = new AtomicInteger(0);
    this.totalCurrentContent = new AtomicInteger(0);
    this.totalGlobalSpaces = new AtomicInteger(0);
    this.totalPersonalSpaces = new AtomicInteger(0);
    this.lastExecutionTimestamp = new AtomicLong(-1);
    this.executorService = newSingleThreadScheduledExecutor(new ThreadFactory() {
        @Override
        public Thread newThread(@Nonnull Runnable r) {
            Thread thread = defaultThreadFactory().newThread(r);
            thread.setPriority(MIN_PRIORITY);
            return thread;
        }
    });
    this.lock = new ReentrantLock();
}
 
Example #2
Source File: LivingDocConfluenceManager.java    From livingdoc-confluence with GNU General Public License v3.0 5 votes vote down vote up
/**
 * Constructor for IoC
 * 
 * Note: The qualifier for {@link PageManager} is needed because
 * there are multiple implementations.
 */
public LivingDocConfluenceManager(LivingDocPersistenceService livingDocServerService, LoginManager loginManager,
                                  ConfluenceUserManager confluenceUserManager, TransactionTemplate transactionTemplate,
                                  SettingsManager settingsManager, AtlassianBootstrapManager bootstrapManager,
                                  ContentPropertyManager contentPropertyManager, ContentPermissionManager contentPermissionManager,
                                  WikiStyleRenderer wikiStyleRenderer, PageManager pageManager,
                                  SpaceManager spaceManager, SpacePermissionManager spacePermissionManager, LabelManager labelManager,
                                  UserAccessor userAccessor, FormatSettingsManager formatSettingsManager, LocaleManager localeManager,
                                  Renderer viewRenderer) {
    this.livingDocPersistenceService = livingDocServerService;
    this.loginManager = loginManager;
    this.confluenceUserManager = confluenceUserManager;
    this.transactionTemplate = transactionTemplate;
    this.settingsManager = settingsManager;
    this.bootstrapManager = bootstrapManager;
    this.contentPropertyManager = contentPropertyManager;
    this.contentPermissionManager = contentPermissionManager;
    this.wikiStyleRenderer = wikiStyleRenderer;
    this.pageManager = pageManager;
    this.spaceManager = spaceManager;
    this.spacePermissionManager = spacePermissionManager;
    this.labelManager = labelManager;
    this.userAccessor = userAccessor;
    this.formatSettingsManager = formatSettingsManager;
    this.localeManager = localeManager;
    this.viewRenderer = viewRenderer;
}
 
Example #3
Source File: Profile.java    From adam with GNU Lesser General Public License v3.0 5 votes vote down vote up
public Profile(@Nonnull String name, @Nullable String fullName, @Nullable String email, @Nonnull BandanaManager bandanaManager, @Nonnull UserDetailsManager userDetailsManager, @Nonnull PersonalInformationManager personalInformationManager, @Nonnull ConfluenceIndexer confluenceIndexer, @Nonnull UserAccessor userAccessor) {
    _userAccessor = userAccessor;
    _name = name;
    _fullName = fullName;
    _email = email;
    _bandanaManager = bandanaManager;
    _userDetailsManager = userDetailsManager;
    _personalInformationManager = personalInformationManager;
    _confluenceIndexer = confluenceIndexer;
}
 
Example #4
Source File: ElementRenderer.java    From adam with GNU Lesser General Public License v3.0 5 votes vote down vote up
@Autowired
public ElementRenderer(@Nonnull WikiStyleRenderer wikiStyleRenderer, @Nonnull SettingsManager settingsManager, @Nonnull UserAccessor userAccessor) {
    _wikiStyleRenderer = wikiStyleRenderer;
    _settingsManager = settingsManager;
    _userAccessor = userAccessor;
    c_instance = this;
}
 
Example #5
Source File: UserProfileMacroOld.java    From adam with GNU Lesser General Public License v3.0 5 votes vote down vote up
public UserProfileMacroOld(@Nonnull GroupProvider groupProvider, @Nonnull ProfileProvider profileProvider, @Nonnull UserAccessor userAccessor, @Nonnull LocalizationHelper localizationHelper, @Nonnull ElementRenderer elementRenderer, @Nonnull GroupRenderer groupRenderer, @Nonnull LocaleManager localeManager, @Nonnull PermissionManager permissionManager, @Nonnull ViewProvider viewProvider) {
    _groupProvider = groupProvider;
    _profileProvider = profileProvider;
    _userAccessor = userAccessor;
    _localizationHelper = localizationHelper;
    _elementRenderer = elementRenderer;
    _groupRenderer = groupRenderer;
    _localeManager = localeManager;
    _permissionManager = permissionManager;
    _viewProvider = viewProvider;
}
 
Example #6
Source File: ProfileProvider.java    From adam with GNU Lesser General Public License v3.0 5 votes vote down vote up
public ProfileProvider(@Nonnull UserAccessor userAccessor, @Nonnull BandanaManager bandanaManager, @Nonnull UserDetailsManager userDetailsManager, @Nonnull PersonalInformationManager personalInformationManager, @Nonnull ConfluenceIndexer confluenceIndexer) {
    _userAccessor = userAccessor;
    _bandanaManager = bandanaManager;
    _userDetailsManager = userDetailsManager;
    _personalInformationManager = personalInformationManager;
    _confluenceIndexer = confluenceIndexer;
    c_instance = this;
}
 
Example #7
Source File: UserProfileMacro.java    From adam with GNU Lesser General Public License v3.0 5 votes vote down vote up
public UserProfileMacro(@Nonnull ProfileProvider profileProvider, @Nonnull UserAccessor userAccessor, @Nonnull LocalizationHelper localizationHelper, @Nonnull ElementRenderer elementRenderer, @Nonnull GroupRenderer groupRenderer, @Nonnull LocaleManager localeManager, @Nonnull PermissionManager permissionManager, @Nonnull ViewProvider viewProvider) {
    _profileProvider = profileProvider;
    _userAccessor = userAccessor;
    _localizationHelper = localizationHelper;
    _elementRenderer = elementRenderer;
    _groupRenderer = groupRenderer;
    _localeManager = localeManager;
    _permissionManager = permissionManager;
    _viewProvider = viewProvider;
}
 
Example #8
Source File: ProfileResource.java    From adam with GNU Lesser General Public License v3.0 5 votes vote down vote up
public ProfileResource(@Nonnull UserDtoFactory userDtoFactory, @Nonnull UserAccessor userAccessor, @Nonnull UserHelper userHelper, @Nonnull GroupProvider groupProvider, @Nonnull GroupRenderer groupRenderer, @Nonnull ElementRenderer elementRenderer, @Nonnull ProfileProvider profileProvider, @Nonnull LocalizationHelper localizationHelper, @Nonnull LocaleManager localeManager) {
    _userDtoFactory = userDtoFactory;
    _userAccessor = userAccessor;
    _userHelper = userHelper;
    _groupProvider = groupProvider;
    _groupRenderer = groupRenderer;
    _elementRenderer = elementRenderer;
    _profileProvider = profileProvider;
    _localizationHelper = localizationHelper;
    _localeManager = localeManager;
}
 
Example #9
Source File: LivingDocConfluenceManager.java    From livingdoc-confluence with GNU General Public License v3.0 4 votes vote down vote up
public UserAccessor getUserAccessor() {
    return userAccessor;
}
 
Example #10
Source File: Profile.java    From adam with GNU Lesser General Public License v3.0 4 votes vote down vote up
public Profile(@Nonnull User user, @Nonnull BandanaManager bandanaManager, @Nonnull UserDetailsManager userDetailsManager, @Nonnull PersonalInformationManager personalInformationManager, @Nonnull ConfluenceIndexer confluenceIndexer, @Nonnull UserAccessor userAccessor) {
    this(user.getName(), user.getFullName(), user.getEmail(), bandanaManager, userDetailsManager, personalInformationManager, confluenceIndexer, userAccessor);
}