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 Summary
Modifier and TypeFieldDescriptionprotected com.axemble.vdoc.sdk.impl.PortalDirectoryModule
protected IExecutionContext
static final String
Fields inherited from class com.axemble.vdoc.sdk.impl.PortalModule
currentContext, report
-
Constructor Summary
-
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.Starts a new transaction or use the current one.beginTransaction
(Object currentObject) Starts a new transaction if required.void
Commits the current transaction.void
commitTransaction
(Object currentObject) Commits the current transaction.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.protected void
deleteSite
(IContext context, ISite site) void
deleteSite
(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 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.com.axemble.sdk.blocks.BlocksFactory
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.com.axemble.sdk.components.ComponentsFactory
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
com.axemble.vdoc.sdk.interfaces.ui.definitions.IDefinitionsFactory
protected static Class
getNativeClass
(Class interfaceClass) getPageContainer
(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) javax.jdo.PersistenceManager
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.ACCESSORSgetSiteByName
(IContext context, String name) Retrieves a site by its name.getSystemBlockTemplateContainer
(IContext context, String name) Get targetGets 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
initialize
(Properties properties) Initializes the module.boolean
Checks if there is a current transaction.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
Roll back the current transaction.void
rollbackTransaction
(Object currentObject) Roll back the current transaction.void
SAVE METHODSvoid
setExecutionContext
(IExecutionContext executionContext) void
setTransactionTimeout
(int transactionTimeout) Allows the set the transaction timeout.void
Releases the module.Methods inherited from class com.axemble.vdoc.sdk.impl.PortalModule
convertId, 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, refreshUser
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
convertId, 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
-
directoryModule
protected com.axemble.vdoc.sdk.impl.PortalDirectoryModule directoryModule -
executionContext
-
-
Constructor Details
-
EzsSiteModule
public EzsSiteModule()
-
-
Method Details
-
initialize
Description copied from interface:IModule
Initializes the module.- Specified by:
initialize
in interfaceIModule
- Parameters:
properties
- The custom properties.
-
unInitialize
public void unInitialize()Description copied from interface:IModule
Releases the module.- Specified by:
unInitialize
in interfaceIModule
-
getPersistenceManager
public javax.jdo.PersistenceManager getPersistenceManager()- Specified by:
getPersistenceManager
in classPortalModule
-
beginTransaction
Description copied from interface:IModule
Starts a new transaction or use the current one.- Specified by:
beginTransaction
in interfaceIModule
- Returns:
- The report object.
-
commitTransaction
public void commitTransaction()Description copied from interface:IModule
Commits the current transaction.- Specified by:
commitTransaction
in interfaceIModule
-
rollbackTransaction
public void rollbackTransaction()Description copied from interface:IModule
Roll back the current transaction.- Specified by:
rollbackTransaction
in interfaceIModule
-
beginTransaction
Description copied from interface:IModule
Starts a new transaction if required.- Specified by:
beginTransaction
in interfaceIModule
- Parameters:
currentObject
- The synchronized object. Not used anymore.- Returns:
- The report object.
-
commitTransaction
Description copied from interface:IModule
Commits the current transaction.- Specified by:
commitTransaction
in interfaceIModule
- Parameters:
currentObject
- The synchronized object. Not used anymore.
-
rollbackTransaction
Description copied from interface:IModule
Roll back the current transaction.- Specified by:
rollbackTransaction
in interfaceIModule
- Parameters:
currentObject
- The synchronized object. Not used anymore.
-
setTransactionTimeout
Description copied from interface:IModule
Allows the set the transaction timeout.- Specified by:
setTransactionTimeout
in interfaceIModule
- Parameters:
transactionTimeout
- The transaction timeout in milliseconds.- Throws:
ModuleException
- The default exception.
-
isTransactionActive
public boolean isTransactionActive()Description copied from interface:IModule
Checks if there is a current transaction.- Specified by:
isTransactionActive
in interfaceIModule
- Returns:
- true if a transaction has been started, false otherwise.
-
findNativeClass
Description copied from interface:IModule
Allows to retrieve the inner native class.- Specified by:
findNativeClass
in interfaceIModule
- Parameters:
interfaceClass
- A class type.- Returns:
- The inner native class.
-
getNativeClass
-
getSiteByName
Description copied from interface:IBaseSiteModule
Retrieves a site by its name.- Specified by:
getSiteByName
in interfaceIBaseSiteModule
- Parameters:
context
- The execution context.name
- The name of the site.- Returns:
- A
ISite
object. - Throws:
SiteModuleException
- The default module exception.
-
getCatalog
Description copied from interface:IBaseSiteModule
Retrieves the catalog of the site.- Specified by:
getCatalog
in interfaceIBaseSiteModule
- Parameters:
context
- The execution context.site
- TheISite
object.- Returns:
- A
ICatalog
object. - Throws:
SiteModuleException
- The default module exception.
-
getResourceDefinition
public IResourceDefinition getResourceDefinition(IContext context, IPageContainer pageContainer, String dataFormName) throws SiteModuleException - Specified by:
getResourceDefinition
in interfaceIBaseSiteModule
- Throws:
SiteModuleException
-
getView
public IView getView(IContext context, IResourceDefinition resourceDefinition, String viewName) throws SiteModuleException - Specified by:
getView
in interfaceIBaseSiteModule
- Throws:
SiteModuleException
-
copyPageContainerInTopic
public void copyPageContainerInTopic(IContext context, IPageContainer pageContainer, ITopic topic) throws SiteModuleException Description copied from interface:IBaseSiteModule
Copy a page in a topic- Specified by:
copyPageContainerInTopic
in interfaceIBaseSiteModule
- Parameters:
context
- The execution context.pageContainer
- The page to copytopic
- The topic destination- Throws:
SiteModuleException
-
createSite
public ISite createSite(IContext context, IOrganization organization, String name) throws SiteModuleException Description copied from interface:IBaseSiteModule
Creates a new site into anIOrganization
object.- Specified by:
createSite
in interfaceIBaseSiteModule
- 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
Description copied from interface:IBaseSiteModule
Creates a new site and associates it to aILibrary
(same organization).- Specified by:
createSite
in interfaceIBaseSiteModule
- Parameters:
context
- The execution context.library
- TheILibrary
object.name
- The name of the site.- Returns:
- A
ISite
object. - Throws:
SiteModuleException
- The default module exception.
-
createTopic
public ITopic createTopic(IContext context, ISite site, String name, String label) throws SiteModuleException Description copied from interface:IBaseSiteModule
Creates aITopic
object a the root level.- Specified by:
createTopic
in interfaceIBaseSiteModule
- 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
public ITopic createTopic(IContext context, ITopic parent, String name, String label) throws SiteModuleException Description copied from interface:IBaseSiteModule
Creates a subITopic
object.- Specified by:
createTopic
in interfaceIBaseSiteModule
- 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
public void createPlugin(IContext context, String parentUri, PluginConfigurationBean pluginConfigurationBean) throws SiteModuleException Description copied from interface:IBaseSiteModule
Create a plugin in a topic- Specified by:
createPlugin
in interfaceIBaseSiteModule
- Parameters:
context
- The execution contextparentUri
-pluginConfigurationBean
-- Throws:
SiteModuleException
-
getTopic
Description copied from interface:IBaseSiteModule
Gets a rootITopic
object by its name.- Specified by:
getTopic
in interfaceIBaseSiteModule
- 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
Description copied from interface:IBaseSiteModule
Gets aITopic
object by its name.- Specified by:
getTopic
in interfaceIBaseSiteModule
- 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
Description copied from interface:IBaseSiteModule
Gets all the topics from a site at a root level.- Specified by:
getTopics
in interfaceIBaseSiteModule
- Parameters:
context
- The execution context.site
- TheISite
object.- Returns:
- A java.util.Collection of
ITopic
objects. - Throws:
SiteModuleException
- The default module exception.
-
getTopics
public Collection<ITopic> getTopics(IContext context, ISite site, boolean recursive) throws SiteModuleException - Specified by:
getTopics
in interfaceIBaseSiteModule
- Throws:
SiteModuleException
-
getTopics
Description copied from interface:IBaseSiteModule
Gets all the sub-topics from a parentITopic
object.- Specified by:
getTopics
in interfaceIBaseSiteModule
- Parameters:
context
- The execution context.parent
- TheITopic
object.- Returns:
- A java.util.Collection of
ITopic
objects. - Throws:
SiteModuleException
- The default module exception.
-
getTopics
public Collection<ITopic> getTopics(IContext context, ITopic parent, boolean recursive) throws SiteModuleException - Specified by:
getTopics
in interfaceIBaseSiteModule
- Throws:
SiteModuleException
-
getPlugins
Description copied from interface:IBaseSiteModule
Gets all the plugins from a site at root level.- Specified by:
getPlugins
in interfaceIBaseSiteModule
- Parameters:
context
- The execution context.- Returns:
- A java.util.Collection of
IPlugin
objects. - Throws:
SiteModuleException
- The default module exception.
-
getPlugins
public Collection<IPlugin> getPlugins(IContext context, ISite site, boolean recursive) throws SiteModuleException - Specified by:
getPlugins
in interfaceIBaseSiteModule
- Throws:
SiteModuleException
-
getBlockTemplateContainerByURI
public IBlockTemplateContainer getBlockTemplateContainerByURI(IContext context, String uri) throws SiteModuleException - Specified by:
getBlockTemplateContainerByURI
in interfaceIBaseSiteModule
- Throws:
SiteModuleException
-
getSystemBlockTemplateContainer
public IBlockTemplateContainer getSystemBlockTemplateContainer(IContext context, String name) throws SiteModuleException - Specified by:
getSystemBlockTemplateContainer
in interfaceIBaseSiteModule
- Throws:
SiteModuleException
-
getBlockTemplateContainers
public Collection<IBlockTemplateContainer> getBlockTemplateContainers(IContext context, ISite site, int type) throws SiteModuleException Description copied from interface:IBaseSiteModule
Gets all the templates.- Specified by:
getBlockTemplateContainers
in interfaceIBaseSiteModule
- Parameters:
context
- The execution context.type
-- Returns:
- A java.util.Collection of
IBlockTemplateContainer
objects. - Throws:
SiteModuleException
-
getBlockTemplateContainers
public Collection<IBlockTemplateContainer> getBlockTemplateContainers(IContext context, ISite site) throws SiteModuleException - Specified by:
getBlockTemplateContainers
in interfaceIBaseSiteModule
- Throws:
SiteModuleException
-
createPageContainer
public IPageContainer createPageContainer(IContext context, ISite site, String name, String label) throws SiteModuleException Description copied from interface:IBaseSiteModule
Creates aIPageContainer
object at the root level of aISite
object.- Specified by:
createPageContainer
in interfaceIBaseSiteModule
- 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
public IPageContainer createPageContainer(IContext context, ISite site, IBlockTemplateContainer templateContainer, String name, String label) throws SiteModuleException Description copied from interface:IBaseSiteModule
Creates aIPageContainer
object at the root level of aISite
object. This method allows to base the draftIContent
of theIPageContainer
to a block template container.- Specified by:
createPageContainer
in interfaceIBaseSiteModule
- 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
public IPageContainer createPageContainer(IContext context, ITopic topic, String name, String label) throws SiteModuleException Description copied from interface:IBaseSiteModule
Creates aIPageContainer
object into aITopic
object.- Specified by:
createPageContainer
in interfaceIBaseSiteModule
- 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
public IPageContainer createPageContainer(IContext context, ITopic topic, IBlockTemplateContainer templateContainer, String name, String label) throws SiteModuleException Description copied from interface:IBaseSiteModule
Creates aIPageContainer
object into aITopic
object.- Specified by:
createPageContainer
in interfaceIBaseSiteModule
- 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
public IPageContainer getPageContainer(IContext context, ISite site, String name) throws SiteModuleException Description copied from interface:IBaseSiteModule
Gets a rootIPageContainer
object by its name.- Specified by:
getPageContainer
in interfaceIBaseSiteModule
- 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
public IPageContainer getPageContainer(IContext context, ITopic topic, String name) throws SiteModuleException Description copied from interface:IBaseSiteModule
Gets aIPageContainer
object from aITopic
object by its name.- Specified by:
getPageContainer
in interfaceIBaseSiteModule
- 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
public Collection<IPageContainer> getPageContainers(IContext context, ISite site) throws SiteModuleException Description copied from interface:IBaseSiteModule
Gets all the pages from a site at a root level.- Specified by:
getPageContainers
in interfaceIBaseSiteModule
- Parameters:
context
- The execution context.site
- TheISite
object.- Returns:
- A java.util.Collection of
ITopic
objects. - Throws:
SiteModuleException
- The default module exception.
-
getPageContainers
public Collection<IPageContainer> getPageContainers(IContext context, ITopic parent) throws SiteModuleException Description copied from interface:IBaseSiteModule
Gets all the pages from theITopic
object.- Specified by:
getPageContainers
in interfaceIBaseSiteModule
- Parameters:
context
- The execution context.parent
- TheITopic
object.- Returns:
- A java.util.Collection of
ITopic
objects. - Throws:
SiteModuleException
- The default module exception.
-
getPageContainers
public Collection<IPageContainer> getPageContainers(IContext context, ISite site, boolean recursive) throws SiteModuleException - Specified by:
getPageContainers
in interfaceIBaseSiteModule
- Throws:
SiteModuleException
-
getPageContainers
public Collection<IPageContainer> getPageContainers(IContext context, ITopic parent, boolean recursive) throws SiteModuleException - Specified by:
getPageContainers
in interfaceIBaseSiteModule
- Throws:
SiteModuleException
-
createAlias
public IAlias createAlias(IContext context, ISite site, String name, String label, IProtocolSupport protocolSupport) throws SiteModuleException Description copied from interface:IBaseSiteModule
Creates anIAlias
object at the root level of a site.- Specified by:
createAlias
in interfaceIBaseSiteModule
- 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
public IAlias createAlias(IContext context, ITopic topic, String name, String label, IProtocolSupport protocolSupport) throws SiteModuleException Description copied from interface:IBaseSiteModule
- Specified by:
createAlias
in interfaceIBaseSiteModule
- 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
Description copied from interface:IBaseSiteModule
Gets anIAlias
object by its name.- Specified by:
getAlias
in interfaceIBaseSiteModule
- 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
Description copied from interface:IBaseSiteModule
Gets anIAlias
object by its name.- Specified by:
getAlias
in interfaceIBaseSiteModule
- 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
Description copied from interface:IBaseSiteModule
Gets all the aliases from the root level of theISite
object.- Specified by:
getAliases
in interfaceIBaseSiteModule
- Parameters:
context
- The execution context.site
- TheISite
object.- Returns:
- A java.util.Collection of
IAlias
object. - Throws:
SiteModuleException
- The default module exception.
-
getAliases
public Collection<IAlias> getAliases(IContext context, ISite site, boolean recursive) throws SiteModuleException - Specified by:
getAliases
in interfaceIBaseSiteModule
- Throws:
SiteModuleException
-
getAliases
Description copied from interface:IBaseSiteModule
Gets all the aliases of aITopic
object.- Specified by:
getAliases
in interfaceIBaseSiteModule
- Parameters:
context
- The execution context.parent
- TheITopic
object.- Returns:
- A java.util.Collection of
IAlias
object. - Throws:
SiteModuleException
- The default module exception.
-
getAliases
public Collection<IAlias> getAliases(IContext context, ITopic parent, boolean recursive) throws SiteModuleException - Specified by:
getAliases
in interfaceIBaseSiteModule
- Throws:
SiteModuleException
-
getContentContainer
public IContentContainer getContentContainer(IContext context, ISite site, String name) throws SiteModuleException - Specified by:
getContentContainer
in interfaceIBaseSiteModule
- Throws:
SiteModuleException
-
getContentContainer
public IContentContainer getContentContainer(IContext context, ITopic parent, String name) throws SiteModuleException - Specified by:
getContentContainer
in interfaceIBaseSiteModule
- Throws:
SiteModuleException
-
getContentContainers
public Collection<IContentContainer> getContentContainers(IContext context, ISite site) throws SiteModuleException - Specified by:
getContentContainers
in interfaceIBaseSiteModule
- Throws:
SiteModuleException
-
getContentContainers
public Collection<IContentContainer> getContentContainers(IContext context, ISite site, boolean recursive) throws SiteModuleException - Specified by:
getContentContainers
in interfaceIBaseSiteModule
- Throws:
SiteModuleException
-
getContentContainers
public Collection<IContentContainer> getContentContainers(IContext context, ITopic parent) throws SiteModuleException - Specified by:
getContentContainers
in interfaceIBaseSiteModule
- Throws:
SiteModuleException
-
getContentContainers
public Collection<IContentContainer> getContentContainers(IContext context, ITopic parent, boolean recursive) throws SiteModuleException - Specified by:
getContentContainers
in interfaceIBaseSiteModule
- Throws:
SiteModuleException
-
createProtocolSupport
Description copied from interface:IBaseSiteModule
Creates a genericIProtocolSupport
object from an URL.- Specified by:
createProtocolSupport
in interfaceIBaseSiteModule
- Parameters:
freeURL
- The free URL.- Returns:
- A
IProtocolSupport
object. - Throws:
SiteModuleException
- The default module exception.
-
createContent
public IContent createContent(IContext context, IContentContainer contentContainer) throws SiteModuleException - Specified by:
createContent
in interfaceIBaseSiteModule
- Throws:
SiteModuleException
-
createContent
public IContent createContent(IContext context, IContentContainer contentContainer, IBlockTemplateContainer templateContainer) throws SiteModuleException - Specified by:
createContent
in interfaceIBaseSiteModule
- Throws:
SiteModuleException
-
getContentByStatus
public IContent getContentByStatus(IContentContainer contentContainer, int status) throws SiteModuleException Description copied from interface:IBaseSiteModule
Gets a content of a container by its status.- Specified by:
getContentByStatus
in interfaceIBaseSiteModule
- 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
public Collection<IContent> getContents(IContentContainer contentContainer) throws SiteModuleException - Specified by:
getContents
in interfaceIBaseSiteModule
- Throws:
SiteModuleException
-
requestApproval
public void requestApproval(IContext context, IContentContainer contentContainer, String comment) throws SiteModuleException Description copied from interface:IBaseSiteModule
Requests an approval of the content.- Specified by:
requestApproval
in interfaceIBaseSiteModule
- Parameters:
context
- The execution context.contentContainer
- TheIContentContainer
object to approve.comment
- The comment why rejecting the approval.- Throws:
SiteModuleException
- The default module exception.
-
approve
public void approve(IContext context, IContentContainer contentContainer) throws SiteModuleException Description copied from interface:IBaseSiteModule
Approves a content.- Specified by:
approve
in interfaceIBaseSiteModule
- Parameters:
context
- The execution context.contentContainer
- TheIContentContainer
object.- Throws:
SiteModuleException
- The default module exception.
-
approve
Description copied from interface:IBaseSiteModule
Approves all contents in a topic.- Specified by:
approve
in interfaceIBaseSiteModule
- Parameters:
context
- The execution context.topic
- TheITopic
object.- Throws:
SiteModuleException
- The default module exception.
-
approve
Description copied from interface:IBaseSiteModule
Approves all contents in a site.- Specified by:
approve
in interfaceIBaseSiteModule
- Parameters:
context
- The execution context.site
- TheISite
object.- Throws:
SiteModuleException
- The default module exception.
-
reject
public void reject(IContext context, IContentContainer contentContainer, String comment) throws SiteModuleException Description copied from interface:IBaseSiteModule
Rejects an approval request.- Specified by:
reject
in interfaceIBaseSiteModule
- Parameters:
context
- The execution context.contentContainer
- TheIContentContainer
object to reject.comment
- The comment why rejecting the approval.- Throws:
SiteModuleException
- The default module exception.
-
createBlock
- Specified by:
createBlock
in interfaceIBaseSiteModule
- Throws:
SiteModuleException
-
createComponent
- Specified by:
createComponent
in interfaceIBaseSiteModule
- Throws:
SiteModuleException
-
getSecurityController
public ISecurityController getSecurityController(ISecuritySupport securitySupport) throws SiteModuleException Description copied from interface:IBaseSiteModule
Gets a security controller on a specified object.- Specified by:
getSecurityController
in interfaceIBaseSiteModule
- Parameters:
securitySupport
- Any IElement that implements ISecuritySupport interface.- Returns:
- The
ISecurityController
object. - Throws:
SiteModuleException
- The default module exception.
-
getMessageController
- Specified by:
getMessageController
in interfaceIBaseSiteModule
- Throws:
SiteModuleException
-
getSite
ACCESSORS- Specified by:
getSite
in interfaceIBaseSiteModule
- Parameters:
siteObject
- The object to transform.- Returns:
- A
ISite
object.
-
getTopic
Description copied from interface:IBaseSiteModule
Access method to get aITopic
object from one of the followings: FolderImpl, java.io.Serializable.- Specified by:
getTopic
in interfaceIBaseSiteModule
- Parameters:
topicObject
- The object to transform.- Returns:
- A
ITopic
object.
-
getAlias
Description copied from interface:IBaseSiteModule
Access method to get aIAlias
object from one of the followings: AliasImpl, java.io.Serializable.- Specified by:
getAlias
in interfaceIBaseSiteModule
- Returns:
- A
IAlias
object.
-
getPlugin
Description copied from interface:IBaseSiteModule
Access method to get aIPlugin
object from one of the followings: ModuleImpl, java.io.Serializable.- Specified by:
getPlugin
in interfaceIBaseSiteModule
- Parameters:
pluginObject
- The object to transform.- Returns:
- A
IPlugin
object.
-
getContentContainer
Description copied from interface:IBaseSiteModule
Access method to get aIContentContainer
object from one of the followings: PageImpl, CommonBlockImpl, TemplateImpl, java.io.Serializable.- Specified by:
getContentContainer
in interfaceIBaseSiteModule
- Parameters:
contentContainerObject
- The object to transform.- Returns:
- A
IContentContainer
object.
-
getContent
Description copied from interface:IBaseSiteModule
Access method to get aIContent
object from one of the followings: ContentVersionImpl, java.io.Serializable.- Specified by:
getContent
in interfaceIBaseSiteModule
- Parameters:
contentObject
- The object to transform.- Returns:
- A
IContent
object.
-
getContentComponent
Description copied from interface:IBaseSiteModule
Access method to get aIContentComponent
object from one of the followings: ContentNodeImpl.- Specified by:
getContentComponent
in interfaceIBaseSiteModule
- Returns:
- A
IContentComponent
object.
-
getBlock
Description copied from interface:IBaseSiteModule
Access method to get aIBlock
object from one of the followings: BlockImpl, java.io.Serializable.- Specified by:
getBlock
in interfaceIBaseSiteModule
- Returns:
- A
IBlock
object.
-
getComponent
Description copied from interface:IBaseSiteModule
Access method to get aIComponent
object from one of the followings: ElementImpl.- Specified by:
getComponent
in interfaceIBaseSiteModule
- Returns:
- A
IComponent
object.
-
getBlockTemplateContainer
Description copied from interface:IBaseSiteModule
Access method to get aIBlockTemplateContainer
object from one of the followings: TemplateImpl, java.io.Serializable.- Specified by:
getBlockTemplateContainer
in interfaceIBaseSiteModule
- Returns:
- A
IBlockTemplateContainer
object.
-
getPageContainer
Description copied from interface:IBaseSiteModule
Access method to get aIPageContainer
object from one of the followings: PageImpl, java.io.Serializable.- Specified by:
getPageContainer
in interfaceIBaseSiteModule
- Returns:
- A
IPageContainer
object.
-
getTarget
Get target- Parameters:
alias
- the alias- Returns:
- the target
- Throws:
SiteModuleException
- on error
-
save
SAVE METHODS- Specified by:
save
in interfaceIBaseSiteModule
- Parameters:
context
- The execution context.- Throws:
SiteModuleException
- The default module exception.
-
deleteSite
public void deleteSite(IContext context, ISite site, boolean deleteLinkedLibrary) throws SiteModuleException Delete site- Parameters:
context
- the current contextsite
- the sitedeleteLinkedLibrary
- true to delete linked libraries- Throws:
SiteModuleException
- on error
-
deleteSite
- Throws:
Exception
-
delete
Description copied from interface:IBaseSiteModule
Deletes an element.- Specified by:
delete
in interfaceIBaseSiteModule
- Parameters:
context
- The execution context.- Throws:
SiteModuleException
- The default module exception.
-
getElementByURI
Description copied from interface:IBaseSiteModule
Gets anIElement
by its URI.- Specified by:
getElementByURI
in interfaceIBaseSiteModule
- Parameters:
context
- The execution context.uri
- The URI as a java.lang.String.- Returns:
- A
IElement
object. - Throws:
ModuleException
- default module exception.
-
getElementByProtocolURI
Description copied from interface:IBaseSiteModule
Gets anIElement
object which implementsIProtocolSupport
interface.- Specified by:
getElementByProtocolURI
in interfaceIBaseSiteModule
- Parameters:
protocolURI
- The protocol URI as a java.lang.String.- Returns:
- A
IProtocolSupport
object. - Throws:
ModuleException
- default module exception.
-
findObjectUri
Find object URI- Parameters:
pluginName
- the plugin nameo
- the object- Returns:
- the URI
- Throws:
ModuleException
- on error
-
getExecutionContext
Description copied from interface:IBaseSiteModule
Gets the specific execution context of the current module.- Specified by:
getExecutionContext
in interfaceIBaseSiteModule
- Returns:
- the executionContext
-
setExecutionContext
- Parameters:
executionContext
- the executionContext to set
-
getFormsComponentsFactory
public com.axemble.vdoc.sdk.interfaces.ui.components.IComponentsFactory getFormsComponentsFactory()- Specified by:
getFormsComponentsFactory
in interfaceIBaseSiteModule
-
getFormsDefinitionsFactory
public com.axemble.vdoc.sdk.interfaces.ui.definitions.IDefinitionsFactory getFormsDefinitionsFactory()- Specified by:
getFormsDefinitionsFactory
in interfaceIBaseSiteModule
-
getBlocksFactory
public com.axemble.sdk.blocks.BlocksFactory getBlocksFactory()- Specified by:
getBlocksFactory
in interfaceISiteModule
-
getComponentsFactory
public com.axemble.sdk.components.ComponentsFactory getComponentsFactory()- Specified by:
getComponentsFactory
in interfaceISiteModule
-
generateSystemName
Description copied from interface:IModule
Generate a valid system name for this module and this label.- Specified by:
generateSystemName
in interfaceIModule
- Overrides:
generateSystemName
in classPortalModule
- Parameters:
label
- label to normalize- Returns:
- normalized value
-