public interface BackendBundleInventory
CommunicationException if error between the remote
server & client occurs.| Modifier and Type | Method and Description |
|---|---|
BackendBundle |
addBundle(java.io.InputStream is,
java.lang.String[] deploymentTargets)
Adds a backend bundle from the bundle's jar file input stream and sets
specified deployment targets to it.
|
BackendBundlePack |
addBundlePack(java.io.InputStream is)
Adds bundle pack using specified input stream to the pack's zip file.
|
void |
addPermission(java.lang.String roleId,
java.lang.String bundleLocation,
PermissionInfo permission)
Adds a permission to backend bundle.
|
java.lang.String |
createFactoryConfiguration(java.lang.String roleId,
java.lang.String factoryPid)
Creates a new factory configuration with given factory pid.
|
void |
deleteConfiguration(java.lang.String roleId,
java.lang.String pid)
Deletes configuration with given pid for specified role.
|
BackendBundle |
getBundle(java.lang.String bundleLocation)
Returns backend bundle identified by its location.
|
BackendBundle |
getBundle(java.lang.String packName,
java.lang.String bundleName,
java.lang.String bundleVendor)
Returns backend bundle identified by its package, name and vendor.
|
BackendBundlePack |
getBundlePack(java.lang.String packName)
Returns single backend bundle pack identified by its name.
|
BackendBundlePack[] |
getBundlePacks()
Returns all backend bundle packs within the mPRM system.
|
BackendBundle[] |
getBundles()
Returns all backend bundles within the mPRM system.
|
BackendBundle[] |
getBundles(java.lang.String packName,
java.lang.String targetRole)
Returns filtered set of backend bundles.
|
java.io.InputStream |
getBundleStream(java.lang.String bundleLocation)
Returns stream to specified backend bundle.
|
RoleConfig |
getConfiguration(java.lang.String roleId,
java.lang.String pid)
Returns a configuration of backend bundle having a given pid.
|
MetaTypeProviderExtension |
getMetaTypeProvider(java.lang.String pid)
Returns configuration metatype for a given pid.
|
MetaTypeProviderExtension[] |
getMetaTypeProviders(java.lang.String bundleLocation)
Returns configuration metatypes of backend bundle.
|
PermissionInfo[] |
getPermissions(java.lang.String roleId,
java.lang.String bundleLocation)
Returns security permissions of a backend bundle.
|
java.lang.String[] |
getPidsOfFactoryConfiguration(java.lang.String roleId,
java.lang.String factoryPid)
Returns array of String objects representing pids of configurations which belongs
to a configuration group of particular factory pid.
|
void |
removeBundle(java.lang.String bundleLocation)
Removes a backend bundle specified by location.
|
void |
removeBundlePack(java.lang.String packName)
Removes backend bundle pack specified by name.
|
void |
removePermission(java.lang.String roleId,
java.lang.String bundleLocation,
PermissionInfo permission)
Removes a permission of backend bundle.
|
void |
setConfiguration(java.lang.String roleId,
java.lang.String factoryPid,
java.lang.String pid,
java.util.Dictionary data)
Sets configuration properties for a role with given pid and factory pid.
|
void |
setPermissions(java.lang.String roleId,
java.lang.String bundleLocation,
PermissionInfo[] permissions)
Sets a set of permissions to backend bundle.
|
BackendBundle |
updateBundle(java.lang.String bundleLocation,
java.io.InputStream is)
Updates backend bundle using specified input stream.
|
BackendBundlePack |
updateBundlePack(java.lang.String packName,
java.io.InputStream is)
Updates bundle pack using specified input stream to the pack's zip file.
|
BackendBundle |
updateBundleTargets(java.lang.String bundleLocation,
java.lang.String[] deploymentTargets)
Updates backend bundle deployment targets.
|
BackendBundlePack[] getBundlePacks() throws CommunicationException, java.lang.Exception
{@link - CommunicationException} is thrown if communication with the remote
Control Center fails.Exception - is thrown if some other error occurs.CommunicationExceptionjava.lang.ExceptionBackendBundlePack getBundlePack(java.lang.String packName) throws CommunicationException, java.lang.Exception
packName - unique name of the pack{@link - CommunicationException} is thrown if communication with the remote
Control Center fails.Exception - is thrown if some other error occurs.CommunicationExceptionjava.lang.ExceptionBackendBundlePack addBundlePack(java.io.InputStream is) throws CommunicationException, java.lang.Exception
is - pack's input stream{@link - CommunicationException} is thrown if communication with the remote
Control Center fails.Exception - is thrown if some other error occurs.CommunicationExceptionjava.lang.ExceptionBackendBundlePack updateBundlePack(java.lang.String packName, java.io.InputStream is) throws CommunicationException, java.lang.Exception
packName - unique name of the packis - pack's input stream{@link - CommunicationException} is thrown if communication with the remote
Control Center fails.Exception - is thrown if some other error occurs.CommunicationExceptionjava.lang.Exceptionvoid removeBundlePack(java.lang.String packName)
throws CommunicationException,
java.lang.Exception
packName - unique name of the pack{@link - CommunicationException} is thrown if communication with the remote
Control Center fails.Exception - is thrown if some other error occurs.CommunicationExceptionjava.lang.ExceptionBackendBundle[] getBundles() throws CommunicationException, java.lang.Exception
getBundles(null, null).{@link - CommunicationException} is thrown if communication with the remote
Control Center fails.Exception - is thrown if some other error occurs.CommunicationExceptionjava.lang.ExceptionBackendBundle[] getBundles(java.lang.String packName, java.lang.String targetRole) throws CommunicationException, java.lang.Exception
packName - name of the pack containing the bundles, null for all bundles, empty
string for all non packaged bundles.targetRole - the target role of the bundle. Note that it returns also
the bundles of the roles which this role is implied by!{@link - CommunicationException} is thrown if communication with the remote
Control Center fails.Exception - is thrown if some other error occurs.CommunicationExceptionjava.lang.ExceptionBackendBundle getBundle(java.lang.String bundleLocation) throws CommunicationException, java.lang.Exception
bundleLocation - of the bundle{@link - CommunicationException} is thrown if communication with the remote
Control Center fails.Exception - is thrown if some other error occurs.CommunicationExceptionjava.lang.Exceptionjava.io.InputStream getBundleStream(java.lang.String bundleLocation)
throws CommunicationException,
java.lang.Exception
bundleLocation - of the bundle{@link - CommunicationException} is thrown if communication with the remote
Control Center fails.Exception - is thrown if some other error occurs.CommunicationExceptionjava.lang.ExceptionBackendBundle getBundle(java.lang.String packName, java.lang.String bundleName, java.lang.String bundleVendor) throws CommunicationException, java.lang.Exception
packName - name of the pack containing backend bundle, null for all packs, empty
string for bundles which do not belong to any packagebundleName - name of the bundlebundleVendor - vendor of the bundle{@link - CommunicationException} is thrown if communication with the remote
Control Center fails.Exception - is thrown if some other error occurs.CommunicationExceptionjava.lang.ExceptionBackendBundle addBundle(java.io.InputStream is, java.lang.String[] deploymentTargets) throws CommunicationException, java.lang.Exception
Roles.CC, Roles.MS, Roles.RAS, Roles.MC or
an id of specific management server.is - bundle's input streamdeploymentTargets - list of backend modules this bundle is targeted to{@link - CommunicationException} is thrown if communication with the remote
Control Center fails.Exception - is thrown if some other error occurs.CommunicationExceptionjava.lang.ExceptionBackendBundle updateBundle(java.lang.String bundleLocation, java.io.InputStream is) throws CommunicationException, java.lang.Exception
bundleLocation - of the bundleis - bundle's input stream{@link - CommunicationException} is thrown if communication with the remote
Control Center fails.Exception - is thrown if some other error occurs.CommunicationExceptionjava.lang.ExceptionBackendBundle updateBundleTargets(java.lang.String bundleLocation, java.lang.String[] deploymentTargets) throws CommunicationException, java.lang.Exception
Roles.CC, Roles.MS, Roles.RAS, Roles.MC or
an id of specific management server.bundleLocation - location identifying the bundledeploymentTargets - the new deployment targets for the bundle{@link - CommunicationException} is thrown if communication with the remote
Control Center fails.Exception - is thrown if some other error occurs.CommunicationExceptionjava.lang.Exceptionvoid removeBundle(java.lang.String bundleLocation)
throws CommunicationException,
java.lang.Exception
bundleLocation - of the bundle{@link - CommunicationException} is thrown if communication with the remote
Control Center fails.Exception - is thrown if some other error occurs.CommunicationExceptionjava.lang.ExceptionMetaTypeProviderExtension[] getMetaTypeProviders(java.lang.String bundleLocation) throws CommunicationException, java.lang.Exception
bundleLocation - location of the bundle or null for all bundles{@link - CommunicationException} is thrown if communication with the remote
Control Center fails.Exception - is thrown if some other error occurs.CommunicationExceptionjava.lang.ExceptionMetaTypeProviderExtension getMetaTypeProvider(java.lang.String pid) throws CommunicationException, java.lang.Exception
null is returned.{@link - CommunicationException} is thrown if communication with the remote
Control Center fails.Exception - is thrown if some other error occurs.CommunicationExceptionjava.lang.Exceptionjava.lang.String[] getPidsOfFactoryConfiguration(java.lang.String roleId,
java.lang.String factoryPid)
throws CommunicationException,
java.lang.Exception
roleId - identificator of host rolefactoryPid - factory pid.{@link - CommunicationException} is thrown if communication with the remote
Control Center fails.Exception - is thrown if some other error occurs.CommunicationExceptionjava.lang.ExceptionRoleConfig getConfiguration(java.lang.String roleId, java.lang.String pid) throws CommunicationException, java.lang.Exception
null is returned.roleId - identificator of host rolepid - the pid of the configuration.{@link - CommunicationException} is thrown if communication with the remote
Control Center fails.Exception - is thrown if some other error occurs.CommunicationExceptionjava.lang.Exceptionjava.lang.String createFactoryConfiguration(java.lang.String roleId,
java.lang.String factoryPid)
throws CommunicationException,
java.lang.Exception
roleId - identificator of host rolefactoryPid - factory pid of the configuration being created.{@link - CommunicationException} is thrown if communication with the remote
Control Center fails.Exception - is thrown if some other error occurs.CommunicationExceptionjava.lang.Exceptionvoid deleteConfiguration(java.lang.String roleId,
java.lang.String pid)
throws CommunicationException,
java.lang.Exception
roleId - identificator of host rolepid - the pid of the configuration.{@link - CommunicationException} is thrown if communication with the remote
Control Center fails.Exception - is thrown if some other error occurs.CommunicationExceptionjava.lang.Exceptionvoid setConfiguration(java.lang.String roleId,
java.lang.String factoryPid,
java.lang.String pid,
java.util.Dictionary data)
throws CommunicationException,
java.lang.Exception
roleId - identificator of host rolefactoryPid - factory pid of the configuration being created.pid - the pid of the configuration.data - configuration properties.{@link - CommunicationException} is thrown if communication with the remote
Control Center fails.Exception - is thrown if some other error occurs.CommunicationExceptionjava.lang.ExceptionPermissionInfo[] getPermissions(java.lang.String roleId, java.lang.String bundleLocation) throws CommunicationException, java.lang.Exception
roleId - identificator of host rolebundleLocation - the location of the bundle{@link - CommunicationException} is thrown if communication with the remote
Control Center fails.Exception - is thrown if some other error occurs.CommunicationExceptionjava.lang.Exceptionvoid setPermissions(java.lang.String roleId,
java.lang.String bundleLocation,
PermissionInfo[] permissions)
throws CommunicationException,
java.lang.Exception
roleId - identificator of host rolebundleLocation - location of the bundlepermissions - security permissions which will be granted to backend bundle.{@link - CommunicationException} is thrown if communication with the remote
Control Center fails.Exception - is thrown if some other error occurs.CommunicationExceptionjava.lang.Exceptionvoid addPermission(java.lang.String roleId,
java.lang.String bundleLocation,
PermissionInfo permission)
throws CommunicationException,
java.lang.Exception
roleId - target backend role.bundleLocation - target backend bundle location.permission - security permission being granted to backend bundle.{@link - CommunicationException} is thrown if communication with the remote
Control Center fails.Exception - is thrown if some other error occurs.CommunicationExceptionjava.lang.Exceptionvoid removePermission(java.lang.String roleId,
java.lang.String bundleLocation,
PermissionInfo permission)
throws CommunicationException,
java.lang.Exception
roleId - identificator of host rolebundleLocation - location of the bundlepermission - security permission being removed from backend bundle.{@link - CommunicationException} is thrown if communication with the remote
Control Center fails.Exception - is thrown if some other error occurs.CommunicationExceptionjava.lang.ExceptionCopyright © 2019 Bosch Software Innovations GmbH. All Rights Reserved.