Methods' Summary |
getContext |
returns the underlying deployment context, that is,
the name of the repository..
|
getSupportedPackageTypes |
gets the supported XPackageTypeInfos.
|
createAbortChannel |
creates a command channel to be used to asynchronously abort a command.
|
addPackage |
adds an UNO package.
The properties argument is currently only used to suppress the license information
for shared extensions.
|
importExtension |
adds an extension.
This copies the extension. If it was from the same repository,
which is represented by this XPackageManager insterface, then
nothing happens.
|
removePackage |
removes an UNO package.
|
getDeployedPackage |
gets a deployed package.
|
getDeployedPackages |
gets all currently deployed packages.
|
reinstallDeployedPackages |
Expert feature: erases the underlying registry cache and reinstalls
all previously added packages. Please keep in mind that all
registration status get lost.
|
isReadOnly |
indicates that this implementation cannot be used for tasks
which require write access to the location where the extensions
are installed.
|
synchronize |
synchronizes the extension database with the contents of the extensions
folder.
Added extensions will be added to the database and removed extensions
will be removed from the database.
|
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.
|
checkPrerequisites |
checks if the extension can be used.
The extension must be managed by this package manager, that is, it must
be recorded in its database. The package manager calls
XPackage::checkPrerequisites and updates its data base with the
result. The result, which is from Prerequisites will be
returned.
|
Methods' Details |
getContext
- Description
- returns the underlying deployment context, that is,
the name of the repository..
- Returns
- underlying deployment context
|
|
getSupportedPackageTypes
|
createAbortChannel
- Description
- creates a command channel to be used to asynchronously abort a command.
- Returns
- abort channel
|
|
addPackage
- Description
- adds an UNO package.
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 mediaType
- media-type of package, empty string if to be detected
- Parameter xAbortChannel
- abort channel to asynchronously abort the adding process,
or null
- Parameter xCmdEnv
- command environment for error and progress handling
- Returns
- XPackage handle
|
|
importExtension
- Description
- adds an extension.
This copies the extension. If it was from the same repository,
which is represented by this XPackageManager insterface, then
nothing happens.
- Parameter extension
- Parameter xAbortChannel
- abort channel to asynchronously abort the adding process,
or null
- Parameter xCmdEnv
- command environment for error and progress handling
- Returns
- XPackage handle
|
|
removePackage
- Description
- removes an UNO package.
- Parameter identifier
- package identifier
- Parameter fileName
- package file name
- Parameter xAbortChannel
- abort channel to asynchronously abort the removing process,
or null
- Parameter xCmdEnv
- command environment for error and progress handling
|
|
getDeployedPackage
- Description
- gets a deployed package.
- Parameter identifier
- package identifier
- Parameter fileName
- package file name
- Parameter xCmdEnv
- command environment for error and progress handling
- Returns
- XPackage handle
|
|
getDeployedPackages
- Description
- gets all currently deployed packages.
- Parameter xAbortChannel
- abort channel to asynchronously abort the removing process,
or null
- Parameter xCmdEnv
- command environment for error and progress handling
- Returns
- all currently deployed packages
|
|
reinstallDeployedPackages
- Description
- Expert feature: erases the underlying registry cache and reinstalls
all previously added packages. Please keep in mind that all
registration status get lost.
Please use this in case of suspected cache inconsistencies only.
- Parameter xAbortChannel
- abort channel to asynchronously abort the adding process
- Parameter xCmdEnv
- command environment for error and progress handling
|
|
isReadOnly
- Description
- indicates that this implementation cannot be used for tasks
which require write access to the location where the extensions
are installed.
Normally one would call a method and handle the exception
if writing failed. However, a GUI interface may need to know beforehand
if writing is allowed. For example, the Extension Manager dialog
needs to enable / disable the Add button depending if the user has
write permission. Only the XPackageManager implementation knows the
location of the installed extensions. Therefore it is not possible
to check "externally" for write permission.
|
|
synchronize
- Description
- synchronizes the extension database with the contents of the extensions
folder.
Added extensions will be added to the database and removed extensions
will be removed from the database.
- Parameter xAddedExtension
- new extensions which may need to be registered.
- Parameter removed
- extensions which must be revoked
- Returns
- If true - then at least one extension was removed or added. Otherwise
nothing was chaned.
|
|
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.
|
|
checkPrerequisites
- Description
- checks if the extension can be used.
The extension must be managed by this package manager, that is, it must
be recorded in its database. The package manager calls
XPackage::checkPrerequisites and updates its data base with the
result. The result, which is from Prerequisites will be
returned.
|
|
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.