22#include <com/sun/star/beans/XPropertySet.hpp>
23#include <com/sun/star/lang/XServiceInfo.hpp>
24#include <com/sun/star/container/XNameAccess.hpp>
31 class XComponentContext;
36namespace uno = css::uno ;
37namespace lang = css::lang ;
38namespace container = css::container;
42typedef cppu::WeakComponentImplHelper<css::beans::XPropertySet,
54 explicit LdapUserProfileBe(
const uno::Reference<uno::XComponentContext>& xContext);
58 virtual OUString SAL_CALL
64 virtual uno::Sequence<OUString> SAL_CALL
68 virtual css::uno::Reference< css::beans::XPropertySetInfo > SAL_CALL
70 {
return css::uno::Reference< css::beans::XPropertySetInfo >(); }
73 OUString
const &, css::uno::Any
const &)
override;
76 OUString
const & PropertyName)
override;
80 css::uno::Reference< css::beans::XPropertyChangeListener >
const &)
override
85 css::uno::Reference< css::beans::XPropertyChangeListener >
const &)
override
90 css::uno::Reference< css::beans::XVetoableChangeListener >
const &)
override
95 css::uno::Reference< css::beans::XVetoableChangeListener >
const &)
override
101 uno::Reference<uno::XComponentContext>
const & context,
104 static bool getLdapStringParam(uno::Reference<container::XNameAccess>
const & xAccess,
105 const OUString& aLdapSetting,
106 OUString& aServerParameter);
Implements the PlatformBackend service, a specialization of the XPropertySet service for retrieving L...
LdapUserProfileBe(const uno::Reference< uno::XComponentContext > &xContext)
virtual OUString SAL_CALL getImplementationName() override
virtual css::uno::Reference< css::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo() override
virtual void SAL_CALL removePropertyChangeListener(OUString const &, css::uno::Reference< css::beans::XPropertyChangeListener > const &) override
static bool getLdapStringParam(uno::Reference< container::XNameAccess > const &xAccess, const OUString &aLdapSetting, OUString &aServerParameter)
virtual sal_Bool SAL_CALL supportsService(const OUString &aServiceName) override
virtual void SAL_CALL addVetoableChangeListener(OUString const &, css::uno::Reference< css::beans::XVetoableChangeListener > const &) override
virtual void SAL_CALL setPropertyValue(OUString const &, css::uno::Any const &) override
virtual ~LdapUserProfileBe() override
virtual css::uno::Any SAL_CALL getPropertyValue(OUString const &PropertyName) override
virtual uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override
virtual void SAL_CALL addPropertyChangeListener(OUString const &, css::uno::Reference< css::beans::XPropertyChangeListener > const &) override
static bool readLdapConfiguration(uno::Reference< uno::XComponentContext > const &context, LdapDefinition *definition, OUString *loggedOnUser)
Check if LDAP is configured.
virtual void SAL_CALL removeVetoableChangeListener(OUString const &, css::uno::Reference< css::beans::XVetoableChangeListener > const &) override
std::map< OUString, OUString > LdapData
cppu::WeakComponentImplHelper< css::beans::XPropertySet, lang::XServiceInfo > BackendBase
Struct containing the information on LDAP connection.