com.sapportals.wcm.repository.service

Interface IRepositoryServiceFactory


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
 Collection getAllRepositoryServices(IRepositoryManager repository)
          Get a list of all registered repository services for a given repository manager.
 Collection getAllRepositoryServices(IResource resource)
          Get all repository services for a given resources repository manager.
 Collection getAllServices()
          Returns a collection of all defined global services
 IRepositoryService getRepositoryService(IRepositoryManager repository, String servicetype)
          Returns a specific repository service instance for a given repository manager.
 IRepositoryService getRepositoryService(IResource resource, String servicetype)
          Get a specific service for a given resource.
 IRepositoryService getRepositoryService(String id)
          Retrieves a repository service by a given ID.
 IService getService(String serviceID)
          Retrieves a global service by a given ID.
 boolean isRepositoryServiceAvailable(IRepositoryManager repository, String servicetype)
          Checks if the service is avaible.
 boolean isRepositoryServiceAvailable(IResource resource, String servicetype)
          Checks if the service is avaible.
 

Method Detail

getAllRepositoryServices

Collection getAllRepositoryServices(IRepositoryManager repository)
                                    throws ResourceException
Get a list of all registered repository services for a given repository manager.

Parameters:
The - repository manager for which the repository services should be retrieved
Returns:
Collection of IRepositoryService references.
Throws:
ResourceException - If there was a problem while allocating the services.

getRepositoryService

IRepositoryService getRepositoryService(IRepositoryManager repository,
                                        String servicetype)
                                        throws ResourceException
Returns a specific repository service 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 service.

isRepositoryServiceAvailable

boolean isRepositoryServiceAvailable(IRepositoryManager repository,
                                     String servicetype)
                                     throws ResourceException
Checks if the service is avaible.

Parameters:
repository - A repository manager reference
servicetype - A service type constant
Returns:
repositoryServiceAvailable
Throws:
ResourceException - If there was a problem while allocating the service.

getAllRepositoryServices

Collection getAllRepositoryServices(IResource resource)
                                    throws ResourceException
Get all repository services for a given resources repository manager. Same as calling getAllRepositoryServices(IRepositoryManager repository) with the resources repository manager.

Parameters:
The - resource for which the repository services should be retrieved
Returns:
A Collection of IRepositoryService s.
Throws:
ResourceException - If there was a problem while allocating the services.

getRepositoryService

IRepositoryService getRepositoryService(IResource resource,
                                        String servicetype)
                                        throws ResourceException
Get a specific service for a given resource.

Parameters:
The - resource for which the repository service should be retrieved
servicetype - A service type constant
Returns:
A IRepositoryService .
Throws:
ResourceException - If there was a problem while allocating the service.

isRepositoryServiceAvailable

boolean isRepositoryServiceAvailable(IResource resource,
                                     String servicetype)
                                     throws ResourceException
Checks if the service is avaible.

Parameters:
The - resource for which the repository service should be retrieved
servicetype - A service type constant
Returns:
repositoryServiceAvailable
Throws:
ResourceException - If there was a problem while allocating the service.

getRepositoryService

IRepositoryService getRepositoryService(String id)
                                        throws ResourceException
Retrieves a repository service by a given ID.

Parameters:
id - The services ID
Returns:
A IRepositoryService .
Throws:
ResourceException - If there was a problem while allocating the service.

getService

IService getService(String serviceID)
                    throws ResourceException
Retrieves a global service by a given ID.

Parameters:
serviceID - The service ID as specified in configuration.
Returns:
A reference to the global service
Throws:
ResourceException - Exception raised in failure situation

getAllServices

Collection getAllServices()
                          throws ResourceException
Returns a collection of all defined global services

Returns:
A Collection with IService instances - empty collection if no global services are available
Throws:
ResourceException - Exception raised in failure situation
Access Rights

This class can be accessed from:


SC DC Public Part ACH
[sap.com] KMC-WPC [sap.com] tc/kmc/wpc/wpcfacade api EP-PIN-WPC-WCM
[sap.com] KMC-CM [sap.com] tc/km/frwk api EP-KM-CM


Copyright 2011 SAP AG Complete Copyright Notice