com.atlassian.confluence.ondemand
Interface OnDemandLicenseManager

All Known Implementing Classes:
OnDemandLicenseManagerImpl, OnDemandLicenseManagerNoOpImpl

public interface OnDemandLicenseManager

Allows confluence core to answer questions about the state of confluence license properties managed by onDemand. This implementation of this component is overridden in on demand.


Method Summary
 boolean hasLicensedAccess(java.lang.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()
           
 

Method Detail

isOnDemand

boolean isOnDemand()

isConfluenceEnabled

boolean isConfluenceEnabled()
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.

Returns:
true if confluence is enabled

hasLicensedAccess

boolean hasLicensedAccess(java.lang.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. When called from vanilla confluence this method will always return true.

Parameters:
username -
Returns:
true if the user is licensed to access confluence.


Copyright © 2003-2013 Atlassian. All Rights Reserved.