Package com.axemble.vdoc.sdk.impl
Class EzsSiteModule
java.lang.Object
com.axemble.vdoc.sdk.impl.AbstractTranslaterModule
com.axemble.vdoc.sdk.impl.PortalModule
com.axemble.vdoc.sdk.impl.EzsSiteModule
- All Implemented Interfaces:
- IBaseSiteModule,- IModule,- ISiteModule,- Remote
Easysite site module
- Author:
- vlygeros
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprotected com.axemble.vdoc.sdk.impl.PortalDirectoryModuleprotected IExecutionContextstatic final StringFields inherited from class com.axemble.vdoc.sdk.impl.PortalModulecurrentContext, report
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidapprove(IContext context, IContentContainer contentContainer) Approves a content.voidApproves all contents in a site.voidApproves all contents in a topic.Starts a new transaction or use the current one.beginTransaction(Object currentObject) Starts a new transaction if required.voidCommits the current transaction.voidcommitTransaction(Object currentObject) Commits the current transaction.voidcopyPageContainerInTopic(IContext context, IPageContainer pageContainer, ITopic topic) Copy a page in a topiccreateAlias(IContext context, ISite site, String name, String label, IProtocolSupport protocolSupport) Creates anIAliasobject 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 aIPageContainerobject at the root level of aISiteobject.createPageContainer(IContext context, ISite site, String name, String label) Creates aIPageContainerobject at the root level of aISiteobject.createPageContainer(IContext context, ITopic topic, IBlockTemplateContainer templateContainer, String name, String label) Creates aIPageContainerobject into aITopicobject.createPageContainer(IContext context, ITopic topic, String name, String label) Creates aIPageContainerobject into aITopicobject.voidcreatePlugin(IContext context, String parentUri, PluginConfigurationBean pluginConfigurationBean) Create a plugin in a topiccreateProtocolSupport(String freeURL) Creates a genericIProtocolSupportobject 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 anIOrganizationobject.createTopic(IContext context, ISite site, String name, String label) Creates aITopicobject a the root level.createTopic(IContext context, ITopic parent, String name, String label) Creates a subITopicobject.voidDeletes an element.protected voiddeleteSite(IContext context, ISite site) voiddeleteSite(IContext context, ISite site, boolean deleteLinkedLibrary) Delete sitefindNativeClass(Class interfaceClass) Allows to retrieve the inner native class.findObjectUri(String pluginName, Object o) Find object URIgenerateSystemName(String label) Generate a valid system name for this module and this label.Gets anIAliasobject by its name.Gets anIAliasobject by its name.Access method to get aIAliasobject from one of the followings: AliasImpl, java.io.Serializable.getAliases(IContext context, ISite site) Gets all the aliases from the root level of theISiteobject.getAliases(IContext context, ISite site, boolean recursive) getAliases(IContext context, ITopic parent) Gets all the aliases of aITopicobject.getAliases(IContext context, ITopic parent, boolean recursive) Access method to get aIBlockobject from one of the followings: BlockImpl, java.io.Serializable.com.axemble.sdk.blocks.BlocksFactorygetBlockTemplateContainer(Object blockTemplateContainerObject) Access method to get aIBlockTemplateContainerobject 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 aIComponentobject from one of the followings: ElementImpl.com.axemble.sdk.components.ComponentsFactorygetContent(Object contentObject) Access method to get aIContentobject 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 aIContentComponentobject 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 aIContentContainerobject 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 anIElementobject which implementsIProtocolSupportinterface.getElementByURI(IContext context, String uri) Gets anIElementby its URI.Gets the specific execution context of the current module.com.axemble.vdoc.sdk.interfaces.ui.components.IComponentsFactorycom.axemble.vdoc.sdk.interfaces.ui.definitions.IDefinitionsFactoryprotected static ClassgetNativeClass(Class interfaceClass) getPageContainer(IContext context, ISite site, String name) Gets a rootIPageContainerobject by its name.getPageContainer(IContext context, ITopic topic, String name) Gets aIPageContainerobject from aITopicobject by its name.getPageContainer(Object pageContainerObject) Access method to get aIPageContainerobject 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 theITopicobject.getPageContainers(IContext context, ITopic parent, boolean recursive) javax.jdo.PersistenceManagerAccess method to get aIPluginobject 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 aISharedBlockContainerobject from one of the followings: CommonBlockImpl, java.io.Serializable.ACCESSORSgetSiteByName(IContext context, String name) Retrieves a site by its name.getSystemBlockTemplateContainer(IContext context, String name) Get targetGets a rootITopicobject by its name.Gets aITopicobject by its name.Access method to get aITopicobject 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 parentITopicobject.getView(IContext context, IResourceDefinition resourceDefinition, String viewName) voidinitialize(Properties properties) Initializes the module.booleanChecks if there is a current transaction.voidreject(IContext context, IContentContainer contentContainer, String comment) Rejects an approval request.voidrequestApproval(IContext context, IContentContainer contentContainer, String comment) Requests an approval of the content.voidRoll back the current transaction.voidrollbackTransaction(Object currentObject) Roll back the current transaction.voidSAVE METHODSvoidsetExecutionContext(IExecutionContext executionContext) voidsetTransactionTimeout(int transactionTimeout) Allows the set the transaction timeout.voidReleases the module.Methods inherited from class com.axemble.vdoc.sdk.impl.PortalModuleconvertId, getAnonymous, getAnonymousContext, getContext, getContext, getContext, getContextByLogin, getCurrentContext, getElementFromExternalElement, getExternalElement, getExternalElement, getLanguage, getLoggedOnUser, getLoggedOnUserContext, getLoggedOnUserLanguage, getProtocolPath, getProtocolPath, getProtocolURI, getProtocolURI, getStaticString, getStaticString, getStaticString, getStaticString, getStaticString, getStaticString, getStaticString, getStaticString, getStaticString, getStaticString, getStaticString, getSysadmin, getSysadminContext, getUser, getUser, getUserByLogin, refreshUserMethods inherited from class com.axemble.vdoc.sdk.impl.AbstractTranslaterModulegetTranslation, getTranslationForLanguage, getTranslationKeyMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.axemble.vdoc.sdk.modules.IModuleconvertId, 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
- 
Field Details- 
POSITION_ASCENDING- See Also:
 
