org.apache.jetspeed.om.page.proxy
Class PageProxy

java.lang.Object
  extended by org.apache.jetspeed.portalsite.view.SiteViewProxy
      extended by org.apache.jetspeed.page.document.proxy.NodeProxy
          extended by org.apache.jetspeed.om.page.proxy.PageProxy
All Implemented Interfaces:
java.lang.reflect.InvocationHandler

public class PageProxy
extends NodeProxy
implements java.lang.reflect.InvocationHandler

This class proxies PSML Page instances to create a logical view of site content using the Dynamic Proxy pattern.

Version:
$Id: PageProxy.java 517121 2007-03-12 07:45:49Z ate $
Author:
Randy Watler

Field Summary
protected static java.lang.reflect.Method GET_MENU_DEFINITIONS_METHOD
          *_METHOD - Page method constants
 
Fields inherited from class org.apache.jetspeed.page.document.proxy.NodeProxy
EQUALS_METHOD, GET_PARENT_METHOD, GET_PATH_METHOD, GET_URL_METHOD, HASH_CODE_METHOD, IS_HIDDEN_METHOD, TO_STRING_METHOD
 
Method Summary
protected  void aggregateMenuDefinitionLocators()
          aggregateMenuDefinitionLocators - aggregate all menu definition locators in site view for this folder or page
 Page getPage()
          getPage - get proxy delegate page instance
 java.lang.Object invoke(java.lang.Object proxy, java.lang.reflect.Method m, java.lang.Object[] args)
          invoke - method invocation dispatch for this proxy, (defaults to invocation of delegate unless method is implemented in this proxy handler or should be hidden/stubbed)
static Page newInstance(SiteView view, java.lang.String locatorName, Folder parentFolder, Page page)
          newInstance - creates a new proxy instance that implements the Page interface
 
Methods inherited from class org.apache.jetspeed.page.document.proxy.NodeProxy
equals, getMenuDefinitionLocator, getMenuDefinitionLocators, getMenuDefinitions, getNodeProxy, getParent, getPath, getUrl, hashCode, isHidden, mergeMenuDefinitionLocators, mergeMenuDefinitionLocators, toString
 
Methods inherited from class org.apache.jetspeed.portalsite.view.SiteViewProxy
getLocatorName, getSiteViewProxy, getView, reflectMethod
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

GET_MENU_DEFINITIONS_METHOD

protected static final java.lang.reflect.Method GET_MENU_DEFINITIONS_METHOD
*_METHOD - Page method constants

Method Detail

newInstance

public static Page newInstance(SiteView view,
                               java.lang.String locatorName,
                               Folder parentFolder,
                               Page page)
newInstance - creates a new proxy instance that implements the Page interface

Parameters:
view - site view owner of this proxy
locatorName - name of profile locator associated with the proxy delegate
parentFolder - view parent proxy folder
page - proxy delegate

invoke

public java.lang.Object invoke(java.lang.Object proxy,
                               java.lang.reflect.Method m,
                               java.lang.Object[] args)
                        throws java.lang.Throwable
invoke - method invocation dispatch for this proxy, (defaults to invocation of delegate unless method is implemented in this proxy handler or should be hidden/stubbed)

Specified by:
invoke in interface java.lang.reflect.InvocationHandler
Parameters:
proxy - instance invoked against
method - Page interface method invoked
args - method arguments
Throws:
java.lang.Throwable

getPage

public Page getPage()
getPage - get proxy delegate page instance

Returns:
delegate page

aggregateMenuDefinitionLocators

protected void aggregateMenuDefinitionLocators()
aggregateMenuDefinitionLocators - aggregate all menu definition locators in site view for this folder or page

Overrides:
aggregateMenuDefinitionLocators in class NodeProxy


Copyright © 1999-2010 Apache Software Foundation. All Rights Reserved.