| 限定符和类型 | 字段和说明 |
|---|---|
static int |
LINK_FROM_TEMPLATE |
static int |
LINK_FROM_WEBPRJS |
| 构造器和说明 |
|---|
ContainerImpl() |
| 限定符和类型 | 方法和说明 |
|---|---|
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 在接口中 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 在接口中 ContainerContainerExceptionpublic void addLink(java.lang.String link)
throws ContainerException
ContaineraddLink 在接口中 ContainerContainerExceptionpublic Channel getContextChannel() throws ContainerException
ContainergetContextChannel 在接口中 ContainerContainerExceptionpublic Channel getContextParentChannel() throws ContainerException
getContextParentChannel 在接口中 ContainerContainerExceptionpublic Site getContextSite() throws ContainerException
ContainergetContextSite 在接口中 ContainerContainerExceptionpublic Document getContextDocument() throws ContainerException
ContainergetContextDocument 在接口中 ContainerContainerExceptionpublic Context getContext() throws ContainerException
ContainergetContext 在接口中 ContainerContainerExceptionpublic java.lang.String getPublishedDocumentUrl(java.lang.String channelid,
java.lang.String documentid)
throws ContainerException
getPublishedDocumentUrl 在接口中 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 在接口中 Containerchannel - ContainerExceptionpublic Channel getAncestorChannel(Channel current, int level) throws ContainerException
getAncestorChannel 在接口中 Containerchannel - 频道显示名称ContainerExceptionpublic Channel getContextAncestorChannel(int level) throws ContainerException
getContextAncestorChannel 在接口中 Containerchannel - 频道显示名称ContainerExceptionpublic java.lang.String getPublishedChannelUrlByID(java.lang.String channelid)
throws ContainerException
ContainergetPublishedChannelUrlByID 在接口中 ContainerContainerExceptionpublic java.lang.String getPublishedChannelUrlByID(Channel channel) throws ContainerException
getPublishedChannelUrlByID 在接口中 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 在接口中 Containersite - 站点英文名称ContainerExceptionpublic void init(Context context) throws ContainerException
Containerinit 在接口中 ContainerContainerExceptionpublic java.lang.String getPulishedSiteIndexUrlBySiteName(java.lang.String siteName)
throws ContainerException
getPulishedSiteIndexUrlBySiteName 在接口中 ContainersiteName - ContainerExceptionpublic java.lang.String getPulishedSiteIndexUrlBySiteID(java.lang.String siteID)
throws ContainerException
getPulishedSiteIndexUrlBySiteID 在接口中 ContainersiteID - ContainerExceptionpublic java.lang.String getPulishedSiteDomainBySiteName(java.lang.String siteName)
throws ContainerException
getPulishedSiteDomainBySiteName 在接口中 ContainersiteName - ContainerExceptionpublic java.lang.String getPulishedSiteDomainBySiteID(java.lang.String siteID)
throws ContainerException
getPulishedSiteDomainBySiteID 在接口中 ContainersiteID - ContainerExceptionpublic Channel getChannel(java.lang.String channelid) throws ContainerException
getChannel 在接口中 ContainersiteID - ContainerExceptionpublic Channel getParentChannel(java.lang.String channelid) throws ContainerException
getParentChannel 在接口中 ContainersiteID - ContainerExceptionpublic Channel getChannelByDisplayName(java.lang.String channel) throws ContainerException
getChannelByDisplayName 在接口中 ContainersiteID - ContainerExceptionpublic Channel getParentChannelByDisplayName(java.lang.String channel) throws ContainerException
getParentChannelByDisplayName 在接口中 ContainersiteID - ContainerExceptionpublic java.lang.String getPublishedDocumentUrl(Document document) throws ContainerException
getPublishedDocumentUrl 在接口中 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 在接口中 Containerdocumentid - ContainerExceptionpublic void addLink(java.lang.String link,
int from)
throws ContainerException
ContaineraddLink 在接口中 ContainerContainerException