- 
nativeClasses
- 
directoryModuleprotected com.axemble.vdoc.sdk.impl.PortalDirectoryModule directoryModule
- 
executionContext
 
- 
- 
Constructor Details- 
EzsSiteModulepublic EzsSiteModule()
 
- 
- 
Method Details- 
initializeDescription copied from interface:IModuleInitializes the module.- Specified by:
- initializein interface- IModule
- Parameters:
- properties- The custom properties.
 
- 
unInitializepublic void unInitialize()Description copied from interface:IModuleReleases the module.- Specified by:
- unInitializein interface- IModule
 
- 
getPersistenceManagerpublic javax.jdo.PersistenceManager getPersistenceManager()- Specified by:
- getPersistenceManagerin class- PortalModule
 
- 
beginTransactionDescription copied from interface:IModuleStarts a new transaction or use the current one.- Specified by:
- beginTransactionin interface- IModule
- Returns:
- The report object.
 
- 
commitTransactionpublic void commitTransaction()Description copied from interface:IModuleCommits the current transaction.- Specified by:
- commitTransactionin interface- IModule
 
- 
rollbackTransactionpublic void rollbackTransaction()Description copied from interface:IModuleRoll back the current transaction.- Specified by:
- rollbackTransactionin interface- IModule
 
- 
beginTransactionDescription copied from interface:IModuleStarts a new transaction if required.- Specified by:
- beginTransactionin interface- IModule
- Parameters:
- currentObject- The synchronized object. Not used anymore.
- Returns:
- The report object.
 
- 
commitTransactionDescription copied from interface:IModuleCommits the current transaction.- Specified by:
- commitTransactionin interface- IModule
- Parameters:
- currentObject- The synchronized object. Not used anymore.
 
- 
rollbackTransactionDescription copied from interface:IModuleRoll back the current transaction.- Specified by:
- rollbackTransactionin interface- IModule
- Parameters:
- currentObject- The synchronized object. Not used anymore.
 
- 
setTransactionTimeoutDescription copied from interface:IModuleAllows the set the transaction timeout.- Specified by:
- setTransactionTimeoutin interface- IModule
- Parameters:
- transactionTimeout- The transaction timeout in milliseconds.
- Throws:
- ModuleException- The default exception.
 
- 
isTransactionActivepublic boolean isTransactionActive()Description copied from interface:IModuleChecks if there is a current transaction.- Specified by:
- isTransactionActivein interface- IModule
- Returns:
- true if a transaction has been started, false otherwise.
 
- 
findNativeClassDescription copied from interface:IModuleAllows to retrieve the inner native class.- Specified by:
- findNativeClassin interface- IModule
- Parameters:
- interfaceClass- A class type.
- Returns:
- The inner native class.
 
- 
getNativeClass
- 
getSiteByNameDescription copied from interface:IBaseSiteModuleRetrieves a site by its name.- Specified by:
- getSiteByNamein interface- IBaseSiteModule
- Parameters:
- context- The execution context.
- name- The name of the site.
- Returns:
- A ISiteobject.
- Throws:
- SiteModuleException- The default module exception.
 
