public interface IService
This interface must be implemented by a class to be considered a service.
Optionally, the service may also implement a constructor, which will be called once before a synchronization begins. This constructor may accept a Properties object as a parameter, which will be filled with properties from the lsc.properties file.
The returned bean type will be determined while calling constructor
Modifier and Type | Method and Description |
---|---|
IBean |
getBean(String pivotName,
LscDatasets pivotAttributes,
boolean fromSameService)
The simple object getter according to its identifier.
|
Map<String,LscDatasets> |
getListPivots()
Returns a list of all the objects' identifiers.
|
IBean getBean(String pivotName, LscDatasets pivotAttributes, boolean fromSameService) throws LscServiceException
pivotName
- Name of the entry to be returned, which is the name returned by
getListPivots()
(used for display only)pivotAttributes
- Map of attribute names and values, which is the data identifier in the
source such as returned by getListPivots()
. It must identify a unique
entry in the source.fromSameService
- are the pivot attributes provided by the same serviceNamingException
- May throw a NamingException
if the object is not found in the
directory, or if more than one object would be returned.LscServiceException
Map<String,LscDatasets> getListPivots() throws LscServiceException
NamingException
- May throw a NamingException
if an error occurs while
searching the directory.LscServiceException
Copyright © 2005-2024 LSC project. All Rights Reserved.