org.apache.pluto.portlet.admin.model
Class PortletEntityRegistryXao

java.lang.Object
  extended by org.apache.pluto.portlet.admin.BaseAdminObject
      extended by org.apache.pluto.portlet.admin.model.PortletEntityRegistryXao

public class PortletEntityRegistryXao
extends BaseAdminObject

This class is used to access and store data in the portletentityregistry.xml file. It uses Castor and is loosely based on the org.apache.services.portletentityregistry.PortletEntityRegistryServiceFileImpl class in Pluto's 'portal' module.

Author:
Craig Doremus

Field Summary
static java.lang.String CONFIG_FILE
           
static java.lang.String DEFAULT_MAPPING
           
 
Constructor Summary
PortletEntityRegistryXao()
           
 
Method Summary
 boolean applicationExists(java.lang.String appContext)
           
 PortletApplicationEntityImpl getApplication(java.lang.String appContext)
           
 java.util.Collection getApplications()
           
 java.util.Collection getPortletPreferences(java.lang.String appId, java.lang.String portletId)
           
 void init()
           
 PortletApplicationEntityListImpl load()
           
 void save(PortletApplicationEntityListImpl apps)
           
 java.lang.String toString()
           
 java.lang.String toString(int indent)
           
 
Methods inherited from class org.apache.pluto.portlet.admin.BaseAdminObject
logDebug, logError, logError, logMethodEnd, logMethodEnd, logMethodStart, logParam, logParam, logParam, logVar, logVar, logVar, logWarn
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

CONFIG_FILE

public static final java.lang.String CONFIG_FILE
See Also:
Constant Field Values

DEFAULT_MAPPING

public static final java.lang.String DEFAULT_MAPPING
See Also:
Constant Field Values
Constructor Detail

PortletEntityRegistryXao

public PortletEntityRegistryXao()
                         throws java.lang.Exception
Throws:
java.lang.Exception
Method Detail

init

public void init()
          throws java.lang.Exception
Throws:
java.lang.Exception

save

public void save(PortletApplicationEntityListImpl apps)
          throws java.lang.Exception
Throws:
java.lang.Exception

load

public PortletApplicationEntityListImpl load()
                                      throws java.lang.Exception
Throws:
java.lang.Exception

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

toString

public java.lang.String toString(int indent)

getApplications

public java.util.Collection getApplications()
                                     throws java.lang.Exception
Throws:
java.lang.Exception

getApplication

public PortletApplicationEntityImpl getApplication(java.lang.String appContext)
                                            throws java.lang.Exception
Throws:
java.lang.Exception

getPortletPreferences

public java.util.Collection getPortletPreferences(java.lang.String appId,
                                                  java.lang.String portletId)
                                           throws java.lang.Exception
Throws:
java.lang.Exception

applicationExists

public boolean applicationExists(java.lang.String appContext)


Copyright © 2003-2011 . All Rights Reserved.