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, getJndiServicespublic SimpleJndiDstService(TaskType task) throws LscServiceConfigurationException
task - Initialized task containing all necessary pieces of information to initiate connection
and load settingsLscServiceExceptionLscServiceConfigurationExceptionpublic SimpleJndiDstService(LdapServiceType ldapService, List<String> writableDatasetIds, Class<IBean> beanClass) throws LscServiceConfigurationException
ldapService - writableDatasetIds - beanClass - LscServiceExceptionLscServiceConfigurationExceptionpublic final IBean getBean(String pivotName, LscDatasets pivotAttributes, boolean fromSameService) throws LscServiceException
getBean in interface IServicepivotName - 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 IServiceLscServiceException - 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.LscServiceCommunicationExceptionpublic boolean apply(LscModifications lm) throws LscServiceException
apply in interface IWritableServicelm - 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 IWritableServiceCopyright © 2005-2017 LSC project. All Rights Reserved.