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

java.lang.Object
  extended by com.atlassian.gadgets.directory.internal.impl.DirectoryImpl
All Implemented Interfaces:
Directory

public class DirectoryImpl
extends Object
implements Directory


Nested Class Summary
 
Nested classes/interfaces inherited from interface com.atlassian.gadgets.directory.internal.Directory
Directory.Entry
 
Field Summary
 
Fields inherited from interface com.atlassian.gadgets.directory.internal.Directory
DIRECTORY_FEATURE_CATEGORIES_NAME, DIRECTORY_FEATURE_NAME
 
Constructor Summary
DirectoryImpl(Iterable<? extends DirectoryEntryProvider> providers)
           
 
Method Summary
 boolean contains(URI gadgetSpecUri)
           
 Iterable<Directory.Entry> getEntries(GadgetRequestContext gadgetRequestContext)
          Returns all the entries available, localized by the locale.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DirectoryImpl

public DirectoryImpl(Iterable<? extends DirectoryEntryProvider> providers)
Method Detail

getEntries

public Iterable<Directory.Entry> getEntries(GadgetRequestContext gadgetRequestContext)
Description copied from interface: Directory
Returns all the entries available, localized by the locale.

Specified by:
getEntries in interface Directory
Parameters:
gadgetRequestContext - the context of this request
Returns:
all the entries available

contains

public boolean contains(URI gadgetSpecUri)
Specified by:
contains in interface Directory
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


Copyright © 2010 Atlassian. All Rights Reserved.