- 
getCatalogDescription copied from interface:IBaseSiteModuleRetrieves the catalog of the site.- Specified by:
- getCatalogin interface- IBaseSiteModule
- Parameters:
- context- The execution context.
- site- The- ISiteobject.
- Returns:
- A ICatalogobject.
- Throws:
- SiteModuleException- The default module exception.
 
- 
getResourceDefinitionpublic IResourceDefinition getResourceDefinition(IContext context, IPageContainer pageContainer, String dataFormName) throws SiteModuleException - Specified by:
- getResourceDefinitionin interface- IBaseSiteModule
- Throws:
- SiteModuleException
 
- 
getViewpublic IView getView(IContext context, IResourceDefinition resourceDefinition, String viewName) throws SiteModuleException - Specified by:
- getViewin interface- IBaseSiteModule
- Throws:
- SiteModuleException
 
- 
copyPageContainerInTopicpublic void copyPageContainerInTopic(IContext context, IPageContainer pageContainer, ITopic topic) throws SiteModuleException Description copied from interface:IBaseSiteModuleCopy a page in a topic- Specified by:
- copyPageContainerInTopicin interface- IBaseSiteModule
- Parameters:
- context- The execution context.
- pageContainer- The page to copy
- topic- The topic destination
- Throws:
- SiteModuleException
 
- 
createSitepublic ISite createSite(IContext context, IOrganization organization, String name) throws SiteModuleException Description copied from interface:IBaseSiteModuleCreates a new site into anIOrganizationobject.- Specified by:
- createSitein interface- IBaseSiteModule
- Parameters:
- context- The execution context.
- organization- The- IOrganizationobject.
- name- The name of the site.
- Returns:
- A ISiteobject.
- Throws:
- SiteModuleException- The default module exception.
 
- 
createSiteDescription copied from interface:IBaseSiteModuleCreates a new site and associates it to aILibrary(same organization).- Specified by:
- createSitein interface- IBaseSiteModule
- Parameters:
- context- The execution context.
- library- The- ILibraryobject.
- name- The name of the site.
- Returns:
- A ISiteobject.
- Throws:
- SiteModuleException- The default module exception.
 
- 
createTopicpublic ITopic createTopic(IContext context, ISite site, String name, String label) throws SiteModuleException Description copied from interface:IBaseSiteModuleCreates aITopicobject a the root level.- Specified by:
- createTopicin interface- IBaseSiteModule
- Parameters:
- context- The execution context.
- site- The- ISiteobject.
- name- The name of the topic.
- label- The label of the topic.
- Returns:
- A ITopicobject.
- Throws:
- SiteModuleException- The default module exception.
 
- 
createTopicpublic ITopic createTopic(IContext context, ITopic parent, String name, String label) throws SiteModuleException Description copied from interface:IBaseSiteModuleCreates a subITopicobject.- Specified by:
- createTopicin interface- IBaseSiteModule
- Parameters:
- context- The execution context.
- parent- The parent- ITopicobject.
- name- The name of the topic.
- label- The label of the topic.
- Returns:
- A ITopicobject.
- Throws:
- SiteModuleException- The default module exception.
 
- 
createPluginpublic void createPlugin(IContext context, String parentUri, PluginConfigurationBean pluginConfigurationBean) throws SiteModuleException Description copied from interface:IBaseSiteModuleCreate a plugin in a topic- Specified by:
- createPluginin interface- IBaseSiteModule
- Parameters:
- context- The execution context
- parentUri-
- pluginConfigurationBean-
- Throws:
- SiteModuleException
 
- 
getTopicDescription copied from interface:IBaseSiteModuleGets a rootITopicobject by its name.- Specified by:
- getTopicin interface- IBaseSiteModule
- Parameters:
- context- The execution context.
- site- The- ISiteobject.
- name- The system name of the topic.
- Returns:
- A ITopicobject.
- Throws:
- SiteModuleException- The default module exception.
 
- 
getTopicDescription copied from interface:IBaseSiteModuleGets aITopicobject by its name.- Specified by:
- getTopicin interface- IBaseSiteModule
- Parameters:
- context- The execution context.
- parent- The- ITopicobject.
- name- The system name of the topic.
- Returns:
- A ITopicobject.
- Throws:
- SiteModuleException- The default module exception.
 
- 
getTopicsDescription copied from interface:IBaseSiteModuleGets all the topics from a site at a root level.- Specified by:
- getTopicsin interface- IBaseSiteModule
- Parameters:
- context- The execution context.
- site- The- ISiteobject.
- Returns:
- A java.util.Collection of ITopicobjects.
- Throws:
- SiteModuleException- The default module exception.
 
