com.atlassian.studio.confluence
Class OnDemandLicenseManagerImpl

java.lang.Object
  extended by com.atlassian.studio.confluence.OnDemandLicenseManagerImpl
All Implemented Interfaces:
OnDemandLicenseManager

public class OnDemandLicenseManagerImpl
extends Object
implements OnDemandLicenseManager


Constructor Summary
OnDemandLicenseManagerImpl(com.atlassian.bandana.BandanaManager bandanaManager, com.atlassian.crowd.embedded.api.CrowdService unfilteredCrowdService)
           
 
Method Summary
 boolean hasLicensedAccess(String username)
          Checks if the user has access to confluence, this does not imply that the user has permission to use confluence, but that they have been granted a license to access confluence.
 boolean isConfluenceEnabled()
          Detects if confluence is actually enabled, in on Demand confluence can be configured so that it is running but not enabled.
 boolean isOnDemand()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OnDemandLicenseManagerImpl

public OnDemandLicenseManagerImpl(com.atlassian.bandana.BandanaManager bandanaManager,
                                  com.atlassian.crowd.embedded.api.CrowdService unfilteredCrowdService)
Method Detail

isOnDemand

public boolean isOnDemand()
Specified by:
isOnDemand in interface OnDemandLicenseManager

isConfluenceEnabled

public boolean isConfluenceEnabled()
Description copied from interface: OnDemandLicenseManager
Detects if confluence is actually enabled, in on Demand confluence can be configured so that it is running but not enabled. When called from vanilla confluence or standalone confluence this method will always return true.

Specified by:
isConfluenceEnabled in interface OnDemandLicenseManager
Returns:
true if confluence is enabled

hasLicensedAccess

public boolean hasLicensedAccess(String username)
Description copied from interface: OnDemandLicenseManager
Checks if the user has access to confluence, this does not imply that the user has permission to use confluence, but that they have been granted a license to access confluence. When called from vanilla confluence this method will always return true.

Specified by:
hasLicensedAccess in interface OnDemandLicenseManager
Returns:
true if the user is licensed to access confluence.


Copyright © 2003-2012 Atlassian. All Rights Reserved.