com.atlassian.confluence.license.rest.service
Class UserCountServiceImpl
java.lang.Object
com.atlassian.confluence.license.rest.service.UserCountServiceImpl
- All Implemented Interfaces:
- UserCountService
public class UserCountServiceImpl
- extends Object
- implements UserCountService
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
UserCountServiceImpl
public UserCountServiceImpl(UserAccessor userAccessor,
LicenseService licenseService)
getUserCount
public 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<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 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-2013 Atlassian. All Rights Reserved.