- 
getTopicspublic Collection<ITopic> getTopics(IContext context, ISite site, boolean recursive) throws SiteModuleException - Specified by:
- getTopicsin interface- IBaseSiteModule
- Throws:
- SiteModuleException
 
- 
getTopicsDescription copied from interface:IBaseSiteModuleGets all the sub-topics from a parentITopicobject.- Specified by:
- getTopicsin interface- IBaseSiteModule
- Parameters:
- context- The execution context.
- parent- The- ITopicobject.
- Returns:
- A java.util.Collection of ITopicobjects.
- Throws:
- SiteModuleException- The default module exception.
 
- 
getTopicspublic Collection<ITopic> getTopics(IContext context, ITopic parent, boolean recursive) throws SiteModuleException - Specified by:
- getTopicsin interface- IBaseSiteModule
- Throws:
- SiteModuleException
 
- 
getPluginsDescription copied from interface:IBaseSiteModuleGets all the plugins from a site at root level.- Specified by:
- getPluginsin interface- IBaseSiteModule
- Parameters:
- context- The execution context.
- Returns:
- A java.util.Collection of IPluginobjects.
- Throws:
- SiteModuleException- The default module exception.
 
- 
getPluginspublic Collection<IPlugin> getPlugins(IContext context, ISite site, boolean recursive) throws SiteModuleException - Specified by:
- getPluginsin interface- IBaseSiteModule
- Throws:
- SiteModuleException
 
- 
getBlockTemplateContainerByURIpublic IBlockTemplateContainer getBlockTemplateContainerByURI(IContext context, String uri) throws SiteModuleException - Specified by:
- getBlockTemplateContainerByURIin interface- IBaseSiteModule
- Throws:
- SiteModuleException
 
- 
getSystemBlockTemplateContainerpublic IBlockTemplateContainer getSystemBlockTemplateContainer(IContext context, String name) throws SiteModuleException - Specified by:
- getSystemBlockTemplateContainerin interface- IBaseSiteModule
- Throws:
- SiteModuleException
 
- 
getBlockTemplateContainerspublic Collection<IBlockTemplateContainer> getBlockTemplateContainers(IContext context, ISite site, int type) throws SiteModuleException Description copied from interface:IBaseSiteModuleGets all the templates.- Specified by:
- getBlockTemplateContainersin interface- IBaseSiteModule
- Parameters:
- context- The execution context.
- type-
- Returns:
- A java.util.Collection of IBlockTemplateContainerobjects.
- Throws:
- SiteModuleException
 
- 
getBlockTemplateContainerspublic Collection<IBlockTemplateContainer> getBlockTemplateContainers(IContext context, ISite site) throws SiteModuleException - Specified by:
- getBlockTemplateContainersin interface- IBaseSiteModule
- Throws:
- SiteModuleException
 
- 
createPageContainerpublic IPageContainer createPageContainer(IContext context, ISite site, String name, String label) throws SiteModuleException Description copied from interface:IBaseSiteModuleCreates aIPageContainerobject at the root level of aISiteobject.- Specified by:
- createPageContainerin interface- IBaseSiteModule
- Parameters:
- context- The execution context.
- site- The- ISiteobject.
- name- The name of the page.
- label- The label of the page.
- Returns:
- A IPageContainerobject.
- Throws:
- SiteModuleException- The default module exception.
 
- 
createPageContainerpublic IPageContainer createPageContainer(IContext context, ISite site, IBlockTemplateContainer templateContainer, String name, String label) throws SiteModuleException Description copied from interface:IBaseSiteModuleCreates aIPageContainerobject at the root level of aISiteobject. This method allows to base the draftIContentof theIPageContainerto a block template container.- Specified by:
- createPageContainerin interface- IBaseSiteModule
- Parameters:
- context- The execution context.
- site- The- ISiteobject.
- templateContainer- The block template container.
- name- The name of the page.
- label- The label of the page.
- Returns:
- A IPageContainerobject.
- Throws:
- SiteModuleException- The default module exception.
 
- 
createPageContainerpublic IPageContainer createPageContainer(IContext context, ITopic topic, String name, String label) throws SiteModuleException Description copied from interface:IBaseSiteModuleCreates aIPageContainerobject into aITopicobject.- Specified by:
- createPageContainerin interface- IBaseSiteModule
- Parameters:
- context- The execution context.
- topic- The- ITopicobject.
- name- The name of the page.
- label- The label of the page.
- Returns:
- A IPageContainerobject.
- Throws:
- SiteModuleException- The default module exception.
 
