Package com.axemble.vdoc.sdk.modules
Interface IProjectModule
- All Known Implementing Classes:
ProjectModuleImpl
The IBaseProjectModule interface is the main entry point from where most of the methods to manipulate VDoc applications.
Code sample :
// creation of a project module object
IBaseProjectModule projectModule = Modules.getProjectModule();
try
{
}
finally
{
// uninitialize the module
Modules.releaseModule(projectModule);
}
- Author:
- vlygeros
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceEnumerates the design element namesstatic interfaceEnumerates the linked groupsstatic interfaceEnumerates the group -
Method Summary
Modifier and TypeMethodDescriptioncompile(IContext context, IDesignForm designForm, boolean validate) compile(IContext context, IDesignWorkflow designWorkflow, boolean validate) Creates a design form object.Creates a design workflow diagram.createProject(IContext context, IOrganization organization, String name, String label) Create a new project objectgetChronoByName(String name, IProject project) find aIChronoby it's name.com.axemble.vdoc.sdk.interfaces.ui.components.IComponentsFactoryGets the user interface components factory.com.axemble.vdoc.sdk.interfaces.ui.definitions.IDefinitionsFactoryGets the component definition factory.getElementByProtocolURI(String protocolURI) Gets anIElementobject which implementsIProtocolSupportinterface.Gets a message controllergetProject(IContext context, String name, IOrganization organization) Gets a project by its name and organization.getProject(IStorageKey key) Gets a project from its identifier.Collection<? extends IProject> getProjects(IContext context) Get all projectsCollection<? extends IProject> getProjects(IContext context, IOrganization organization) Get all projects of the organizationgetSecurityController(ISecuritySupport securitySupport) Gets a security controller on a specified object.loadDesignForm(IContext context, IStorageKey storageKey) loadDesignWorkflow(IContext context, IStorageKey storageKey) 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
-
createProject
IProject createProject(IContext context, IOrganization organization, String name, String label) throws ProjectModuleException Create a new project object- Parameters:
context- the execution context.organization- theIOrganizationof the project.name- the system name of the project.label- the label of the project- Returns:
- a
IProjectobject. - Throws:
ProjectModuleException- default module exception.
-
getProject
IProject getProject(IContext context, String name, IOrganization organization) throws ProjectModuleException Gets a project by its name and organization.- Parameters:
context- the execution context.name- the system name of the project.organization- theIOrganizationof the project.- Returns:
- a
IProjectobject. - Throws:
ProjectModuleException
-
getProject
Gets a project from its identifier.- Parameters:
key- a key.- Returns:
- a
IProjectobject. - Throws:
ProjectModuleException
-
getProjects
Collection<? extends IProject> getProjects(IContext context, IOrganization organization) throws ProjectModuleException Get all projects of the organization- Parameters:
context- the execution context.organization- theIOrganizationof the project.- Returns:
- a java.util.Collection of
IProjectobjects. - Throws:
ProjectModuleException
-
getProjects
Get all projects- Parameters:
context- the execution context.- Returns:
- a java.util.Collection of
IProjectobjects. - Throws:
ProjectModuleException
-
getElementByProtocolURI
Gets anIElementobject which implementsIProtocolSupportinterface.- Parameters:
protocolURI- The protocol URI as a java.lang.String.- Returns:
- A
IProtocolSupportobject. - Throws:
ModuleException- default module exception.
-
getSecurityController
ISecurityController getSecurityController(ISecuritySupport securitySupport) throws ProjectModuleException Gets a security controller on a specified object.- Parameters:
securitySupport- Any IElement that implements ISecuritySupport interface.- Returns:
- The
ISecurityControllerobject. - Throws:
ProjectModuleException- default module exception.
-
getMessageController
Gets a message controller- Returns:
- The
IMessageControllerobject. - Throws:
ProjectModuleException- default module exception.
-
createDesignWorkflow
Creates a design workflow diagram.- Returns:
- A
IDesignWorkflowobject. - Throws:
ProjectModuleException- default module exception.
-
loadDesignWorkflow
IDesignWorkflow loadDesignWorkflow(IContext context, IStorageKey storageKey) throws ProjectModuleException - Throws:
ProjectModuleException
-
compile
IReport compile(IContext context, IDesignWorkflow designWorkflow, boolean validate) throws ProjectModuleException - Throws:
ProjectModuleException
-
createDesignForm
Creates a design form object.- Returns:
- A
IDesignFormobject. - Throws:
ProjectModuleException- default module exception.
-
loadDesignForm
- Throws:
ProjectModuleException
-
compile
IReport compile(IContext context, IDesignForm designForm, boolean validate) throws ProjectModuleException - Throws:
ProjectModuleException
-
getComponentsFactory
com.axemble.vdoc.sdk.interfaces.ui.components.IComponentsFactory getComponentsFactory()Gets the user interface components factory.- Returns:
- A
IComponentsFactoryobject.
-
getDefinitionsFactory
com.axemble.vdoc.sdk.interfaces.ui.definitions.IDefinitionsFactory getDefinitionsFactory()Gets the component definition factory.- Returns:
- A
IDefinitionsFactoryobject.
-
getChronoByName
find aIChronoby it's name.- Parameters:
name-project- the parent project- Returns:
- the found chrono or null.
-