public interface IBaseSiteModule extends IModule
Code sample :
// creation of a site module object
IBaseSiteModule siteModule = Modules.getSiteModule();
try
{
}
finally
{
// release the module
Modules.releaseModule( siteModule );
}
| Modifier and Type | Method and Description |
|---|---|
void |
approve(IContext context,
IContentContainer contentContainer)
Approves a content.
|
void |
approve(IContext context,
ISite site)
Approves all contents in a site.
|
void |
approve(IContext context,
ITopic topic)
Approves all contents in a topic.
|
void |
copyPageContainerInTopic(IContext context,
IPageContainer pageContainer,
ITopic topic)
Copy a page in a topic
|
IAlias |
createAlias(IContext context,
ISite site,
String name,
String label,
IProtocolSupport protocolSupport)
Creates an
IAlias object at the root level of a site. |
IAlias |
createAlias(IContext context,
ITopic topic,
String name,
String label,
IProtocolSupport protocolSupport)
|
IBlock |
createBlock(IContext context) |
IComponent |
createComponent(IContext context,
String name) |
IContent |
createContent(IContext context,
IContentContainer contentContainer) |
IContent |
createContent(IContext context,
IContentContainer contentContainer,
IBlockTemplateContainer templateContainer) |
IPageContainer |
createPageContainer(IContext context,
ISite site,
IBlockTemplateContainer templateContainer,
String name,
String label)
Creates a
IPageContainer object at the root level of a ISite object. |
IPageContainer |
createPageContainer(IContext context,
ISite site,
String name,
String label)
Creates a
IPageContainer object at the root level of a ISite object. |
IPageContainer |
createPageContainer(IContext context,
ITopic topic,
IBlockTemplateContainer templateContainer,
String name,
String label)
Creates a
IPageContainer object into a ITopic object. |
IPageContainer |
createPageContainer(IContext context,
ITopic topic,
String name,
String label)
Creates a
IPageContainer object into a ITopic object. |
void |
createPlugin(IContext context,
String parentUri,
PluginConfigurationBean pluginConfigurationBean)
Create a plugin in a topic
|
IProtocolSupport |
createProtocolSupport(String freeURL)
Creates a generic
IProtocolSupport object from an URL. |
ISite |
createSite(IContext context,
ILibrary library,
String name)
Creates a new site and associates it to a
ILibrary (same organization). |
ISite |
createSite(IContext context,
IOrganization organization,
String name)
Creates a new site into an
IOrganization object. |
ITopic |
createTopic(IContext context,
ISite site,
String name,
String label)
Creates a
ITopic object a the root level. |
ITopic |
createTopic(IContext context,
ITopic parent,
String name,
String label)
Creates a sub
ITopic object. |
void |
delete(IContext context,
IElement element)
Deletes an element.
|
IAlias |
getAlias(IContext context,
ISite site,
String name)
Gets an
IAlias object by its name. |
IAlias |
getAlias(IContext context,
ITopic parent,
String name)
Gets an
IAlias object by its name. |
IAlias |
getAlias(Object aliasObject)
Access method to get a
IAlias object from one of the followings: AliasImpl, java.io.Serializable. |
Collection<IAlias> |
getAliases(IContext context,
ISite site)
Gets all the aliases from the root level of the
ISite object. |
Collection<IAlias> |
getAliases(IContext context,
ISite site,
boolean recursive) |
Collection<IAlias> |
getAliases(IContext context,
ITopic parent)
Gets all the aliases of a
ITopic object. |
Collection<IAlias> |
getAliases(IContext context,
ITopic parent,
boolean recursive) |
IBlock |
getBlock(Object blockObject)
Access method to get a
IBlock object from one of the followings: BlockImpl, java.io.Serializable. |
IBlockTemplateContainer |
getBlockTemplateContainer(Object blockTemplateContainerObject)
Access method to get a
IBlockTemplateContainer object from one of the followings: TemplateImpl, java.io.Serializable. |
IBlockTemplateContainer |
getBlockTemplateContainerByURI(IContext context,
String uri) |
Collection<IBlockTemplateContainer> |
getBlockTemplateContainers(IContext context,
ISite site) |
Collection<IBlockTemplateContainer> |
getBlockTemplateContainers(IContext context,
ISite site,
int type)
Gets all the templates.
|
ICatalog |
getCatalog(IContext context,
ISite site)
Retrieves the catalog of the site.
|
IComponent |
getComponent(Object componentObject)
Access method to get a
IComponent object from one of the followings: ElementImpl. |
IContent |
getContent(Object contentObject)
Access method to get a
IContent object from one of the followings: ContentVersionImpl, java.io.Serializable. |
IContent |
getContentByStatus(IContentContainer contentContainer,
int status)
Gets a content of a container by its status.
|
IContentComponent |
getContentComponent(Object contentComponentObject)
Access method to get a
IContentComponent object from one of the followings: ContentNodeImpl. |
IContentContainer |
getContentContainer(IContext context,
ISite site,
String name) |
IContentContainer |
getContentContainer(IContext context,
ITopic parent,
String name) |
IContentContainer |
getContentContainer(Object contentContainerObject)
Access method to get a
IContentContainer object from one of the followings: PageImpl, CommonBlockImpl, TemplateImpl, java.io.Serializable. |
Collection<IContentContainer> |
getContentContainers(IContext context,
ISite site) |
Collection<IContentContainer> |
getContentContainers(IContext context,
ISite site,
boolean recursive) |
Collection<IContentContainer> |
getContentContainers(IContext context,
ITopic parent) |
Collection<IContentContainer> |
getContentContainers(IContext context,
ITopic parent,
boolean recursive) |
Collection<IContent> |
getContents(IContentContainer contentContainer) |
IProtocolSupport |
getElementByProtocolURI(String protocolURI)
Gets an
IElement object which implements IProtocolSupport interface. |
IElement |
getElementByURI(IContext context,
String uri)
Gets an
IElement by its URI. |
ISiteExecutionContext |
getExecutionContext()
Gets the specific execution context of the current module.
|
com.axemble.vdoc.sdk.interfaces.ui.components.IComponentsFactory |
getFormsComponentsFactory()
Deprecated.
do not use
|
com.axemble.vdoc.sdk.interfaces.ui.definitions.IDefinitionsFactory |
getFormsDefinitionsFactory()
Deprecated.
do not use
|
IMessageController |
getMessageController() |
IPageContainer |
getPageContainer(IContext context,
ISite site,
String name)
Gets a root
IPageContainer object by its name. |
IPageContainer |
getPageContainer(IContext context,
ITopic topic,
String name)
Gets a
IPageContainer object from a ITopic object by its name. |
IPageContainer |
getPageContainer(Object pageContainerObject)
Access method to get a
IPageContainer object from one of the followings: PageImpl, java.io.Serializable. |
Collection<IPageContainer> |
getPageContainers(IContext context,
ISite site)
Gets all the pages from a site at a root level.
|
Collection<IPageContainer> |
getPageContainers(IContext context,
ISite site,
boolean recursive) |
Collection<IPageContainer> |
getPageContainers(IContext context,
ITopic parent)
Gets all the pages from the
ITopic object. |
Collection<IPageContainer> |
getPageContainers(IContext context,
ITopic parent,
boolean recursive) |
IPlugin |
getPlugin(Object pluginObject)
Access method to get a
IPlugin object from one of the followings: ModuleImpl, java.io.Serializable. |
Collection<IPlugin> |
getPlugins(IContext context,
ISite site)
Gets all the plugins from a site at root level.
|
Collection<IPlugin> |
getPlugins(IContext context,
ISite site,
boolean recursive) |
IResourceDefinition |
getResourceDefinition(IContext context,
IPageContainer pageContainer,
String dataFormName) |
ISecurityController |
getSecurityController(ISecuritySupport securitySupport)
Gets a security controller on a specified object.
|
ISharedBlockContainer |
getSharedBlockContainer(Object sharedBlockContainerObject)
Access method to get a
ISharedBlockContainer object from one of the followings: CommonBlockImpl, java.io.Serializable. |
ISite |
getSite(Object siteObject)
Access method to get a
ISite object from one of the followings: SiteImpl, java.io.Serializable. |
ISite |
getSiteByName(IContext context,
String name)
Retrieves a site by its name.
|
IBlockTemplateContainer |
getSystemBlockTemplateContainer(IContext context,
String name) |
ITopic |
getTopic(IContext context,
ISite site,
String name)
Gets a root
ITopic object by its name. |
ITopic |
getTopic(IContext context,
ITopic parent,
String name)
Gets a
ITopic object by its name. |
ITopic |
getTopic(Object topicObject)
Access method to get a
ITopic object from one of the followings: FolderImpl, java.io.Serializable. |
Collection<ITopic> |
getTopics(IContext context,
ISite site)
Gets all the topics from a site at a root level.
|
Collection<ITopic> |
getTopics(IContext context,
ISite site,
boolean recursive) |
Collection<ITopic> |
getTopics(IContext context,
ITopic parent)
Gets all the sub-topics from a parent
ITopic object. |
Collection<ITopic> |
getTopics(IContext context,
ITopic parent,
boolean recursive) |
IView |
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 |
save(IContext context,
IElement element)
Saves or updates an element.
|
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, unInitializeISite createSite(IContext context, IOrganization organization, String name) throws SiteModuleException
IOrganization object.context - The execution context.organization - The IOrganization object.name - The name of the site.ISite object.SiteModuleException - The default module exception.ISite createSite(IContext context, ILibrary library, String name) throws SiteModuleException
ILibrary (same organization).context - The execution context.library - The ILibrary object.name - The name of the site.ISite object.SiteModuleException - The default module exception.ISite getSiteByName(IContext context, String name) throws SiteModuleException
context - The execution context.name - The name of the site.ISite object.SiteModuleException - The default module exception.ICatalog getCatalog(IContext context, ISite site) throws SiteModuleException
context - The execution context.site - The ISite object.ICatalog object.SiteModuleException - The default module exception.IResourceDefinition getResourceDefinition(IContext context, IPageContainer pageContainer, String dataFormName) throws SiteModuleException
SiteModuleExceptionIView getView(IContext context, IResourceDefinition resourceDefinition, String viewName) throws SiteModuleException
SiteModuleExceptionvoid copyPageContainerInTopic(IContext context, IPageContainer pageContainer, ITopic topic) throws SiteModuleException
context - The execution context.pageContainer - The page to copytopic - The topic destinationSiteModuleExceptionITopic createTopic(IContext context, ISite site, String name, String label) throws SiteModuleException
ITopic object a the root level.context - The execution context.site - The ISite object.name - The name of the topic.label - The label of the topic.ITopic object.SiteModuleException - The default module exception.ITopic createTopic(IContext context, ITopic parent, String name, String label) throws SiteModuleException
ITopic object.context - The execution context.parent - The parent ITopic object.name - The name of the topic.label - The label of the topic.ITopic object.SiteModuleException - The default module exception.void createPlugin(IContext context, String parentUri, PluginConfigurationBean pluginConfigurationBean) throws SiteModuleException
context - The execution contextparentUri - pluginConfigurationBean - SiteModuleExceptionITopic getTopic(IContext context, ISite site, String name) throws SiteModuleException
ITopic object by its name.context - The execution context.site - The ISite object.name - The system name of the topic.ITopic object.SiteModuleException - The default module exception.ITopic getTopic(IContext context, ITopic parent, String name) throws SiteModuleException
ITopic object by its name.context - The execution context.parent - The ITopic object.name - The system name of the topic.ITopic object.SiteModuleException - The default module exception.Collection<ITopic> getTopics(IContext context, ISite site) throws SiteModuleException
context - The execution context.site - The ISite object.ITopic objects.SiteModuleException - The default module exception.Collection<ITopic> getTopics(IContext context, ISite site, boolean recursive) throws SiteModuleException
SiteModuleExceptionCollection<ITopic> getTopics(IContext context, ITopic parent) throws SiteModuleException
ITopic object.context - The execution context.parent - The ITopic object.ITopic objects.SiteModuleException - The default module exception.Collection<ITopic> getTopics(IContext context, ITopic parent, boolean recursive) throws SiteModuleException
SiteModuleExceptionCollection<IPlugin> getPlugins(IContext context, ISite site) throws SiteModuleException
context - The execution context.parent - The ITopic object.IPlugin objects.SiteModuleException - The default module exception.Collection<IPlugin> getPlugins(IContext context, ISite site, boolean recursive) throws SiteModuleException
SiteModuleExceptionIBlockTemplateContainer getBlockTemplateContainerByURI(IContext context, String uri) throws SiteModuleException
SiteModuleExceptionIBlockTemplateContainer getSystemBlockTemplateContainer(IContext context, String name) throws SiteModuleException
SiteModuleExceptionCollection<IBlockTemplateContainer> getBlockTemplateContainers(IContext context, ISite site, int type) throws SiteModuleException
context - The execution context.type - IBlockTemplateContainer objects.SiteModuleExceptionCollection<IBlockTemplateContainer> getBlockTemplateContainers(IContext context, ISite site) throws SiteModuleException
SiteModuleExceptionIPageContainer createPageContainer(IContext context, ISite site, String name, String label) throws SiteModuleException
IPageContainer object at the root level of a ISite object.context - The execution context.site - The ISite object.name - The name of the page.label - The label of the page.IPageContainer object.SiteModuleException - The default module exception.IPageContainer createPageContainer(IContext context, ISite site, IBlockTemplateContainer templateContainer, String name, String label) throws SiteModuleException
IPageContainer object at the root level of a ISite object.
This method allows to base the draft IContent of the IPageContainer to a block template container.context - The execution context.site - The ISite object.templateContainer - The block template container.name - The name of the page.label - The label of the page.IPageContainer object.SiteModuleException - The default module exception.IPageContainer createPageContainer(IContext context, ITopic topic, String name, String label) throws SiteModuleException
IPageContainer object into a ITopic object.context - The execution context.topic - The ITopic object.name - The name of the page.label - The label of the page.IPageContainer object.SiteModuleException - The default module exception.IPageContainer createPageContainer(IContext context, ITopic topic, IBlockTemplateContainer templateContainer, String name, String label) throws SiteModuleException
IPageContainer object into a ITopic object.context - The execution context.topic - The ITopic object.templateContainer - The block template container.name - The name of the page.label - The label of the page.IPageContainer object.SiteModuleException - SiteModuleException The default module exception.IPageContainer getPageContainer(IContext context, ISite site, String name) throws SiteModuleException
IPageContainer object by its name.context - The execution context.site - The ISite object.name - The system name of the topic.IPageContainer object.SiteModuleException - The default module exception.IPageContainer getPageContainer(IContext context, ITopic topic, String name) throws SiteModuleException
IPageContainer object from a ITopic object by its name.context - The execution context.topic - The ITopic object.name - The system name of the topic.IPageContainer object.SiteModuleException - The default module exception.Collection<IPageContainer> getPageContainers(IContext context, ISite site) throws SiteModuleException
context - The execution context.site - The ISite object.ITopic objects.SiteModuleException - The default module exception.Collection<IPageContainer> getPageContainers(IContext context, ISite site, boolean recursive) throws SiteModuleException
SiteModuleExceptionCollection<IPageContainer> getPageContainers(IContext context, ITopic parent) throws SiteModuleException
ITopic object.context - The execution context.parent - The ITopic object.ITopic objects.SiteModuleException - The default module exception.Collection<IPageContainer> getPageContainers(IContext context, ITopic parent, boolean recursive) throws SiteModuleException
SiteModuleExceptionIProtocolSupport createProtocolSupport(String freeURL) throws SiteModuleException
IProtocolSupport object from an URL.freeURL - The free URL.IProtocolSupport object.SiteModuleException - The default module exception.IAlias createAlias(IContext context, ISite site, String name, String label, IProtocolSupport protocolSupport) throws SiteModuleException
IAlias object at the root level of a site.context - The execution context.site - The ISite object.name - The name of the alias.label - The label of the alias.protocolSupport - The IProtocolSupport object to point to.IAlias object.SiteModuleException - The default module exception.IAlias createAlias(IContext context, ITopic topic, String name, String label, IProtocolSupport protocolSupport) throws SiteModuleException
context - The execution context.topic - The ITopic object.name - The name of the alias.label - The label of the alias.protocolSupport - The IProtocolSupport object to point to.IAlias object.SiteModuleException - The default module exception.IAlias getAlias(IContext context, ISite site, String name) throws SiteModuleException
IAlias object by its name.context - The execution context.site - The ISite object.name - The name of the alias.IAlias object.SiteModuleException - The default module exception.IAlias getAlias(IContext context, ITopic parent, String name) throws SiteModuleException
IAlias object by its name.context - The execution context.parent - The ITopic object.name - The name of the alias.IAlias object.SiteModuleException - The default module exception.Collection<IAlias> getAliases(IContext context, ISite site) throws SiteModuleException
ISite object.context - The execution context.site - The ISite object.IAlias object.SiteModuleException - The default module exception.Collection<IAlias> getAliases(IContext context, ISite site, boolean recursive) throws SiteModuleException
SiteModuleExceptionCollection<IAlias> getAliases(IContext context, ITopic parent) throws SiteModuleException
ITopic object.context - The execution context.parent - The ITopic object.IAlias object.SiteModuleException - The default module exception.Collection<IAlias> getAliases(IContext context, ITopic parent, boolean recursive) throws SiteModuleException
SiteModuleExceptionIContentContainer getContentContainer(IContext context, ISite site, String name) throws SiteModuleException
SiteModuleExceptionIContentContainer getContentContainer(IContext context, ITopic parent, String name) throws SiteModuleException
SiteModuleExceptionCollection<IContentContainer> getContentContainers(IContext context, ISite site) throws SiteModuleException
SiteModuleExceptionCollection<IContentContainer> getContentContainers(IContext context, ISite site, boolean recursive) throws SiteModuleException
SiteModuleExceptionCollection<IContentContainer> getContentContainers(IContext context, ITopic parent) throws SiteModuleException
SiteModuleExceptionCollection<IContentContainer> getContentContainers(IContext context, ITopic parent, boolean recursive) throws SiteModuleException
SiteModuleExceptionIContent createContent(IContext context, IContentContainer contentContainer) throws SiteModuleException
SiteModuleExceptionIContent createContent(IContext context, IContentContainer contentContainer, IBlockTemplateContainer templateContainer) throws SiteModuleException
SiteModuleExceptionvoid requestApproval(IContext context, IContentContainer contentContainer, String comment) throws SiteModuleException
context - The execution context.contentContainer - The IContentContainer object to approve.comment - The comment why rejecting the approval.SiteModuleException - The default module exception.void approve(IContext context, IContentContainer contentContainer) throws SiteModuleException
context - The execution context.contentContainer - The IContentContainer object.SiteModuleException - The default module exception.void approve(IContext context, ITopic topic) throws SiteModuleException
context - The execution context.topic - The ITopic object.SiteModuleException - The default module exception.void approve(IContext context, ISite site) throws SiteModuleException
context - The execution context.site - The ISite object.SiteModuleException - The default module exception.void reject(IContext context, IContentContainer contentContainer, String comment) throws SiteModuleException
context - The execution context.contentContainer - The IContentContainer object to reject.comment - The comment why rejecting the approval.SiteModuleException - The default module exception.IBlock createBlock(IContext context) throws SiteModuleException
SiteModuleExceptionIComponent createComponent(IContext context, String name) throws SiteModuleException
SiteModuleExceptionIContent getContentByStatus(IContentContainer contentContainer, int status) throws SiteModuleException
contentContainer - The content container object.status - The value of the status which could be one of the IContent.IStatus structure.IContent object.SiteModuleExceptionCollection<IContent> getContents(IContentContainer contentContainer) throws SiteModuleException
SiteModuleExceptionvoid save(IContext context, IElement element) throws SiteModuleException
context - The execution context.site - The IElement object to save or update.SiteModuleException - The default module exception.void delete(IContext context, IElement element) throws SiteModuleException
context - The execution context.site - The IElement object to delete.SiteModuleException - The default module exception.ISecurityController getSecurityController(ISecuritySupport securitySupport) throws SiteModuleException
securitySupport - Any IElement that implements ISecuritySupport interface.ISecurityController object.SiteModuleException - The default module exception.IMessageController getMessageController() throws SiteModuleException
SiteModuleExceptionISite getSite(Object siteObject)
ISite object from one of the followings: SiteImpl, java.io.Serializable.siteObject - The object to transform.ISite object.ITopic getTopic(Object topicObject)
ITopic object from one of the followings: FolderImpl, java.io.Serializable.topicObject - The object to transform.ITopic object.IAlias getAlias(Object aliasObject)
IAlias object from one of the followings: AliasImpl, java.io.Serializable.topicObject - The object to transform.IAlias object.IPlugin getPlugin(Object pluginObject)
IPlugin object from one of the followings: ModuleImpl, java.io.Serializable.pluginObject - The object to transform.IPlugin object.IContentContainer getContentContainer(Object contentContainerObject)
IContentContainer object from one of the followings: PageImpl, CommonBlockImpl, TemplateImpl, java.io.Serializable.contentContainerObject - The object to transform.IContentContainer object.IPageContainer getPageContainer(Object pageContainerObject)
IPageContainer object from one of the followings: PageImpl, java.io.Serializable.contentContainerObject - The object to transform.IPageContainer object.ISharedBlockContainer getSharedBlockContainer(Object sharedBlockContainerObject)
ISharedBlockContainer object from one of the followings: CommonBlockImpl, java.io.Serializable.contentContainerObject - The object to transform.ISharedBlockContainer object.IBlockTemplateContainer getBlockTemplateContainer(Object blockTemplateContainerObject)
IBlockTemplateContainer object from one of the followings: TemplateImpl, java.io.Serializable.contentContainerObject - The object to transform.IBlockTemplateContainer object.IContent getContent(Object contentObject)
IContent object from one of the followings: ContentVersionImpl, java.io.Serializable.contentObject - The object to transform.IContent object.IContentComponent getContentComponent(Object contentComponentObject)
IContentComponent object from one of the followings: ContentNodeImpl.contentObject - The object to transform.IContentComponent object.IBlock getBlock(Object blockObject)
IBlock object from one of the followings: BlockImpl, java.io.Serializable.contentObject - The object to transform.IBlock object.IComponent getComponent(Object componentObject)
IComponent object from one of the followings: ElementImpl.contentObject - The object to transform.IComponent object.IProtocolSupport getElementByProtocolURI(String protocolURI) throws ModuleException
IElement object which implements IProtocolSupport interface.protocolURI - The protocol URI as a java.lang.String.IProtocolSupport object.ModuleException - default module exception.IElement getElementByURI(IContext context, String uri) throws ModuleException
IElement by its URI.context - The execution context.uri - The URI as a java.lang.String.IElement object.ModuleException - default module exception.ISiteExecutionContext getExecutionContext()
ISiteExecutionContext object.@Deprecated com.axemble.vdoc.sdk.interfaces.ui.components.IComponentsFactory getFormsComponentsFactory()
@Deprecated com.axemble.vdoc.sdk.interfaces.ui.definitions.IDefinitionsFactory getFormsDefinitionsFactory()
Copyright © 2021 Visiativ Software. All rights reserved.