com.atlassian.confluence.license.rest.resource
Class UserCountResource

java.lang.Object
  extended by com.atlassian.confluence.license.rest.resource.UserCountResource

public class UserCountResource
extends Object

A REST endpoint that exposes info about users of this instance. Note that this endpoint will only provide usable data in the case of a "Conflence-only instance". DO NOT USE THIS endpoint for OnDemand instances as license information is be overridden by HAUP (Hosted Application User Provisioning)


Constructor Summary
UserCountResource(UserCountService userCountService, PermissionManager permissionManager)
           
 
Method Summary
 javax.ws.rs.core.Response getMaxUsers()
          Return the number of users that is allowed by the current license
 javax.ws.rs.core.Response getRemainingUserCount()
          Return the number of free slots on this Confluence instance
 javax.ws.rs.core.Response getUserCount()
          Return the number of users that have access to this Confluence
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UserCountResource

public UserCountResource(UserCountService userCountService,
                         PermissionManager permissionManager)
Method Detail

getUserCount

public javax.ws.rs.core.Response getUserCount()
Return the number of users that have access to this Confluence


getRemainingUserCount

public javax.ws.rs.core.Response getRemainingUserCount()
Return the number of free slots on this Confluence instance

Returns:

getMaxUsers

public javax.ws.rs.core.Response getMaxUsers()
Return the number of users that is allowed by the current license



Copyright © 2003-2013 Atlassian. All Rights Reserved.