LibreOffice Module connectivity (master) 1
Public Member Functions | Private Member Functions | Static Private Member Functions | Private Attributes | List of all members
connectivity::mysql::OMySQLUser Class Reference

#include <YUser.hxx>

Inheritance diagram for connectivity::mysql::OMySQLUser:
[legend]
Collaboration diagram for connectivity::mysql::OMySQLUser:
[legend]

Public Member Functions

virtual void refreshGroups () override
 
 OMySQLUser (css::uno::Reference< css::sdbc::XConnection > _xConnection)
 
 OMySQLUser (css::uno::Reference< css::sdbc::XConnection > _xConnection, const OUString &Name)
 
virtual void SAL_CALL changePassword (const OUString &objPassword, const OUString &newPassword) override
 
virtual sal_Int32 SAL_CALL getPrivileges (const OUString &objName, sal_Int32 objType) override
 
virtual sal_Int32 SAL_CALL getGrantablePrivileges (const OUString &objName, sal_Int32 objType) override
 
virtual void SAL_CALL grantPrivileges (const OUString &objName, sal_Int32 objType, sal_Int32 objPrivileges) override
 
virtual void SAL_CALL revokePrivileges (const OUString &objName, sal_Int32 objType, sal_Int32 objPrivileges) override
 
- Public Member Functions inherited from connectivity::sdbcx::OUser
 OUser (bool _bCase)
 
 OUser (const OUString &Name, bool _bCase)
 
virtual ~OUser () override
 
 DECLARE_SERVICE_INFO ()
 
virtual void SAL_CALL disposing () override
 
virtual css::uno::Any SAL_CALL queryInterface (const css::uno::Type &rType) override
 
virtual void SAL_CALL acquire () noexcept override
 
virtual void SAL_CALL release () noexcept override
 
virtual css::uno::Sequence< css::uno::Type > SAL_CALL getTypes () override
 
virtual css::uno::Reference< css::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo () override
 
virtual void SAL_CALL changePassword (const OUString &objPassword, const OUString &newPassword) override
 
virtual sal_Int32 SAL_CALL getPrivileges (const OUString &objName, sal_Int32 objType) override
 
virtual sal_Int32 SAL_CALL getGrantablePrivileges (const OUString &objName, sal_Int32 objType) override
 
virtual void SAL_CALL grantPrivileges (const OUString &objName, sal_Int32 objType, sal_Int32 objPrivileges) override
 
virtual void SAL_CALL revokePrivileges (const OUString &objName, sal_Int32 objType, sal_Int32 objPrivileges) override
 
virtual css::uno::Reference< css::container::XNameAccess > SAL_CALL getGroups () override
 
virtual OUString SAL_CALL getName () override
 
virtual void SAL_CALL setName (const OUString &aName) override
 
virtual void refreshGroups ()=0
 
- Public Member Functions inherited from comphelper::OPropertyArrayUsageHelper< OUser >
 OPropertyArrayUsageHelper ()
 
virtual ~OPropertyArrayUsageHelper ()
 
::cppu::IPropertyArrayHelpergetArrayHelper ()
 
- Public Member Functions inherited from connectivity::sdbcx::ODescriptor
 ODescriptor (::cppu::OBroadcastHelper &_rBHelper, bool _bCase, bool _bNew=false)
 
virtual ~ODescriptor () override
 
bool isNew () const
 
void setNew (bool _bNew)
 
bool isCaseSensitive () const
 
virtual void construct ()
 
virtual css::uno::Sequence< css::uno::Type > SAL_CALL getTypes ()
 
- Public Member Functions inherited from comphelper::OPropertyContainer
virtual ~OPropertyContainer ()
 

Private Member Functions

void findPrivilegesAndGrantPrivileges (const OUString &objName, sal_Int32 objType, sal_Int32 &nRights, sal_Int32 &nRightsWithGrant)
 

Static Private Member Functions

static OUString getPrivilegeString (sal_Int32 nRights)
 

Private Attributes

css::uno::Reference< css::sdbc::XConnection > m_xConnection
 

Additional Inherited Members

- Static Public Member Functions inherited from connectivity::sdbcx::ODescriptor
static bool isNew (const css::uno::Reference< css::uno::XInterface > &_rxDescriptor)
 
- Protected Member Functions inherited from connectivity::sdbcx::OUser
virtual ::cppu::IPropertyArrayHelpercreateArrayHelper () const override
 
virtual ::cppu::IPropertyArrayHelper &SAL_CALL getInfoHelper () override
 
- Protected Member Functions inherited from connectivity::sdbcx::IRefreshableGroups
 ~IRefreshableGroups ()
 
virtual ::cppu::IPropertyArrayHelpercreateArrayHelper () const =0
 
- Protected Member Functions inherited from connectivity::sdbcx::ODescriptor
::cppu::IPropertyArrayHelperdoCreateArrayHelper () const
 helper for derived classes to implement OPropertyArrayUsageHelper::createArrayHelper More...
 
- Protected Member Functions inherited from comphelper::OPropertyContainer
 OPropertyContainer (::cppu::OBroadcastHelper &_rBHelper)
 
virtual sal_Bool SAL_CALL convertFastPropertyValue (css::uno::Any &rConvertedValue, css::uno::Any &rOldValue, sal_Int32 nHandle, const css::uno::Any &rValue) override
 
virtual void SAL_CALL setFastPropertyValue_NoBroadcast (sal_Int32 nHandle, const css::uno::Any &rValue) override
 
virtual void SAL_CALL getFastPropertyValue (css::uno::Any &rValue, sal_Int32 nHandle) const override
 
