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 SummaryModifier and TypeMethodDescriptionvoidAllows 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.voidAdds a group to a role.voidAdds 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 theIResourceDefinitionobject, its reference.createDataUnit(IContext context, IResourceDefinition resourceDefinition, String reference, String label) Creates a data unit object by specifying theIResourceDefinitionobject, its reference, and its label.Creates a generic resource for mail purposes.createRole(IContext context, ICatalog catalog, String name) Creates aIRoleinto the catalog object.createVersion(IContext context, IAttachmentTemplate attachmentTemplate, String reference) Creates a version instance object by specifying theIAttachmentTemplateobject, its reference.createVersion(IContext context, IResourceDefinition resourceDefinition, String reference, String label) Creates a version object by specifying theIResourceDefinitionobject, 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 aICatalogobject.voidend(IContext context, ITaskInstance instance, IAction action, String comment) Crosses a transition.voidAllows 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.voidAllows to execute an agent.voidAllows to execute an agent.intgenerateChrono(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 specificIActionobject 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 archiveIElementobjects.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 aICatalogobject from a resource definitino.getCatalog(IStorageKey key) Gets a catalog object from its identifier.getCatalog(IWorkflow workflow) Retrieves the catalog of aIWorkflowobject.Collection<? extends ICatalog> getCatalogs(IContext context) Retrieves a collection ofICatalogobject.Collection<? extends ICatalog> getCatalogs(IContext context, int catalogType) Retrieves a collection ofICatalogobject.Collection<? extends ICatalog> getCatalogs(IContext context, IProject project) Retrieves a collection ofICatalogobject.Gets a catalog view transformer to transformICatalogobjects.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 delegateIDelegationSupportobjects.getElementByProtocolURI(String protocolURI) Gets anIElementobject which implementsIProtocolSupportinterface.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 ofIElementobjects from a multiple selector property.getExternalFile(IResource resource, String propertyName) Gets aIFileobject from a single file selector property.getExternalFolder(IResource resource, String propertyName) Gets aIFolderobject from a single folder selector property.getExternalGroup(IResource resource, String propertyName) Gets aIGroupobject from a single group selector property.getExternalLibrary(IResource resource, String propertyName) Gets aILibraryobject from a single library selector property.getExternalLocalization(IResource resource, String propertyName) Gets aILocalizationobject from a single localization selector property.getExternalOrganization(IResource resource, String propertyName) Gets aIOrganizationobject from a single organization selector property.getExternalUser(IResource resource, String propertyName) Gets aIUserobject 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 specifiedICatalogobject.getMailForm(IContext context, IWorkflow workflow, String mailFormName) Collection<? extends IMailForm> getMailForms(IContext context, IWorkflow workflow) Gets all the mail forms from a specifiedIWorkflowobject.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 theIResourceDefinitionand 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 theICatalogand 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 theICatalogCollection<? extends IResource> getResources(IContext context, ICatalog catalog) Gets a collection ofIResourceobjects from a catalogCollection<? extends IResource> getResources(IContext context, IResourceDefinition resourceDefinition) Gets a collection ofIResourceobjects from a resource definition.Gets a resource view transformer to transformIResourceobjects.Retrieves aIRoleobject by its system name.getRole(IStorageKey key) Gets a role object from its identifier.Collection<? extends IRole> Retrieves a collection ofIRoleobjects within a specified catalog.Gets the defaultISearchControllerobject.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 transformIResourceobjects.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 aIWorkflowobject 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 transformITaskInstanceobject.Gets a task view transformer to transformITaskInstanceobjects.Gets a transformer to transformIResourceobject.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 specifiedICatalogobject.Collection<? extends IVersion> getVersions(IContext context, ICatalog catalog, String reference) Gets all the versions with the same reference within a specifiedICatalogobject.Collection<? extends IVersion> getVersions(IContext context, IResourceDefinition resourceDefinition, String reference) Gets all the versions with the same reference within a specifiedIWorkflowobject.getVersions(IContext context, ITask task) Gets all the workflow instances of a specifiedITaskobject.Collection<? extends IVersion> getVersions(IContext context, IWorkflow workflow) Gets all the versions of a specifiedIWorkflowobject.getView(IContext context, IResourceDefinition resourceDefinition, String viewName) Retrieves a view by its name.Gets a view controller to searchIResourceobjects through their properties.getViewController(IContext context, InputStream inputStream) Gets a view controller to searchIResourceobjects through their properties.getViewController(InputStream inputStream) Gets a view controller to searchIResourceobjects through their properties.getViewController(Class natureClass) Gets a view controller to searchIResourceobjects through their properties.getWorkflow(IContext context, ICatalog catalog, String name) Retrieves a workflow within aIWorkflowobject 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 aIWorkflowContainerwithin aICatalogby its system namegetWorkflowContainer(IWorkflow workflow) Retrieves the workflow container of aIWorkflowobject.Collection<? extends IWorkflowContainer> getWorkflowContainers(IContext context, ICatalog catalog) Retrieves a collection ofIWorkflowContainerobjects within aICatalogobject.Gets a workflow container view transformer to transformIWorkflowContainerobjects.Collection<? extends IWorkflow> getWorkflows(IContext context, ICatalog catalog) Collection<? extends IWorkflow> getWorkflows(IContext context, IWorkflowContainer container) Retrieves a collection ofIWorkflowobjects within aIWorkflowContainerobject.Gets a workflow view transformer to transformIWorkflowobjects.booleanisMemberOf(IUser user, IRole role) Checks if a specified user is member of aIRoleobject.voidremind(IContext context, ITaskInstance taskInstance, String comment) Allows to remind current operators of a specified task instance.voidAllows to remind current operators of a version.voidsend(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.voidsend(IContext context, ITaskInstance instance, IMailForm form, String comment) Sends a mail using a specified mail form.voidsend(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.voidSends a mail using a specified mail form.voidsend(IContext context, IVersion version, String formName, Collection entries) Allows to send a mail with a specific form to a mail recipient.voidAllows to send a mail.voidsend(IContext context, IWorkflow workflow, String formName, Collection entries) Allows to send a mail.voidsetExternalElements(IResource resource, String propertyName, Collection elements) Sets aIElementto a multiple selector property.voidsetExternalFile(IResource resource, String propertyName, IFile file) Sets aIFileto a single selector property.voidsetExternalFolder(IResource resource, String propertyName, IFolder folder) Sets aIFolderto a single selector property.voidsetExternalGroup(IResource resource, String propertyName, IGroup group) Sets aIGroupto a single selector property.voidsetExternalLibrary(IResource resource, String propertyName, ILibrary library) Sets aILibraryto a single selector property.voidsetExternalLocalization(IResource resource, String propertyName, ILocalization localization) Sets aILocalizationto a single selector property.voidsetExternalOrganization(IResource resource, String propertyName, IOrganization organization) Sets aIOrganizationto a single selector property.voidsetExternalUser(IResource resource, String propertyName, IUser user) Sets aIUserto a single selector property.voidsetList(IResource resource, String propertyName, Collection values) Sets the list of available values to a list property.voidSets a value to a property.Methods inherited from interface com.axemble.vdoc.sdk.modules.IModulebeginTransaction, 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- 
getConfigurationIConfiguration getConfiguration()Gets the global configuration.- Returns:
- a IConfigurationobject.
 
- 
getAgentGets an agent from its name.- Parameters:
- context- The execution context.
- name- The name of the agent.
- Returns:
- a IAgentobject.
- Throws:
- DocumentModuleException- default module exception.
 
- 
executeAllows to execute an agent.- Parameters:
- agent- The- IAgentto execute.
- Throws:
- DocumentModuleException- default module exception.
 
- 
executeAllows to execute an agent.- Parameters:
- context- The execution context.
- agent- The- IAgentto execute.
- Throws:
- DocumentModuleException- default module exception.
 
- 
getDataSourceReferenceGets a data source reference from its JNDI name.- Parameters:
- name- The JNDI name.
- Returns:
- a IDataSourceReferenceobject.
- 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 IJdbcReferenceobject.
- Throws:
- DocumentModuleException- default module exception.
 
- 
getConnectionDefinitionIConnectionDefinition 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 IConnectionDefinitionobject.
- 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 Collectionof IJdbcReference object.
- Throws:
- DocumentModuleException- default module exception.
 
- 
getConnectionDefinitionsCollection<? extends IConnectionDefinition> getConnectionDefinitions(IContext context) throws DocumentModuleException Gets a collection of connections.- Parameters:
- context- The execution context.
- Returns:
- a Collectionof IConnectionDefinition object.
- Throws:
- DocumentModuleException- default module exception.
 
- 
getListGets a list object from a catalog by its name.- Parameters:
- context- The execution context.
- catalog- The- ICatalogrepresenting the application.
- name- The name of the list.
- Returns:
- a IListobject.
- Throws:
- DocumentModuleException- default module exception.
 
- 
getListsCollection<? extends IList> getLists(IContext context, ICatalog catalog) throws DocumentModuleException Gets a collection of a the lists available on a specifiedICatalogobject.- Parameters:
- context- The execution context.
- catalog- The- ICatalogrepresenting the application.
- Returns:
- a collection of IListobject
- Throws:
- DocumentModuleException- default module exception.
 
- 
createCatalogICatalog 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 ICatalogobject.
- Throws:
- DocumentModuleException- default module exception.
 
- 
getCatalogICatalog 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- The- ICatalog.ITypeof the catalog.
- project- The project of the catalog
- Returns:
- a ICatalogobject.
- Throws:
- DocumentModuleException- default module exception.
 
- 
getCatalogsRetrieves a collection ofICatalogobject.- Parameters:
- context- The execution context.
- project- The project of the catalog
- Returns:
- a collection of ICatalogobjects.
- Throws:
- DocumentModuleException- default module exception.
 
- 
getCatalogsCollection<? extends ICatalog> getCatalogs(IContext context, int catalogType) throws DocumentModuleException Retrieves a collection ofICatalogobject.- Parameters:
- context- The execution context.
- catalogType- The- ICatalog.ITypeof the catalogs.
- project- The project of the catalog
- Returns:
- a collection of ICatalogobjects.
- Throws:
- DocumentModuleException- default module exception.
 
- 
getCatalogsCollection<? extends ICatalog> getCatalogs(IContext context, IProject project) throws DocumentModuleException Retrieves a collection ofICatalogobject.- Parameters:
- context- The execution context.
- project- The project of the catalog
- catalogType- The- ICatalog.ITypeof the catalogs.
- Returns:
- a collection of ICatalogobjects.
- Throws:
- DocumentModuleException- default module exception.
 
- 
createRoleCreates aIRoleinto the catalog object.- Parameters:
- context- The execution context.
- catalog- The- ICatalogobject.
- name- The system name of the- IRoleto be created.
- Returns:
- a IRoleobject.
- Throws:
- DocumentModuleException- default module exception.
 
- 
getRoleRetrieves aIRoleobject by its system name.- Parameters:
- context- The execution context.
- catalog- The- ICatalogscope object.
- name- The system name of the role.
- Returns:
- a IRoleobject.
- Throws:
- DocumentModuleException- default module exception.
 
- 
getRolesCollection<? extends IRole> getRoles(IContext context, ICatalog catalog) throws DocumentModuleException Retrieves a collection ofIRoleobjects within a specified catalog.- Parameters:
- context- The execution context.
- catalog- The- ICatalogobject.
- Returns:
- a collection of IRoleobjects.
- Throws:
- DocumentModuleException- default module exception.
 
- 
isMemberOfChecks if a specified user is member of aIRoleobject.- Parameters:
- user- The- IUserobject to check.
- role- The- IRoleobject.
- Returns:
- return true if the user is member of the IRoleobject.
- Throws:
- DocumentModuleException- default module exception.
 
- 
addChildAdds a group to a role.- Parameters:
- group- The group to add.
- role- The role object.
- Throws:
- DocumentModuleException- default module exception.
 
- 
addMemberAdds a user to a role.- Parameters:
- user- The user to add.
- role- The role object.
- Throws:
- DocumentModuleException- default module exception.
 
- 
createWorkflowContainerIWorkflowContainer createWorkflowContainer(IContext context, ICatalog catalog, String name) throws DocumentModuleException Creates a workflow container within aICatalogobject.- Parameters:
- context- The execution context.
- catalog- The- ICatalogobject.
- name- The system name of the- IWorkflowContainerobject.
- Returns:
- a IWorkflowContainerobject.
- Throws:
- DocumentModuleException- default module exception.
 
- 
getWorkflowContainerIWorkflowContainer getWorkflowContainer(IContext context, ICatalog catalog, String name) throws DocumentModuleException Retrieves aIWorkflowContainerwithin aICatalogby its system name- Parameters:
- context- The execution context.
- catalog- The- ICatalogobject.
- name- The system name of the- IWorkflowContainerobject.
- Returns:
- a IWorkflowContainerobject.
- Throws:
- DocumentModuleException- default module exception.
 
- 
getWorkflowContainersCollection<? extends IWorkflowContainer> getWorkflowContainers(IContext context, ICatalog catalog) throws DocumentModuleException Retrieves a collection ofIWorkflowContainerobjects within aICatalogobject.- Parameters:
- context- The execution context.
- catalog- The- ICatalogobject.
- Returns:
- a collection of IWorkflowContainerobjects.
- Throws:
- DocumentModuleException- default module exception.
 
- 
createWorkflowIWorkflow createWorkflow(IContext context, IWorkflowContainer container, String name, byte[] content) throws DocumentModuleException Creates a workflow within a workflow container.- Parameters:
- context- The execution context.
- container- The- IWorkflowContainerobject.
- name- The system name of the workflow.
- content- The XML content of the workflow.
- Returns:
- a IWorkflowobject.
- Throws:
- DocumentModuleException- default module exception.
 
- 
getWorkflowIWorkflow getWorkflow(IContext context, ICatalog catalog, String name) throws DocumentModuleException Retrieves a workflow within aIWorkflowobject and from its system name.- Parameters:
- context- The execution context.
- catalog- The- ICatalogobject.
- name- The system name of the workflow.
- Returns:
- a IWorkflowobject.
- Throws:
- DocumentModuleException- default module exception.
 
- 
getWorkflowsCollection<? extends IWorkflow> getWorkflows(IContext context, ICatalog catalog) throws DocumentModuleException - Parameters:
- context- The execution context.
- catalog- The- ICatalogobject.
- Returns:
- a collection of IWorkflowobjects.
- Throws:
- DocumentModuleException- default module exception.
 
- 
getWorkflowsCollection<? extends IWorkflow> getWorkflows(IContext context, IWorkflowContainer container) throws DocumentModuleException Retrieves a collection ofIWorkflowobjects within aIWorkflowContainerobject.- Parameters:
- context- The execution context.
- container- The- IWorkflowContainerobject.
- Returns:
- a collection of IWorkflowobjects.
- Throws:
- DocumentModuleException- default module exception.
 
- 
getCatalogRetrieves the catalog of aIWorkflowobject.- Parameters:
- workflow- The workflow object.
- Returns:
- a ICatalogobject
- Throws:
- DocumentModuleException- default module exception.
 
- 
getWorkflowContainerRetrieves the workflow container of aIWorkflowobject.- Parameters:
- workflow- The workflow object.
- Returns:
- a IWorkflowContainerobject
- Throws:
- DocumentModuleException- default module exception.
 
- 
getTaskRetrieves a specific task of aIWorkflowobject by its name.- Parameters:
- context- The execution context.
- workflow- The- IWorkflowobject.
- name- The system name of the- ITaskobject.
- Returns:
- a ITaskobject.
- Throws:
- DocumentModuleException- default module exception.
 
- 
getActionsCollection<? extends IAction> getActions(IContext context, ITask task) throws DocumentModuleException - Parameters:
- context- The execution context.
- task- The- ITaskobject.
- Returns:
- a collection of IActionobjects.
- Throws:
- DocumentModuleException- default module exception.
 
- 
getActionRetrieve a specificIActionobject from its system name.- Parameters:
- context- The execution context.
- task- The- ITaskobject.
- name- The system name of the- IActionobject to retrieve.
- Returns:
- a IActionobject.
- Throws:
- DocumentModuleException- default module exception.
 
- 
getWorkflowGets the associated workflow of a task.- Parameters:
- task- the- ITaskobject.
- Returns:
- a IWorkflowobject.
- Throws:
- DocumentModuleException- default module exception.
 
- 
getResourceDefinitionIResourceDefinition getResourceDefinition(IContext context, ICatalog catalog, String name) throws DocumentModuleException Retrieves a resource definition by specifying theICatalogand its system name.- Parameters:
- context- The execution context.
- catalog- The- ICatalogobject.
- name- The system name of the resource definition.
- Returns:
- a IResourceDefinitionobject.
- Throws:
- DocumentModuleException- default module exception.
 
- 
getResourceDefinitionsCollection<? extends IResourceDefinition> getResourceDefinitions(IContext context, ICatalog catalog) throws DocumentModuleException Retrieves all resource definitions by specifying theICatalog- Parameters:
- context- The execution context.
- catalog- The- ICatalogobject.
- Returns:
- a collection of IResourceDefinitionobjects.
- Throws:
- DocumentModuleException- default module exception.
 
- 
getViewIView getView(IContext context, IResourceDefinition resourceDefinition, String viewName) throws DocumentModuleException Retrieves a view by its name.- Parameters:
- context- The execution context.
- resourceDefinition- The- IResourceDefinitionobject.
- viewName- The name of the view.
- Returns:
- a IViewobject.
- Throws:
- DocumentModuleException- default module exception.
 
- 
getPropertiesCollection<? extends IProperty> getProperties(IContext context, IResourceDefinition resourceDefinition) throws DocumentModuleException Gets all the properties of a specified definition.- Parameters:
- context- The execution context.
- resourceDefinition- a- IResourceDefinitionobject.
- Returns:
- a collection of IPropertyobjects.
- Throws:
- DocumentModuleException- default module exception.
 
- 
getPropertyIProperty getProperty(IContext context, IResourceDefinition resourceDefinition, String name) throws DocumentModuleException Gets a property definition by specifying theIResourceDefinitionand its system name.- Parameters:
- context- The execution context.
- resourceDefinition- The- IResourceDefinitionobject.
- name- The system name of the property.
- Returns:
- a IPropertyobject.
- Throws:
- DocumentModuleException- default module exception.
 
- 
generateReferenceEvaluate 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.
 
- 
generateReferenceString generateReference(IResourceDefinition resourceDefinition, String format) throws DocumentModuleException Evaluate the next reference based on the passed format.- Parameters:
- resourceDefinition- The- IResourceDefinitionobject.
- format- The format to use to evaluate the next reference.
- Returns:
- The evaluated reference.
- Throws:
- DocumentModuleException
 
- 
generateReferenceEvaluate 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.
 
- 
generateReferenceEvaluate 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.
 
- 
generateChronoEvaluate 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.
 
- 
createVersionIVersion createVersion(IContext context, IResourceDefinition resourceDefinition, String reference, String label) throws DocumentModuleException Creates a version object by specifying theIResourceDefinitionobject, its reference, and its label.- Parameters:
- context- The execution context.
- resourceDefinition- The- IResourceDefinitionobject.
- reference- The reference to set.
- label- The label to set.
- Returns:
- a IVersionobject.
- Throws:
- DocumentModuleException- default module exception.
 
- 
createVersionIVersion createVersion(IContext context, IAttachmentTemplate attachmentTemplate, String reference) throws DocumentModuleException Creates a version instance object by specifying theIAttachmentTemplateobject, its reference.- Parameters:
- context- The execution context.
- attachmentTemplate- The- IAttachmentTemplateobject.
- reference- The reference to set.
- Returns:
- a IVersionobject.
- Throws:
- DocumentModuleException- default module exception.
 
- 
getVersionsCollection<? extends IVersion> getVersions(IContext context, ICatalog catalog, String reference) throws DocumentModuleException Gets all the versions with the same reference within a specifiedICatalogobject.- Parameters:
- context- The execution context.
- catalog- The- ICatalogobject.
- reference- The reference of the workflow instance.
- Returns:
- a collection of IVersionobjects.
- Throws:
- DocumentModuleException- default module exception.
 
- 
getVersionsCollection<? extends IVersion> getVersions(IContext context, IResourceDefinition resourceDefinition, String reference) throws DocumentModuleException Gets all the versions with the same reference within a specifiedIWorkflowobject.- Parameters:
- context- The execution context.
- resourceDefinition- The- IResourceDefinitionobject.
- reference- The reference of the version.
- Returns:
- a collection of IVersionobjects.
- Throws:
- DocumentModuleException- default module exception.
 
- 
getVersionsCollection<? extends IVersion> getVersions(IContext context, ICatalog catalog) throws DocumentModuleException Gets all the versions of a specifiedICatalogobject.- Parameters:
- context- The execution context.
- catalog- The- ICatalogobject.
- Returns:
- a collection of IVersionobjects.
- Throws:
- DocumentModuleException- default module exception.
 
- 
getVersionsCollection<? extends IVersion> getVersions(IContext context, IWorkflow workflow) throws DocumentModuleException Gets all the versions of a specifiedIWorkflowobject.- Parameters:
- context- The execution context.
- workflow- The- IWorkflowobject.
- Returns:
- a collection of IVersionobjects.
- Throws:
- DocumentModuleException- default module exception.
 
- 
getVersionsGets all the workflow instances of a specifiedITaskobject.- Parameters:
- context- The execution context.
- task- The- ITaskobject.
- Returns:
- a collection of IVersionobjects.
- Throws:
- DocumentModuleException- default module exception.
 
- 
setValueSets a value to a property.- Parameters:
- resource- The- IVersionobject.
- propertyName- The system name of the property.
- value- The value object to set.
- Throws:
- DocumentModuleException- default module exception.
 
- 
getValueGets the value of a property.- Parameters:
- resource- The- IVersionobject.
- propertyName- The system name of the property.
- Returns:
- a Objectobject.
- Throws:
- DocumentModuleException- default module exception.
 
- 
setListvoid setList(IResource resource, String propertyName, Collection values) throws DocumentModuleException Sets the list of available values to a list property.- Parameters:
- resource- The- IVersionobject.
- propertyName- The system name of the property.
- values- a collection of either- Stringor- Option.
- Throws:
- DocumentModuleException- default module exception.
 
- 
getListGets the available values of a list property.- Parameters:
- resource- The- IVersionobject.
- propertyName- The system name of the property.
- Returns:
- a collection of either StringorOption.
- Throws:
- DocumentModuleException- default module exception.
 
- 
abortAllows to abort workflow instance.- Parameters:
- context- The execution context.
- version- The- IVersionobject.
- comment- The reason of the abortion. This comment will appear in the history entries.
- Throws:
- DocumentModuleException- default module exception.
 
- 
remindAllows to remind current operators of a version.- Parameters:
- context- The execution context.
- version- The- IVersionobject.
- comment- The reason of the reminder. This comment will appear in the history entries.
- Throws:
- DocumentModuleException- default module exception.
 
- 
remindvoid 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- The- ITaskInstanceobject.
- comment- The reason of the reminder. This comment will appear in the history entries.
- Throws:
- DocumentModuleException- default module exception.
 
- 
sendvoid 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- The- IVersionobject.
- formName- The system name of the form to use.
- entries- A collection of- IUser,- IGroup,- InternetAddressor- Stringobjects.
- Throws:
- DocumentModuleException- default module exception.
 
- 
sendvoid send(IContext context, IWorkflow workflow, IResource resource, String formName, Collection entries) throws DocumentModuleException Allows to send a mail.- Parameters:
- context- The execution context.
- workflow- The- IWorkflowobject.
- resource- Theobject.- invalid reference- IResourceInstance
- formName- The system name of the form to use.
- entries- A collection of- IUser,- IGroup,- InternetAddressor- Stringobjects.
- Throws:
- DocumentModuleException- default module exception.
 
- 
sendvoid send(IContext context, IWorkflow workflow, String formName, Collection entries) throws DocumentModuleException Allows to send a mail.- Parameters:
- context- The execution context.
- workflow- The- IWorkflowobject.
- formName- The system name of the form to use.
- entries- A collection of- IUser,- IGroup,- InternetAddressor- Stringobjects.
- Throws:
- DocumentModuleException- default module exception.
 
- 
getTaskInstancesCollection<? extends ITaskInstance> getTaskInstances(IContext context, IVersion version) throws DocumentModuleException Retrieves all the task instances of a specified version.- Parameters:
- context- The execution context.
- version- The- IVersionobject.
- Returns:
- a collection of ITaskInstance
- Throws:
- DocumentModuleException- default module exception.
 
- 
getTaskInstancesCollection<? 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- The- IVersionobject.
- name- The system name of ITask to use as a filter.
- Returns:
- a collection of ITaskInstance
- Throws:
- DocumentModuleException- default module exception.
 
- 
getManualTaskInstancesCollection<? 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- The- IVersionobject.
- Returns:
- a collection of ITaskInstance
- Throws:
- DocumentModuleException- default module exception.
 
- 
getStartedTaskInstancesCollection<? extends ITaskInstance> getStartedTaskInstances(IContext context, IVersion version) throws DocumentModuleException Retrieves all the started task instances of a version.- Parameters:
- context- The execution context.
- version- The- IVersionobject.
- Returns:
- a collection of ITaskInstance
- Throws:
- DocumentModuleException- default module exception.
 
- 
getEndedTaskInstancesCollection<? extends ITaskInstance> getEndedTaskInstances(IContext context, IVersion version) throws DocumentModuleException Retrieves all the ended task instances of a version.- Parameters:
- context- The execution context.
- version- The- IVersionobject.
- Returns:
- a collection of ITaskInstance
- Throws:
- DocumentModuleException- default module exception.
 
- 
getAbortedTaskInstancesCollection<? extends ITaskInstance> getAbortedTaskInstances(IContext context, IVersion version) throws DocumentModuleException Retrieves all the aborted task instances of a version.- Parameters:
- context- The execution context.
- instance- The- IVersionobject.
- Returns:
- a collection of ITaskInstance
- Throws:
- DocumentModuleException- default module exception.
 
- 
getTaskInstanceITaskInstance 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- The- IVersionobject.
- name- The system name of a- ITaskobject.
- Returns:
- a ITaskInstanceobject.
- Throws:
- DocumentModuleException- default module exception.
 
- 
getOneTaskInstanceGets one of the task instances (any).- Parameters:
- context- The execution context.
- version- The- IVersionobject.
- Returns:
- a ITaskInstanceobject.
- Throws:
- DocumentModuleException- default module exception.
 
- 
getTaskGets the definition of a task instance.- Parameters:
- instance- The- ITaskInstanceobject.
- Returns:
- a ITaskobject.
- Throws:
- DocumentModuleException- default module exception.
 
- 
getOperatorsRetrieves the operators of a task instance.- Parameters:
- instance- the- ITaskInstanceobject.
- Returns:
- a collection of IOperatorobjects.
- Throws:
- DocumentModuleException- default module exception.
 
- 
endvoid end(IContext context, ITaskInstance instance, IAction action, String comment) throws DocumentModuleException Crosses a transition.- Parameters:
- context- The execution context.
- instance- The- ITaskInstanceobject.
- action- The- IActionto use to cross the transition.
- comment- The comment which will be displayed in the history entries.
- Throws:
- DocumentModuleException- default module exception.
 
- 
endvoid 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- The- IUserfor whom to cross the transition.
- instance- The- ITaskInstanceobject.
- action- The- IActionobject.
- comment- The comment which will be displayed in the history entries.
- Throws:
- DocumentModuleException- default module exception.
 
- 
sendvoid 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- The- ITaskInstanceobject.
- form- The- IMailFormobject.
- comment- The comment which will be displayed in the history entries.
- Throws:
- DocumentModuleException- default module exception.
 
- 
sendvoid 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- The- ITaskInstanceobject.
- form- The- IMailFormobject.
- comment- The comment which will be displayed in the history entries.
- Throws:
- DocumentModuleException- default module exception. default module exception.
 
- 
evaluatedHtmlEvaluates the form and returns the HTML content as a java.lang.String object.- Parameters:
- resource- The- IResourceobject to evaluate with.
- mailForm- The- IMailFormobject.
- Returns:
- A java.lang.String object.
- Throws:
- DocumentModuleException- default module exception. default module exception.
 
- 
evaluatedHtmlEvaluates the form and returns the HTML content as a java.lang.String object.- Parameters:
- taskInstance- The- ITaskInstanceobject to evaluate with.
- mailForm- The- IMailFormobject.
- Returns:
- A java.lang.String object.
- Throws:
- DocumentModuleException- default module exception. default module exception.
 
- 
sendvoid 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- The- IResourceobject to evaluate with.
- mailForm- The- IMailFormobject.
- entries- A collection of- IUser,- IGroup,- InternetAddressor- Stringobjects.
- subject- The subject of the mail.
- content- The content of the mail.
- Throws:
- DocumentModuleException- default module exception. default module exception.
 
- 
sendvoid 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- The- ITaskInstanceobject to evaluate with.
- mailForm- The- IMailFormobject.
- entries- A collection of- IUser,- IGroup,- InternetAddressor- Stringobjects.
- subject- The subject of the mail.
- content- The content of the mail.
- Throws:
- DocumentModuleException- default module exception. default module exception.
 
- 
getFormGets a workflow form by its name.- Parameters:
- context- The execution context.
- workflow- The- IWorkflowobject.
- formName- The name of the form.
- Returns:
- a IFormobject.
- Throws:
- DocumentModuleException- default module exception. default module exception.
 
- 
getFormIForm getForm(IContext context, IResourceDefinition resourceDefinition, String formName) throws DocumentModuleException Gets a resource definition form by its name.- Parameters:
- context- The execution context.
- resourceDefinition- The- IResourceDefinitionobject.
- formName- The name of the form.
- Returns:
- a IFormobject.
- Throws:
- DocumentModuleException- default module exception. default module exception.
 
- 
getFormGets a task form by its name.- Parameters:
- context- The execution context.
- task- The- ITaskobject.
- formName- The name of the form.
- Returns:
- a IFormobject.
- Throws:
- DocumentModuleException- default module exception. default module exception.
 
- 
getFormGets a action form by its name.- Parameters:
- context- The execution context.
- action- The- IActionobject.
- formName- The name of the form.
- Returns:
- a IFormobject.
- Throws:
- DocumentModuleException- default module exception. default module exception.
 
- 
getSubFormIForm getSubForm(IContext context, IWorkflow workflow, String formName) throws DocumentModuleException Gets a sub form by its name.- Parameters:
- context- The execution context.
- workflow- The- IWorkflowobject.
- formName- The name of the form.
- Returns:
- a IFormobject.
- Throws:
- DocumentModuleException- default module exception. default module exception.
 
- 
getMailFormsCollection<? extends IMailForm> getMailForms(IContext context, IWorkflow workflow) throws DocumentModuleException Gets all the mail forms from a specifiedIWorkflowobject.- Parameters:
- context- The execution context.
- workflow- The- IWorkflowobject.
- Returns:
- A collection of IMailFormobjects.
- Throws:
- DocumentModuleException- default module exception. default module exception.
 
- 
getMailFormIMailForm getMailForm(IContext context, IWorkflow workflow, String mailFormName) throws DocumentModuleException - Parameters:
- context- The execution context.
- workflow- The- IWorkflowobject.
- mailFormName- The name of the form.
- Returns:
- a IMailFormobject.
- Throws:
- DocumentModuleException- default module exception. default module exception.
 
- 
getMailFormsCollection<? extends IMailForm> getMailForms(IContext context, IWorkflow workflow, String startsWith) throws DocumentModuleException - Parameters:
- context- The execution context.
- workflow- The- IWorkflowobject.
- startsWith- The start part of the form name.
- Returns:
- A collection of IMailFormobjects.
- Throws:
- DocumentModuleException- default module exception. default module exception.
 
- 
createGenericResourceCreates a generic resource for mail purposes.- Returns:
- The IResourceobject.
- Throws:
- DocumentModuleException- default module exception.
 
- 
getAttachmentsCollection<? 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 IAttachmentobjects.
- Throws:
- DocumentModuleException- default module exception.
 
- 
getAttachmentIAttachment 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 IAttachmentobject.
- Throws:
- DocumentModuleException- default module exception.
 
- 
addAttachmentIAttachment 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- The- Fileobject.
- Returns:
- An IAttachmentobject.
- Throws:
- DocumentModuleException- default module exception.
 
- 
addAttachmentIAttachment 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 file
- inputStream- The- InputStreamobject.
- Returns:
- An IAttachmentobject.
- Throws:
- DocumentModuleException- default module exception.
 
- 
addAttachmentIAttachment 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 file
- fullPath- The full path of the file to add.
- Returns:
- An IAttachmentobject.
- Throws:
- DocumentModuleException- default module exception.
 
- 
addAttachmentIAttachment 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- The- IAttachmentto add.
- Returns:
- An IAttachmentobject.
- Throws:
- DocumentModuleException- default module exception.
 
- 
getExternalUserGets aIUserobject from a single user selector property.- Parameters:
- resource- The main resource object.
- propertyName- The system name of the property.
- Returns:
- A IUserobject.
- Throws:
- DocumentModuleException- default module exception.
 
- 
getExternalGroupGets aIGroupobject from a single group selector property.- Parameters:
- resource- The main resource object.
- propertyName- The system name of the property.
- Returns:
- A IGroupobject.
- Throws:
- DocumentModuleException- default module exception.
 
- 
getExternalLocalizationILocalization getExternalLocalization(IResource resource, String propertyName) throws DocumentModuleException Gets aILocalizationobject from a single localization selector property.- Parameters:
- resource- The main resource object.
- propertyName- The system name of the property.
- Returns:
- A ILocalizationobject.
- Throws:
- DocumentModuleException- default module exception.
 
- 
getExternalOrganizationIOrganization getExternalOrganization(IResource resource, String propertyName) throws DocumentModuleException Gets aIOrganizationobject from a single organization selector property.- Parameters:
- resource- The main resource object.
- propertyName- The system name of the property.
- Returns:
- A IOrganizationobject.
- Throws:
- DocumentModuleException- default module exception.
 
- 
getExternalFileGets aIFileobject from a single file selector property.- Parameters:
- resource- The main resource object.
- propertyName- The system name of the property.
- Returns:
- A IFileobject.
- Throws:
- DocumentModuleException- default module exception.
 
- 
getExternalFolderGets aIFolderobject from a single folder selector property.- Parameters:
- resource- The main resource object.
- propertyName- The system name of the property.
- Returns:
- A IFolderobject.
- Throws:
- DocumentModuleException- default module exception.
 
- 
getExternalLibraryGets aILibraryobject from a single library selector property.- Parameters:
- resource- The main resource object.
- propertyName- The system name of the property.
- Returns:
- A ILibraryobject.
- Throws:
- DocumentModuleException- default module exception.
 
- 
getExternalElementsCollection getExternalElements(IResource resource, String propertyName) throws DocumentModuleException Gets a collection ofIElementobjects from a multiple selector property.- Parameters:
- resource- The main resource object.
- propertyName- The system name of the property.
- Returns:
- A collection of IElementobjects.
- Throws:
- DocumentModuleException- default module exception.
 
- 
setExternalUservoid setExternalUser(IResource resource, String propertyName, IUser user) throws DocumentModuleException Sets aIUserto a single selector property.- Parameters:
- resource- The main resource object.
- propertyName- The system name of the property.
- user- A- IUserobject.
- Throws:
- DocumentModuleException- default module exception.
 
- 
setExternalGroupvoid setExternalGroup(IResource resource, String propertyName, IGroup group) throws DocumentModuleException Sets aIGroupto a single selector property.- Parameters:
- resource- The main resource object.
- propertyName- The system name of the property.
- group- A- IGroupobject.
- Throws:
- DocumentModuleException- default module exception.
 
- 
setExternalLocalizationvoid setExternalLocalization(IResource resource, String propertyName, ILocalization localization) throws DocumentModuleException Sets aILocalizationto a single selector property.- Parameters:
- resource- The main resource object.
- propertyName- The system name of the property.
- localization- A- ILocalizationobject.
- Throws:
- DocumentModuleException- default module exception.
 
- 
setExternalOrganizationvoid setExternalOrganization(IResource resource, String propertyName, IOrganization organization) throws DocumentModuleException Sets aIOrganizationto a single selector property.- Parameters:
- resource- The main resource object.
- propertyName- The system name of the property.
- organization- A- IOrganizationobject.
- Throws:
- DocumentModuleException- default module exception.
 
- 
setExternalFilevoid setExternalFile(IResource resource, String propertyName, IFile file) throws DocumentModuleException Sets aIFileto a single selector property.- Parameters:
- resource- The main resource object.
- propertyName- The system name of the property.
- file- A- IFileobject.
- Throws:
- DocumentModuleException- default module exception.
 
- 
setExternalFoldervoid setExternalFolder(IResource resource, String propertyName, IFolder folder) throws DocumentModuleException Sets aIFolderto a single selector property.- Parameters:
- resource- The main resource object.
- propertyName- The system name of the property.
- folder- A- IFolderobject.
- Throws:
- DocumentModuleException- default module exception.
 
- 
setExternalLibraryvoid setExternalLibrary(IResource resource, String propertyName, ILibrary library) throws DocumentModuleException Sets aILibraryto a single selector property.- Parameters:
- resource- The main resource object.
- propertyName- The system name of the property.
- library- A- ILibraryobject.
- Throws:
- DocumentModuleException- default module exception.
 
- 
setExternalElementsvoid setExternalElements(IResource resource, String propertyName, Collection elements) throws DocumentModuleException Sets aIElementto a multiple selector property.- Parameters:
- resource- The main resource object.
- propertyName- The system name of the property.
- elements- A collection of- IElementobjects.
- Throws:
- DocumentModuleException- default module exception.
 
- 
getSearchControllerGets the defaultISearchControllerobject.- Returns:
- The default ISearchControllerobject.
- 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- The- IJdbcReferenceobject.
- Returns:
- The ISearchControllerobject.
- Throws:
- DocumentModuleException- default module exception.
 
- 
getSearchControllerISearchController getSearchController(IConnectionDefinition connectionDefinition) throws DocumentModuleException Gets a connection from its name.- Parameters:
- connectionDefinition- The- IConnectionDefinitionobject.
- Returns:
- a IConnectionDefinitionobject.
- Throws:
- DocumentModuleException- default module exception.
 
- 
getSearchControllerISearchController getSearchController(IDataSourceReference reference) throws DocumentModuleException Gets a search controller object by specifying an external data source.- Parameters:
- reference- The- IDataSourceReferenceobject.
- Returns:
- The ISearchControllerobject.
- Throws:
- DocumentModuleException- default module exception.
 
- 
getSecurityControllerISecurityController getSecurityController(ISecuritySupport securitySupport) throws DocumentModuleException Gets a security controller on a specified object.- Parameters:
- securitySupport- Any IElement that implements ISecuritySupport interface.
- Returns:
- The ISecurityControllerobject.
- Throws:
- DocumentModuleException- default module exception.
 
- 
getTransformerGets a transformer to transformIResourceobject.- Returns:
- A ITransformerobject.
- Throws:
- DocumentModuleException- default module exception.
 
- 
getTaskInstanceTransformerGets a task transformer to transformITaskInstanceobject.- Returns:
- A ITaskInstanceTransformerobject.
- Throws:
- DocumentModuleException- default module exception.
 
- 
getTaskViewTransformerGets a task view transformer to transformITaskInstanceobjects.- Returns:
- A ITaskViewTransformerobject.
- Throws:
- DocumentModuleException- default module exception.
 
- 
getResourceViewTransformerGets a resource view transformer to transformIResourceobjects.- Returns:
- A IResourceViewTransformerobject.
- Throws:
- DocumentModuleException- default module exception.
 
- 
getWorkflowViewTransformerGets a workflow view transformer to transformIWorkflowobjects.- Returns:
- A IWorkflowViewTransformerobject.
- Throws:
- DocumentModuleException- default module exception.
 
- 
getWorkflowContainerViewTransformerIWorkflowContainerViewTransformer getWorkflowContainerViewTransformer() throws DocumentModuleExceptionGets a workflow container view transformer to transformIWorkflowContainerobjects.- Returns:
- A IWorkflowContainerViewTransformerobject.
- Throws:
- DocumentModuleException- default module exception.
 
- 
getCatalogViewTransformerGets a catalog view transformer to transformICatalogobjects.- Returns:
- A ICatalogViewTransformerobject.
- Throws:
- DocumentModuleException- default module exception.
 
- 
getSearchViewTransformerGets a search view transformer to transformIResourceobjects.- Returns:
- A ISearchViewTransformerobject.
- Throws:
- DocumentModuleException- default module exception.
 
- 
getGenericViewTransformer- Throws:
- DocumentModuleException
 
- 
getViewControllerGets a view controller to searchIResourceobjects through their properties.- Returns:
- A IViewControllerobject.
- Throws:
- DocumentModuleException- default module exception.
 
- 
getViewControllerGets a view controller to searchIResourceobjects through their properties.- Parameters:
- natureClass- : The class of the searched objects- IVersion
- Returns:
- A IViewControllerobject.
- Throws:
- DocumentModuleException- default module exception.
 
- 
getViewControllerGets a view controller to searchIResourceobjects through their properties.- Parameters:
- inputStream- The java.io.InputStream XML entry.
- Returns:
- A IViewControllerobject.
- Throws:
- DocumentModuleException- default module exception.
 
- 
getViewControllerIViewController getViewController(IContext context, InputStream inputStream) throws DocumentModuleException Gets a view controller to searchIResourceobjects through their properties.- Parameters:
- context- The execution context.
- inputStream- The java.io.InputStream XML entry.
- Returns:
- A IViewControllerobject.
- Throws:
- DocumentModuleException- default module exception.
 
- 
getDelegationControllerGets a delegation controller to delegateIDelegationSupportobjects.- Returns:
- A IDelegationControllerobject.
- Throws:
- DocumentModuleException- default module exception.
 
- 
getArchivingControllerGets a archiving controller to archiveIElementobjects.- Returns:
- A IArchivingControllerobject.
- Throws:
- DocumentModuleException- default module exception.
 
- 
getUserByLoginGets a user by its login- Parameters:
- login- The login of the user
- Returns:
- A IUserobject.
- Throws:
- DocumentModuleException- default module exception.
 
- 
getCatalogGets a catalog object from its identifier.- Parameters:
- key- A- IStorageKeyobject.
- Returns:
- A ICatalogobject.
- Throws:
- DocumentModuleException- default module exception.
 
- 
getUserGets a user object from its identifier.- Parameters:
- key- A- IStorageKeyobject.
- Returns:
- A IUserobject.
- Throws:
- DocumentModuleException- default module exception.
 
- 
getRoleGets a role object from its identifier.- Parameters:
- key- A- IStorageKeyobject.
- Returns:
- A IRoleobject.
- Throws:
- DocumentModuleException- default module exception.
 
- 
getWorkflowGets a workflow object from its identifier.- Parameters:
- key- A- IStorageKeyobject.
- Returns:
- A IWorkflowobject.
- Throws:
- DocumentModuleException- default module exception.
 
- 
getTaskGets a task object from its identifier.- Parameters:
- key- A- IStorageKeyobject.
- Returns:
- A ITaskobject.
- Throws:
- DocumentModuleException- default module exception.
 
- 
getActionGets an action object from its identifier.- Parameters:
- key- A- IStorageKeyobject.
- Returns:
- A IActionobject.
- Throws:
- DocumentModuleException- default module exception.
 
- 
getResourceDefinitionGets a resource definition object from its identifier.- Parameters:
- key- A- IStorageKeyobject.
- Returns:
- A IResourceDefinitionobject.
- Throws:
- DocumentModuleException- default module exception.
 
- 
getPropertyGets a property object from its identifier.- Parameters:
- key- A- IStorageKeyobject.
- Returns:
- A IPropertyobject.
- Throws:
- DocumentModuleException- default module exception.
 
- 
getVersionGets a version object from its identifier.- Parameters:
- key- A- IStorageKeyobject.
- Returns:
- A IVersionobject.
- Throws:
- DocumentModuleException- default module exception.
 
- 
getTaskInstanceGets a task instance object from its identifier.- Parameters:
- key- A- IStorageKeyobject.
- Returns:
- A ITaskInstanceobject.
- Throws:
- DocumentModuleException- default module exception.
 
- 
getOperatorGets a operator object from its identifier.- Parameters:
- key- A- IStorageKeyobject.
- Returns:
- A IOperatorobject.
- Throws:
- DocumentModuleException- default module exception.
 
- 
getResourceGets a resource object from its identifier.- Parameters:
- key- A- IStorageKeyobject.
- Returns:
- A IResourceobject.
- Throws:
- DocumentModuleException- default module exception.
 
- 
getCatalogGets aICatalogobject from a resource definitino.- Parameters:
- resourceDefinition- A resource definition.
- Returns:
- A ICatalogobject.
- Throws:
- DocumentModuleException- default module exception.
 
- 
getResourcesCollection<? extends IResource> getResources(IContext context, IResourceDefinition resourceDefinition) throws DocumentModuleException Gets a collection ofIResourceobjects from a resource definition.- Parameters:
- context- The execution context.
- resourceDefinition- The- IResourceDefinitionobject.
- Returns:
- a Collection of 
object.invalid referenceIResources
- Throws:
- DocumentModuleException- default module exception.
 
- 
getResourcesCollection<? extends IResource> getResources(IContext context, ICatalog catalog) throws DocumentModuleException Gets a collection ofIResourceobjects from a catalog- Parameters:
- context- The execution context.
- catalog- The- ICatalogobject.
- Returns:
- a Collection of 
object.invalid referenceIResources
- Throws:
- DocumentModuleException- default module exception.
 
- 
createDataUnitIDataUnit createDataUnit(IContext context, IResourceDefinition resourceDefinition, String reference, String label) throws DocumentModuleException Creates a data unit object by specifying theIResourceDefinitionobject, its reference, and its label.- Parameters:
- context- The execution context.
- resourceDefinition- The- IResourceDefinitionobject.
- reference- The reference to set.
- label- The label to set.
- Returns:
- a IDataUnitobject.
- Throws:
- DocumentModuleException- default module exception.
 
- 
createDataUnitIDataUnit createDataUnit(IContext context, IResourceDefinition resourceDefinition, String reference) throws DocumentModuleException Creates a storage resource object by specifying theIResourceDefinitionobject, its reference.- Parameters:
- context- The execution context.
- resourceDefinition- The- IResourceDefinitionobject.
- reference- The reference to set.
- Returns:
- a IDataUnitobject.
- Throws:
- DocumentModuleException- default module exception.
 
- 
getElementByProtocolURIGets anIElementobject which implementsIProtocolSupportinterface.- Parameters:
- protocolURI- The protocol URI as a java.lang.String.
- Returns:
- A IProtocolSupportobject.
- Throws:
- ModuleException- default module exception.
 
 
-