Package com.axemble.vdoc.sdk.impl
Class ProjectModuleImpl
java.lang.Object
com.axemble.vdoc.sdk.impl.AbstractTranslaterModule
com.axemble.vdoc.sdk.impl.CoreModule
com.axemble.vdoc.sdk.impl.ProjectModuleImpl
- All Implemented Interfaces:
com.axemble.vdoc.core.interfaces.InternalProjectModule
,IModule
,IProjectModule
,Serializable
,Remote
public class ProjectModuleImpl
extends CoreModule
implements com.axemble.vdoc.core.interfaces.InternalProjectModule
Project module implementation
- Author:
- vlygeros
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.axemble.vdoc.sdk.modules.IProjectModule
IProjectModule.DesignElementNames, IProjectModule.LinkedDesignElementGroupNames, IProjectModule.UniqueGroupNames
-
Field Summary
Fields inherited from class com.axemble.vdoc.sdk.impl.CoreModule
LOGGER, properties
-
Constructor Summary
ConstructorDescriptionDeprecated.Use com.axemble.vdoc.sdk.Modules.getProjectModule() instead. -
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 objectgenerateSystemName
(String label) Generate a valid system name for this module and this label.getChronoByName
(String name, IProject project) find aIChrono
by it's name.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.importWorkflowDiagram
(IWorkflow workflow) Utilisé en interne pour importer un diagramme de workflowloadDesignForm
(IContext context, IStorageKey storageKey) loadDesignWorkflow
(IContext context, IStorageKey storageKey) saveWorkflowDiagram
(IDesignWorkflow designWorkflow, boolean useLongSuffix) Utilisé en interne pour sauvegarder un diagramme de workflowMethods inherited from class com.axemble.vdoc.sdk.impl.CoreModule
beginTransaction, beginTransaction, commitTransaction, commitTransaction, convertId, createAttachment, createAttachment, createAttachment, createAttachment, createProfile, findNativeClass, getAnonymous, getAnonymousContext, getComponentsFactory, getConfiguration, getContext, getContext, getContext, getContextByLogin, getDefinitionsFactory, getElementByProtocolURI, getElementFromExternalElement, getExternalElement, getExternalElement, getLanguage, getLoggedOnUser, getLoggedOnUserContext, getLoggedOnUserLanguage, getProfile, getProfile, getProfiles, getProtocolPath, getProtocolPath, getProtocolURI, getProtocolURI, getStaticString, getStaticString, getStaticString, getStaticString, getStaticString, getStaticString, getStaticString, getStaticString, getStaticString, getStaticString, getStaticString, getSysadmin, getSysadminContext, getUser, getUser, getUserByLogin, initialize, isTransactionActive, rollbackTransaction, rollbackTransaction, setTransactionTimeout, unInitialize
Methods inherited from class com.axemble.vdoc.sdk.impl.AbstractTranslaterModule
getTranslation, getTranslationForLanguage, getTranslationKey
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.axemble.vdoc.sdk.modules.IModule
beginTransaction, beginTransaction, commitTransaction, commitTransaction, convertId, findNativeClass, 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
Methods inherited from interface com.axemble.vdoc.sdk.modules.IProjectModule
getComponentsFactory, getDefinitionsFactory, getElementByProtocolURI
-
Field Details
-
executionContext
-
-
Constructor Details
-
ProjectModuleImpl
Deprecated.Use com.axemble.vdoc.sdk.Modules.getProjectModule() instead.Constructor
-
-
Method Details
-
createProject
public IProject createProject(IContext context, IOrganization organization, String name, String label) throws ProjectModuleException Description copied from interface:IProjectModule
Create a new project object- Specified by:
createProject
in interfaceIProjectModule
- 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
public IProject getProject(IContext context, String name, IOrganization organization) throws ProjectModuleException Description copied from interface:IProjectModule
Gets a project by its name and organization.- Specified by:
getProject
in interfaceIProjectModule
- Parameters:
context
- the execution context.name
- the system name of the project.organization
- theIOrganization
of the project.- Returns:
- a
IProject
object. - Throws:
ProjectModuleException
-
getProject
Description copied from interface:IProjectModule
Gets a project from its identifier.- Specified by:
getProject
in interfaceIProjectModule
- Parameters:
key
- a key.- Returns:
- a
IProject
object. - Throws:
ProjectModuleException
-
getProjects
public Collection<? extends IProject> getProjects(IContext context, IOrganization organization) throws ProjectModuleException Description copied from interface:IProjectModule
Get all projects of the organization- Specified by:
getProjects
in interfaceIProjectModule
- Parameters:
context
- the execution context.organization
- theIOrganization
of the project.- Returns:
- a java.util.Collection of
IProject
objects. - Throws:
ProjectModuleException
-
getProjects
Description copied from interface:IProjectModule
Get all projects- Specified by:
getProjects
in interfaceIProjectModule
- Parameters:
context
- the execution context.- Returns:
- a java.util.Collection of
IProject
objects. - Throws:
ProjectModuleException
-
getSecurityController
public ISecurityController getSecurityController(ISecuritySupport securitySupport) throws ProjectModuleException Description copied from interface:IProjectModule
Gets a security controller on a specified object.- Specified by:
getSecurityController
in interfaceIProjectModule
- Parameters:
securitySupport
- Any IElement that implements ISecuritySupport interface.- Returns:
- The
ISecurityController
object. - Throws:
ProjectModuleException
- default module exception.
-
getExecutionContext
- Returns:
- the executionContext
-
getMessageController
Description copied from interface:IProjectModule
Gets a message controller- Specified by:
getMessageController
in interfaceIProjectModule
- Returns:
- The
IMessageController
object. - Throws:
ProjectModuleException
- default module exception.
-
createDesignWorkflow
Description copied from interface:IProjectModule
Creates a design workflow diagram.- Specified by:
createDesignWorkflow
in interfaceIProjectModule
- Returns:
- A
IDesignWorkflow
object. - Throws:
ProjectModuleException
- default module exception.
-
loadDesignWorkflow
public IDesignWorkflow loadDesignWorkflow(IContext context, IStorageKey storageKey) throws ProjectModuleException - Specified by:
loadDesignWorkflow
in interfaceIProjectModule
- Throws:
ProjectModuleException
-
compile
public IReport compile(IContext context, IDesignWorkflow designWorkflow, boolean validate) throws ProjectModuleException - Specified by:
compile
in interfaceIProjectModule
- Throws:
ProjectModuleException
-
createDesignForm
Description copied from interface:IProjectModule
Creates a design form object.- Specified by:
createDesignForm
in interfaceIProjectModule
- Returns:
- A
IDesignForm
object. - Throws:
ProjectModuleException
- default module exception.
-
loadDesignForm
public IDesignForm loadDesignForm(IContext context, IStorageKey storageKey) throws ProjectModuleException - Specified by:
loadDesignForm
in interfaceIProjectModule
- Throws:
ProjectModuleException
-
compile
public IReport compile(IContext context, IDesignForm designForm, boolean validate) throws ProjectModuleException - Specified by:
compile
in interfaceIProjectModule
- Throws:
ProjectModuleException
-
saveWorkflowDiagram
public Element saveWorkflowDiagram(IDesignWorkflow designWorkflow, boolean useLongSuffix) throws ProjectModuleException Utilisé en interne pour sauvegarder un diagramme de workflow- Specified by:
saveWorkflowDiagram
in interfacecom.axemble.vdoc.core.interfaces.InternalProjectModule
- Parameters:
designWorkflow
- theIDesignWorkflow
useLongSuffix
- true to use long suffix otherwise false- Throws:
ProjectModuleException
- theProjectModuleException
if there is one
-
importWorkflowDiagram
Utilisé en interne pour importer un diagramme de workflow- Specified by:
importWorkflowDiagram
in interfacecom.axemble.vdoc.core.interfaces.InternalProjectModule
-
getChronoByName
Description copied from interface:IProjectModule
find aIChrono
by it's name.- Specified by:
getChronoByName
in interfaceIProjectModule
- Parameters:
name
-project
- the parent project- Returns:
- the found chrono or null.
-
generateSystemName
Description copied from interface:IModule
Generate a valid system name for this module and this label.- Specified by:
generateSystemName
in interfaceIModule
- Parameters:
label
- label to normalize- Returns:
- normalized value
-