Package com.axemble.vdoc.sdk.modules
Interface IBaseDocumentModule
- All Known Subinterfaces:
IDocumentModule
The document management module interface.
Code sample :
// creation of a directory module object
IBaseDocumentModule documentModule = Modules.getDocumentModule();
try
{
}
finally
{
// uninitialize the module
Modules.releaseModule(documentModule);
}
- Since:
- 1.0
- Version:
- 1.0, 10/06/2010
- Author:
- vlygeros
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Allows to abort workflow instance.addAttachment
(IResource resource, String propertyName, IAttachment attachment) Adds an attachment from an attachment.addAttachment
(IResource resource, String propertyName, File file) Adds an attachment as a java.io.File object.addAttachment
(IResource resource, String propertyName, String fileName, InputStream inputStream) Adds an attachment as an java.io.InputStream object.addAttachment
(IResource resource, String propertyName, String fileName, String fullPath) Adds an attachment with its full path.void
Adds a group to a role.void
Adds a user to a role.createCatalog
(IContext context, String name, String label, IProject project) Allows to create a new catalog.createDataUnit
(IContext context, IResourceDefinition resourceDefinition, String reference) Creates a storage resource object by specifying theIResourceDefinition
object, its reference.createDataUnit
(IContext context, IResourceDefinition resourceDefinition, String reference, String label) Creates a data unit object by specifying theIResourceDefinition
object, its reference, and its label.Creates a generic resource for mail purposes.createRole
(IContext context, ICatalog catalog, String name) Creates aIRole
into the catalog object.createVersion
(IContext context, IAttachmentTemplate attachmentTemplate, String reference) Creates a version instance object by specifying theIAttachmentTemplate
object, its reference.createVersion
(IContext context, IResourceDefinition resourceDefinition, String reference, String label) Creates a version object by specifying theIResourceDefinition
object, its reference, and its label.createWorkflow
(IContext context, IWorkflowContainer container, String name, byte[] content) Creates a workflow within a workflow container.createWorkflowContainer
(IContext context, ICatalog catalog, String name) Creates a workflow container within aICatalog
object.void
end
(IContext context, ITaskInstance instance, IAction action, String comment) Crosses a transition.void
Allows to cross a transition for another user.evaluatedHtml
(IResource resource, IMailForm mailForm) Evaluates the form and returns the HTML content as a java.lang.String object.evaluatedHtml
(ITaskInstance taskInstance, IMailForm mailForm) Evaluates the form and returns the HTML content as a java.lang.String object.void
Allows to execute an agent.void
Allows to execute an agent.int
generateChrono
(IResourceDefinition resourceDefinition) Evaluate the next chrono based on the format specified on the Designer tool.generateReference
(IResource resource) Evaluate the next reference based on the format specified on the Designer tool.generateReference
(IResourceDefinition resourceDefinition) Evaluate the next reference based on the format specified on the Designer tool.generateReference
(IResourceDefinition resourceDefinition, String format) Evaluate the next reference based on the passed format.generateReference
(IResource resource, String format) Evaluate the next reference based on the specified format.Collection
<? extends ITaskInstance> getAbortedTaskInstances
(IContext context, IVersion version) Retrieves all the aborted task instances of a version.Retrieve a specificIAction
object from its system name.getAction
(IStorageKey key) Gets an action object from its identifier.Collection
<? extends IAction> getActions
(IContext context, ITask task) Gets an agent from its name.Gets a archiving controller to archiveIElement
objects.getAttachment
(IResource resource, String propertyName, String fileName) Gets an attachment by its file name.Collection
<? extends IAttachment> getAttachments
(IResource resource, String propertyName) Gets all the attachments associated with a property.getCatalog
(IContext context, String name, int catalogType, IProject project) Retrieves a catalog form its name.getCatalog
(IResourceDefinition resourceDefinition) Gets aICatalog
object from a resource definitino.getCatalog
(IStorageKey key) Gets a catalog object from its identifier.getCatalog
(IWorkflow workflow) Retrieves the catalog of aIWorkflow
object.Collection
<? extends ICatalog> getCatalogs
(IContext context) Retrieves a collection ofICatalog
object.Collection
<? extends ICatalog> getCatalogs
(IContext context, int catalogType) Retrieves a collection ofICatalog
object.Collection
<? extends ICatalog> getCatalogs
(IContext context, IProject project) Retrieves a collection ofICatalog
object.Gets a catalog view transformer to transformICatalog
objects.Gets the global configuration.getConnectionDefinition
(IContext context, String name) Gets a connection from its name.Collection
<? extends IConnectionDefinition> getConnectionDefinitions
(IContext context) Gets a collection of connections.getDataSourceReference
(String name) Gets a data source reference from its JNDI name.Gets a delegation controller to delegateIDelegationSupport
objects.getElementByProtocolURI
(String protocolURI) Gets anIElement
object which implementsIProtocolSupport
interface.Collection
<? extends ITaskInstance> getEndedTaskInstances
(IContext context, IVersion version) Retrieves all the ended task instances of a version.getExternalElements
(IResource resource, String propertyName) Gets a collection ofIElement
objects from a multiple selector property.getExternalFile
(IResource resource, String propertyName) Gets aIFile
object from a single file selector property.getExternalFolder
(IResource resource, String propertyName) Gets aIFolder
object from a single folder selector property.getExternalGroup
(IResource resource, String propertyName) Gets aIGroup
object from a single group selector property.getExternalLibrary
(IResource resource, String propertyName) Gets aILibrary
object from a single library selector property.getExternalLocalization
(IResource resource, String propertyName) Gets aILocalization
object from a single localization selector property.getExternalOrganization
(IResource resource, String propertyName) Gets aIOrganization
object from a single organization selector property.getExternalUser
(IResource resource, String propertyName) Gets aIUser
object from a single user selector property.Gets a action form by its name.getForm
(IContext context, IResourceDefinition resourceDefinition, String formName) Gets a resource definition form by its name.Gets a task form by its name.Gets a workflow form by its name.getJdbcReference
(IContext context, String name) Deprecated.: use getConnectionDefinition( IContext context, String name ) method instead.Collection
<? extends IJdbcReference> getJdbcReferences
(IContext context) Deprecated.: use getConnectionDefinitions( IContext context ) method instead.Gets a list object from a catalog by its name.Gets the available values of a list property.Collection
<? extends IList> Gets a collection of a the lists available on a specifiedICatalog
object.getMailForm
(IContext context, IWorkflow workflow, String mailFormName) Collection
<? extends IMailForm> getMailForms
(IContext context, IWorkflow workflow) Gets all the mail forms from a specifiedIWorkflow
object.Collection
<? extends IMailForm> getMailForms
(IContext context, IWorkflow workflow, String startsWith) Collection
<? extends ITaskInstance> getManualTaskInstances
(IContext context, IVersion version) Retrieves all the manual task instances of a workflow instance.getOneTaskInstance
(IContext context, IVersion version) Gets one of the task instances (any).getOperator
(IStorageKey key) Gets a operator object from its identifier.Collection
<? extends IOperator> getOperators
(ITaskInstance instance) Retrieves the operators of a task instance.Collection
<? extends IProperty> getProperties
(IContext context, IResourceDefinition resourceDefinition) Gets all the properties of a specified definition.getProperty
(IContext context, IResourceDefinition resourceDefinition, String name) Gets a property definition by specifying theIResourceDefinition
and its system name.getProperty
(IStorageKey key) Gets a property object from its identifier.getResource
(IStorageKey key) Gets a resource object from its identifier.getResourceDefinition
(IContext context, ICatalog catalog, String name) Retrieves a resource definition by specifying theICatalog
and its system name.Gets a resource definition object from its identifier.Collection
<? extends IResourceDefinition> getResourceDefinitions
(IContext context, ICatalog catalog) Retrieves all resource definitions by specifying theICatalog
Collection
<? extends IResource> getResources
(IContext context, ICatalog catalog) Gets a collection ofIResource
objects from a catalogCollection
<? extends IResource> getResources
(IContext context, IResourceDefinition resourceDefinition) Gets a collection ofIResource
objects from a resource definition.Gets a resource view transformer to transformIResource
objects.Retrieves aIRole
object by its system name.getRole
(IStorageKey key) Gets a role object from its identifier.Collection
<? extends IRole> Retrieves a collection ofIRole
objects within a specified catalog.Gets the defaultISearchController
object.getSearchController
(IConnectionDefinition connectionDefinition) Gets a connection from its name.getSearchController
(IDataSourceReference reference) Gets a search controller object by specifying an external data source.getSearchController
(IJdbcReference reference) Deprecated.: use getSearchController ( IConnectionDefinition connectionDefinition) method instead.Gets a search view transformer to transformIResource
objects.getSecurityController
(ISecuritySupport securitySupport) Gets a security controller on a specified object.Collection
<? extends ITaskInstance> getStartedTaskInstances
(IContext context, IVersion version) Retrieves all the started task instances of a version.getSubForm
(IContext context, IWorkflow workflow, String formName) Gets a sub form by its name.Retrieves a specific task of aIWorkflow
object by its name.getTask
(IStorageKey key) Gets a task object from its identifier.getTask
(ITaskInstance instance) Gets the definition of a task instance.getTaskInstance
(IContext context, IVersion version, String name) Gets a task instance associated with a specified task name.Gets a task instance object from its identifier.Collection
<? extends ITaskInstance> getTaskInstances
(IContext context, IVersion version) Retrieves all the task instances of a specified version.Collection
<? extends ITaskInstance> getTaskInstances
(IContext context, IVersion version, String name) Retrieves all the task instances of a specified version filtered by the name of aITask
.Gets a task transformer to transformITaskInstance
object.Gets a task view transformer to transformITaskInstance
objects.Gets a transformer to transformIResource
object.getUser
(IStorageKey key) Gets a user object from its identifier.getUserByLogin
(String login) Gets a user by its loginGets the value of a property.getVersion
(IStorageKey key) Gets a version object from its identifier.Collection
<? extends IVersion> getVersions
(IContext context, ICatalog catalog) Gets all the versions of a specifiedICatalog
object.Collection
<? extends IVersion> getVersions
(IContext context, ICatalog catalog, String reference) Gets all the versions with the same reference within a specifiedICatalog
object.Collection
<? extends IVersion> getVersions
(IContext context, IResourceDefinition resourceDefinition, String reference) Gets all the versions with the same reference within a specifiedIWorkflow
object.getVersions
(IContext context, ITask task) Gets all the workflow instances of a specifiedITask
object.Collection
<? extends IVersion> getVersions
(IContext context, IWorkflow workflow) Gets all the versions of a specifiedIWorkflow
object.getView
(IContext context, IResourceDefinition resourceDefinition, String viewName) Retrieves a view by its name.Gets a view controller to searchIResource
objects through their properties.getViewController
(IContext context, InputStream inputStream) Gets a view controller to searchIResource
objects through their properties.getViewController
(InputStream inputStream) Gets a view controller to searchIResource
objects through their properties.getViewController
(Class natureClass) Gets a view controller to searchIResource
objects through their properties.getWorkflow
(IContext context, ICatalog catalog, String name) Retrieves a workflow within aIWorkflow
object and from its system name.getWorkflow
(IStorageKey key) Gets a workflow object from its identifier.getWorkflow
(ITask task) Gets the associated workflow of a task.getWorkflowContainer
(IContext context, ICatalog catalog, String name) Retrieves aIWorkflowContainer
within aICatalog
by its system namegetWorkflowContainer
(IWorkflow workflow) Retrieves the workflow container of aIWorkflow
object.Collection
<? extends IWorkflowContainer> getWorkflowContainers
(IContext context, ICatalog catalog) Retrieves a collection ofIWorkflowContainer
objects within aICatalog
object.Gets a workflow container view transformer to transformIWorkflowContainer
objects.Collection
<? extends IWorkflow> getWorkflows
(IContext context, ICatalog catalog) Collection
<? extends IWorkflow> getWorkflows
(IContext context, IWorkflowContainer container) Retrieves a collection ofIWorkflow
objects within aIWorkflowContainer
object.Gets a workflow view transformer to transformIWorkflow
objects.boolean
isMemberOf
(IUser user, IRole role) Checks if a specified user is member of aIRole
object.void
remind
(IContext context, ITaskInstance taskInstance, String comment) Allows to remind current operators of a specified task instance.void
Allows to remind current operators of a version.void
send
(IContext context, IResource resource, IMailForm mailForm, Collection entries, String subject, String content) Sends a mail by specifying the subject and the content of the body.void
send
(IContext context, ITaskInstance instance, IMailForm form, String comment) Sends a mail using a specified mail form.void
send
(IContext context, ITaskInstance taskInstance, IMailForm mailForm, Collection entries, String subject, String content) Sends a mail by specifying the subject and the content of the body.void
Sends a mail using a specified mail form.void
send
(IContext context, IVersion version, String formName, Collection entries) Allows to send a mail with a specific form to a mail recipient.void
Allows to send a mail.void
send
(IContext context, IWorkflow workflow, String formName, Collection entries) Allows to send a mail.void
setExternalElements
(IResource resource, String propertyName, Collection elements) Sets aIElement
to a multiple selector property.void
setExternalFile
(IResource resource, String propertyName, IFile file) Sets aIFile
to a single selector property.void
setExternalFolder
(IResource resource, String propertyName, IFolder folder) Sets aIFolder
to a single selector property.void
setExternalGroup
(IResource resource, String propertyName, IGroup group) Sets aIGroup
to a single selector property.void
setExternalLibrary
(IResource resource, String propertyName, ILibrary library) Sets aILibrary
to a single selector property.void
setExternalLocalization
(IResource resource, String propertyName, ILocalization localization) Sets aILocalization
to a single selector property.void
setExternalOrganization
(IResource resource, String propertyName, IOrganization organization) Sets aIOrganization
to a single selector property.void
setExternalUser
(IResource resource, String propertyName, IUser user) Sets aIUser
to a single selector property.void
setList
(IResource resource, String propertyName, Collection values) Sets the list of available values to a list property.void
Sets a value to a property.Methods inherited from interface com.axemble.vdoc.sdk.modules.IModule
beginTransaction, beginTransaction, commitTransaction, commitTransaction, convertId, findNativeClass, generateSystemName, getAnonymous, getAnonymousContext, getContext, getContext, getContextByLogin, getElementFromExternalElement, getExternalElement, getExternalElement, getLoggedOnUser, getLoggedOnUserContext, getLoggedOnUserLanguage, getProtocolPath, getProtocolPath, getProtocolURI, getProtocolURI, getStaticString, getStaticString, getStaticString, getStaticString, getStaticString, getStaticString, getStaticString, getStaticString, getStaticString, getStaticString, getStaticString, getSysadmin, getSysadminContext, getTranslation, getTranslationForLanguage, getTranslationKey, initialize, isTransactionActive, rollbackTransaction, rollbackTransaction, setTransactionTimeout, unInitialize
-
Method Details
-
getConfiguration
IConfiguration getConfiguration()Gets the global configuration.- Returns:
- a
IConfiguration
object.
-
getAgent
Gets an agent from its name.- Parameters:
context
- The execution context.name
- The name of the agent.- Returns:
- a
IAgent
object. - Throws:
DocumentModuleException
- default module exception.
-
execute
Allows to execute an agent.- Parameters:
agent
- TheIAgent
to execute.- Throws:
DocumentModuleException
- default module exception.
-
execute
Allows to execute an agent.- Parameters:
context
- The execution context.agent
- TheIAgent
to execute.- Throws:
DocumentModuleException
- default module exception.
-
getDataSourceReference
Gets a data source reference from its JNDI name.- Parameters:
name
- The JNDI name.- Returns:
- a
IDataSourceReference
object. - Throws:
DocumentModuleException
- default module exception.
-
getJdbcReference
@Deprecated IJdbcReference getJdbcReference(IContext context, String name) throws DocumentModuleException Deprecated.: use getConnectionDefinition( IContext context, String name ) method instead.Gets a JDBC reference from its name.- Parameters:
context
- The execution context.name
- The name of the external reference.- Returns:
- a
IJdbcReference
object. - Throws:
DocumentModuleException
- default module exception.
-
getConnectionDefinition
IConnectionDefinition getConnectionDefinition(IContext context, String name) throws DocumentModuleException Gets a connection from its name.- Parameters:
context
- The execution context.name
- The name of the external reference.- Returns:
- a
IConnectionDefinition
object. - Throws:
DocumentModuleException
- default module exception.
-
getJdbcReferences
@Deprecated Collection<? extends IJdbcReference> getJdbcReferences(IContext context) throws DocumentModuleException Deprecated.: use getConnectionDefinitions( IContext context ) method instead.Gets a collection of JDBC references.- Parameters:
context
- The execution context.- Returns:
- a
Collection
of IJdbcReference object. - Throws:
DocumentModuleException
- default module exception.
-
getConnectionDefinitions
Collection<? extends IConnectionDefinition> getConnectionDefinitions(IContext context) throws DocumentModuleException Gets a collection of connections.- Parameters:
context
- The execution context.- Returns:
- a
Collection
of IConnectionDefinition object. - Throws:
DocumentModuleException
- default module exception.
-
getList
Gets a list object from a catalog by its name.- Parameters:
context
- The execution context.catalog
- TheICatalog
representing the application.name
- The name of the list.- Returns:
- a
IList
object. - Throws:
DocumentModuleException
- default module exception.
-
getLists
Collection<? extends IList> getLists(IContext context, ICatalog catalog) throws DocumentModuleException Gets a collection of a the lists available on a specifiedICatalog
object.- Parameters:
context
- The execution context.catalog
- TheICatalog
representing the application.- Returns:
- a collection of
IList
object - Throws:
DocumentModuleException
- default module exception.
-
createCatalog
ICatalog createCatalog(IContext context, String name, String label, IProject project) throws DocumentModuleException Allows to create a new catalog. This method allows to specify the system name, the label of the catalog and the attached project- Parameters:
context
- The execution context.name
- The system name of the catalog.label
- The label of the catalog.project
- The project of the catalog- Returns:
- a
ICatalog
object. - Throws:
DocumentModuleException
- default module exception.
-
getCatalog
ICatalog getCatalog(IContext context, String name, int catalogType, IProject project) throws DocumentModuleException Retrieves a catalog form its name.- Parameters:
context
- The execution context.name
- The system name of the catalog.catalogType
- TheICatalog.IType
of the catalog.project
- The project of the catalog- Returns:
- a
ICatalog
object. - Throws:
DocumentModuleException
- default module exception.
-
getCatalogs
Retrieves a collection ofICatalog
object.- Parameters:
context
- The execution context.project
- The project of the catalog- Returns:
- a collection of
ICatalog
objects. - Throws:
DocumentModuleException
- default module exception.
-
getCatalogs
Collection<? extends ICatalog> getCatalogs(IContext context, int catalogType) throws DocumentModuleException Retrieves a collection ofICatalog
object.- Parameters:
context
- The execution context.catalogType
- TheICatalog.IType
of the catalogs.project
- The project of the catalog- Returns:
- a collection of
ICatalog
objects. - Throws:
DocumentModuleException
- default module exception.
-
getCatalogs
Collection<? extends ICatalog> getCatalogs(IContext context, IProject project) throws DocumentModuleException Retrieves a collection ofICatalog
object.- Parameters:
context
- The execution context.project
- The project of the catalogcatalogType
- TheICatalog.IType
of the catalogs.- Returns:
- a collection of
ICatalog
objects. - Throws:
DocumentModuleException
- default module exception.
-
createRole
Creates aIRole
into the catalog object.- Parameters:
context
- The execution context.catalog
- TheICatalog
object.name
- The system name of theIRole
to be created.- Returns:
- a
IRole
object. - Throws:
DocumentModuleException
- default module exception.
-
getRole
Retrieves aIRole
object by its system name.- Parameters:
context
- The execution context.catalog
- TheICatalog
scope object.name
- The system name of the role.- Returns:
- a
IRole
object. - Throws:
DocumentModuleException
- default module exception.
-
getRoles
Collection<? extends IRole> getRoles(IContext context, ICatalog catalog) throws DocumentModuleException Retrieves a collection ofIRole
objects within a specified catalog.- Parameters:
context
- The execution context.catalog
- TheICatalog
object.- Returns:
- a collection of
IRole
objects. - Throws:
DocumentModuleException
- default module exception.
-
isMemberOf
Checks if a specified user is member of aIRole
object.- Parameters:
user
- TheIUser
object to check.role
- TheIRole
object.- Returns:
- return true if the user is member of the
IRole
object. - Throws:
DocumentModuleException
- default module exception.
-
addChild
Adds a group to a role.- Parameters:
group
- The group to add.role
- The role object.- Throws:
DocumentModuleException
- default module exception.
-
addMember
Adds a user to a role.- Parameters:
user
- The user to add.role
- The role object.- Throws:
DocumentModuleException
- default module exception.
-
createWorkflowContainer
IWorkflowContainer createWorkflowContainer(IContext context, ICatalog catalog, String name) throws DocumentModuleException Creates a workflow container within aICatalog
object.- Parameters:
context
- The execution context.catalog
- TheICatalog
object.name
- The system name of theIWorkflowContainer
object.- Returns:
- a
IWorkflowContainer
object. - Throws:
DocumentModuleException
- default module exception.
-
getWorkflowContainer
IWorkflowContainer getWorkflowContainer(IContext context, ICatalog catalog, String name) throws DocumentModuleException Retrieves aIWorkflowContainer
within aICatalog
by its system name- Parameters:
context
- The execution context.catalog
- TheICatalog
object.name
- The system name of theIWorkflowContainer
object.- Returns:
- a
IWorkflowContainer
object. - Throws:
DocumentModuleException
- default module exception.
-
getWorkflowContainers
Collection<? extends IWorkflowContainer> getWorkflowContainers(IContext context, ICatalog catalog) throws DocumentModuleException Retrieves a collection ofIWorkflowContainer
objects within aICatalog
object.- Parameters:
context
- The execution context.catalog
- TheICatalog
object.- Returns:
- a collection of
IWorkflowContainer
objects. - Throws:
DocumentModuleException
- default module exception.
-
createWorkflow
IWorkflow createWorkflow(IContext context, IWorkflowContainer container, String name, byte[] content) throws DocumentModuleException Creates a workflow within a workflow container.- Parameters:
context
- The execution context.container
- TheIWorkflowContainer
object.name
- The system name of the workflow.content
- The XML content of the workflow.- Returns:
- a
IWorkflow
object. - Throws:
DocumentModuleException
- default module exception.
-
getWorkflow
IWorkflow getWorkflow(IContext context, ICatalog catalog, String name) throws DocumentModuleException Retrieves a workflow within aIWorkflow
object and from its system name.- Parameters:
context
- The execution context.catalog
- TheICatalog
object.name
- The system name of the workflow.- Returns:
- a
IWorkflow
object. - Throws:
DocumentModuleException
- default module exception.
-
getWorkflows
Collection<? extends IWorkflow> getWorkflows(IContext context, ICatalog catalog) throws DocumentModuleException - Parameters:
context
- The execution context.catalog
- TheICatalog
object.- Returns:
- a collection of
IWorkflow
objects. - Throws:
DocumentModuleException
- default module exception.
-
getWorkflows
Collection<? extends IWorkflow> getWorkflows(IContext context, IWorkflowContainer container) throws DocumentModuleException Retrieves a collection ofIWorkflow
objects within aIWorkflowContainer
object.- Parameters:
context
- The execution context.container
- TheIWorkflowContainer
object.- Returns:
- a collection of
IWorkflow
objects. - Throws:
DocumentModuleException
- default module exception.
-
getCatalog
Retrieves the catalog of aIWorkflow
object.- Parameters:
workflow
- The workflow object.- Returns:
- a
ICatalog
object - Throws:
DocumentModuleException
- default module exception.
-
getWorkflowContainer
Retrieves the workflow container of aIWorkflow
object.- Parameters:
workflow
- The workflow object.- Returns:
- a
IWorkflowContainer
object - Throws:
DocumentModuleException
- default module exception.
-
getTask
Retrieves a specific task of aIWorkflow
object by its name.- Parameters:
context
- The execution context.workflow
- TheIWorkflow
object.name
- The system name of theITask
object.- Returns:
- a
ITask
object. - Throws:
DocumentModuleException
- default module exception.
-
getActions
Collection<? extends IAction> getActions(IContext context, ITask task) throws DocumentModuleException - Parameters:
context
- The execution context.task
- TheITask
object.- Returns:
- a collection of
IAction
objects. - Throws:
DocumentModuleException
- default module exception.
-
getAction
Retrieve a specificIAction
object from its system name.- Parameters:
context
- The execution context.task
- TheITask
object.name
- The system name of theIAction
object to retrieve.- Returns:
- a
IAction
object. - Throws:
DocumentModuleException
- default module exception.
-
getWorkflow
Gets the associated workflow of a task.- Parameters:
task
- theITask
object.- Returns:
- a
IWorkflow
object. - Throws:
DocumentModuleException
- default module exception.
-
getResourceDefinition
IResourceDefinition getResourceDefinition(IContext context, ICatalog catalog, String name) throws DocumentModuleException Retrieves a resource definition by specifying theICatalog
and its system name.- Parameters:
context
- The execution context.catalog
- TheICatalog
object.name
- The system name of the resource definition.- Returns:
- a
IResourceDefinition
object. - Throws:
DocumentModuleException
- default module exception.
-
getResourceDefinitions
Collection<? extends IResourceDefinition> getResourceDefinitions(IContext context, ICatalog catalog) throws DocumentModuleException Retrieves all resource definitions by specifying theICatalog
- Parameters:
context
- The execution context.catalog
- TheICatalog
object.- Returns:
- a collection of
IResourceDefinition
objects. - Throws:
DocumentModuleException
- default module exception.
-
getView
IView getView(IContext context, IResourceDefinition resourceDefinition, String viewName) throws DocumentModuleException Retrieves a view by its name.- Parameters:
context
- The execution context.resourceDefinition
- TheIResourceDefinition
object.viewName
- The name of the view.- Returns:
- a
IView
object. - Throws:
DocumentModuleException
- default module exception.
-
getProperties
Collection<? extends IProperty> getProperties(IContext context, IResourceDefinition resourceDefinition) throws DocumentModuleException Gets all the properties of a specified definition.- Parameters:
context
- The execution context.resourceDefinition
- aIResourceDefinition
object.- Returns:
- a collection of
IProperty
objects. - Throws:
DocumentModuleException
- default module exception.
-
getProperty
IProperty getProperty(IContext context, IResourceDefinition resourceDefinition, String name) throws DocumentModuleException Gets a property definition by specifying theIResourceDefinition
and its system name.- Parameters:
context
- The execution context.resourceDefinition
- TheIResourceDefinition
object.name
- The system name of the property.- Returns:
- a
IProperty
object. - Throws:
DocumentModuleException
- default module exception.
-
generateReference
Evaluate the next reference based on the format specified on the Designer tool.- Parameters:
resourceDefinition
- The resource definition object.- Returns:
- The evaluated reference.
- Throws:
DocumentModuleException
- default module exception.
-
generateReference
String generateReference(IResourceDefinition resourceDefinition, String format) throws DocumentModuleException Evaluate the next reference based on the passed format.- Parameters:
resourceDefinition
- TheIResourceDefinition
object.format
- The format to use to evaluate the next reference.- Returns:
- The evaluated reference.
- Throws:
DocumentModuleException
-
generateReference
Evaluate the next reference based on the format specified on the Designer tool.- Parameters:
resource
- The resource to be created.- Returns:
- The evaluated reference.
- Throws:
DocumentModuleException
- default module exception.
-
generateReference
Evaluate the next reference based on the specified format.- Parameters:
resource
- The resource to be created.format
- The format to use to evaluate the next reference.- Returns:
- The evaluated reference.
- Throws:
DocumentModuleException
- default module exception.
-
generateChrono
Evaluate the next chrono based on the format specified on the Designer tool.- Parameters:
resourceDefinition
- The resource definition object- Returns:
- The evaluated chrono.
- Throws:
DocumentModuleException
- default module exception.
-
createVersion
IVersion createVersion(IContext context, IResourceDefinition resourceDefinition, String reference, String label) throws DocumentModuleException Creates a version object by specifying theIResourceDefinition
object, its reference, and its label.- Parameters:
context
- The execution context.resourceDefinition
- TheIResourceDefinition
object.reference
- The reference to set.label
- The label to set.- Returns:
- a
IVersion
object. - Throws:
DocumentModuleException
- default module exception.
-
createVersion
IVersion createVersion(IContext context, IAttachmentTemplate attachmentTemplate, String reference) throws DocumentModuleException Creates a version instance object by specifying theIAttachmentTemplate
object, its reference.- Parameters:
context
- The execution context.attachmentTemplate
- TheIAttachmentTemplate
object.reference
- The reference to set.- Returns:
- a
IVersion
object. - Throws:
DocumentModuleException
- default module exception.
-
getVersions
Collection<? extends IVersion> getVersions(IContext context, ICatalog catalog, String reference) throws DocumentModuleException Gets all the versions with the same reference within a specifiedICatalog
object.- Parameters:
context
- The execution context.catalog
- TheICatalog
object.reference
- The reference of the workflow instance.- Returns:
- a collection of
IVersion
objects. - Throws:
DocumentModuleException
- default module exception.
-
getVersions
Collection<? extends IVersion> getVersions(IContext context, IResourceDefinition resourceDefinition, String reference) throws DocumentModuleException Gets all the versions with the same reference within a specifiedIWorkflow
object.- Parameters:
context
- The execution context.resourceDefinition
- TheIResourceDefinition
object.reference
- The reference of the version.- Returns:
- a collection of
IVersion
objects. - Throws:
DocumentModuleException
- default module exception.
-
getVersions
Collection<? extends IVersion> getVersions(IContext context, ICatalog catalog) throws DocumentModuleException Gets all the versions of a specifiedICatalog
object.- Parameters:
context
- The execution context.catalog
- TheICatalog
object.- Returns:
- a collection of
IVersion
objects. - Throws:
DocumentModuleException
- default module exception.
-
getVersions
Collection<? extends IVersion> getVersions(IContext context, IWorkflow workflow) throws DocumentModuleException Gets all the versions of a specifiedIWorkflow
object.- Parameters:
context
- The execution context.workflow
- TheIWorkflow
object.- Returns:
- a collection of
IVersion
objects. - Throws:
DocumentModuleException
- default module exception.
-
getVersions
Gets all the workflow instances of a specifiedITask
object.- Parameters:
context
- The execution context.task
- TheITask
object.- Returns:
- a collection of
IVersion
objects. - Throws:
DocumentModuleException
- default module exception.
-
setValue
Sets a value to a property.- Parameters:
resource
- TheIVersion
object.propertyName
- The system name of the property.value
- The value object to set.- Throws:
DocumentModuleException
- default module exception.
-
getValue
Gets the value of a property.- Parameters:
resource
- TheIVersion
object.propertyName
- The system name of the property.- Returns:
- a
Object
object. - Throws:
DocumentModuleException
- default module exception.
-
setList
void setList(IResource resource, String propertyName, Collection values) throws DocumentModuleException Sets the list of available values to a list property.- Parameters:
resource
- TheIVersion
object.propertyName
- The system name of the property.values
- a collection of eitherString
orOption
.- Throws:
DocumentModuleException
- default module exception.
-
getList
Gets the available values of a list property.- Parameters:
resource
- TheIVersion
object.propertyName
- The system name of the property.- Returns:
- a collection of either
String
orOption
. - Throws:
DocumentModuleException
- default module exception.
-
abort
Allows to abort workflow instance.- Parameters:
context
- The execution context.version
- TheIVersion
object.comment
- The reason of the abortion. This comment will appear in the history entries.- Throws:
DocumentModuleException
- default module exception.
-
remind
Allows to remind current operators of a version.- Parameters:
context
- The execution context.version
- TheIVersion
object.comment
- The reason of the reminder. This comment will appear in the history entries.- Throws:
DocumentModuleException
- default module exception.
-
remind
void remind(IContext context, ITaskInstance taskInstance, String comment) throws DocumentModuleException Allows to remind current operators of a specified task instance.- Parameters:
context
- The execution context.taskInstance
- TheITaskInstance
object.comment
- The reason of the reminder. This comment will appear in the history entries.- Throws:
DocumentModuleException
- default module exception.
-
send
void send(IContext context, IVersion version, String formName, Collection entries) throws DocumentModuleException Allows to send a mail with a specific form to a mail recipient.- Parameters:
context
- The execution context.version
- TheIVersion
object.formName
- The system name of the form to use.entries
- A collection ofIUser
,IGroup
,InternetAddress
orString
objects.- Throws:
DocumentModuleException
- default module exception.
-
send
void send(IContext context, IWorkflow workflow, IResource resource, String formName, Collection entries) throws DocumentModuleException Allows to send a mail.- Parameters:
context
- The execution context.workflow
- TheIWorkflow
object.resource
- Theinvalid reference
IResourceInstance
formName
- The system name of the form to use.entries
- A collection ofIUser
,IGroup
,InternetAddress
orString
objects.- Throws:
DocumentModuleException
- default module exception.
-
send
void send(IContext context, IWorkflow workflow, String formName, Collection entries) throws DocumentModuleException Allows to send a mail.- Parameters:
context
- The execution context.workflow
- TheIWorkflow
object.formName
- The system name of the form to use.entries
- A collection ofIUser
,IGroup
,InternetAddress
orString
objects.- Throws:
DocumentModuleException
- default module exception.
-
getTaskInstances
Collection<? extends ITaskInstance> getTaskInstances(IContext context, IVersion version) throws DocumentModuleException Retrieves all the task instances of a specified version.- Parameters:
context
- The execution context.version
- TheIVersion
object.- Returns:
- a collection of
ITaskInstance
- Throws:
DocumentModuleException
- default module exception.
-
getTaskInstances
Collection<? extends ITaskInstance> getTaskInstances(IContext context, IVersion version, String name) throws DocumentModuleException Retrieves all the task instances of a specified version filtered by the name of aITask
.- Parameters:
context
- The execution context.version
- TheIVersion
object.name
- The system name of ITask to use as a filter.- Returns:
- a collection of
ITaskInstance
- Throws:
DocumentModuleException
- default module exception.
-
getManualTaskInstances
Collection<? extends ITaskInstance> getManualTaskInstances(IContext context, IVersion version) throws DocumentModuleException Retrieves all the manual task instances of a workflow instance.- Parameters:
context
- The execution context.version
- TheIVersion
object.- Returns:
- a collection of
ITaskInstance
- Throws:
DocumentModuleException
- default module exception.
-
getStartedTaskInstances
Collection<? extends ITaskInstance> getStartedTaskInstances(IContext context, IVersion version) throws DocumentModuleException Retrieves all the started task instances of a version.- Parameters:
context
- The execution context.version
- TheIVersion
object.- Returns:
- a collection of
ITaskInstance
- Throws:
DocumentModuleException
- default module exception.
-
getEndedTaskInstances
Collection<? extends ITaskInstance> getEndedTaskInstances(IContext context, IVersion version) throws DocumentModuleException Retrieves all the ended task instances of a version.- Parameters:
context
- The execution context.version
- TheIVersion
object.- Returns:
- a collection of
ITaskInstance
- Throws:
DocumentModuleException
- default module exception.
-
getAbortedTaskInstances
Collection<? extends ITaskInstance> getAbortedTaskInstances(IContext context, IVersion version) throws DocumentModuleException Retrieves all the aborted task instances of a version.- Parameters:
context
- The execution context.instance
- TheIVersion
object.- Returns:
- a collection of
ITaskInstance
- Throws:
DocumentModuleException
- default module exception.
-
getTaskInstance
ITaskInstance getTaskInstance(IContext context, IVersion version, String name) throws DocumentModuleException Gets a task instance associated with a specified task name.- Parameters:
context
- The execution context.version
- TheIVersion
object.name
- The system name of aITask
object.- Returns:
- a
ITaskInstance
object. - Throws:
DocumentModuleException
- default module exception.
-
getOneTaskInstance
Gets one of the task instances (any).- Parameters:
context
- The execution context.version
- TheIVersion
object.- Returns:
- a
ITaskInstance
object. - Throws:
DocumentModuleException
- default module exception.
-
getTask
Gets the definition of a task instance.- Parameters:
instance
- TheITaskInstance
object.- Returns:
- a
ITask
object. - Throws:
DocumentModuleException
- default module exception.
-
getOperators
Retrieves the operators of a task instance.- Parameters:
instance
- theITaskInstance
object.- Returns:
- a collection of
IOperator
objects. - Throws:
DocumentModuleException
- default module exception.
-
end
void end(IContext context, ITaskInstance instance, IAction action, String comment) throws DocumentModuleException Crosses a transition.- Parameters:
context
- The execution context.instance
- TheITaskInstance
object.action
- TheIAction
to use to cross the transition.comment
- The comment which will be displayed in the history entries.- Throws:
DocumentModuleException
- default module exception.
-
end
void end(IContext context, IUser addressee, ITaskInstance instance, IAction action, String comment) throws DocumentModuleException Allows to cross a transition for another user.- Parameters:
context
- The execution context.addressee
- TheIUser
for whom to cross the transition.instance
- TheITaskInstance
object.action
- TheIAction
object.comment
- The comment which will be displayed in the history entries.- Throws:
DocumentModuleException
- default module exception.
-
send
void send(IContext context, ITaskInstance instance, IMailForm form, String comment) throws DocumentModuleException Sends a mail using a specified mail form.- Parameters:
context
- The execution context.instance
- TheITaskInstance
object.form
- TheIMailForm
object.comment
- The comment which will be displayed in the history entries.- Throws:
DocumentModuleException
- default module exception.
-
send
void send(IContext context, IUser addressee, ITaskInstance instance, IMailForm form, String comment) throws DocumentModuleException Sends a mail using a specified mail form.- Parameters:
context
- The execution context.addressee
-instance
- TheITaskInstance
object.form
- TheIMailForm
object.comment
- The comment which will be displayed in the history entries.- Throws:
DocumentModuleException
- default module exception. default module exception.
-
evaluatedHtml
Evaluates the form and returns the HTML content as a java.lang.String object.- Parameters:
resource
- TheIResource
object to evaluate with.mailForm
- TheIMailForm
object.- Returns:
- A java.lang.String object.
- Throws:
DocumentModuleException
- default module exception. default module exception.
-
evaluatedHtml
Evaluates the form and returns the HTML content as a java.lang.String object.- Parameters:
taskInstance
- TheITaskInstance
object to evaluate with.mailForm
- TheIMailForm
object.- Returns:
- A java.lang.String object.
- Throws:
DocumentModuleException
- default module exception. default module exception.
-
send
void send(IContext context, IResource resource, IMailForm mailForm, Collection entries, String subject, String content) throws DocumentModuleException Sends a mail by specifying the subject and the content of the body.- Parameters:
context
- The execution context.resource
- TheIResource
object to evaluate with.mailForm
- TheIMailForm
object.entries
- A collection ofIUser
,IGroup
,InternetAddress
orString
objects.subject
- The subject of the mail.content
- The content of the mail.- Throws:
DocumentModuleException
- default module exception. default module exception.
-
send
void send(IContext context, ITaskInstance taskInstance, IMailForm mailForm, Collection entries, String subject, String content) throws DocumentModuleException Sends a mail by specifying the subject and the content of the body.- Parameters:
context
- The execution context.taskInstance
- TheITaskInstance
object to evaluate with.mailForm
- TheIMailForm
object.entries
- A collection ofIUser
,IGroup
,InternetAddress
orString
objects.subject
- The subject of the mail.content
- The content of the mail.- Throws:
DocumentModuleException
- default module exception. default module exception.
-
getForm
Gets a workflow form by its name.- Parameters:
context
- The execution context.workflow
- TheIWorkflow
object.formName
- The name of the form.- Returns:
- a
IForm
object. - Throws:
DocumentModuleException
- default module exception. default module exception.
-
getForm
IForm getForm(IContext context, IResourceDefinition resourceDefinition, String formName) throws DocumentModuleException Gets a resource definition form by its name.- Parameters:
context
- The execution context.resourceDefinition
- TheIResourceDefinition
object.formName
- The name of the form.- Returns:
- a
IForm
object. - Throws:
DocumentModuleException
- default module exception. default module exception.
-
getForm
Gets a task form by its name.- Parameters:
context
- The execution context.task
- TheITask
object.formName
- The name of the form.- Returns:
- a
IForm
object. - Throws:
DocumentModuleException
- default module exception. default module exception.
-
getForm
Gets a action form by its name.- Parameters:
context
- The execution context.action
- TheIAction
object.formName
- The name of the form.- Returns:
- a
IForm
object. - Throws:
DocumentModuleException
- default module exception. default module exception.
-
getSubForm
IForm getSubForm(IContext context, IWorkflow workflow, String formName) throws DocumentModuleException Gets a sub form by its name.- Parameters:
context
- The execution context.workflow
- TheIWorkflow
object.formName
- The name of the form.- Returns:
- a
IForm
object. - Throws:
DocumentModuleException
- default module exception. default module exception.
-
getMailForms
Collection<? extends IMailForm> getMailForms(IContext context, IWorkflow workflow) throws DocumentModuleException Gets all the mail forms from a specifiedIWorkflow
object.- Parameters:
context
- The execution context.workflow
- TheIWorkflow
object.- Returns:
- A collection of
IMailForm
objects. - Throws:
DocumentModuleException
- default module exception. default module exception.
-
getMailForm
IMailForm getMailForm(IContext context, IWorkflow workflow, String mailFormName) throws DocumentModuleException - Parameters:
context
- The execution context.workflow
- TheIWorkflow
object.mailFormName
- The name of the form.- Returns:
- a
IMailForm
object. - Throws:
DocumentModuleException
- default module exception. default module exception.
-
getMailForms
Collection<? extends IMailForm> getMailForms(IContext context, IWorkflow workflow, String startsWith) throws DocumentModuleException - Parameters:
context
- The execution context.workflow
- TheIWorkflow
object.startsWith
- The start part of the form name.- Returns:
- A collection of
IMailForm
objects. - Throws:
DocumentModuleException
- default module exception. default module exception.
-
createGenericResource
Creates a generic resource for mail purposes.- Returns:
- The
IResource
object. - Throws:
DocumentModuleException
- default module exception.
-
getAttachments
Collection<? extends IAttachment> getAttachments(IResource resource, String propertyName) throws DocumentModuleException Gets all the attachments associated with a property.- Parameters:
resource
- The main resource object.propertyName
- The system name of the property.- Returns:
- A collection of
IAttachment
objects. - Throws:
DocumentModuleException
- default module exception.
-
getAttachment
IAttachment getAttachment(IResource resource, String propertyName, String fileName) throws DocumentModuleException Gets an attachment by its file name.- Parameters:
resource
- The main resource object.propertyName
- The system name of the property.fileName
- The file name to retrieve.- Returns:
- An
IAttachment
object. - Throws:
DocumentModuleException
- default module exception.
-
addAttachment
IAttachment addAttachment(IResource resource, String propertyName, File file) throws DocumentModuleException Adds an attachment as a java.io.File object.- Parameters:
resource
- The main resource object.propertyName
- The system name of the property.file
- TheFile
object.- Returns:
- An
IAttachment
object. - Throws:
DocumentModuleException
- default module exception.
-
addAttachment
IAttachment addAttachment(IResource resource, String propertyName, String fileName, InputStream inputStream) throws DocumentModuleException Adds an attachment as an java.io.InputStream object.- Parameters:
resource
- The main resource object.propertyName
- The system name of the property.fileName
- The name of the fileinputStream
- TheInputStream
object.- Returns:
- An
IAttachment
object. - Throws:
DocumentModuleException
- default module exception.
-
addAttachment
IAttachment addAttachment(IResource resource, String propertyName, String fileName, String fullPath) throws DocumentModuleException Adds an attachment with its full path.- Parameters:
resource
- The main resource object.propertyName
- The system name of the property.fileName
- The name of the filefullPath
- The full path of the file to add.- Returns:
- An
IAttachment
object. - Throws:
DocumentModuleException
- default module exception.
-
addAttachment
IAttachment addAttachment(IResource resource, String propertyName, IAttachment attachment) throws DocumentModuleException Adds an attachment from an attachment.- Parameters:
resource
- The main resource object.propertyName
- The system name of the property.attachment
- TheIAttachment
to add.- Returns:
- An
IAttachment
object. - Throws:
DocumentModuleException
- default module exception.
-
getExternalUser
Gets aIUser
object from a single user selector property.- Parameters:
resource
- The main resource object.propertyName
- The system name of the property.- Returns:
- A
IUser
object. - Throws:
DocumentModuleException
- default module exception.
-
getExternalGroup
Gets aIGroup
object from a single group selector property.- Parameters:
resource
- The main resource object.propertyName
- The system name of the property.- Returns:
- A
IGroup
object. - Throws:
DocumentModuleException
- default module exception.
-
getExternalLocalization
ILocalization getExternalLocalization(IResource resource, String propertyName) throws DocumentModuleException Gets aILocalization
object from a single localization selector property.- Parameters:
resource
- The main resource object.propertyName
- The system name of the property.- Returns:
- A
ILocalization
object. - Throws:
DocumentModuleException
- default module exception.
-
getExternalOrganization
IOrganization getExternalOrganization(IResource resource, String propertyName) throws DocumentModuleException Gets aIOrganization
object from a single organization selector property.- Parameters:
resource
- The main resource object.propertyName
- The system name of the property.- Returns:
- A
IOrganization
object. - Throws:
DocumentModuleException
- default module exception.
-
getExternalFile
Gets aIFile
object from a single file selector property.- Parameters:
resource
- The main resource object.propertyName
- The system name of the property.- Returns:
- A
IFile
object. - Throws:
DocumentModuleException
- default module exception.
-
getExternalFolder
Gets aIFolder
object from a single folder selector property.- Parameters:
resource
- The main resource object.propertyName
- The system name of the property.- Returns:
- A
IFolder
object. - Throws:
DocumentModuleException
- default module exception.
-
getExternalLibrary
Gets aILibrary
object from a single library selector property.- Parameters:
resource
- The main resource object.propertyName
- The system name of the property.- Returns:
- A
ILibrary
object. - Throws:
DocumentModuleException
- default module exception.
-
getExternalElements
Collection getExternalElements(IResource resource, String propertyName) throws DocumentModuleException Gets a collection ofIElement
objects from a multiple selector property.- Parameters:
resource
- The main resource object.propertyName
- The system name of the property.- Returns:
- A collection of
IElement
objects. - Throws:
DocumentModuleException
- default module exception.
-
setExternalUser
void setExternalUser(IResource resource, String propertyName, IUser user) throws DocumentModuleException Sets aIUser
to a single selector property.- Parameters:
resource
- The main resource object.propertyName
- The system name of the property.user
- AIUser
object.- Throws:
DocumentModuleException
- default module exception.
-
setExternalGroup
void setExternalGroup(IResource resource, String propertyName, IGroup group) throws DocumentModuleException Sets aIGroup
to a single selector property.- Parameters:
resource
- The main resource object.propertyName
- The system name of the property.group
- AIGroup
object.- Throws:
DocumentModuleException
- default module exception.
-
setExternalLocalization
void setExternalLocalization(IResource resource, String propertyName, ILocalization localization) throws DocumentModuleException Sets aILocalization
to a single selector property.- Parameters:
resource
- The main resource object.propertyName
- The system name of the property.localization
- AILocalization
object.- Throws:
DocumentModuleException
- default module exception.
-
setExternalOrganization
void setExternalOrganization(IResource resource, String propertyName, IOrganization organization) throws DocumentModuleException Sets aIOrganization
to a single selector property.- Parameters:
resource
- The main resource object.propertyName
- The system name of the property.organization
- AIOrganization
object.- Throws:
DocumentModuleException
- default module exception.
-
setExternalFile
void setExternalFile(IResource resource, String propertyName, IFile file) throws DocumentModuleException Sets aIFile
to a single selector property.- Parameters:
resource
- The main resource object.propertyName
- The system name of the property.file
- AIFile
object.- Throws:
DocumentModuleException
- default module exception.
-
setExternalFolder
void setExternalFolder(IResource resource, String propertyName, IFolder folder) throws DocumentModuleException Sets aIFolder
to a single selector property.- Parameters:
resource
- The main resource object.propertyName
- The system name of the property.folder
- AIFolder
object.- Throws:
DocumentModuleException
- default module exception.
-
setExternalLibrary
void setExternalLibrary(IResource resource, String propertyName, ILibrary library) throws DocumentModuleException Sets aILibrary
to a single selector property.- Parameters:
resource
- The main resource object.propertyName
- The system name of the property.library
- AILibrary
object.- Throws:
DocumentModuleException
- default module exception.
-
setExternalElements
void setExternalElements(IResource resource, String propertyName, Collection elements) throws DocumentModuleException Sets aIElement
to a multiple selector property.- Parameters:
resource
- The main resource object.propertyName
- The system name of the property.elements
- A collection ofIElement
objects.- Throws:
DocumentModuleException
- default module exception.
-
getSearchController
Gets the defaultISearchController
object.- Returns:
- The default
ISearchController
object. - Throws:
DocumentModuleException
- default module exception.
-
getSearchController
@Deprecated ISearchController getSearchController(IJdbcReference reference) throws DocumentModuleException Deprecated.: use getSearchController ( IConnectionDefinition connectionDefinition) method instead.Gets a search controller object by specifying a JDBC external reference.- Parameters:
reference
- TheIJdbcReference
object.- Returns:
- The
ISearchController
object. - Throws:
DocumentModuleException
- default module exception.
-
getSearchController
ISearchController getSearchController(IConnectionDefinition connectionDefinition) throws DocumentModuleException Gets a connection from its name.- Parameters:
connectionDefinition
- TheIConnectionDefinition
object.- Returns:
- a
IConnectionDefinition
object. - Throws:
DocumentModuleException
- default module exception.
-
getSearchController
ISearchController getSearchController(IDataSourceReference reference) throws DocumentModuleException Gets a search controller object by specifying an external data source.- Parameters:
reference
- TheIDataSourceReference
object.- Returns:
- The
ISearchController
object. - Throws:
DocumentModuleException
- default module exception.
-
getSecurityController
ISecurityController getSecurityController(ISecuritySupport securitySupport) throws DocumentModuleException Gets a security controller on a specified object.- Parameters:
securitySupport
- Any IElement that implements ISecuritySupport interface.- Returns:
- The
ISecurityController
object. - Throws:
DocumentModuleException
- default module exception.
-
getTransformer
Gets a transformer to transformIResource
object.- Returns:
- A
ITransformer
object. - Throws:
DocumentModuleException
- default module exception.
-
getTaskInstanceTransformer
Gets a task transformer to transformITaskInstance
object.- Returns:
- A
ITaskInstanceTransformer
object. - Throws:
DocumentModuleException
- default module exception.
-
getTaskViewTransformer
Gets a task view transformer to transformITaskInstance
objects.- Returns:
- A
ITaskViewTransformer
object. - Throws:
DocumentModuleException
- default module exception.
-
getResourceViewTransformer
Gets a resource view transformer to transformIResource
objects.- Returns:
- A
IResourceViewTransformer
object. - Throws:
DocumentModuleException
- default module exception.
-
getWorkflowViewTransformer
Gets a workflow view transformer to transformIWorkflow
objects.- Returns:
- A
IWorkflowViewTransformer
object. - Throws:
DocumentModuleException
- default module exception.
-
getWorkflowContainerViewTransformer
IWorkflowContainerViewTransformer getWorkflowContainerViewTransformer() throws DocumentModuleExceptionGets a workflow container view transformer to transformIWorkflowContainer
objects.- Returns:
- A
IWorkflowContainerViewTransformer
object. - Throws:
DocumentModuleException
- default module exception.
-
getCatalogViewTransformer
Gets a catalog view transformer to transformICatalog
objects.- Returns:
- A
ICatalogViewTransformer
object. - Throws:
DocumentModuleException
- default module exception.
-
getSearchViewTransformer
Gets a search view transformer to transformIResource
objects.- Returns:
- A
ISearchViewTransformer
object. - Throws:
DocumentModuleException
- default module exception.
-
getGenericViewTransformer
- Throws:
DocumentModuleException
-
getViewController
Gets a view controller to searchIResource
objects through their properties.- Returns:
- A
IViewController
object. - Throws:
DocumentModuleException
- default module exception.
-
getViewController
Gets a view controller to searchIResource
objects through their properties.- Parameters:
natureClass
- : The class of the searched objectsIVersion
- Returns:
- A
IViewController
object. - Throws:
DocumentModuleException
- default module exception.
-
getViewController
Gets a view controller to searchIResource
objects through their properties.- Parameters:
inputStream
- The java.io.InputStream XML entry.- Returns:
- A
IViewController
object. - Throws:
DocumentModuleException
- default module exception.
-
getViewController
IViewController getViewController(IContext context, InputStream inputStream) throws DocumentModuleException Gets a view controller to searchIResource
objects through their properties.- Parameters:
context
- The execution context.inputStream
- The java.io.InputStream XML entry.- Returns:
- A
IViewController
object. - Throws:
DocumentModuleException
- default module exception.
-
getDelegationController
Gets a delegation controller to delegateIDelegationSupport
objects.- Returns:
- A
IDelegationController
object. - Throws:
DocumentModuleException
- default module exception.
-
getArchivingController
Gets a archiving controller to archiveIElement
objects.- Returns:
- A
IArchivingController
object. - Throws:
DocumentModuleException
- default module exception.
-
getUserByLogin
Gets a user by its login- Parameters:
login
- The login of the user- Returns:
- A
IUser
object. - Throws:
DocumentModuleException
- default module exception.
-
getCatalog
Gets a catalog object from its identifier.- Parameters:
key
- AIStorageKey
object.- Returns:
- A
ICatalog
object. - Throws:
DocumentModuleException
- default module exception.
-
getUser
Gets a user object from its identifier.- Parameters:
key
- AIStorageKey
object.- Returns:
- A
IUser
object. - Throws:
DocumentModuleException
- default module exception.
-
getRole
Gets a role object from its identifier.- Parameters:
key
- AIStorageKey
object.- Returns:
- A
IRole
object. - Throws:
DocumentModuleException
- default module exception.
-
getWorkflow
Gets a workflow object from its identifier.- Parameters:
key
- AIStorageKey
object.- Returns:
- A
IWorkflow
object. - Throws:
DocumentModuleException
- default module exception.
-
getTask
Gets a task object from its identifier.- Parameters:
key
- AIStorageKey
object.- Returns:
- A
ITask
object. - Throws:
DocumentModuleException
- default module exception.
-
getAction
Gets an action object from its identifier.- Parameters:
key
- AIStorageKey
object.- Returns:
- A
IAction
object. - Throws:
DocumentModuleException
- default module exception.
-
getResourceDefinition
Gets a resource definition object from its identifier.- Parameters:
key
- AIStorageKey
object.- Returns:
- A
IResourceDefinition
object. - Throws:
DocumentModuleException
- default module exception.
-
getProperty
Gets a property object from its identifier.- Parameters:
key
- AIStorageKey
object.- Returns:
- A
IProperty
object. - Throws:
DocumentModuleException
- default module exception.
-
getVersion
Gets a version object from its identifier.- Parameters:
key
- AIStorageKey
object.- Returns:
- A
IVersion
object. - Throws:
DocumentModuleException
- default module exception.
-
getTaskInstance
Gets a task instance object from its identifier.- Parameters:
key
- AIStorageKey
object.- Returns:
- A
ITaskInstance
object. - Throws:
DocumentModuleException
- default module exception.
-
getOperator
Gets a operator object from its identifier.- Parameters:
key
- AIStorageKey
object.- Returns:
- A
IOperator
object. - Throws:
DocumentModuleException
- default module exception.
-
getResource
Gets a resource object from its identifier.- Parameters:
key
- AIStorageKey
object.- Returns:
- A
IResource
object. - Throws:
DocumentModuleException
- default module exception.
-
getCatalog
Gets aICatalog
object from a resource definitino.- Parameters:
resourceDefinition
- A resource definition.- Returns:
- A
ICatalog
object. - Throws:
DocumentModuleException
- default module exception.
-
getResources
Collection<? extends IResource> getResources(IContext context, IResourceDefinition resourceDefinition) throws DocumentModuleException Gets a collection ofIResource
objects from a resource definition.- Parameters:
context
- The execution context.resourceDefinition
- TheIResourceDefinition
object.- Returns:
- a Collection of
invalid reference
IResources
- Throws:
DocumentModuleException
- default module exception.
-
getResources
Collection<? extends IResource> getResources(IContext context, ICatalog catalog) throws DocumentModuleException Gets a collection ofIResource
objects from a catalog- Parameters:
context
- The execution context.catalog
- TheICatalog
object.- Returns:
- a Collection of
invalid reference
IResources
- Throws:
DocumentModuleException
- default module exception.
-
createDataUnit
IDataUnit createDataUnit(IContext context, IResourceDefinition resourceDefinition, String reference, String label) throws DocumentModuleException Creates a data unit object by specifying theIResourceDefinition
object, its reference, and its label.- Parameters:
context
- The execution context.resourceDefinition
- TheIResourceDefinition
object.reference
- The reference to set.label
- The label to set.- Returns:
- a
IDataUnit
object. - Throws:
DocumentModuleException
- default module exception.
-
createDataUnit
IDataUnit createDataUnit(IContext context, IResourceDefinition resourceDefinition, String reference) throws DocumentModuleException Creates a storage resource object by specifying theIResourceDefinition
object, its reference.- Parameters:
context
- The execution context.resourceDefinition
- TheIResourceDefinition
object.reference
- The reference to set.- Returns:
- a
IDataUnit
object. - Throws:
DocumentModuleException
- default module exception.
-
getElementByProtocolURI
Gets anIElement
object which implementsIProtocolSupport
interface.- Parameters:
protocolURI
- The protocol URI as a java.lang.String.- Returns:
- A
IProtocolSupport
object. - Throws:
ModuleException
- default module exception.
-