1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4; fill-column: 100 -*- */
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
12 using namespace ::connectivity
;
13 using namespace ::connectivity::firebird
;
14 using namespace ::connectivity::sdbcx
;
16 using namespace ::com::sun::star
;
17 using namespace ::com::sun::star::sdbc
;
19 User::User(const css::uno::Reference
< css::sdbc::XConnection
>& rConnection
):
20 OUser(true) // Case Sensitive
21 , m_xConnection(rConnection
)
24 User::User(const css::uno::Reference
< css::sdbc::XConnection
>& rConnection
, const OUString
& rName
):
26 true) // Case Sensitive
27 , m_xConnection(rConnection
)
30 void User::changePassword(const OUString
&, const OUString
& newPassword
)
32 m_xConnection
->createStatement()->execute("ALTER USER " + m_Name
+ " PASSWORD '" + newPassword
+ "'");
35 sal_Int32
User::getPrivileges(const OUString
& , sal_Int32
)
41 sal_Int32
User::getGrantablePrivileges(const OUString
& , sal_Int32
)
47 //----- IRefreshableGroups ----------------------------------------------------
48 void User::refreshGroups()
53 /* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s cinkeys+=0=break: */