public interface FreedesktopService<T extends FreedesktopEntity>
| Modifier and Type | Method and Description |
|---|---|
void |
addBase(org.apache.commons.vfs2.FileObject base)
Add a directory to the list of those that should be searched.
|
Collection<T> |
getAllEntities()
Get a collection of all available entities in all bases.
|
Collection<org.apache.commons.vfs2.FileObject> |
getBases()
Get a collection of all base directories.
|
Collection<T> |
getEntities(org.apache.commons.vfs2.FileObject base)
Get a collection of all available entities in the specified base directory.
|
T |
getEntity(String name)
Get a entities given its name.
|
void |
removeBase(org.apache.commons.vfs2.FileObject base)
Remove a directory from the list that is is searched.
|
void addBase(org.apache.commons.vfs2.FileObject base)
throws IOException
base - base directoryIOException - if location is invalid in some wayvoid removeBase(org.apache.commons.vfs2.FileObject base)
base - base directory to remove from the list that is searched#addBase(File)Collection<org.apache.commons.vfs2.FileObject> getBases()
T getEntity(String name)
name - internal name of entitiesCollection<T> getEntities(org.apache.commons.vfs2.FileObject base)
base - base directoryCollection<T> getAllEntities()
Copyright © 2016. All rights reserved.