virtual css::uno::Any SAL_CALL getFastPropertyValue (sal_Int32 nHandle) override final
 
virtual void getFastPropertyValue (std::unique_lock< std::mutex > &rGuard, css::uno::Any &rValue, sal_Int32 nHandle) const =0
 
virtual void SAL_CALL setFastPropertyValue (sal_Int32 nHandle, const css::uno::Any &rValue) override final
 
- Protected Member Functions inherited from comphelper::OPropertyContainerHelper
 OPropertyContainerHelper ()
 
 ~OPropertyContainerHelper ()
 
void registerProperty (const OUString &_rName, sal_Int32 _nHandle, sal_Int32 _nAttributes, void *_pPointerToMember, const css::uno::Type &_rMemberType)
 
void registerMayBeVoidProperty (const OUString &_rName, sal_Int32 _nHandle, sal_Int32 _nAttributes, css::uno::Any *_pPointerToMember, const css::uno::Type &_rExpectedType)
 
void registerPropertyNoMember (const OUString &_rName, sal_Int32 _nHandle, sal_Int32 _nAttributes, const css::uno::Type &_rType, css::uno::Any const &_pInitialValue)
 
void revokeProperty (sal_Int32 _nHandle)
 
bool isRegisteredProperty (sal_Int32 _nHandle) const
 
bool isRegisteredProperty (const OUString &_rName) const
 
bool convertFastPropertyValue (css::uno::Any &rConvertedValue, css::uno::Any &rOldValue, sal_Int32 nHandle, const css::uno::Any &rValue)
 
void setFastPropertyValue (sal_Int32 nHandle, const css::uno::Any &rValue)
 
void getFastPropertyValue (css::uno::Any &rValue, sal_Int32 nHandle) const
 
void describeProperties (css::uno::Sequence< css::beans::Property > &_rProps) const
 
const css::beans::Property & getProperty (const OUString &_rName) const
 
- Static Protected Member Functions inherited from comphelper::OPropertyArrayUsageHelper< OUser >
static std::mutextheMutex ()
 
- Static Protected Member Functions inherited from comphelper::OPropertyContainer
static css::uno::Sequence< css::uno::Type > getBaseTypes ()
 
- Protected Attributes inherited from connectivity::sdbcx::OUser
std::unique_ptr< OGroupsm_pGroups
 
- Protected Attributes inherited from cppu::BaseMutex
mutable::osl::Mutex m_aMutex
 
- Protected Attributes inherited from connectivity::sdbcx::ODescriptor
OUString m_Name
 
- Static Protected Attributes inherited from comphelper::OPropertyArrayUsageHelper< OUser >
static sal_Int32 s_nRefCount
 
::cppu::IPropertyArrayHelpers_pProps
 

Detailed Description

Definition at line 29 of file YUser.hxx.

Constructor & Destructor Documentation

◆ OMySQLUser() [1/2]

OMySQLUser::OMySQLUser ( css::uno::Reference< css::sdbc::XConnection >  _xConnection)

Definition at line 41 of file YUser.cxx.

References connectivity::sdbcx::ODescriptor::construct(), and m_xConnection.

◆ OMySQLUser() [2/2]

OMySQLUser::OMySQLUser ( css::uno::Reference< css::sdbc::XConnection >  _xConnection,
const OUString &  Name 
)

Definition at line 48 of file YUser.cxx.

References connectivity::sdbcx::ODescriptor::construct(), m_xConnection, and Name.

Member Function Documentation

◆ changePassword()

void SAL_CALL OMySQLUser::changePassword ( const OUString &  objPassword,
const OUString &  newPassword 
)
overridevirtual

◆ findPrivilegesAndGrantPrivileges()

void OMySQLUser::findPrivilegesAndGrantPrivileges ( const OUString &  objName,
sal_Int32  objType,
sal_Int32 &  nRights,
sal_Int32 &  nRightsWithGrant 
)
private
Exceptions
css::sdbc::SQLException
css::uno::RuntimeException

Definition at line 93 of file YUser.cxx.

References Any, connectivity::sdbcx::ODescriptor::m_Name, m_xConnection, dbtools::qualifiedNameComponents(), sCatalog, and sSchema.

Referenced by getGrantablePrivileges(), and getPrivileges().

◆ getGrantablePrivileges()

sal_Int32 SAL_CALL OMySQLUser::getGrantablePrivileges ( const OUString &  objName,
sal_Int32  objType 
)
overridevirtual

◆ getPrivileges()

sal_Int32 SAL_CALL OMySQLUser::getPrivileges ( const OUString &  objName,
sal_Int32  objType 
)
overridevirtual

◆ getPrivilegeString()

OUString OMySQLUser::getPrivilegeString ( sal_Int32  nRights)
staticprivate

Definition at line 282 of file YUser.cxx.

Referenced by grantPrivileges(), and revokePrivileges().

◆ grantPrivileges()

void SAL_CALL OMySQLUser::grantPrivileges ( const OUString &  objName,
sal_Int32  objType,
sal_Int32  objPrivileges 
)
overridevirtual

◆ refreshGroups()

void OMySQLUser::refreshGroups ( )
overridevirtual

Implements connectivity::sdbcx::IRefreshableGroups.

Definition at line 56 of file YUser.cxx.

◆ revokePrivileges()

void SAL_CALL OMySQLUser::revokePrivileges ( const OUString &  objName,
sal_Int32  objType,
sal_Int32  objPrivileges 
)
overridevirtual

Member Data Documentation

◆ m_xConnection

css::uno::Reference< css::sdbc::XConnection > connectivity::mysql::OMySQLUser::m_xConnection
private

The documentation for this class was generated from the following files: