org.opengroupware.jogi.ogo
Interface ResourceManager

All Superinterfaces:
java.util.Observer
All Known Implementing Classes:
XmlRpcResourceManager

public interface ResourceManager
extends java.util.Observer

Allows management of the resources of an OpenGroupware.org installation.

Author:
Andreas Rath (teddius) , Werner Schuster (murphee)

Method Summary
 boolean delete(Resource resource)
           
 java.util.Iterator fetch(FetchSpecification spec)
           
 Resource getById(java.lang.String id)
           
 Resource getByName(java.lang.String name)
           
 java.util.Iterator getCategories()
          Returns the names of all categories.
 java.util.Iterator getResourcesByCategory(java.lang.String category_name)
          Returns all Resources that are in the category with the name passed as argument.
 Resource insert(java.lang.String name, java.lang.String category)
           
 
Methods inherited from interface java.util.Observer
update
 

Method Detail

insert

public Resource insert(java.lang.String name,
                       java.lang.String category)
                throws OgoException,
                       ConnectionException
Throws:
OgoException
ConnectionException

getById

public Resource getById(java.lang.String id)
                 throws OgoException,
                        ConnectionException
Throws:
OgoException
ConnectionException

getByName

public Resource getByName(java.lang.String name)
                   throws OgoException,
                          ConnectionException
Throws:
OgoException
ConnectionException

delete

public boolean delete(Resource resource)
               throws OgoException,
                      ConnectionException
Throws:
OgoException
ConnectionException

getCategories

public java.util.Iterator getCategories()
                                 throws OgoException,
                                        ConnectionException
Returns the names of all categories.

Returns:
Iterator of Strings with the names of all categories.
Throws:
OgoException
ConnectionException

getResourcesByCategory

public java.util.Iterator getResourcesByCategory(java.lang.String category_name)
                                          throws OgoException,
                                                 ConnectionException
Returns all Resources that are in the category with the name passed as argument.

Parameters:
category_name -
Returns:
Iterator containing Resource objects.
Throws:
OgoException
ConnectionException

fetch

public java.util.Iterator fetch(FetchSpecification spec)
                         throws OgoException,
                                ConnectionException
Throws:
OgoException
ConnectionException


Copyright © 2003 ogojogi Project, All Rights Reserved.