org.apache.jetspeed.util.descriptor
Class PortletApplicationDescriptor
java.lang.Object
org.apache.jetspeed.util.descriptor.PortletApplicationDescriptor
public class PortletApplicationDescriptor
- extends java.lang.Object
Object used to perform operation upon a portlet application descriptor,
usually, portlet.xml.
- Version:
- $Id: PortletApplicationDescriptor.java 516448 2007-03-09 16:25:47Z ate $
- Author:
- Roger Ruttimann, David Sean Taylor, Scott T. Weaver
Field Summary |
protected static org.apache.commons.logging.Log |
log
|
protected java.io.Reader |
portletXmlReader
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
log
protected static final org.apache.commons.logging.Log log
portletXmlReader
protected java.io.Reader portletXmlReader
PortletApplicationDescriptor
public PortletApplicationDescriptor(java.io.Reader portletXmlReader,
java.lang.String appName)
createPortletApplication
public MutablePortletApplication createPortletApplication()
throws PortletApplicationException
- Throws:
PortletApplicationException
createPortletApplication
public MutablePortletApplication createPortletApplication(java.lang.ClassLoader classLoader)
throws PortletApplicationException
- Maps the content of the portlet application descriptor into
a new
MutablePortletApplication object
- Returns:
- MutablePortletApplication newly created MutablePortletApplication with
all values of the portlet application descriptor mapped into it.
- Throws:
PortletApplicationException
validate
public void validate(MutablePortletApplication app)
throws PortletApplicationException
- Validate a PortletApplicationDefinition tree AFTER its
WebApplicationDefinition has been loaded. Currently, only the security
role references of the portlet definitions are validated:
- A security role reference should reference a security role through a
roleLink. A warning message is logged if a direct reference is used.
- For a security role reference a security role must be defined in the
web application. An error message is logged and a
PortletApplicationException is thrown if not.
- Parameters:
app
- The PortletApplicationDefinition to validate
- Throws:
PortletApplicationException
Copyright © 1999-2010 Apache Software Foundation. All Rights Reserved.