com.atlassian.confluence.user
Class AddOnUserConsumesLicensePredicate
java.lang.Object
com.atlassian.confluence.user.AddOnUserConsumesLicensePredicate
- All Implemented Interfaces:
- com.google.common.base.Predicate<String>
public class AddOnUserConsumesLicensePredicate
- extends Object
- implements com.google.common.base.Predicate<String>
Determines whether or not a username's user consumes a Confluence license.
|
Constructor Summary |
AddOnUserConsumesLicensePredicate(com.google.common.base.Supplier<com.atlassian.crowd.embedded.api.UnfilteredCrowdService> unfilteredCrowdServiceSupplier)
|
|
Method Summary |
boolean |
apply(String username)
Determines whether or not a username's corresponding user consumes a Confluence license. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.google.common.base.Predicate |
equals |
AddOnUserConsumesLicensePredicate
public AddOnUserConsumesLicensePredicate(com.google.common.base.Supplier<com.atlassian.crowd.embedded.api.UnfilteredCrowdService> unfilteredCrowdServiceSupplier)
apply
public boolean apply(@Nullable
String username)
- Determines whether or not a username's corresponding user consumes a Confluence license.
- Specified by:
apply in interface com.google.common.base.Predicate<String>
- Parameters:
username - username of the user being tested
- Returns:
- true if the username is non-null and the corresponding user is NOT a member of the
ATLASSIAN_ADDONS group
Copyright © 2003–2015 Atlassian. All rights reserved.