- 
createPageContainerpublic IPageContainer createPageContainer(IContext context, ITopic topic, IBlockTemplateContainer templateContainer, String name, String label) throws SiteModuleException Description copied from interface:IBaseSiteModuleCreates aIPageContainerobject into aITopicobject.- Specified by:
- createPageContainerin interface- IBaseSiteModule
- Parameters:
- context- The execution context.
- topic- The- ITopicobject.
- templateContainer- The block template container.
- name- The name of the page.
- label- The label of the page.
- Returns:
- A IPageContainerobject.
- Throws:
- SiteModuleException- SiteModuleException The default module exception.
 
- 
getPageContainerpublic IPageContainer getPageContainer(IContext context, ISite site, String name) throws SiteModuleException Description copied from interface:IBaseSiteModuleGets a rootIPageContainerobject by its name.- Specified by:
- getPageContainerin interface- IBaseSiteModule
- Parameters:
- context- The execution context.
- site- The- ISiteobject.
- name- The system name of the topic.
- Returns:
- A IPageContainerobject.
- Throws:
- SiteModuleException- The default module exception.
 
- 
getPageContainerpublic IPageContainer getPageContainer(IContext context, ITopic topic, String name) throws SiteModuleException Description copied from interface:IBaseSiteModuleGets aIPageContainerobject from aITopicobject by its name.- Specified by:
- getPageContainerin interface- IBaseSiteModule
- Parameters:
- context- The execution context.
- topic- The- ITopicobject.
- name- The system name of the topic.
- Returns:
- A IPageContainerobject.
- Throws:
- SiteModuleException- The default module exception.
 
- 
getPageContainerspublic Collection<IPageContainer> getPageContainers(IContext context, ISite site) throws SiteModuleException Description copied from interface:IBaseSiteModuleGets all the pages from a site at a root level.- Specified by:
- getPageContainersin interface- IBaseSiteModule
- Parameters:
- context- The execution context.
- site- The- ISiteobject.
- Returns:
- A java.util.Collection of ITopicobjects.
- Throws:
- SiteModuleException- The default module exception.
 
- 
getPageContainerspublic Collection<IPageContainer> getPageContainers(IContext context, ITopic parent) throws SiteModuleException Description copied from interface:IBaseSiteModuleGets all the pages from theITopicobject.- Specified by:
- getPageContainersin interface- IBaseSiteModule
- Parameters:
- context- The execution context.
- parent- The- ITopicobject.
- Returns:
- A java.util.Collection of ITopicobjects.
- Throws:
- SiteModuleException- The default module exception.
 
- 
getPageContainerspublic Collection<IPageContainer> getPageContainers(IContext context, ISite site, boolean recursive) throws SiteModuleException - Specified by:
- getPageContainersin interface- IBaseSiteModule
- Throws:
- SiteModuleException
 
- 
getPageContainerspublic Collection<IPageContainer> getPageContainers(IContext context, ITopic parent, boolean recursive) throws SiteModuleException - Specified by:
- getPageContainersin interface- IBaseSiteModule
- Throws:
- SiteModuleException
 
- 
createAliaspublic IAlias createAlias(IContext context, ISite site, String name, String label, IProtocolSupport protocolSupport) throws SiteModuleException Description copied from interface:IBaseSiteModuleCreates anIAliasobject at the root level of a site.- Specified by:
- createAliasin interface- IBaseSiteModule
- Parameters:
- context- The execution context.
- site- The- ISiteobject.
- name- The name of the alias.
- label- The label of the alias.
- protocolSupport- The- IProtocolSupportobject to point to.
- Returns:
- A IAliasobject.
- Throws:
- SiteModuleException- The default module exception.
 
- 
createAliaspublic IAlias createAlias(IContext context, ITopic topic, String name, String label, IProtocolSupport protocolSupport) throws SiteModuleException Description copied from interface:IBaseSiteModule- Specified by:
- createAliasin interface- IBaseSiteModule
- Parameters:
- context- The execution context.
- topic- The- ITopicobject.
- name- The name of the alias.
- label- The label of the alias.
- protocolSupport- The- IProtocolSupportobject to point to.
- Returns:
- A IAliasobject.
- Throws:
- SiteModuleException- The default module exception.
 
- 
getAliasDescription copied from interface:IBaseSiteModuleGets anIAliasobject by its name.- Specified by:
- getAliasin interface- IBaseSiteModule
- Parameters:
- context- The execution context.
- site- The- ISiteobject.
- name- The name of the alias.
- Returns:
- A IAliasobject.
- Throws:
- SiteModuleException- The default module exception.
 
