|
Oracle® Fusion Middleware Site Studio for External Applications Java API Reference 11g Release 1 (11.1.1) E17273-02 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
oracle.stellent.wcm.server.request.logic.RequestLogic<UrlRequest>
oracle.stellent.wcm.server.request.logic.url.UrlLogic
public class UrlLogic
Logic for the UrlCommand
Nested Class Summary | |
---|---|
protected static class |
UrlLogic.PageTemplateMapping |
static class |
UrlLogic.Url Represents a URL string and a context root |
Field Summary | |
---|---|
static java.lang.String |
DEFAULT_PAGE_NAME default name of a page |
Constructor Summary | |
---|---|
UrlLogic(ServerContext serverContext) |
Method Summary | |
---|---|
static java.lang.String |
createUrlWithPattern(java.lang.String url, java.lang.String urlPattern) Create the URL with the specified pattern |
protected UrlLogic.Url |
getContentLink(UrlRequest urlRequest) Create a link to a content item |
protected UrlLogic.Url |
getDCPageLink(UrlRequest urlRequest) Create a link to a specific page of a dynamic conversion |
protected UrlLogic.Url |
getDCResourceLink(UrlRequest urlRequest) Create a link to a DC resource |
protected UrlLogic.Url |
getNodeLink(UrlRequest urlRequest) Create a node link |
protected UrlLogic.PageTemplateMapping |
getPageTemplateForDataFile(UrlRequest urlRequest, SectionNode section, ContentID contentID) Determine which page template to use to display the given content ID |
protected UrlLogic.Url |
getRenditionLink(UrlRequest urlRequest) Create a link to a rendition |
protected UrlLogic.Url |
getRenditionLink(UrlRequest urlRequest, java.lang.String dDocName, java.lang.String renditionName) Create a link to a rendition |
protected UrlLogic.Url |
getResourceLink(UrlRequest urlRequest) Create a link to a resource |
protected SectionNode |
getSectionByID(UrlRequest urlRequest, java.lang.String id) Lookup the section, determine if the section is a number or a path |
java.lang.String |
getUrl(UrlRequest urlRequest) Retrieve the URL for the values in this request |
void |
validateRequest(UrlRequest request) Verify the request parameters |
Methods inherited from class oracle.stellent.wcm.server.request.logic.RequestLogic |
---|
checkSecurity, checkSecurity, getProject, getProject, getSection, getSection, getServerContext, getStructure, isSectionAvailable, setRequestSiteID |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String DEFAULT_PAGE_NAME
Constructor Detail |
---|
public UrlLogic(ServerContext serverContext)
Method Detail |
---|
public static java.lang.String createUrlWithPattern(java.lang.String url, java.lang.String urlPattern)
url
- the urlurlPattern
- the patternpublic void validateRequest(UrlRequest request) throws RequestException
RequestLogic
validateRequest
in class RequestLogic<UrlRequest>
request
- the requestRequestException
- if the parameters are not validpublic java.lang.String getUrl(UrlRequest urlRequest) throws RequestException
urlRequest
- the url requestRequestException
protected UrlLogic.Url getDCPageLink(UrlRequest urlRequest)
urlRequest
- the url commandprotected UrlLogic.Url getResourceLink(UrlRequest urlRequest) throws oracle.stellent.ridc.IdcClientException
urlRequest
- the url commandoracle.stellent.ridc.IdcClientException
protected UrlLogic.Url getDCResourceLink(UrlRequest urlRequest) throws oracle.stellent.ridc.IdcClientException
urlRequest
- the url commandoracle.stellent.ridc.IdcClientException
protected UrlLogic.Url getRenditionLink(UrlRequest urlRequest) throws oracle.stellent.ridc.IdcClientException
urlRequest
- the url commandoracle.stellent.ridc.IdcClientException
protected UrlLogic.Url getRenditionLink(UrlRequest urlRequest, java.lang.String dDocName, java.lang.String renditionName) throws oracle.stellent.ridc.IdcClientException
urlRequest
- the url commanddDocName
- the content IDrenditionName
- the rendition nameoracle.stellent.ridc.IdcClientException
protected UrlLogic.Url getContentLink(UrlRequest urlRequest) throws RequestException
urlRequest
- the url commandRequestException
protected UrlLogic.Url getNodeLink(UrlRequest urlRequest) throws RequestException
urlRequest
- the url commandRequestException
protected SectionNode getSectionByID(UrlRequest urlRequest, java.lang.String id) throws RequestException
urlRequest
- the url commandid
- the section ID or pathRequestException
protected UrlLogic.PageTemplateMapping getPageTemplateForDataFile(UrlRequest urlRequest, SectionNode section, ContentID contentID) throws RequestException
urlRequest
- the url requestsection
- the section to querycontentID
- the content ID of the data file to displayRequestException
- if the page template cannot be determined
|
Oracle® Fusion Middleware Site Studio for External Applications Java API Reference 11g Release 1 (11.1.1) E17273-02 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |