bump product version to 7.2.5.1
[LibreOffice.git] / connectivity / source / drivers / firebird / User.cxx
blob9f647713a66386f391af61d91312a0203cb506a3
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4; fill-column: 100 -*- */
2 /*
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/.
8 */
10 #include "User.hxx"
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):
25 OUser(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 )
37 // TODO: implement.
38 return 0;
41 sal_Int32 User::getGrantablePrivileges(const OUString& , sal_Int32 )
43 // TODO: implement.
44 return 0;
47 //----- IRefreshableGroups ----------------------------------------------------
48 void User::refreshGroups()
50 // TODO: implement.
53 /* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s cinkeys+=0=break: */