SAP NetWeaver '04

com.sapportals.wcm.repository.service
Interface IRepositoryServiceFactory

[contained in: com.sap.netweaver.bc.rf.par - bc.rf.framework_api.jar]
public interface IRepositoryServiceFactory

Defines an interface for a repository service factory. This factory creates instances of repository dependent services. It also provides access to repository independet services.

Copyright 2004 SAP AG


Method Summary
 java.util.Collection getAllRepositoryServices(IRepositoryManager repository)
          Get a list of all registered service managers for a given repository manager.
 java.util.Collection getAllRepositoryServices(IResource resource)
          Get all services for a given resource.
 java.util.Collection getAllServices()
          Returns a collection of all defined services
 IRepositoryService getRepositoryService(IRepositoryManager repository, java.lang.String servicetype)
          Returns a specific service manager instance for a given repository manager.
 IRepositoryService getRepositoryService(IResource resource, java.lang.String servicetype)
          Get a specific service for a given resource.
 IRepositoryService getRepositoryService(java.lang.String id)
          Get a service instance by ID.
 IService getService(java.lang.String serviceID)
          Returns the instance of a service.
 boolean isRepositoryServiceAvailable(IRepositoryManager repository, java.lang.String servicetype)
          Checks if the service is avaible.
 boolean isRepositoryServiceAvailable(IResource resource, java.lang.String servicetype)
          Checks if the service is avaible.
 

Method Detail

getAllRepositoryServices

public java.util.Collection getAllRepositoryServices(IRepositoryManager repository)
                                              throws ResourceException
Get a list of all registered service managers for a given repository manager.
Parameters:
repository - TBD: Description of the incoming method parameter
Returns:
Collection of IRepositoryService references.
Throws:
ResourceException - If there was a problem while allocating the managers.

getRepositoryService

public IRepositoryService getRepositoryService(IRepositoryManager repository,
                                               java.lang.String servicetype)
                                        throws ResourceException
Returns a specific service manager instance for a given repository manager.
Parameters:
repository - A repository manager reference
servicetype - A service type constant
Returns:
A IRepositoryService reference.
Throws:
ResourceException - If there was a problem while allocating the manager.

isRepositoryServiceAvailable

public boolean isRepositoryServiceAvailable(IRepositoryManager repository,
                                            java.lang.String servicetype)
                                     throws ResourceException
Checks if the service is avaible.
Parameters:
repository - TBD: Description of the incoming method parameter
servicetype - TBD: Description of the incoming method parameter
Returns:
repositoryServiceAvailable
Throws:
ResourceException - If there was a problem while allocating the manager.

getAllRepositoryServices

public java.util.Collection getAllRepositoryServices(IResource resource)
                                              throws ResourceException
Get all services for a given resource.
Parameters:
resource - TBD: Description of the incoming method parameter
Returns:
A Collection of IRepositoryService s.
Throws:
ResourceException - If there was a problem while allocating the managers.

getRepositoryService

public IRepositoryService getRepositoryService(IResource resource,
                                               java.lang.String servicetype)
                                        throws ResourceException
Get a specific service for a given resource.
Parameters:
resource - TBD: Description of the incoming method parameter
servicetype - TBD: Description of the incoming method parameter
Returns:
A IRepositoryService .
Throws:
ResourceException - If there was a problem while allocating the manager.

isRepositoryServiceAvailable

public boolean isRepositoryServiceAvailable(IResource resource,
                                            java.lang.String servicetype)
                                     throws ResourceException
Checks if the service is avaible.
Parameters:
resource - TBD: Description of the incoming method parameter
servicetype - TBD: Description of the incoming method parameter
Returns:
repositoryServiceAvailable
Throws:
ResourceException - If there was a problem while allocating the manager.

getRepositoryService

public IRepositoryService getRepositoryService(java.lang.String id)
                                        throws ResourceException
Get a service instance by ID. The method will return the service instance for a manager this service's type is registered.
Parameters:
id - The service manager ID
Returns:
A IRepositoryService .
Throws:
ResourceException - If there was a problem while allocating the manager.

getService

public IService getService(java.lang.String serviceID)
                    throws ResourceException
Returns the instance of a service.
Parameters:
serviceID - The service ID as specified in configuration.
Returns:
The service
Throws:
ResourceException - Exception raised in failure situation

getAllServices

public java.util.Collection getAllServices()
                                    throws ResourceException
Returns a collection of all defined services
Returns:
A Collection with IService instances - empty collection if no global services are available
Throws:
ResourceException - Exception raised in failure situation

SAP NetWeaver '04

Copyright © 2004 by SAP AG. All Rights Reserved.
SAP, R/3, mySAP, mySAP.com, xApps, xApp, SAP NetWeaver, and other SAP products and services mentioned herein as well as their respective logos are trademarks or registered trademarks of SAP AG in Germany and in several other countries all over the world. All other product and service names mentioned are the trademarks of their respective companies. Data contained in this document serves informational purposes only. National product specifications may vary.

These materials are subject to change without notice. These materials are provided by SAP AG and its affiliated companies ("SAP Group") for informational purposes only, without representation or warranty of any kind, and SAP Group shall not be liable for errors or omissions with respect to the materials. The only warranties for SAP Group products and services are those that are set forth in the express warranty statements accompanying such products and services, if any. Nothing herein should be construed as constituting an additional warranty.