|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ExtensionModuleTransaction
Method Summary | |
---|---|
ExtensionModuleDescriptor |
addSource(java.lang.String principalName,
java.lang.String type,
java.lang.String sourceName,
byte[] source,
long checksum,
java.lang.String description,
boolean enabled)
Adds an extension module to the end of the list of modules. |
byte[] |
getSource(java.lang.String sourceName)
Retrieves an extension module in byte[] form |
ExtensionModuleDescriptor |
getSourceDescriptor(java.lang.String sourceName)
Returns the ExtensionModuleDescriptor object for the extension module indicated by sourceName |
java.util.List |
getSourceDescriptors()
Returns List of ExtensionModuleDescriptor objects, in order of their search ordering, or empty List if there are none |
java.util.List |
getSourceDescriptors(java.lang.String type,
boolean includeDisabled)
Returns List of ExtensionModuleDescriptor objects of indicated type, in order of their search ordering. |
java.util.List |
getSourceNames()
Returns List (of Strings) of all extension module names, in order of their search ordering (empty List if there are none) |
boolean |
isNameInUse(java.lang.String sourceName)
Indicates if an extension module name is already in used. |
void |
removeSource(java.lang.String principalName,
java.lang.String sourceName)
Deletes a module from the list of modules |
void |
setEnabled(java.lang.String principalName,
java.util.Collection sourceNames,
boolean enabled)
Sets the "enabled" (for searching) property of all of the indicated extension modules. |
void |
setSearchOrder(java.lang.String principalName,
java.util.List sourceNames)
Sets the positions in the search order of all modules (all modules must be included or an ExtensionModuleOrderingException will be thrown) The sourceNames List parameter should indicate the new desired order. |
ExtensionModuleDescriptor |
setSource(java.lang.String principalName,
java.lang.String sourceName,
byte[] source,
long checksum)
Updates the indicated extension module |
ExtensionModuleDescriptor |
setSourceDescription(java.lang.String principalName,
java.lang.String sourceName,
java.lang.String description)
Updates the indicated extension module's description |
ExtensionModuleDescriptor |
setSourceName(java.lang.String principalName,
java.lang.String sourceName,
java.lang.String newName)
Updates the indicated extension module's module name |
Methods inherited from interface com.metamatrix.common.connection.TransactionInterface |
---|
close, commit, isClosed, isReadonly, rollback |
Method Detail |
---|
ExtensionModuleDescriptor addSource(java.lang.String principalName, java.lang.String type, java.lang.String sourceName, byte[] source, long checksum, java.lang.String description, boolean enabled) throws DuplicateExtensionModuleException, MetaMatrixComponentException
principalName
- name of principal requesting this additiontype
- one of the known types of extension filesourceName
- name (e.g. filename) of extension modulesource
- actual contents of modulechecksum
- Checksum of file contentsdescription
- (optional) description of the extension moduleenabled
- indicates whether each extension module is enabled for
being searched or not (for convenience, a module can be disabled
without being removed)
DuplicateExtensionModuleException
- if an extension module
with the same sourceName already exists
MetaMatrixComponentException
- indicating a non-business-related
exception (such as a communication exception)void removeSource(java.lang.String principalName, java.lang.String sourceName) throws ExtensionModuleNotFoundException, MetaMatrixComponentException
principalName
- name of principal requesting this additionsourceName
- name (e.g. filename) of extension module
ExtensionModuleNotFoundException
- if no extension module with
name sourceName can be found
MetaMatrixComponentException
- indicating a non-business-related
exception (such as a communication exception)java.util.List getSourceNames() throws MetaMatrixComponentException
MetaMatrixComponentException
- indicating a non-business-related
exception (such as a communication exception)java.util.List getSourceDescriptors() throws MetaMatrixComponentException
MetaMatrixComponentException
- indicating a non-business-related
exception (such as a communication exception)java.util.List getSourceDescriptors(java.lang.String type, boolean includeDisabled) throws MetaMatrixComponentException
type
- one of the known types of extension fileincludeDisabled
- if "false", only descriptors for enabled
extension modules will be returned; otherwise all modules will be.
MetaMatrixComponentException
- indicating a non-business-related
exception (such as a communication exception)ExtensionModuleDescriptor getSourceDescriptor(java.lang.String sourceName) throws ExtensionModuleNotFoundException, MetaMatrixComponentException
sourceName
- name (e.g. filename) of extension module
ExtensionModuleNotFoundException
- if no extension module with
name sourceName can be found
MetaMatrixComponentException
- indicating a non-business-related
exception (such as a communication exception)void setSearchOrder(java.lang.String principalName, java.util.List sourceNames) throws ExtensionModuleOrderingException, MetaMatrixComponentException
principalName
- name of principal requesting this additionsourceNames
- Collection of String names of existing
extension modules whose search position is to be set
ExtensionModuleOrderingException
- if the extension files could
not be ordered as requested because another administrator had
concurrently added or removed an extension file or files, or because
an indicated position is out of bounds.
MetaMatrixComponentException
- indicating a non-business-related
exception (such as a communication exception)void setEnabled(java.lang.String principalName, java.util.Collection sourceNames, boolean enabled) throws ExtensionModuleNotFoundException, MetaMatrixComponentException
principalName
- name of principal requesting this additionsourceNames
- Collection of String names of existing
extension modules whose "enabled" status is to be setenabled
- indicates whether each extension module is enabled for
being searched or not (for convenience, a module can be disabled
without being removed)
ExtensionModuleNotFoundException
- if no extension module with
name sourceName can be found
MetaMatrixComponentException
- indicating a non-business-related
exception (such as a communication exception)byte[] getSource(java.lang.String sourceName) throws ExtensionModuleNotFoundException, MetaMatrixComponentException
sourceName
- name (e.g. filename) of extension module
ExtensionModuleNotFoundException
- if no extension module with
name sourceName can be found
MetaMatrixComponentException
- indicating a non-business-related
exception (such as a communication exception)ExtensionModuleDescriptor setSource(java.lang.String principalName, java.lang.String sourceName, byte[] source, long checksum) throws ExtensionModuleNotFoundException, MetaMatrixComponentException
principalName
- name of principal requesting this additionsourceName
- name (e.g. filename) of extension modulesource
- actual contents of modulechecksum
- Checksum of file contents
ExtensionModuleNotFoundException
- if no extension module with
name sourceName can be found
MetaMatrixComponentException
- indicating a non-business-related
exception (such as a communication exception)ExtensionModuleDescriptor setSourceName(java.lang.String principalName, java.lang.String sourceName, java.lang.String newName) throws ExtensionModuleNotFoundException, MetaMatrixComponentException
principalName
- name of principal requesting this additionsourceName
- name (e.g. filename) of extension modulenewName
- new name for the module
ExtensionModuleNotFoundException
- if no extension module with
name sourceName can be found
MetaMatrixComponentException
- indicating a non-business-related
exception (such as a communication exception)ExtensionModuleDescriptor setSourceDescription(java.lang.String principalName, java.lang.String sourceName, java.lang.String description) throws ExtensionModuleNotFoundException, MetaMatrixComponentException
principalName
- name of principal requesting this additionsourceName
- name (e.g. filename) of extension moduledescription
- (optional) description of the extension module.
null
can be passed in to indicate no description.
ExtensionModuleNotFoundException
- if no extension module with
name sourceName can be found
MetaMatrixComponentException
- indicating a non-business-related
exception (such as a communication exception)boolean isNameInUse(java.lang.String sourceName) throws MetaMatrixComponentException
true
if the source name is already used,
sourceName
- is the name of the extension module to check
MetaMatrixComponentException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |