com.atlassian.confluence.license.rest.service
Class UserCountServiceImpl

java.lang.Object
  extended by com.atlassian.confluence.license.rest.service.UserCountServiceImpl
All Implemented Interfaces:
UserCountService

public class UserCountServiceImpl
extends java.lang.Object
implements UserCountService


Constructor Summary
UserCountServiceImpl(UserChecker userChecker, LicenseService licenseService)
           
 
Method Summary
 java.lang.Integer getLicenseMaxUsers()
          Return the maximum number of user allowed by the license, If this instance has an unlimited license then the result would be Integer.MAX_VALUE
 com.google.common.base.Optional<java.lang.Integer> getRemainingFreeSlots()
          Return the number of "free" slots on this Confluence instance
 java.lang.Integer getUserCount()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UserCountServiceImpl

public UserCountServiceImpl(UserChecker userChecker,
                            LicenseService licenseService)
Method Detail

getUserCount

public java.lang.Integer getUserCount()
Specified by:
getUserCount in interface UserCountService
Returns:
the number of users who have access to this Confluence instance.

getRemainingFreeSlots

public com.google.common.base.Optional<java.lang.Integer> getRemainingFreeSlots()
Description copied from interface: UserCountService
Return the number of "free" slots on this Confluence instance

Specified by:
getRemainingFreeSlots in interface UserCountService
Returns:
An Optional representing the number of free slots on this instance. If this instance has an unlimited license then the result would be Integer.MAX_VALUE

getLicenseMaxUsers

public java.lang.Integer getLicenseMaxUsers()
Description copied from interface: UserCountService
Return the maximum number of user allowed by the license, If this instance has an unlimited license then the result would be Integer.MAX_VALUE

Specified by:
getLicenseMaxUsers in interface UserCountService
Returns:
the maximum number of user allowed by the license, If this instance has an unlimited license then the result would be Integer.MAX_VALUE


Copyright © 2003-2014 Atlassian. All Rights Reserved.