LibreOffice Module desktop (master) 1
|
#include <dp_manager.h>
Classes | |
class | CmdEnvWrapperImpl |
Public Member Functions | |
virtual void SAL_CALL | dispose () override |
virtual void SAL_CALL | addEventListener (css::uno::Reference< css::lang::XEventListener > const &xListener) override |
virtual void SAL_CALL | removeEventListener (css::uno::Reference< css::lang::XEventListener > const &xListener) override |
virtual void SAL_CALL | addModifyListener (css::uno::Reference< css::util::XModifyListener > const &xListener) override |
virtual void SAL_CALL | removeModifyListener (css::uno::Reference< css::util::XModifyListener > const &xListener) override |
virtual OUString SAL_CALL | getContext () override |
virtual css::uno::Sequence< css::uno::Reference< css::deployment::XPackageTypeInfo > > SAL_CALL | getSupportedPackageTypes () override |
virtual css::uno::Reference< css::task::XAbortChannel > SAL_CALL | createAbortChannel () override |
virtual css::uno::Reference< css::deployment::XPackage > SAL_CALL | addPackage (OUString const &url, css::uno::Sequence< css::beans::NamedValue > const &properties, OUString const &mediaType, css::uno::Reference< css::task::XAbortChannel > const &xAbortChannel, css::uno::Reference< css::ucb::XCommandEnvironment > const &xCmdEnv) override |
virtual css::uno::Reference< css::deployment::XPackage > SAL_CALL | importExtension (css::uno::Reference< css::deployment::XPackage > const &extension, css::uno::Reference< css::task::XAbortChannel > const &xAbortChannel, css::uno::Reference< css::ucb::XCommandEnvironment > const &xCmdEnv) override |
virtual void SAL_CALL | removePackage (OUString const &id, OUString const &fileName, css::uno::Reference< css::task::XAbortChannel > const &xAbortChannel, css::uno::Reference< css::ucb::XCommandEnvironment > const &xCmdEnv) override |
OUString | getDeployPath (ActivePackages::Data const &data) |
css::uno::Reference< css::deployment::XPackage > | getDeployedPackage_ (OUString const &id, OUString const &fileName, css::uno::Reference< css::ucb::XCommandEnvironment > const &xCmdEnv) |
css::uno::Reference< css::deployment::XPackage > | getDeployedPackage_ (std::u16string_view id, ActivePackages::Data const &data, css::uno::Reference< css::ucb::XCommandEnvironment > const &xCmdEnv, bool ignoreAlienPlatforms=false) |
virtual css::uno::Reference< css::deployment::XPackage > SAL_CALL | getDeployedPackage (OUString const &id, OUString const &fileName, css::uno::Reference< css::ucb::XCommandEnvironment > const &xCmdEnv) override |
css::uno::Sequence< css::uno::Reference< css::deployment::XPackage > > | getDeployedPackages_ (css::uno::Reference< css::ucb::XCommandEnvironment > const &xCmdEnv) |
virtual css::uno::Sequence< css::uno::Reference< css::deployment::XPackage > > SAL_CALL | getDeployedPackages (css::uno::Reference< css::task::XAbortChannel > const &xAbortChannel, css::uno::Reference< css::ucb::XCommandEnvironment > const &xCmdEnv) override |
virtual void SAL_CALL | reinstallDeployedPackages (sal_Bool force, css::uno::Reference< css::task::XAbortChannel > const &xAbortChannel, css::uno::Reference< css::ucb::XCommandEnvironment > const &xCmdEnv) override |
virtual ::sal_Bool SAL_CALL | isReadOnly () override |
virtual ::sal_Bool SAL_CALL | synchronize (css::uno::Reference< css::task::XAbortChannel > const &xAbortChannel, css::uno::Reference< css::ucb::XCommandEnvironment > const &xCmdEnv) override |
virtual css::uno::Sequence< css::uno::Reference< css::deployment::XPackage > > SAL_CALL | getExtensionsWithUnacceptedLicenses (css::uno::Reference< css::ucb::XCommandEnvironment > const &xCmdEnv) override |
virtual sal_Int32 SAL_CALL | checkPrerequisites (css::uno::Reference< css::deployment::XPackage > const &extension, css::uno::Reference< css::task::XAbortChannel > const &xAbortChannel, css::uno::Reference< css::ucb::XCommandEnvironment > const &xCmdEnv) override |
Static Public Member Functions | |
static css::uno::Reference< css::deployment::XPackageManager > | create (css::uno::Reference< css::uno::XComponentContext > const &xComponentContext, OUString const &context) |
Private Member Functions | |
void | logIntern (css::uno::Any const &status) |
void | fireModified () |
void | initRegistryBackends () |
void | initActivationLayer (css::uno::Reference< css::ucb::XCommandEnvironment > const &xCmdEnv) |
OUString | detectMediaType (::ucbhelper::Content const &ucbContent, bool throw_exc=true) |
OUString | insertToActivationLayer (css::uno::Sequence< css::beans::NamedValue > const &properties, OUString const &mediaType, ::ucbhelper::Content const &sourceContent, OUString const &title, ActivePackages::Data *dbData) |
void | insertToActivationLayerDB (OUString const &id, ActivePackages::Data const &dbData) |
bool | isInstalled (css::uno::Reference< css::deployment::XPackage > const &package) |
bool | synchronizeRemovedExtensions (css::uno::Reference< css::task::XAbortChannel > const &xAbortChannel, css::uno::Reference< css::ucb::XCommandEnvironment > const &xCmdEnv) |
bool | synchronizeAddedExtensions (css::uno::Reference< css::task::XAbortChannel > const &xAbortChannel, css::uno::Reference< css::ucb::XCommandEnvironment > const &xCmdEnv) |
void | check () |
virtual void SAL_CALL | disposing () override |
virtual | ~PackageManagerImpl () override |
PackageManagerImpl (css::uno::Reference< css::uno::XComponentContext > xComponentContext, OUString context) | |
Static Private Member Functions | |
static void | deletePackageFromCache (css::uno::Reference< css::deployment::XPackage > const &xPackage, OUString const &destFolder) |
Private Attributes | |
css::uno::Reference< css::uno::XComponentContext > | m_xComponentContext |
OUString | m_context |
OUString | m_registrationData |
OUString | m_registrationData_expanded |
OUString | m_registryCache |
bool | m_readOnly |
OUString | m_activePackages |
OUString | m_activePackages_expanded |
std::unique_ptr< ActivePackages > | m_activePackagesDB |
std::mutex | m_addMutex |
css::uno::Reference< css::ucb::XProgressHandler > | m_xLogFile |
css::uno::Reference< css::deployment::XPackageRegistry > | m_xRegistry |
Private Attributes inherited from cppu::BaseMutex | |
mutable::osl::Mutex | m_aMutex |
Definition at line 40 of file dp_manager.h.
|
overrideprivatevirtual |
Definition at line 453 of file dp_manager.cxx.
|
inlineprivate |
Definition at line 120 of file dp_manager.h.
Referenced by create().
|
overridevirtual |
Definition at line 506 of file dp_manager.cxx.
|
overridevirtual |
Definition at line 548 of file dp_manager.cxx.
References check().
|
overridevirtual |
Definition at line 706 of file dp_manager.cxx.
References Any, check(), ucbhelper::Copy, dp_misc::create_folder(), dp_misc::create_ucb_content(), deletePackageFromCache(), detectMediaType(), DpResId(), Exception, ucbhelper::Content::executeCommand(), fireModified(), dp_misc::getIdentifier(), insertToActivationLayer(), insertToActivationLayerDB(), isInstalled(), logIntern(), m_activePackages, m_addMutex, m_context, m_readOnly, m_xComponentContext, m_xLogFile, m_xRegistry, dp_misc::makeURL(), dp_misc::progressUpdate(), removePackage(), ucbhelper::Content::setPropertyValue(), and ucbhelper::Content::transferContent().
Referenced by importExtension().
|
inlineprivate |
Definition at line 215 of file dp_manager.h.
References cppu::BaseMutex::m_aMutex.
Referenced by addModifyListener(), addPackage(), createAbortChannel(), getContext(), getDeployedPackage(), getDeployedPackages(), reinstallDeployedPackages(), removeModifyListener(), removePackage(), and synchronize().
|
overridevirtual |
Definition at line 1481 of file dp_manager.cxx.
References dp_manager::ActivePackages::Data::failedPrerequisites, dp_misc::getIdentifier(), insertToActivationLayerDB(), m_activePackagesDB, and m_context.
|
static |
Definition at line 341 of file dp_manager.cxx.
References Any, dp_registry::backend::bundle::create(), Exception, comphelper::EventLogger::getLogger(), and PackageManagerImpl().
|
overridevirtual |
Definition at line 540 of file dp_manager.cxx.
References check().
|
staticprivate |
Definition at line 841 of file dp_manager.cxx.
References dp_misc::erase_path(), and dp_misc::try_dispose().
Referenced by addPackage().
|
private |
Definition at line 564 of file dp_manager.cxx.
References ex, exceptionToString(), cppu::getCaughtException(), ucbhelper::Content::getCommandEnvironment(), ucbhelper::Content::getPropertyValue(), ucbhelper::Content::getURL(), m_xRegistry, and SAL_WARN.
Referenced by addPackage(), and initActivationLayer().
|
overridevirtual |
Definition at line 498 of file dp_manager.cxx.
|
overrideprivatevirtual |
Definition at line 470 of file dp_manager.cxx.
References Any, Exception, m_activePackagesDB, m_xComponentContext, m_xLogFile, m_xRegistry, and dp_misc::try_dispose().
|
private |
Definition at line 458 of file dp_manager.cxx.
References cppu::OInterfaceContainerHelper::forEach().
Referenced by addPackage(), and removePackage().
|
overridevirtual |
Definition at line 525 of file dp_manager.cxx.
|
overridevirtual |
Definition at line 1041 of file dp_manager.cxx.
References Any, check(), Exception, getDeployedPackage_(), logIntern(), cppu::BaseMutex::m_aMutex, and m_xLogFile.
css::uno::Reference< css::deployment::XPackage > dp_manager::PackageManagerImpl::getDeployedPackage_ | ( | OUString const & | id, |
OUString const & | fileName, | ||
css::uno::Reference< css::ucb::XCommandEnvironment > const & | xCmdEnv | ||
) |
Referenced by getDeployedPackage(), getDeployedPackages_(), and removePackage().
css::uno::Reference< css::deployment::XPackage > dp_manager::PackageManagerImpl::getDeployedPackage_ | ( | std::u16string_view | id, |
ActivePackages::Data const & | data, | ||
css::uno::Reference< css::ucb::XCommandEnvironment > const & | xCmdEnv, | ||
bool | ignoreAlienPlatforms = false |
||
) |
|
overridevirtual |
Definition at line 1079 of file dp_manager.cxx.
References Any, check(), Exception, getDeployedPackages_(), logIntern(), cppu::BaseMutex::m_aMutex, m_context, and m_xLogFile.
Sequence< Reference< deployment::XPackage > > dp_manager::PackageManagerImpl::getDeployedPackages_ | ( | css::uno::Reference< css::ucb::XCommandEnvironment > const & | xCmdEnv | ) |
Definition at line 1012 of file dp_manager.cxx.
References comphelper::containerToSequence(), getDeployedPackage_(), m_activePackagesDB, and TOOLS_WARN_EXCEPTION.
Referenced by getDeployedPackages().
OUString dp_manager::PackageManagerImpl::getDeployPath | ( | ActivePackages::Data const & | data | ) |
Definition at line 942 of file dp_manager.cxx.
References dp_manager::ActivePackages::Data::fileName, m_activePackages, m_context, dp_misc::makeURL(), and dp_manager::ActivePackages::Data::temporaryName.
|
overridevirtual |
Definition at line 1423 of file dp_manager.cxx.
References Any, dp_manager::ActivePackages::Data::failedPrerequisites, m_activePackages, m_activePackagesDB, cppu::BaseMutex::m_aMutex, m_context, m_xRegistry, dp_misc::makeURL(), dp_misc::makeURLAppendSysPathSegment(), and p.
|
overridevirtual |
Definition at line 533 of file dp_manager.cxx.
References m_xRegistry.
|
overridevirtual |
Definition at line 694 of file dp_manager.cxx.
References addPackage().
|
private |
Definition at line 113 of file dp_manager.cxx.
References dp_misc::create_folder(), dp_misc::create_ucb_content(), detectMediaType(), dp_misc::erase_path(), dp_misc::expandUnoRcUrl(), getString(), insertToActivationLayer(), insertToActivationLayerDB(), m_activePackages, m_activePackages_expanded, m_activePackagesDB, m_context, m_readOnly, m_registrationData, m_registrationData_expanded, m_registryCache, m_xComponentContext, dp_misc::makeURL(), match(), and dp_misc::readFile().
|
private |
Definition at line 278 of file dp_manager.cxx.
References dp_registry::backend::bundle::create(), dp_misc::create_folder(), m_context, m_registryCache, m_xComponentContext, and m_xRegistry.
Referenced by reinstallDeployedPackages().
|
private |
Definition at line 602 of file dp_manager.cxx.
References ucbhelper::Copy, dp_misc::create_folder(), dp_manager::ActivePackages::Data::fileName, ucbhelper::Content::getCommandEnvironment(), dp_misc::getDescriptionInfoset(), ucbhelper::Content::getURL(), ucbhelper::Content::isFolder(), m_activePackages, m_activePackages_expanded, m_context, m_xComponentContext, dp_misc::makeURL(), dp_misc::makeURLAppendSysPathSegment(), dp_manager::ActivePackages::Data::mediaType, props, dp_manager::ActivePackages::Data::temporaryName, ucbhelper::Content::transferContent(), and dp_manager::ActivePackages::Data::version.
Referenced by addPackage(), and initActivationLayer().
|
private |
Definition at line 667 of file dp_manager.cxx.
References m_activePackagesDB, and cppu::BaseMutex::m_aMutex.
Referenced by addPackage(), checkPrerequisites(), initActivationLayer(), and synchronizeAddedExtensions().
|
private |
Definition at line 679 of file dp_manager.cxx.
References dp_misc::getIdentifier(), and m_activePackagesDB.
Referenced by addPackage().
|
override |
Definition at line 1178 of file dp_manager.cxx.
References m_readOnly.
|
inlineprivate |
Definition at line 225 of file dp_manager.h.
References m_xLogFile.
Referenced by addPackage(), getDeployedPackage(), getDeployedPackages(), reinstallDeployedPackages(), and removePackage().
|
overridevirtual |
Definition at line 1122 of file dp_manager.cxx.
References Any, check(), dp_misc::erase_path(), Exception, initRegistryBackends(), logIntern(), m_context, m_registryCache, m_xLogFile, m_xRegistry, dp_misc::office_is_running(), and dp_misc::try_dispose().
|
overridevirtual |
Definition at line 515 of file dp_manager.cxx.
|
overridevirtual |
Definition at line 556 of file dp_manager.cxx.
References check().
|
overridevirtual |
Definition at line 858 of file dp_manager.cxx.
References Any, check(), DpResId(), Exception, fireModified(), getDeployedPackage_(), logIntern(), m_activePackages_expanded, m_activePackagesDB, cppu::BaseMutex::m_aMutex, m_context, m_readOnly, m_xComponentContext, m_xLogFile, m_xRegistry, dp_misc::makeURL(), OUStringToOString(), dp_manager::ActivePackages::Data::temporaryName, dp_misc::try_dispose(), and ucbhelper::Content::writeStream().
Referenced by addPackage(), and synchronizeRemovedExtensions().
|
override |
Definition at line 1408 of file dp_manager.cxx.
References check(), m_context, synchronizeAddedExtensions(), and synchronizeRemovedExtensions().
|
private |
Definition at line 1271 of file dp_manager.cxx.
References dp_misc::create_ucb_content(), dp_manager::ActivePackages::Data::failedPrerequisites, dp_manager::ActivePackages::Data::fileName, dp_misc::getDescriptionInfoset(), dp_misc::getIdentifier(), getString(), insertToActivationLayerDB(), m_activePackages_expanded, m_activePackagesDB, m_context, m_xComponentContext, m_xRegistry, dp_misc::makeURLAppendSysPathSegment(), match(), dp_manager::ActivePackages::Data::mediaType, props, SAL_WARN_IF, dp_manager::ActivePackages::Data::temporaryName, TOOLS_WARN_EXCEPTION, and dp_manager::ActivePackages::Data::version.
Referenced by synchronize().
|
private |
Definition at line 1182 of file dp_manager.cxx.
References dp_misc::create_ucb_content(), dp_misc::getDescriptionInfoset(), dp_misc::DescriptionInfoset::getIdentifier(), dp_misc::DescriptionInfoset::getVersion(), dp_misc::DescriptionInfoset::hasDescription(), m_activePackages, m_activePackages_expanded, m_activePackagesDB, m_context, m_xRegistry, dp_misc::makeURL(), dp_misc::makeURLAppendSysPathSegment(), removePackage(), and TOOLS_WARN_EXCEPTION.
Referenced by synchronize().
|
private |
Definition at line 49 of file dp_manager.h.
Referenced by addPackage(), getDeployPath(), getExtensionsWithUnacceptedLicenses(), initActivationLayer(), insertToActivationLayer(), and synchronizeRemovedExtensions().
|
private |
Definition at line 50 of file dp_manager.h.
Referenced by initActivationLayer(), insertToActivationLayer(), removePackage(), synchronizeAddedExtensions(), and synchronizeRemovedExtensions().
|
private |
Definition at line 51 of file dp_manager.h.
Referenced by checkPrerequisites(), disposing(), getDeployedPackages_(), getExtensionsWithUnacceptedLicenses(), initActivationLayer(), insertToActivationLayerDB(), isInstalled(), removePackage(), synchronizeAddedExtensions(), and synchronizeRemovedExtensions().
|
private |
Definition at line 53 of file dp_manager.h.
Referenced by addPackage().
|
private |
Definition at line 43 of file dp_manager.h.
Referenced by addPackage(), checkPrerequisites(), getContext(), getDeployedPackages(), getDeployPath(), getExtensionsWithUnacceptedLicenses(), initActivationLayer(), initRegistryBackends(), insertToActivationLayer(), reinstallDeployedPackages(), removePackage(), synchronize(), synchronizeAddedExtensions(), and synchronizeRemovedExtensions().
|
private |
Definition at line 47 of file dp_manager.h.
Referenced by addPackage(), initActivationLayer(), isReadOnly(), and removePackage().
|
private |
Definition at line 44 of file dp_manager.h.
Referenced by initActivationLayer().
|
private |
Definition at line 45 of file dp_manager.h.
Referenced by initActivationLayer().
|
private |
Definition at line 46 of file dp_manager.h.
Referenced by initActivationLayer(), initRegistryBackends(), and reinstallDeployedPackages().
|
private |
Definition at line 42 of file dp_manager.h.
Referenced by addPackage(), disposing(), initActivationLayer(), initRegistryBackends(), insertToActivationLayer(), removePackage(), and synchronizeAddedExtensions().
|
private |
Definition at line 54 of file dp_manager.h.
Referenced by addPackage(), disposing(), getDeployedPackage(), getDeployedPackages(), logIntern(), dp_manager::PackageManagerImpl::CmdEnvWrapperImpl::pop(), dp_manager::PackageManagerImpl::CmdEnvWrapperImpl::push(), reinstallDeployedPackages(), removePackage(), and dp_manager::PackageManagerImpl::CmdEnvWrapperImpl::update().
|
private |
Definition at line 58 of file dp_manager.h.
Referenced by addPackage(), detectMediaType(), disposing(), getExtensionsWithUnacceptedLicenses(), getSupportedPackageTypes(), initRegistryBackends(), reinstallDeployedPackages(), removePackage(), synchronizeAddedExtensions(), and synchronizeRemovedExtensions().