|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.jetspeed.portalsite.view.SiteViewProxy
org.apache.jetspeed.page.document.proxy.NodeProxy
org.apache.jetspeed.om.folder.proxy.FolderProxy
public class FolderProxy
This class proxies PSML Folder instances to create a logical view of site content using the Dynamic Proxy pattern.
Field Summary | |
---|---|
protected static java.lang.reflect.Method |
GET_ALL_METHOD
*_METHOD - Folder method constants |
protected static java.lang.reflect.Method |
GET_DEFAULT_PAGE_METHOD
|
protected static java.lang.reflect.Method |
GET_FOLDER_METHOD
|
protected static java.lang.reflect.Method |
GET_FOLDERS_METHOD
|
protected static java.lang.reflect.Method |
GET_LINK_METHOD
|
protected static java.lang.reflect.Method |
GET_LINKS_METHOD
|
protected static java.lang.reflect.Method |
GET_MENU_DEFINITIONS_METHOD
|
protected static java.lang.reflect.Method |
GET_METADATA_METHOD
|
protected static java.lang.reflect.Method |
GET_NAME_METHOD
|
protected static java.lang.reflect.Method |
GET_PAGE_METHOD
|
protected static java.lang.reflect.Method |
GET_PAGE_SECURITY_METHOD
|
protected static java.lang.reflect.Method |
GET_PAGES_METHOD
|
protected static java.lang.reflect.Method |
GET_SHORT_TITLE_LOCALE_METHOD
|
protected static java.lang.reflect.Method |
GET_SHORT_TITLE_METHOD
|
protected static java.lang.reflect.Method |
GET_TITLE_LOCALE_METHOD
|
protected static java.lang.reflect.Method |
GET_TITLE_METHOD
|
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 |
NodeSet |
getAll(java.lang.Object proxy)
getAll - proxy implementation of Folder.getAll() |
Folder |
getDefaultFolder()
getDefaultFolder - get default proxy delegate folder instance |
java.lang.String |
getDefaultPage(java.lang.Object proxy)
getDefaultPage - proxy implementation of Folder.getDefaultPage() |
Folder |
getFolder(java.lang.Object proxy,
java.lang.String name)
getFolder - proxy implementation of Folder.getFolder() |
NodeSet |
getFolders(java.lang.Object proxy)
getFolders - proxy implementation of Folder.getFolders() |
Link |
getLink(java.lang.Object proxy,
java.lang.String name)
getLink - proxy implementation of Folder.getLink() |
NodeSet |
getLinks(java.lang.Object proxy)
getLinks - proxy implementation of Folder.getLinks() |
GenericMetadata |
getMetadata()
getMetadata - proxy implementation of Folder.getMetadata() |
java.lang.String |
getName()
getName - proxy implementation of Node.getName() |
Page |
getPage(java.lang.Object proxy,
java.lang.String name)
getPage - proxy implementation of Folder.getPage() |
NodeSet |
getPages(java.lang.Object proxy)
getPages - proxy implementation of Folder.getPages() |
java.lang.String |
getShortTitle()
getShortTitle - proxy implementation of Folder.getShortTitle() |
java.lang.String |
getShortTitle(java.util.Locale locale)
getShortTitle - proxy implementation of Folder.getShortTitle() |
java.lang.String |
getTitle()
getTitle - proxy implementation of Folder.getTitle() |
java.lang.String |
getTitle(java.util.Locale locale)
getTitle - proxy implementation of Folder.getTitle() |
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 Folder |
newInstance(SiteView view,
java.lang.String locatorName,
Folder parentFolder,
Folder folder)
newInstance - creates a new proxy instance that implements the Folder 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 |
---|
protected static final java.lang.reflect.Method GET_ALL_METHOD
protected static final java.lang.reflect.Method GET_DEFAULT_PAGE_METHOD
protected static final java.lang.reflect.Method GET_FOLDERS_METHOD
protected static final java.lang.reflect.Method GET_FOLDER_METHOD
protected static final java.lang.reflect.Method GET_LINKS_METHOD
protected static final java.lang.reflect.Method GET_LINK_METHOD
protected static final java.lang.reflect.Method GET_MENU_DEFINITIONS_METHOD
protected static final java.lang.reflect.Method GET_METADATA_METHOD
protected static final java.lang.reflect.Method GET_NAME_METHOD
protected static final java.lang.reflect.Method GET_PAGES_METHOD
protected static final java.lang.reflect.Method GET_PAGE_METHOD
protected static final java.lang.reflect.Method GET_PAGE_SECURITY_METHOD
protected static final java.lang.reflect.Method GET_SHORT_TITLE_LOCALE_METHOD
protected static final java.lang.reflect.Method GET_SHORT_TITLE_METHOD
protected static final java.lang.reflect.Method GET_TITLE_LOCALE_METHOD
protected static final java.lang.reflect.Method GET_TITLE_METHOD
Method Detail |
---|
public static Folder newInstance(SiteView view, java.lang.String locatorName, Folder parentFolder, Folder folder)
view
- site view owner of this proxylocatorName
- name of profile locator associated
with the proxy delegateparentFolder
- view parent proxy folderfolder
- proxy delegatepublic java.lang.Object invoke(java.lang.Object proxy, java.lang.reflect.Method m, java.lang.Object[] args) throws java.lang.Throwable
invoke
in interface java.lang.reflect.InvocationHandler
proxy
- instance invoked againstmethod
- Folder interface method invokedargs
- method arguments
java.lang.Throwable
public NodeSet getAll(java.lang.Object proxy) throws DocumentException
proxy
- this folder proxy
DocumentException
public java.lang.String getDefaultPage(java.lang.Object proxy)
proxy
- this folder proxy
public NodeSet getFolders(java.lang.Object proxy) throws DocumentException
proxy
- this folder proxy
DocumentException
public Folder getFolder(java.lang.Object proxy, java.lang.String name) throws FolderNotFoundException, DocumentException
proxy
- this folder proxyname
- sub-folder name
FolderNotFoundException
DocumentException
public NodeSet getLinks(java.lang.Object proxy) throws NodeException
proxy
- this folder proxy
NodeException
public Link getLink(java.lang.Object proxy, java.lang.String name) throws DocumentNotFoundException, NodeException
proxy
- this folder proxyname
- link name including extension
DocumentNotFoundException
NodeException
public java.lang.String getName()
public NodeSet getPages(java.lang.Object proxy) throws NodeException
proxy
- this folder proxy
NodeException
public Page getPage(java.lang.Object proxy, java.lang.String name) throws PageNotFoundException, NodeException
proxy
- this folder proxyname
- page name including extension
PageNotFoundException
NodeException
public GenericMetadata getMetadata()
public java.lang.String getTitle()
public java.lang.String getShortTitle()
public java.lang.String getTitle(java.util.Locale locale)
locale
- preferred locale
public java.lang.String getShortTitle(java.util.Locale locale)
locale
- preferred locale
public Folder getDefaultFolder()
protected void aggregateMenuDefinitionLocators()
aggregateMenuDefinitionLocators
in class NodeProxy
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |