org.exoplatform.services.portletcontainer.pci.model
Class XMLParser
java.lang.Object
org.exoplatform.services.portletcontainer.pci.model.XMLParser
public class XMLParser
- extends Object
Jul 8, 2004 .
|
Constructor Summary |
protected |
XMLParser()
Simple constructor. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
XMLParser
protected XMLParser()
- Simple constructor.
parse
public static PortletApp parse(InputStream is)
throws Exception
- Parameters:
is - input stream
- Returns:
- portlet app definition
- Throws:
Exception - exception
parse
public static PortletApp parse(InputStream is,
boolean isnewer)
throws Exception
- Parameters:
is - input streamisnewer - either portlet.xml file is arranged following spec v2.0
- Returns:
- portlet app definition
- Throws:
Exception - exception
readPortletApp
public static PortletApp readPortletApp(org.exoplatform.commons.xml.ExoXPPParser xpp)
throws Exception
- Parameters:
xpp - parser
- Returns:
- portlet app definition
- Throws:
Exception - exception
readPortlet
public static Portlet readPortlet(org.exoplatform.commons.xml.ExoXPPParser xpp)
throws Exception
- Parameters:
xpp - parser
- Returns:
- portlet definition
- Throws:
Exception - exception
readCustomPortletMode
public static CustomPortletMode readCustomPortletMode(org.exoplatform.commons.xml.ExoXPPParser xpp)
throws Exception
- Parameters:
xpp - parser
- Returns:
- custom portlet mode definition
- Throws:
Exception - exception
readCustomWindowState
public static CustomWindowState readCustomWindowState(org.exoplatform.commons.xml.ExoXPPParser xpp)
throws Exception
- Parameters:
xpp - parser
- Returns:
- custom window state definition
- Throws:
Exception - exception
readUserAttribute
public static UserAttribute readUserAttribute(org.exoplatform.commons.xml.ExoXPPParser xpp)
throws Exception
- Parameters:
xpp - parser
- Returns:
- user attribute
- Throws:
Exception - exception
readSecurityConstraint
public static SecurityConstraint readSecurityConstraint(org.exoplatform.commons.xml.ExoXPPParser xpp)
throws Exception
- Parameters:
xpp - parser
- Returns:
- security constraint
- Throws:
Exception - exception
readDescription
public static Description readDescription(org.exoplatform.commons.xml.ExoXPPParser xpp)
throws Exception
- Parameters:
xpp - parser
- Returns:
- description
- Throws:
Exception - exception
readDisplayName
public static DisplayName readDisplayName(org.exoplatform.commons.xml.ExoXPPParser xpp)
throws Exception
- Parameters:
xpp - parser
- Returns:
- display name
- Throws:
Exception - exception
readInitParam
public static InitParam readInitParam(org.exoplatform.commons.xml.ExoXPPParser xpp)
throws Exception
- Parameters:
xpp - parser
- Returns:
- init param definition
- Throws:
Exception - exception
readSupports
public static Supports readSupports(org.exoplatform.commons.xml.ExoXPPParser xpp)
throws Exception
- Parameters:
xpp - parser
- Returns:
- supports definitions
- Throws:
Exception - exception
readPortletInfo
public static PortletInfo readPortletInfo(org.exoplatform.commons.xml.ExoXPPParser xpp)
throws Exception
- Parameters:
xpp - parser
- Returns:
- portlet info
- Throws:
Exception - exception
readPortletPreferences
public static ExoPortletPreferences readPortletPreferences(org.exoplatform.commons.xml.ExoXPPParser xpp)
throws Exception
- Parameters:
xpp - parser
- Returns:
- portlet preferences
- Throws:
Exception - exception
readPreference
public static Preference readPreference(org.exoplatform.commons.xml.ExoXPPParser xpp)
throws Exception
- Parameters:
xpp - parser
- Returns:
- preference definition
- Throws:
Exception - exception
readSecurityRoleRef
public static SecurityRoleRef readSecurityRoleRef(org.exoplatform.commons.xml.ExoXPPParser xpp)
throws Exception
- Parameters:
xpp - parser
- Returns:
- security role ref definition
- Throws:
Exception - exception
readFilter
public static Filter readFilter(org.exoplatform.commons.xml.ExoXPPParser xpp)
throws Exception
- Parameters:
xpp - parser
- Returns:
- filter definition
- Throws:
Exception - exception
parseLifecycle
public static Integer parseLifecycle(String cycle,
String filterName)
- Parameters:
cycle - cycle read from xmlfilterName - filter name
- Returns:
- cycle integer
readFilterMapping
public static FilterMapping readFilterMapping(org.exoplatform.commons.xml.ExoXPPParser xpp)
throws Exception
- Parameters:
xpp - parser
- Returns:
- filter mapping definition
- Throws:
Exception - exception
readPortletCollection
public static PortletCollection readPortletCollection(org.exoplatform.commons.xml.ExoXPPParser xpp)
throws Exception
- Parameters:
xpp - parser
- Returns:
- portlet collection
- Throws:
Exception - exception
readUserDataConstraint
public static UserDataConstraint readUserDataConstraint(org.exoplatform.commons.xml.ExoXPPParser xpp)
throws Exception
- Parameters:
xpp - parser
- Returns:
- user data constraint definition
- Throws:
Exception - exception
readEventDefinition
public static EventDefinition readEventDefinition(org.exoplatform.commons.xml.ExoXPPParser xpp)
throws Exception
- Parameters:
xpp - parser
- Returns:
- event definition
- Throws:
Exception - exception
readEventReference
public static QName readEventReference(org.exoplatform.commons.xml.ExoXPPParser xpp)
throws Exception
- Parameters:
xpp - parser
- Returns:
- event reference
- Throws:
Exception - exception
readUrlListener
public static String readUrlListener(org.exoplatform.commons.xml.ExoXPPParser xpp)
throws Exception
- Parameters:
xpp - parser
- Returns:
- url listener class name
- Throws:
Exception - exception
fillPredefinedEvents
public static void fillPredefinedEvents(PortletApp app)
throws Exception
- Parameters:
app - portlet app
- Throws:
Exception - exception
readPublicRenderParameter
public static PublicRenderParameter readPublicRenderParameter(org.exoplatform.commons.xml.ExoXPPParser xpp)
throws Exception
- Parameters:
xpp - parser
- Returns:
- public render parameter definition
- Throws:
Exception - exception
readContainerRuntimeOption
public static Map<String,String[]> readContainerRuntimeOption(org.exoplatform.commons.xml.ExoXPPParser xpp)
throws Exception
- Parameters:
xpp - parser
- Returns:
- container runtime option map
- Throws:
Exception - exception
Copyright © 2009 eXo Platform SAS. All Rights Reserved.