- 
getAliasDescription copied from interface:IBaseSiteModuleGets anIAliasobject by its name.- Specified by:
- getAliasin interface- IBaseSiteModule
- Parameters:
- context- The execution context.
- parent- The- ITopicobject.
- name- The name of the alias.
- Returns:
- A IAliasobject.
- Throws:
- SiteModuleException- The default module exception.
 
- 
getAliasesDescription copied from interface:IBaseSiteModuleGets all the aliases from the root level of theISiteobject.- Specified by:
- getAliasesin interface- IBaseSiteModule
- Parameters:
- context- The execution context.
- site- The- ISiteobject.
- Returns:
- A java.util.Collection of IAliasobject.
- Throws:
- SiteModuleException- The default module exception.
 
- 
getAliasespublic Collection<IAlias> getAliases(IContext context, ISite site, boolean recursive) throws SiteModuleException - Specified by:
- getAliasesin interface- IBaseSiteModule
- Throws:
- SiteModuleException
 
- 
getAliasesDescription copied from interface:IBaseSiteModuleGets all the aliases of aITopicobject.- Specified by:
- getAliasesin interface- IBaseSiteModule
- Parameters:
- context- The execution context.
- parent- The- ITopicobject.
- Returns:
- A java.util.Collection of IAliasobject.
- Throws:
- SiteModuleException- The default module exception.
 
- 
getAliasespublic Collection<IAlias> getAliases(IContext context, ITopic parent, boolean recursive) throws SiteModuleException - Specified by:
- getAliasesin interface- IBaseSiteModule
- Throws:
- SiteModuleException
 
- 
getContentContainerpublic IContentContainer getContentContainer(IContext context, ISite site, String name) throws SiteModuleException - Specified by:
- getContentContainerin interface- IBaseSiteModule
- Throws:
- SiteModuleException
 
- 
getContentContainerpublic IContentContainer getContentContainer(IContext context, ITopic parent, String name) throws SiteModuleException - Specified by:
- getContentContainerin interface- IBaseSiteModule
- Throws:
- SiteModuleException
 
- 
getContentContainerspublic Collection<IContentContainer> getContentContainers(IContext context, ISite site) throws SiteModuleException - Specified by:
- getContentContainersin interface- IBaseSiteModule
- Throws:
- SiteModuleException
 
- 
getContentContainerspublic Collection<IContentContainer> getContentContainers(IContext context, ISite site, boolean recursive) throws SiteModuleException - Specified by:
- getContentContainersin interface- IBaseSiteModule
- Throws:
- SiteModuleException
 
- 
getContentContainerspublic Collection<IContentContainer> getContentContainers(IContext context, ITopic parent) throws SiteModuleException - Specified by:
- getContentContainersin interface- IBaseSiteModule
- Throws:
- SiteModuleException
 
- 
getContentContainerspublic Collection<IContentContainer> getContentContainers(IContext context, ITopic parent, boolean recursive) throws SiteModuleException - Specified by:
- getContentContainersin interface- IBaseSiteModule
- Throws:
- SiteModuleException
 
- 
createProtocolSupportDescription copied from interface:IBaseSiteModuleCreates a genericIProtocolSupportobject from an URL.- Specified by:
- createProtocolSupportin interface- IBaseSiteModule
- Parameters:
- freeURL- The free URL.
- Returns:
- A IProtocolSupportobject.
- Throws:
- SiteModuleException- The default module exception.
 
- 
createContentpublic IContent createContent(IContext context, IContentContainer contentContainer) throws SiteModuleException - Specified by:
- createContentin interface- IBaseSiteModule
- Throws:
- SiteModuleException
 
- 
createContentpublic IContent createContent(IContext context, IContentContainer contentContainer, IBlockTemplateContainer templateContainer) throws SiteModuleException - Specified by:
- createContentin interface- IBaseSiteModule
- Throws:
- SiteModuleException
 
- 
getContentByStatuspublic IContent getContentByStatus(IContentContainer contentContainer, int status) throws SiteModuleException Description copied from interface:IBaseSiteModuleGets a content of a container by its status.- Specified by:
- getContentByStatusin interface- IBaseSiteModule
- Parameters:
- contentContainer- The content container object.
- status- The value of the status which could be one of the- IContent.IStatusstructure.
- Returns:
- A IContentobject.
- Throws:
- SiteModuleException
 
- 
getContentspublic Collection<IContent> getContents(IContentContainer contentContainer) throws SiteModuleException - Specified by:
- getContentsin interface- IBaseSiteModule
- Throws:
- SiteModuleException
 
