com.atlassian.confluence.admin.criteria
Class MoreThanOneUserCriteria

java.lang.Object
  extended by com.atlassian.confluence.admin.criteria.MoreThanOneUserCriteria
All Implemented Interfaces:
AdminConfigurationCriteria

public class MoreThanOneUserCriteria
extends Object
implements AdminConfigurationCriteria

Checks whether there is at least two active users registered in Confluence.

Since:
4.0

Constructor Summary
MoreThanOneUserCriteria(UserChecker userChecker)
           
 
Method Summary
 boolean getIgnored()
           
 String getValue()
           
 boolean hasLiveValue()
           
 boolean isMet()
          Whether the acceptance criteria is met or not for this admin configuration.
 void setIgnored(boolean ignored)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MoreThanOneUserCriteria

public MoreThanOneUserCriteria(UserChecker userChecker)
Method Detail

isMet

public boolean isMet()
Description copied from interface: AdminConfigurationCriteria
Whether the acceptance criteria is met or not for this admin configuration.

Specified by:
isMet in interface AdminConfigurationCriteria
Returns:
true if the acceptance criteria is met, false otherwise.

getValue

public String getValue()
Specified by:
getValue in interface AdminConfigurationCriteria
Returns:
A human-friendly representation of the current value of the admin configuration.

getIgnored

public boolean getIgnored()
Specified by:
getIgnored in interface AdminConfigurationCriteria
Returns:
true if the acceptance criteria for this configuration has been ignored by an end-user, false otherwise.

setIgnored

public void setIgnored(boolean ignored)
Specified by:
setIgnored in interface AdminConfigurationCriteria
Parameters:
ignored - whether this acceptance criteria should be ignored or not.

hasLiveValue

public boolean hasLiveValue()
Specified by:
hasLiveValue in interface AdminConfigurationCriteria
Returns:
Whether the value for this configuration criteria should always be queried as opposed to cached. Useful for getting live data instead of an 'accepted value' when an associated task is completed.


Copyright © 2003-2011 Atlassian. All Rights Reserved.