public class SimpleJndiDstService extends AbstractSimpleJndiService implements IWritableService
Constructor and Description |
---|
SimpleJndiDstService(LdapServiceType ldapService,
List<String> writableDatasetIds,
Class<IBean> beanClass) |
SimpleJndiDstService(TaskType task)
Constructor adapted to the context properties and the bean class name to instantiate.
|
Modifier and Type | Method and Description |
---|---|
boolean |
apply(JndiModifications jm)
Apply directory modifications.
|
boolean |
apply(LscModifications lm)
Apply directory modifications.
|
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.
|
List<String> |
getWriteDatasetIds() |
close, get, getAttrs, getAttrsId, getBaseDn, getBeanFromSR, getFilterAll, getFilterId, getJndiServices
public SimpleJndiDstService(TaskType task) throws LscServiceConfigurationException
task
- Initialized task containing all necessary pieces of information to initiate connection
and load settingsLscServiceException
LscServiceConfigurationException
public SimpleJndiDstService(LdapServiceType ldapService, List<String> writableDatasetIds, Class<IBean> beanClass) throws LscServiceConfigurationException
ldapService
- writableDatasetIds
- beanClass
- LscServiceException
LscServiceConfigurationException
public final IBean getBean(String pivotName, LscDatasets pivotAttributes, boolean fromSameService) throws LscServiceException
getBean
in interface IService
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 serviceLscServiceException
- May throw a NamingException
if the object is not found in the
directory, or if more than one object would be returned.public Map<String,LscDatasets> getListPivots() throws LscServiceException
getListPivots
in interface IService
LscServiceException
- May throw a NamingException
if an error occurs while
searching the directory.public boolean apply(JndiModifications jm) throws LscServiceCommunicationException
jm
- Modifications to apply in a JndiModifications
object.CommunicationException
- If the connection to the service is lost,
and all other attempts to use this service should fail.LscServiceCommunicationException
public boolean apply(LscModifications lm) throws LscServiceException
apply
in interface IWritableService
lm
- Modifications to apply in a JndiModifications
object.CommunicationException
- If the connection to the service is lost,
and all other attempts to use this service should fail.LscServiceException
- thrown if an error is encounteredpublic List<String> getWriteDatasetIds()
getWriteDatasetIds
in interface IWritableService
Copyright © 2005-2024 LSC project. All Rights Reserved.