- 
requestApprovalpublic void requestApproval(IContext context, IContentContainer contentContainer, String comment) throws SiteModuleException Description copied from interface:IBaseSiteModuleRequests an approval of the content.- Specified by:
- requestApprovalin interface- IBaseSiteModule
- Parameters:
- context- The execution context.
- contentContainer- The- IContentContainerobject to approve.
- comment- The comment why rejecting the approval.
- Throws:
- SiteModuleException- The default module exception.
 
- 
approvepublic void approve(IContext context, IContentContainer contentContainer) throws SiteModuleException Description copied from interface:IBaseSiteModuleApproves a content.- Specified by:
- approvein interface- IBaseSiteModule
- Parameters:
- context- The execution context.
- contentContainer- The- IContentContainerobject.
- Throws:
- SiteModuleException- The default module exception.
 
- 
approveDescription copied from interface:IBaseSiteModuleApproves all contents in a topic.- Specified by:
- approvein interface- IBaseSiteModule
- Parameters:
- context- The execution context.
- topic- The- ITopicobject.
- Throws:
- SiteModuleException- The default module exception.
 
- 
approveDescription copied from interface:IBaseSiteModuleApproves all contents in a site.- Specified by:
- approvein interface- IBaseSiteModule
- Parameters:
- context- The execution context.
- site- The- ISiteobject.
- Throws:
- SiteModuleException- The default module exception.
 
- 
rejectpublic void reject(IContext context, IContentContainer contentContainer, String comment) throws SiteModuleException Description copied from interface:IBaseSiteModuleRejects an approval request.- Specified by:
- rejectin interface- IBaseSiteModule
- Parameters:
- context- The execution context.
- contentContainer- The- IContentContainerobject to reject.
- comment- The comment why rejecting the approval.
- Throws:
- SiteModuleException- The default module exception.
 
- 
createBlock- Specified by:
- createBlockin interface- IBaseSiteModule
- Throws:
- SiteModuleException
 
- 
createComponent- Specified by:
- createComponentin interface- IBaseSiteModule
- Throws:
- SiteModuleException
 
- 
getSecurityControllerpublic ISecurityController getSecurityController(ISecuritySupport securitySupport) throws SiteModuleException Description copied from interface:IBaseSiteModuleGets a security controller on a specified object.- Specified by:
- getSecurityControllerin interface- IBaseSiteModule
- Parameters:
- securitySupport- Any IElement that implements ISecuritySupport interface.
- Returns:
- The ISecurityControllerobject.
- Throws:
- SiteModuleException- The default module exception.
 
- 
getMessageController- Specified by:
- getMessageControllerin interface- IBaseSiteModule
- Throws:
- SiteModuleException
 
- 
getSiteACCESSORS- Specified by:
- getSitein interface- IBaseSiteModule
- Parameters:
- siteObject- The object to transform.
- Returns:
- A ISiteobject.
 
- 
getTopicDescription copied from interface:IBaseSiteModuleAccess method to get aITopicobject from one of the followings: FolderImpl, java.io.Serializable.- Specified by:
- getTopicin interface- IBaseSiteModule
- Parameters:
- topicObject- The object to transform.
- Returns:
- A ITopicobject.
 
- 
getAliasDescription copied from interface:IBaseSiteModuleAccess method to get aIAliasobject from one of the followings: AliasImpl, java.io.Serializable.- Specified by:
- getAliasin interface- IBaseSiteModule
- Returns:
- A IAliasobject.
 
- 
getPluginDescription copied from interface:IBaseSiteModuleAccess method to get aIPluginobject from one of the followings: ModuleImpl, java.io.Serializable.- Specified by:
- getPluginin interface- IBaseSiteModule
- Parameters:
- pluginObject- The object to transform.
- Returns:
- A IPluginobject.
 
- 
getContentContainerDescription copied from interface:IBaseSiteModuleAccess method to get aIContentContainerobject from one of the followings: PageImpl, CommonBlockImpl, TemplateImpl, java.io.Serializable.- Specified by:
- getContentContainerin interface- IBaseSiteModule
- Parameters:
- contentContainerObject- The object to transform.
- Returns:
- A IContentContainerobject.
 
- 
getContentDescription copied from interface:IBaseSiteModuleAccess method to get aIContentobject from one of the followings: ContentVersionImpl, java.io.Serializable.- Specified by:
- getContentin interface- IBaseSiteModule
- Parameters:
- contentObject- The object to transform.
- Returns:
- A IContentobject.
 
- 
getContentComponentDescription copied from interface:IBaseSiteModuleAccess method to get aIContentComponentobject from one of the followings: ContentNodeImpl.- Specified by:
- getContentComponentin interface- IBaseSiteModule
- Returns:
- A IContentComponentobject.
 
