com.atlassian.gadgets.directory.internal.impl
Class GadgetSpecProviderDirectoryEntryProvider

java.lang.Object
  extended by com.atlassian.gadgets.directory.internal.impl.AbstractDirectoryEntryProvider<URI>
      extended by com.atlassian.gadgets.directory.internal.impl.GadgetSpecProviderDirectoryEntryProvider
All Implemented Interfaces:
DirectoryEntryProvider, org.springframework.beans.factory.DisposableBean

public class GadgetSpecProviderDirectoryEntryProvider
extends AbstractDirectoryEntryProvider<URI>

A DirectoryEntryProvider that aggregates an arbitrary number of GadgetSpecProvider implementations to produce its results.


Constructor Summary
GadgetSpecProviderDirectoryEntryProvider(com.atlassian.gadgets.spec.GadgetSpecFactory gadgetSpecFactory, Iterable<com.atlassian.gadgets.GadgetSpecProvider> gadgetSpecProviders, com.atlassian.sal.api.executor.ThreadLocalDelegateExecutorFactory threadLocalDelegateExecutorFactory)
           
 
Method Summary
 boolean contains(URI gadgetSpecUri)
           
protected  com.google.common.base.Function<URI,com.atlassian.gadgets.directory.Directory.Entry> convertToLocalizedDirectoryEntry(com.atlassian.gadgets.GadgetRequestContext gadgetRequestContext)
           
protected  Iterable<URI> internalEntries()
           
 String toString()
           
 
Methods inherited from class com.atlassian.gadgets.directory.internal.impl.AbstractDirectoryEntryProvider
destroy, entries, getGadgetSpec
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

GadgetSpecProviderDirectoryEntryProvider

public GadgetSpecProviderDirectoryEntryProvider(com.atlassian.gadgets.spec.GadgetSpecFactory gadgetSpecFactory,
                                                Iterable<com.atlassian.gadgets.GadgetSpecProvider> gadgetSpecProviders,
                                                com.atlassian.sal.api.executor.ThreadLocalDelegateExecutorFactory threadLocalDelegateExecutorFactory)
Method Detail

contains

public boolean contains(URI gadgetSpecUri)
Parameters:
gadgetSpecUri - uri of the gadget spec to check if it's in the directory
Returns:
true if the gadget spec at the location specificied by the uri is in the directory, false otherwise

internalEntries

protected Iterable<URI> internalEntries()
Specified by:
internalEntries in class AbstractDirectoryEntryProvider<URI>

convertToLocalizedDirectoryEntry

protected com.google.common.base.Function<URI,com.atlassian.gadgets.directory.Directory.Entry> convertToLocalizedDirectoryEntry(com.atlassian.gadgets.GadgetRequestContext gadgetRequestContext)
Specified by:
convertToLocalizedDirectoryEntry in class AbstractDirectoryEntryProvider<URI>

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2012 Atlassian. All Rights Reserved.