public class ContainerImpl extends java.lang.Object implements Container
Title: ContainerImpl
Description:
Copyright: Copyright (c) 2006
Company: bbossgroups
| Modifier and Type | Field and Description |
|---|---|
static int |
LINK_FROM_TEMPLATE |
static int |
LINK_FROM_WEBPRJS |
| Constructor and Description |
|---|
ContainerImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
addLink(java.lang.String link)
添加链接以便系统能够自动发布出去,通过
|
void |
addLink(java.lang.String link,
int from)
添加链接以便系统能够自动发布出去,通过
|
Channel |
getAncestorChannel(Channel current,
int level)
获取频道给定层次的祖先
|
Channel |
getChannel(java.lang.String channelid)
通过频道id获频道信息
|
Channel |
getChannelByDisplayName(java.lang.String channel)
通过频道显示名称获频道信息
|
static java.lang.String |
getChannelUrl(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
java.lang.String siteid,
java.lang.String channelid)
获取频道的访问地址
|
Context |
getContext()
获取当前发布上下文对象
|
Channel |
getContextAncestorChannel(int level)
获取当前频道的给定层次的祖先频道
|
Channel |
getContextChannel()
返回当前发布上下文中的频道对象
|
Document |
getContextDocument()
获取当前发布上下文中的文档对象
|
Channel |
getContextParentChannel()
获取当前频道的父频道
|
Site |
getContextSite()
获取当前上下文中的站点对象
|
static java.lang.String |
getDocumentUrl(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
java.lang.String siteid,
java.lang.String channelid,
java.lang.String documentid)
获取文档的web访问地址
|
Channel |
getParentChannel(java.lang.String channelid)
通过频道id获父频道信息
|
Channel |
getParentChannelByDisplayName(java.lang.String channel)
通过频道显示名称获父频道信息
|
java.lang.String |
getPublishedChannelUrlByDisplayName(java.lang.String channel)
获取频道的路径
|
java.lang.String |
getPublishedChannelUrlByID(Channel channel) |
java.lang.String |
getPublishedChannelUrlByID(java.lang.String channelid)
通过频道id获取频道的发布路径
|
java.lang.String |
getPublishedDocumentAttachUrl(Document document,
java.lang.String attachurl)
通过文档对象或者文档的附件访问地址
|
java.lang.String |
getPublishedDocumentAttachUrlAppendContentFile(Document document,
java.lang.String attachurl)
通过文档对象或者文档的附件访问地址
|
java.lang.String |
getPublishedDocumentUrl(Document document)
通过文档对象或者文档的访问地址
|
java.lang.String |
getPublishedDocumentUrl(java.lang.String documentid)
通过文档id获取文档的发布细览访问地址路径
|
java.lang.String |
getPublishedDocumentUrl(java.lang.String channelid,
java.lang.String documentid)
获取当前发布文档的路径
|
java.lang.String |
getPulishedSiteDomainBySiteID(java.lang.String siteID)
通过站点id获取站点的域名
|
java.lang.String |
getPulishedSiteDomainBySiteName(java.lang.String siteName)
通过站点名称获取站点的域名
|
java.lang.String |
getPulishedSiteIndexUrlBySiteID(java.lang.String siteID)
通过站点id获取站点的首页地址
|
java.lang.String |
getPulishedSiteIndexUrlBySiteName(java.lang.String siteName)
通过站点名称获取站点的首页地址
|
static java.lang.String |
getSiteUrl(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
java.lang.String siteename)
获取站点的web访问地址
|
void |
init(Context context)
通过
|
void |
init(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpSession session,
javax.servlet.http.HttpServletResponse response)
本方法在模板中调用
|
void |
init(java.lang.String site,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpSession session,
javax.servlet.http.HttpServletResponse response)
初始化内容管理系统容器,在动态页面上使用,必须指定站点的英文名称
|
void |
initWithSiteid(java.lang.String siteid,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpSession session,
javax.servlet.http.HttpServletResponse response)
初始化内容管理系统容器,在动态页面上使用,必须指定站点的英文名称
|
public static final int LINK_FROM_WEBPRJS
public static final int LINK_FROM_TEMPLATE
public void initWithSiteid(java.lang.String siteid,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpSession session,
javax.servlet.http.HttpServletResponse response)
throws ContainerException
initWithSiteid in interface Containersite - 站点英文名称request - session - response - ContainerExceptionpublic void init(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpSession session,
javax.servlet.http.HttpServletResponse response)
throws ContainerException
init in interface ContainerContainerExceptionpublic void addLink(java.lang.String link)
throws ContainerException
ContaineraddLink in interface ContainerContainerExceptionpublic Channel getContextChannel() throws ContainerException
ContainergetContextChannel in interface ContainerContainerExceptionpublic Channel getContextParentChannel() throws ContainerException
getContextParentChannel in interface ContainerContainerExceptionpublic Site getContextSite() throws ContainerException
ContainergetContextSite in interface ContainerContainerExceptionpublic Document getContextDocument() throws ContainerException
ContainergetContextDocument in interface ContainerContainerExceptionpublic Context getContext() throws ContainerException
ContainergetContext in interface ContainerContainerExceptionpublic java.lang.String getPublishedDocumentUrl(java.lang.String channelid,
java.lang.String documentid)
throws ContainerException
getPublishedDocumentUrl in interface Containerdocumentid - ContainerExceptionpublic static java.lang.String getSiteUrl(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
java.lang.String siteename)
request - 页面请求对象response - 页面响应对象siteename - 站点英文名称public static java.lang.String getChannelUrl(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
java.lang.String siteid,
java.lang.String channelid)
request - 页面请求对象response - 页面相应对象siteid - 站点idchannelid - 频道idpublic static java.lang.String getDocumentUrl(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
java.lang.String siteid,
java.lang.String channelid,
java.lang.String documentid)
request - 页面请求对象response - 页面相应对象siteid - 站点idchannelid - 频道iddocumentid - 文档idpublic java.lang.String getPublishedChannelUrlByDisplayName(java.lang.String channel)
throws ContainerException
getPublishedChannelUrlByDisplayName in interface Containerchannel - ContainerExceptionpublic Channel getAncestorChannel(Channel current, int level) throws ContainerException
getAncestorChannel in interface Containerchannel - 频道显示名称ContainerExceptionpublic Channel getContextAncestorChannel(int level) throws ContainerException
getContextAncestorChannel in interface Containerchannel - 频道显示名称ContainerExceptionpublic java.lang.String getPublishedChannelUrlByID(java.lang.String channelid)
throws ContainerException
ContainergetPublishedChannelUrlByID in interface ContainerContainerExceptionpublic java.lang.String getPublishedChannelUrlByID(Channel channel) throws ContainerException
getPublishedChannelUrlByID in interface ContainerContainerExceptionpublic void init(java.lang.String site,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpSession session,
javax.servlet.http.HttpServletResponse response)
throws ContainerException
Containerinit in interface Containersite - 站点英文名称ContainerExceptionpublic void init(Context context) throws ContainerException
Containerinit in interface ContainerContainerExceptionpublic java.lang.String getPulishedSiteIndexUrlBySiteName(java.lang.String siteName)
throws ContainerException
getPulishedSiteIndexUrlBySiteName in interface ContainersiteName - ContainerExceptionpublic java.lang.String getPulishedSiteIndexUrlBySiteID(java.lang.String siteID)
throws ContainerException
getPulishedSiteIndexUrlBySiteID in interface ContainersiteID - ContainerExceptionpublic java.lang.String getPulishedSiteDomainBySiteName(java.lang.String siteName)
throws ContainerException
getPulishedSiteDomainBySiteName in interface ContainersiteName - ContainerExceptionpublic java.lang.String getPulishedSiteDomainBySiteID(java.lang.String siteID)
throws ContainerException
getPulishedSiteDomainBySiteID in interface ContainersiteID - ContainerExceptionpublic Channel getChannel(java.lang.String channelid) throws ContainerException
getChannel in interface ContainersiteID - ContainerExceptionpublic Channel getParentChannel(java.lang.String channelid) throws ContainerException
getParentChannel in interface ContainersiteID - ContainerExceptionpublic Channel getChannelByDisplayName(java.lang.String channel) throws ContainerException
getChannelByDisplayName in interface ContainersiteID - ContainerExceptionpublic Channel getParentChannelByDisplayName(java.lang.String channel) throws ContainerException
getParentChannelByDisplayName in interface ContainersiteID - ContainerExceptionpublic java.lang.String getPublishedDocumentUrl(Document document) throws ContainerException
getPublishedDocumentUrl in interface ContainerContainerExceptionpublic java.lang.String getPublishedDocumentAttachUrl(Document document, java.lang.String attachurl) throws ContainerException
document - 文档对象attachurl - 附件的urlContainerExceptionpublic java.lang.String getPublishedDocumentAttachUrlAppendContentFile(Document document, java.lang.String attachurl) throws ContainerException
document - 文档对象attachurl - 附件的urlContainerExceptionpublic java.lang.String getPublishedDocumentUrl(java.lang.String documentid)
throws ContainerException
getPublishedDocumentUrl in interface Containerdocumentid - ContainerExceptionpublic void addLink(java.lang.String link,
int from)
throws ContainerException
ContaineraddLink in interface ContainerContainerException