Methods' Summary |
getSupportedPackageTypes |
gets the supported XPackageTypeInfos.
|
createAbortChannel |
creates a command channel to be used to asynchronously abort a command.
|
addExtension |
adds an extension.
The properties argument is currently only used to suppress the license information
for shared extensions.
|
removeExtension |
removes an extension.
|
enableExtension |
enable an extension.
If the extension is not from the user repository then an
IllegalArgumentException is thrown.
|
disableExtension |
disable an extension.
If the extension is not from the user repository then an
IllegalArgumentException is thrown.
|
getDeployedExtensions |
gets all currently installed extensions, including disabled
user extensions.
|
getDeployedExtension |
gets an installed extensions.
|
getExtensionsWithSameIdentifier |
gets all extensions with the same identifer from all repositories.
The extension at the first position in the returned sequence represents
the extension from the user repository. The next element is from the shared
and the last one is from the bundled repository.
If one repository does not contain this extension, then the respective
element is a null reference.
|
getAllExtensions |
returns a sequence containing all installed extensions.
The members of the returned sequence correspond to an extension with a
particular extension identifer. The members are also sequences which
contain as many elements as there are repositories. Those are ordered
according to the priority of the repository. That is, the first member
is the extension from the user repository, the second is from the shared
repository and the last is from the bundled repository.
|
reinstallDeployedExtensions |
Expert feature: erases the underlying registry cache and reinstalls
all previously added extensions. Please keep in mind that all
registration status get lost.
|
synchronize |
synchronizes the extension database with the contents of the extensions
folder of shared and bundled extensinos.
Added extensions will be added to the database and removed extensions
will be removed from the database.
The active extensions are determined. That is, shared or bundled extensions
are not necessaryly registered (XPackage::registerPackage).
|
synchronizeBundledPrereg |
synchronizes the special bundled_prereg repository, which is based on
the bundled extensions and has its registration data folder at
$BUNDLED_EXTENSIONS_PREREG (for example openoffice.org3/share/prereg).
All bundled extensions are registered (XPackage::registerPackage).
The active extensions are NOT determined, because this function only works
with bundled extensions.
This function is intended to be called during the installation of OOo.
OOo will copy parts of the registration data folder to the user installation at the
first startup.
|
getExtensionsWithUnacceptedLicenses |
returns all extensions which are currently not in use
because the user did not accept the license.
The function will not return any object for the user repository, because
a user extension will not be kept in the user repository if its license
is declined. Only extensions which are registered at start-up of OOo,
that is, shared and bundled extensions, can be returned.
Extensions which allow the license to be suppressed, that is, it does not
need to be displayed, and which are installed with the corresponding option,
are also not returned.
Extensions returned by this functions are not returned by
::XExtensionManger::getDeployedExtension
::XExtensionManger::getDeployedExtensions
::XExtensionManger::getAllExtensions
::XExtensionManger::getExtensionsWithSameIdentifier
|
checkPrerequisitesAndEnable |
check if all prerequisites for the extension are fulfilled
and activates it, if possible.
|
isReadOnlyRepository |
determines if the current user has write access to the extensions folder
of the repository.
|
Methods' Details |
getSupportedPackageTypes
|
createAbortChannel
- Description
- creates a command channel to be used to asynchronously abort a command.
- Returns
- abort channel
|
|
addExtension
- Description
- adds an extension.
The properties argument is currently only used to suppress the license information
for shared extensions.
- Parameter url
- package URL, must be UCB conform
- Parameter properties
- additional properties, for example, that the license is to be
suppressed (if supported by the extension)
- Parameter repository
- the name of the repository
- Parameter xAbortChannel
- abort channel to asynchronously abort the adding process,
or null
- Parameter xCmdEnv
- command environment for error and progress handling
- Returns
- object representing the extension.
|
|
removeExtension
- Description
- removes an extension.
- Parameter identifier
- package identifier
- Parameter fileName
- package file name
- Parameter repository
- the name of the repository
- Parameter xAbortChannel
- abort channel to asynchronously abort the removing process,
or null
- Parameter xCmdEnv
- command environment for error and progress handling
|
|
enableExtension
- Description
- enable an extension.
If the extension is not from the user repository then an
IllegalArgumentException is thrown.
- Parameter extension
- the extension which is to be enabled.
- Parameter xAbortChannel
- abort channel to asynchronously abort the removing process,
or null
- Parameter xCmdEnv
- command environment for error and progress handling
|
|
disableExtension
- Description
- disable an extension.
If the extension is not from the user repository then an
IllegalArgumentException is thrown.
- Parameter extension
- the extension which is to be disabled
- Parameter xAbortChannel
- abort channel to asynchronously abort the removing process,
or null
- Parameter xCmdEnv
- command environment for error and progress handling
|
|
getDeployedExtensions
- Description
- gets all currently installed extensions, including disabled
user extensions.
- Parameter repository
- the repository from which the extensions are returned
- Parameter xAbortChannel
- abort channel to asynchronously abort the removing process,
or null
- Parameter xCmdEnv
- command environment for error and progress handling
- Returns
- all currently installed packages
|
|
getDeployedExtension
- Description
- gets an installed extensions.
- Parameter repositroy
- the name of the repository
- Parameter identifier
- extension identifier
- Parameter fileName
- extension file name
- Parameter xCmdEnv
- command environment for error and progress handling
- Returns
- XPackage object
|
|
getExtensionsWithSameIdentifier
- Description
- gets all extensions with the same identifer from all repositories.
The extension at the first position in the returned sequence represents
the extension from the user repository. The next element is from the shared
and the last one is from the bundled repository.
If one repository does not contain this extension, then the respective
element is a null reference.
|
|
getAllExtensions
- Description
- returns a sequence containing all installed extensions.
The members of the returned sequence correspond to an extension with a
particular extension identifer. The members are also sequences which
contain as many elements as there are repositories. Those are ordered
according to the priority of the repository. That is, the first member
is the extension from the user repository, the second is from the shared
repository and the last is from the bundled repository.
|
|
reinstallDeployedExtensions
- Description
- Expert feature: erases the underlying registry cache and reinstalls
all previously added extensions. Please keep in mind that all
registration status get lost.
Please use this in case of suspected cache inconsistencies only.
- Parameter repositroy
- the name of the repository
- Parameter xAbortChannel
- abort channel to asynchronously abort the adding process
- Parameter xCmdEnv
- command environment for error and progress handling
|
|
synchronize
- Description
- synchronizes the extension database with the contents of the extensions
folder of shared and bundled extensinos.
Added extensions will be added to the database and removed extensions
will be removed from the database.
The active extensions are determined. That is, shared or bundled extensions
are not necessaryly registered (XPackage::registerPackage).
- Returns
- If true - then at least one extension was removed or added. Otherwise
nothing was chaned.
|
|
synchronizeBundledPrereg
- Description
- synchronizes the special bundled_prereg repository, which is based on
the bundled extensions and has its registration data folder at
$BUNDLED_EXTENSIONS_PREREG (for example openoffice.org3/share/prereg).
All bundled extensions are registered (XPackage::registerPackage).
The active extensions are NOT determined, because this function only works
with bundled extensions.
This function is intended to be called during the installation of OOo.
OOo will copy parts of the registration data folder to the user installation at the
first startup.
|
|
getExtensionsWithUnacceptedLicenses
- Description
- returns all extensions which are currently not in use
because the user did not accept the license.
The function will not return any object for the user repository, because
a user extension will not be kept in the user repository if its license
is declined. Only extensions which are registered at start-up of OOo,
that is, shared and bundled extensions, can be returned.
Extensions which allow the license to be suppressed, that is, it does not
need to be displayed, and which are installed with the corresponding option,
are also not returned.
Extensions returned by this functions are not returned by
::XExtensionManger::getDeployedExtension
::XExtensionManger::getDeployedExtensions
::XExtensionManger::getAllExtensions
::XExtensionManger::getExtensionsWithSameIdentifier
|
|
checkPrerequisitesAndEnable
- Description
- check if all prerequisites for the extension are fulfilled
and activates it, if possible.
|
|
isReadOnlyRepository
boolean |
isReadOnlyRepository( |
[in] string |
repository ); |
- Description
- determines if the current user has write access to the extensions folder
of the repository.
|
|
Copyright © 2013, The Apache Software Foundation, Licensed under the Apache License, Version 2.0. Apache, the Apache feather logo, Apache OpenOffice and OpenOffice.org are trademarks of The Apache Software Foundation. Other names may be trademarks of their respective owners.