Skip navigation links

Oracle® Fusion Middleware Site Studio for External Applications Java API Reference
11g Release 1 (11.1.1)

E17273-01


oracle.stellent.wcm.server.request.logic
Class RequestLogic<T extends SiteRequest>

java.lang.Object
  extended by oracle.stellent.wcm.server.request.logic.RequestLogic<T>

Direct Known Subclasses:
ContributorJSLogic, DataFileLogic, DynamicListLogic, IdcServiceLogic, PageLogic, UrlLogic

public class RequestLogic<T extends SiteRequest>
extends java.lang.Object

Base logic for all command objects


Constructor Summary
RequestLogic(ServerContext serverContext)
           

 

Method Summary
 boolean checkSecurity(T request, ProviderContent content)
          Check the security of this content item.
 boolean checkSecurity(T pageRequest, SectionNode section)
          Determine if the user has access rights to the given section
 Project getProject(SiteRequest siteRequest)
          Retrieve the project associated with this site request.
 Project getProject(SiteRequest siteRequest, boolean errorIfNotFound)
          Retrieve the project associated with this site request.
 SectionNode getSection(SiteRequest siteRequest)
           
 SectionNode getSection(SiteRequest siteRequest, boolean errorIfNotFound)
           
 ServerContext getServerContext()
           
 SectionTree getStructure(SiteRequest request)
           
 boolean isSectionAvailable(T pageRequest, SectionNode section)
          Determine if the section is available to the user
 void setRequestSiteID(T request, java.lang.String siteID)
          Reset the siteID for this request.
 void validateRequest(T request)
          Verify the request parameters

 

Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

 

Constructor Detail

RequestLogic

public RequestLogic(ServerContext serverContext)

Method Detail

getServerContext

public ServerContext getServerContext()
Returns:
the server application

validateRequest

public void validateRequest(T request)
                     throws RequestException
Verify the request parameters
Parameters:
request - the request
Throws:
RequestException - if the parameters are not valid

setRequestSiteID

public void setRequestSiteID(T request,
                             java.lang.String siteID)
                      throws RequestException
Reset the siteID for this request. Ensures the given siteID is valid and all current request-level caches are cleared.
Parameters:
request - the current request
siteID - the site ID to verify
Throws:
RequestException - thrown if the site ID is invalid

getSection

public SectionNode getSection(SiteRequest siteRequest)
                       throws RequestException
Parameters:
siteRequest - the site request
Returns:
the section associated with this request
Throws:
RequestException

getSection

public SectionNode getSection(SiteRequest siteRequest,
                              boolean errorIfNotFound)
                       throws RequestException
Parameters:
siteRequest - the site request
errorIfNotFound - true to throw an error if not found
Returns:
the section associated with this request
Throws:
RequestException

getStructure

public SectionTree getStructure(SiteRequest request)
                         throws RequestException
Parameters:
request - the request
Returns:
the structure associated with this request
Throws:
RequestException

getProject

public Project getProject(SiteRequest siteRequest)
                   throws RequestException
Retrieve the project associated with this site request.
Parameters:
siteRequest - the site request
Returns:
the project associated with this request
Throws:
RequestException

getProject

public Project getProject(SiteRequest siteRequest,
                          boolean errorIfNotFound)
                   throws RequestException
Retrieve the project associated with this site request.
Parameters:
siteRequest - the site request
errorIfNotFound - true to throw an error if not found
Returns:
the project associated with this request
Throws:
RequestException

isSectionAvailable

public boolean isSectionAvailable(T pageRequest,
                                  SectionNode section)
Determine if the section is available to the user
Parameters:
pageRequest - the page request
section - the section to verify
Returns:
true if the user can see the requested section

checkSecurity

public boolean checkSecurity(T pageRequest,
                             SectionNode section)
                      throws RequestException
Determine if the user has access rights to the given section
Parameters:
pageRequest - the page request
section - the section to verify
Returns:
true if the user can see the requested section
Throws:
RequestException - if an error occurs while executing the security check

checkSecurity

public boolean checkSecurity(T request,
                             ProviderContent content)
                      throws RequestException
Check the security of this content item.
Parameters:
request - the request
content - the content
Returns:
true if the user has access
Throws:
RequestException

Skip navigation links

Oracle® Fusion Middleware Site Studio for External Applications Java API Reference
11g Release 1 (11.1.1)

E17273-01


Copyright © 2010, Oracle and/or its affiliates. All rights reserved.