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
Modifier and TypeInterfaceDescriptionstatic interface
Enumerates the design element namesstatic interface
Enumerates the linked groupsstatic interface
Enumerates 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 aIChrono
by it's name.com.axemble.vdoc.sdk.interfaces.ui.components.IComponentsFactory
Gets the user interface components factory.com.axemble.vdoc.sdk.interfaces.ui.definitions.IDefinitionsFactory
Gets the component definition factory.getElementByProtocolURI
(String protocolURI) Gets anIElement
object which implementsIProtocolSupport
interface.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
- theIOrganization
of the project.name
- the system name of the project.label
- the label of the project- Returns:
- a
IProject
object. - 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
- theIOrganization
of the project.- Returns:
- a
IProject
object. - Throws:
ProjectModuleException
-
getProject
Gets a project from its identifier.- Parameters:
key
- a key.- Returns:
- a
IProject
object. - 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
- theIOrganization
of the project.- Returns:
- a java.util.Collection of
IProject
objects. - Throws:
ProjectModuleException
-
getProjects
Get all projects- Parameters:
context
- the execution context.- Returns:
- a java.util.Collection of
IProject
objects. - Throws:
ProjectModuleException
-
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.
-
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
ISecurityController
object. - Throws:
ProjectModuleException
- default module exception.
-
getMessageController
Gets a message controller- Returns:
- The
IMessageController
object. - Throws:
ProjectModuleException
- default module exception.
-
createDesignWorkflow
Creates a design workflow diagram.- Returns:
- A
IDesignWorkflow
object. - 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
IDesignForm
object. - 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
IComponentsFactory
object.
-
getDefinitionsFactory
com.axemble.vdoc.sdk.interfaces.ui.definitions.IDefinitionsFactory getDefinitionsFactory()Gets the component definition factory.- Returns:
- A
IDefinitionsFactory
object.
-
getChronoByName
find aIChrono
by it's name.- Parameters:
name
-project
- the parent project- Returns:
- the found chrono or null.
-