- 
getBlockDescription copied from interface:IBaseSiteModuleAccess method to get aIBlockobject from one of the followings: BlockImpl, java.io.Serializable.- Specified by:
- getBlockin interface- IBaseSiteModule
- Returns:
- A IBlockobject.
 
- 
getComponentDescription copied from interface:IBaseSiteModuleAccess method to get aIComponentobject from one of the followings: ElementImpl.- Specified by:
- getComponentin interface- IBaseSiteModule
- Returns:
- A IComponentobject.
 
- 
getBlockTemplateContainerDescription copied from interface:IBaseSiteModuleAccess method to get aIBlockTemplateContainerobject from one of the followings: TemplateImpl, java.io.Serializable.- Specified by:
- getBlockTemplateContainerin interface- IBaseSiteModule
- Returns:
- A IBlockTemplateContainerobject.
 
- 
getPageContainerDescription copied from interface:IBaseSiteModuleAccess method to get aIPageContainerobject from one of the followings: PageImpl, java.io.Serializable.- Specified by:
- getPageContainerin interface- IBaseSiteModule
- Returns:
- A IPageContainerobject.
 
- 
getTargetGet target- Parameters:
- alias- the alias
- Returns:
- the target
- Throws:
- SiteModuleException- on error
 
- 
saveSAVE METHODS- Specified by:
- savein interface- IBaseSiteModule
- Parameters:
- context- The execution context.
- Throws:
- SiteModuleException- The default module exception.
 
- 
deleteSitepublic void deleteSite(IContext context, ISite site, boolean deleteLinkedLibrary) throws SiteModuleException Delete site- Parameters:
- context- the current context
- site- the site
- deleteLinkedLibrary- true to delete linked libraries
- Throws:
- SiteModuleException- on error
 
- 
deleteSite- Throws:
- Exception
 
- 
deleteDescription copied from interface:IBaseSiteModuleDeletes an element.- Specified by:
- deletein interface- IBaseSiteModule
- Parameters:
- context- The execution context.
- Throws:
- SiteModuleException- The default module exception.
 
- 
getElementByURIDescription copied from interface:IBaseSiteModuleGets anIElementby its URI.- Specified by:
- getElementByURIin interface- IBaseSiteModule
- Parameters:
- context- The execution context.
- uri- The URI as a java.lang.String.
- Returns:
- A IElementobject.
- Throws:
- ModuleException- default module exception.
 
- 
getElementByProtocolURIDescription copied from interface:IBaseSiteModuleGets anIElementobject which implementsIProtocolSupportinterface.- Specified by:
- getElementByProtocolURIin interface- IBaseSiteModule
- Parameters:
- protocolURI- The protocol URI as a java.lang.String.
- Returns:
- A IProtocolSupportobject.
- Throws:
- ModuleException- default module exception.
 
- 
findObjectUriFind object URI- Parameters:
- pluginName- the plugin name
- o- the object
- Returns:
- the URI
- Throws:
- ModuleException- on error
 
- 
getExecutionContextDescription copied from interface:IBaseSiteModuleGets the specific execution context of the current module.- Specified by:
- getExecutionContextin interface- IBaseSiteModule
- Returns:
- the executionContext
 
- 
setExecutionContext- Parameters:
- executionContext- the executionContext to set
 
- 
getFormsComponentsFactorypublic com.axemble.vdoc.sdk.interfaces.ui.components.IComponentsFactory getFormsComponentsFactory()- Specified by:
- getFormsComponentsFactoryin interface- IBaseSiteModule
 
- 
getFormsDefinitionsFactorypublic com.axemble.vdoc.sdk.interfaces.ui.definitions.IDefinitionsFactory getFormsDefinitionsFactory()- Specified by:
- getFormsDefinitionsFactoryin interface- IBaseSiteModule
 
- 
getBlocksFactorypublic com.axemble.sdk.blocks.BlocksFactory getBlocksFactory()- Specified by:
- getBlocksFactoryin interface- ISiteModule
- Returns:
- the blocks factory
 
- 
getComponentsFactorypublic com.axemble.sdk.components.ComponentsFactory getComponentsFactory()- Specified by:
- getComponentsFactoryin interface- ISiteModule
- Returns:
- the components factory
 
- 
generateSystemNameDescription copied from interface:IModuleGenerate a valid system name for this module and this label.- Specified by:
- generateSystemNamein interface- IModule
- Overrides:
- generateSystemNamein class- PortalModule
- Parameters:
- label- label to normalize
- Returns:
- normalized value
 
 
-