Package com.axemble.vdoc.sdk.modules
Interface IBaseSiteModule
- All Known Subinterfaces:
ISiteModule
- All Known Implementing Classes:
EzsSiteModule
The base site module interface.
Code sample :
// creation of a site module object
IBaseSiteModule siteModule = Modules.getSiteModule();
try
{
}
finally
{
// release the module
Modules.releaseModule( siteModule );
}
- Since:
- 2.1
- Version:
- 1.0, 16/06/2009
- Author:
- vlygeros
-
Method Summary
Modifier and TypeMethodDescriptionvoid
approve
(IContext context, IContentContainer contentContainer) Approves a content.void
Approves all contents in a site.void
Approves all contents in a topic.void
copyPageContainerInTopic
(IContext context, IPageContainer pageContainer, ITopic topic) Copy a page in a topiccreateAlias
(IContext context, ISite site, String name, String label, IProtocolSupport protocolSupport) Creates anIAlias
object at the root level of a site.createAlias
(IContext context, ITopic topic, String name, String label, IProtocolSupport protocolSupport) createBlock
(IContext context) createComponent
(IContext context, String name) createContent
(IContext context, IContentContainer contentContainer) createContent
(IContext context, IContentContainer contentContainer, IBlockTemplateContainer templateContainer) createPageContainer
(IContext context, ISite site, IBlockTemplateContainer templateContainer, String name, String label) Creates aIPageContainer
object at the root level of aISite
object.createPageContainer
(IContext context, ISite site, String name, String label) Creates aIPageContainer
object at the root level of aISite
object.createPageContainer
(IContext context, ITopic topic, IBlockTemplateContainer templateContainer, String name, String label) Creates aIPageContainer
object into aITopic
object.createPageContainer
(IContext context, ITopic topic, String name, String label) Creates aIPageContainer
object into aITopic
object.void
createPlugin
(IContext context, String parentUri, PluginConfigurationBean pluginConfigurationBean) Create a plugin in a topiccreateProtocolSupport
(String freeURL) Creates a genericIProtocolSupport
object from an URL.createSite
(IContext context, ILibrary library, String name) Creates a new site and associates it to aILibrary
(same organization).createSite
(IContext context, IOrganization organization, String name) Creates a new site into anIOrganization
object.createTopic
(IContext context, ISite site, String name, String label) Creates aITopic
object a the root level.createTopic
(IContext context, ITopic parent, String name, String label) Creates a subITopic
object.void
Deletes an element.Gets anIAlias
object by its name.Gets anIAlias
object by its name.Access method to get aIAlias
object from one of the followings: AliasImpl, java.io.Serializable.getAliases
(IContext context, ISite site) Gets all the aliases from the root level of theISite
object.getAliases
(IContext context, ISite site, boolean recursive) getAliases
(IContext context, ITopic parent) Gets all the aliases of aITopic
object.getAliases
(IContext context, ITopic parent, boolean recursive) Access method to get aIBlock
object from one of the followings: BlockImpl, java.io.Serializable.getBlockTemplateContainer
(Object blockTemplateContainerObject) Access method to get aIBlockTemplateContainer
object from one of the followings: TemplateImpl, java.io.Serializable.getBlockTemplateContainerByURI
(IContext context, String uri) getBlockTemplateContainers
(IContext context, ISite site) getBlockTemplateContainers
(IContext context, ISite site, int type) Gets all the templates.getCatalog
(IContext context, ISite site) Retrieves the catalog of the site.getComponent
(Object componentObject) Access method to get aIComponent
object from one of the followings: ElementImpl.getContent
(Object contentObject) Access method to get aIContent
object from one of the followings: ContentVersionImpl, java.io.Serializable.getContentByStatus
(IContentContainer contentContainer, int status) Gets a content of a container by its status.getContentComponent
(Object contentComponentObject) Access method to get aIContentComponent
object from one of the followings: ContentNodeImpl.getContentContainer
(IContext context, ISite site, String name) getContentContainer
(IContext context, ITopic parent, String name) getContentContainer
(Object contentContainerObject) Access method to get aIContentContainer
object from one of the followings: PageImpl, CommonBlockImpl, TemplateImpl, java.io.Serializable.getContentContainers
(IContext context, ISite site) getContentContainers
(IContext context, ISite site, boolean recursive) getContentContainers
(IContext context, ITopic parent) getContentContainers
(IContext context, ITopic parent, boolean recursive) getContents
(IContentContainer contentContainer) getElementByProtocolURI
(String protocolURI) Gets anIElement
object which implementsIProtocolSupport
interface.getElementByURI
(IContext context, String uri) Gets anIElement
by its URI.Gets the specific execution context of the current module.com.axemble.vdoc.sdk.interfaces.ui.components.IComponentsFactory
Deprecated.do not usecom.axemble.vdoc.sdk.interfaces.ui.definitions.IDefinitionsFactory
Deprecated.do not usegetPageContainer
(IContext context, ISite site, String name) Gets a rootIPageContainer
object by its name.getPageContainer
(IContext context, ITopic topic, String name) Gets aIPageContainer
object from aITopic
object by its name.getPageContainer
(Object pageContainerObject) Access method to get aIPageContainer
object from one of the followings: PageImpl, java.io.Serializable.getPageContainers
(IContext context, ISite site) Gets all the pages from a site at a root level.getPageContainers
(IContext context, ISite site, boolean recursive) getPageContainers
(IContext context, ITopic parent) Gets all the pages from theITopic
object.getPageContainers
(IContext context, ITopic parent, boolean recursive) Access method to get aIPlugin
object from one of the followings: ModuleImpl, java.io.Serializable.getPlugins
(IContext context, ISite site) Gets all the plugins from a site at root level.getPlugins
(IContext context, ISite site, boolean recursive) getResourceDefinition
(IContext context, IPageContainer pageContainer, String dataFormName) getSecurityController
(ISecuritySupport securitySupport) Gets a security controller on a specified object.getSharedBlockContainer
(Object sharedBlockContainerObject) Access method to get aISharedBlockContainer
object from one of the followings: CommonBlockImpl, java.io.Serializable.Access method to get aISite
object from one of the followings: SiteImpl, java.io.Serializable.getSiteByName
(IContext context, String name) Retrieves a site by its name.getSystemBlockTemplateContainer
(IContext context, String name) Gets a rootITopic
object by its name.Gets aITopic
object by its name.Access method to get aITopic
object from one of the followings: FolderImpl, java.io.Serializable.Gets all the topics from a site at a root level.Gets all the sub-topics from a parentITopic
object.getView
(IContext context, IResourceDefinition resourceDefinition, String viewName) void
reject
(IContext context, IContentContainer contentContainer, String comment) Rejects an approval request.void
requestApproval
(IContext context, IContentContainer contentContainer, String comment) Requests an approval of the content.void
Saves or updates an element.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
-
createSite
ISite createSite(IContext context, IOrganization organization, String name) throws SiteModuleException Creates a new site into anIOrganization
object.- Parameters:
context
- The execution context.organization
- TheIOrganization
object.name
- The name of the site.- Returns:
- A
ISite
object. - Throws:
SiteModuleException
- The default module exception.
-
createSite
Creates a new site and associates it to aILibrary
(same organization).- Parameters:
context
- The execution context.library
- TheILibrary
object.name
- The name of the site.- Returns:
- A
ISite
object. - Throws:
SiteModuleException
- The default module exception.
-
getSiteByName
Retrieves a site by its name.- Parameters:
context
- The execution context.name
- The name of the site.- Returns:
- A
ISite
object. - Throws:
SiteModuleException
- The default module exception.
-
getCatalog
Retrieves the catalog of the site.- Parameters:
context
- The execution context.site
- TheISite
object.- Returns:
- A
ICatalog
object. - Throws:
SiteModuleException
- The default module exception.
-
getResourceDefinition
IResourceDefinition getResourceDefinition(IContext context, IPageContainer pageContainer, String dataFormName) throws SiteModuleException - Throws:
SiteModuleException
-
getView
IView getView(IContext context, IResourceDefinition resourceDefinition, String viewName) throws SiteModuleException - Throws:
SiteModuleException
-
copyPageContainerInTopic
void copyPageContainerInTopic(IContext context, IPageContainer pageContainer, ITopic topic) throws SiteModuleException Copy a page in a topic- Parameters:
context
- The execution context.pageContainer
- The page to copytopic
- The topic destination- Throws:
SiteModuleException
-
createTopic
ITopic createTopic(IContext context, ISite site, String name, String label) throws SiteModuleException Creates aITopic
object a the root level.- Parameters:
context
- The execution context.site
- TheISite
object.name
- The name of the topic.label
- The label of the topic.- Returns:
- A
ITopic
object. - Throws:
SiteModuleException
- The default module exception.
-
createTopic
ITopic createTopic(IContext context, ITopic parent, String name, String label) throws SiteModuleException Creates a subITopic
object.- Parameters:
context
- The execution context.parent
- The parentITopic
object.name
- The name of the topic.label
- The label of the topic.- Returns:
- A
ITopic
object. - Throws:
SiteModuleException
- The default module exception.
-
createPlugin
void createPlugin(IContext context, String parentUri, PluginConfigurationBean pluginConfigurationBean) throws SiteModuleException Create a plugin in a topic- Parameters:
context
- The execution contextparentUri
-pluginConfigurationBean
-- Throws:
SiteModuleException
-
getTopic
Gets a rootITopic
object by its name.- Parameters:
context
- The execution context.site
- TheISite
object.name
- The system name of the topic.- Returns:
- A
ITopic
object. - Throws:
SiteModuleException
- The default module exception.
-
getTopic
Gets aITopic
object by its name.- Parameters:
context
- The execution context.parent
- TheITopic
object.name
- The system name of the topic.- Returns:
- A
ITopic
object. - Throws:
SiteModuleException
- The default module exception.
-
getTopics
Gets all the topics from a site at a root level.- Parameters:
context
- The execution context.site
- TheISite
object.- Returns:
- A java.util.Collection of
ITopic
objects. - Throws:
SiteModuleException
- The default module exception.
-
getTopics
Collection<ITopic> getTopics(IContext context, ISite site, boolean recursive) throws SiteModuleException - Throws:
SiteModuleException
-
getTopics
Gets all the sub-topics from a parentITopic
object.- Parameters:
context
- The execution context.parent
- TheITopic
object.- Returns:
- A java.util.Collection of
ITopic
objects. - Throws:
SiteModuleException
- The default module exception.
-
getTopics
Collection<ITopic> getTopics(IContext context, ITopic parent, boolean recursive) throws SiteModuleException - Throws:
SiteModuleException
-
getPlugins
Gets all the plugins from a site at root level.- Parameters:
context
- The execution context.parent
- TheITopic
object.- Returns:
- A java.util.Collection of
IPlugin
objects. - Throws:
SiteModuleException
- The default module exception.
-
getPlugins
Collection<IPlugin> getPlugins(IContext context, ISite site, boolean recursive) throws SiteModuleException - Throws:
SiteModuleException
-
getBlockTemplateContainerByURI
IBlockTemplateContainer getBlockTemplateContainerByURI(IContext context, String uri) throws SiteModuleException - Throws:
SiteModuleException
-
getSystemBlockTemplateContainer
IBlockTemplateContainer getSystemBlockTemplateContainer(IContext context, String name) throws SiteModuleException - Throws:
SiteModuleException
-
getBlockTemplateContainers
Collection<IBlockTemplateContainer> getBlockTemplateContainers(IContext context, ISite site, int type) throws SiteModuleException Gets all the templates.- Parameters:
context
- The execution context.type
-- Returns:
- A java.util.Collection of
IBlockTemplateContainer
objects. - Throws:
SiteModuleException
-
getBlockTemplateContainers
Collection<IBlockTemplateContainer> getBlockTemplateContainers(IContext context, ISite site) throws SiteModuleException - Throws:
SiteModuleException
-
createPageContainer
IPageContainer createPageContainer(IContext context, ISite site, String name, String label) throws SiteModuleException Creates aIPageContainer
object at the root level of aISite
object.- Parameters:
context
- The execution context.site
- TheISite
object.name
- The name of the page.label
- The label of the page.- Returns:
- A
IPageContainer
object. - Throws:
SiteModuleException
- The default module exception.
-
createPageContainer
IPageContainer createPageContainer(IContext context, ISite site, IBlockTemplateContainer templateContainer, String name, String label) throws SiteModuleException Creates aIPageContainer
object at the root level of aISite
object. This method allows to base the draftIContent
of theIPageContainer
to a block template container.- Parameters:
context
- The execution context.site
- TheISite
object.templateContainer
- The block template container.name
- The name of the page.label
- The label of the page.- Returns:
- A
IPageContainer
object. - Throws:
SiteModuleException
- The default module exception.
-
createPageContainer
IPageContainer createPageContainer(IContext context, ITopic topic, String name, String label) throws SiteModuleException Creates aIPageContainer
object into aITopic
object.- Parameters:
context
- The execution context.topic
- TheITopic
object.name
- The name of the page.label
- The label of the page.- Returns:
- A
IPageContainer
object. - Throws:
SiteModuleException
- The default module exception.
-
createPageContainer
IPageContainer createPageContainer(IContext context, ITopic topic, IBlockTemplateContainer templateContainer, String name, String label) throws SiteModuleException Creates aIPageContainer
object into aITopic
object.- Parameters:
context
- The execution context.topic
- TheITopic
object.templateContainer
- The block template container.name
- The name of the page.label
- The label of the page.- Returns:
- A
IPageContainer
object. - Throws:
SiteModuleException
- SiteModuleException The default module exception.
-
getPageContainer
IPageContainer getPageContainer(IContext context, ISite site, String name) throws SiteModuleException Gets a rootIPageContainer
object by its name.- Parameters:
context
- The execution context.site
- TheISite
object.name
- The system name of the topic.- Returns:
- A
IPageContainer
object. - Throws:
SiteModuleException
- The default module exception.
-
getPageContainer
IPageContainer getPageContainer(IContext context, ITopic topic, String name) throws SiteModuleException Gets aIPageContainer
object from aITopic
object by its name.- Parameters:
context
- The execution context.topic
- TheITopic
object.name
- The system name of the topic.- Returns:
- A
IPageContainer
object. - Throws:
SiteModuleException
- The default module exception.
-
getPageContainers
Collection<IPageContainer> getPageContainers(IContext context, ISite site) throws SiteModuleException Gets all the pages from a site at a root level.- Parameters:
context
- The execution context.site
- TheISite
object.- Returns:
- A java.util.Collection of
ITopic
objects. - Throws:
SiteModuleException
- The default module exception.
-
getPageContainers
Collection<IPageContainer> getPageContainers(IContext context, ISite site, boolean recursive) throws SiteModuleException - Throws:
SiteModuleException
-
getPageContainers
Collection<IPageContainer> getPageContainers(IContext context, ITopic parent) throws SiteModuleException Gets all the pages from theITopic
object.- Parameters:
context
- The execution context.parent
- TheITopic
object.- Returns:
- A java.util.Collection of
ITopic
objects. - Throws:
SiteModuleException
- The default module exception.
-
getPageContainers
Collection<IPageContainer> getPageContainers(IContext context, ITopic parent, boolean recursive) throws SiteModuleException - Throws:
SiteModuleException
-
createProtocolSupport
Creates a genericIProtocolSupport
object from an URL.- Parameters:
freeURL
- The free URL.- Returns:
- A
IProtocolSupport
object. - Throws:
SiteModuleException
- The default module exception.
-
createAlias
IAlias createAlias(IContext context, ISite site, String name, String label, IProtocolSupport protocolSupport) throws SiteModuleException Creates anIAlias
object at the root level of a site.- Parameters:
context
- The execution context.site
- TheISite
object.name
- The name of the alias.label
- The label of the alias.protocolSupport
- TheIProtocolSupport
object to point to.- Returns:
- A
IAlias
object. - Throws:
SiteModuleException
- The default module exception.
-
createAlias
IAlias createAlias(IContext context, ITopic topic, String name, String label, IProtocolSupport protocolSupport) throws SiteModuleException - Parameters:
context
- The execution context.topic
- TheITopic
object.name
- The name of the alias.label
- The label of the alias.protocolSupport
- TheIProtocolSupport
object to point to.- Returns:
- A
IAlias
object. - Throws:
SiteModuleException
- The default module exception.
-
getAlias
Gets anIAlias
object by its name.- Parameters:
context
- The execution context.site
- TheISite
object.name
- The name of the alias.- Returns:
- A
IAlias
object. - Throws:
SiteModuleException
- The default module exception.
-
getAlias
Gets anIAlias
object by its name.- Parameters:
context
- The execution context.parent
- TheITopic
object.name
- The name of the alias.- Returns:
- A
IAlias
object. - Throws:
SiteModuleException
- The default module exception.
-
getAliases
Gets all the aliases from the root level of theISite
object.- Parameters:
context
- The execution context.site
- TheISite
object.- Returns:
- A java.util.Collection of
IAlias
object. - Throws:
SiteModuleException
- The default module exception.
-
getAliases
Collection<IAlias> getAliases(IContext context, ISite site, boolean recursive) throws SiteModuleException - Throws:
SiteModuleException
-
getAliases
Gets all the aliases of aITopic
object.- Parameters:
context
- The execution context.parent
- TheITopic
object.- Returns:
- A java.util.Collection of
IAlias
object. - Throws:
SiteModuleException
- The default module exception.
-
getAliases
Collection<IAlias> getAliases(IContext context, ITopic parent, boolean recursive) throws SiteModuleException - Throws:
SiteModuleException
-
getContentContainer
IContentContainer getContentContainer(IContext context, ISite site, String name) throws SiteModuleException - Throws:
SiteModuleException
-
getContentContainer
IContentContainer getContentContainer(IContext context, ITopic parent, String name) throws SiteModuleException - Throws:
SiteModuleException
-
getContentContainers
Collection<IContentContainer> getContentContainers(IContext context, ISite site) throws SiteModuleException - Throws:
SiteModuleException
-
getContentContainers
Collection<IContentContainer> getContentContainers(IContext context, ISite site, boolean recursive) throws SiteModuleException - Throws:
SiteModuleException
-
getContentContainers
Collection<IContentContainer> getContentContainers(IContext context, ITopic parent) throws SiteModuleException - Throws:
SiteModuleException
-
getContentContainers
Collection<IContentContainer> getContentContainers(IContext context, ITopic parent, boolean recursive) throws SiteModuleException - Throws:
SiteModuleException
-
createContent
IContent createContent(IContext context, IContentContainer contentContainer) throws SiteModuleException - Throws:
SiteModuleException
-
createContent
IContent createContent(IContext context, IContentContainer contentContainer, IBlockTemplateContainer templateContainer) throws SiteModuleException - Throws:
SiteModuleException
-
requestApproval
void requestApproval(IContext context, IContentContainer contentContainer, String comment) throws SiteModuleException Requests an approval of the content.- Parameters:
context
- The execution context.contentContainer
- TheIContentContainer
object to approve.comment
- The comment why rejecting the approval.- Throws:
SiteModuleException
- The default module exception.
-
approve
Approves a content.- Parameters:
context
- The execution context.contentContainer
- TheIContentContainer
object.- Throws:
SiteModuleException
- The default module exception.
-
approve
Approves all contents in a topic.- Parameters:
context
- The execution context.topic
- TheITopic
object.- Throws:
SiteModuleException
- The default module exception.
-
approve
Approves all contents in a site.- Parameters:
context
- The execution context.site
- TheISite
object.- Throws:
SiteModuleException
- The default module exception.
-
reject
void reject(IContext context, IContentContainer contentContainer, String comment) throws SiteModuleException Rejects an approval request.- Parameters:
context
- The execution context.contentContainer
- TheIContentContainer
object to reject.comment
- The comment why rejecting the approval.- Throws:
SiteModuleException
- The default module exception.
-
createBlock
- Throws:
SiteModuleException
-
createComponent
- Throws:
SiteModuleException
-
getContentByStatus
IContent getContentByStatus(IContentContainer contentContainer, int status) throws SiteModuleException Gets a content of a container by its status.- Parameters:
contentContainer
- The content container object.status
- The value of the status which could be one of theIContent.IStatus
structure.- Returns:
- A
IContent
object. - Throws:
SiteModuleException
-
getContents
- Throws:
SiteModuleException
-
save
Saves or updates an element.- Parameters:
context
- The execution context.site
- TheIElement
object to save or update.- Throws:
SiteModuleException
- The default module exception.
-
delete
Deletes an element.- Parameters:
context
- The execution context.site
- TheIElement
object to delete.- Throws:
SiteModuleException
- The default module exception.
-
getSecurityController
ISecurityController getSecurityController(ISecuritySupport securitySupport) throws SiteModuleException Gets a security controller on a specified object.- Parameters:
securitySupport
- Any IElement that implements ISecuritySupport interface.- Returns:
- The
ISecurityController
object. - Throws:
SiteModuleException
- The default module exception.
-
getMessageController
- Throws:
SiteModuleException
-
getSite
Access method to get aISite
object from one of the followings: SiteImpl, java.io.Serializable.- Parameters:
siteObject
- The object to transform.- Returns:
- A
ISite
object.
-
getTopic
Access method to get aITopic
object from one of the followings: FolderImpl, java.io.Serializable.- Parameters:
topicObject
- The object to transform.- Returns:
- A
ITopic
object.
-
getAlias
Access method to get aIAlias
object from one of the followings: AliasImpl, java.io.Serializable.- Parameters:
topicObject
- The object to transform.- Returns:
- A
IAlias
object.
-
getPlugin
Access method to get aIPlugin
object from one of the followings: ModuleImpl, java.io.Serializable.- Parameters:
pluginObject
- The object to transform.- Returns:
- A
IPlugin
object.
-
getContentContainer
Access method to get aIContentContainer
object from one of the followings: PageImpl, CommonBlockImpl, TemplateImpl, java.io.Serializable.- Parameters:
contentContainerObject
- The object to transform.- Returns:
- A
IContentContainer
object.
-
getPageContainer
Access method to get aIPageContainer
object from one of the followings: PageImpl, java.io.Serializable.- Parameters:
contentContainerObject
- The object to transform.- Returns:
- A
IPageContainer
object.
-
getBlockTemplateContainer
Access method to get aIBlockTemplateContainer
object from one of the followings: TemplateImpl, java.io.Serializable.- Parameters:
contentContainerObject
- The object to transform.- Returns:
- A
IBlockTemplateContainer
object.
-
getContent
Access method to get aIContent
object from one of the followings: ContentVersionImpl, java.io.Serializable.- Parameters:
contentObject
- The object to transform.- Returns:
- A
IContent
object.
-
getContentComponent
Access method to get aIContentComponent
object from one of the followings: ContentNodeImpl.- Parameters:
contentObject
- The object to transform.- Returns:
- A
IContentComponent
object.
-
getBlock
Access method to get aIBlock
object from one of the followings: BlockImpl, java.io.Serializable.- Parameters:
contentObject
- The object to transform.- Returns:
- A
IBlock
object.
-
getComponent
Access method to get aIComponent
object from one of the followings: ElementImpl.- Parameters:
contentObject
- The object to transform.- Returns:
- A
IComponent
object.
-
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.
-
getElementByURI
Gets anIElement
by its URI.- Parameters:
context
- The execution context.uri
- The URI as a java.lang.String.- Returns:
- A
IElement
object. - Throws:
ModuleException
- default module exception.
-
getExecutionContext
ISiteExecutionContext getExecutionContext()Gets the specific execution context of the current module.- Returns:
- A
ISiteExecutionContext
object.
-
getFormsComponentsFactory
@Deprecated com.axemble.vdoc.sdk.interfaces.ui.components.IComponentsFactory getFormsComponentsFactory()Deprecated.do not use -
getFormsDefinitionsFactory
@Deprecated com.axemble.vdoc.sdk.interfaces.ui.definitions.IDefinitionsFactory getFormsDefinitionsFactory()Deprecated.do not use
-