com.atlassian.confluence.labels
Class VisibleLabelFilter

java.lang.Object
  extended by com.atlassian.confluence.labels.VisibleLabelFilter
All Implemented Interfaces:
com.atlassian.core.util.filter.Filter, com.google.common.base.Predicate<Label>

public class VisibleLabelFilter
extends Object
implements com.atlassian.core.util.filter.Filter, com.google.common.base.Predicate<Label>

This filters a list of label objects, returning those labels from the list that the specified user should see.


Constructor Summary
VisibleLabelFilter()
           
VisibleLabelFilter(String user)
           
 
Method Summary
 boolean apply(Label input)
           
 boolean isIncluded(Object object)
           
 
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
 

Constructor Detail

VisibleLabelFilter

public VisibleLabelFilter()

VisibleLabelFilter

public VisibleLabelFilter(String user)
Method Detail

apply

public boolean apply(@Nullable
                     Label input)
Specified by:
apply in interface com.google.common.base.Predicate<Label>

isIncluded

public boolean isIncluded(Object object)
Specified by:
isIncluded in interface com.atlassian.core.util.filter.Filter


Copyright © 2003–2015 Atlassian. All rights reserved.