de.uplanet.lucy.server.portlet
Class MainPortalManager

java.lang.Object
  extended by de.uplanet.lucy.server.portlet.MainPortalManager

public final class MainPortalManager
extends java.lang.Object

Singelton class to manage more than one main portal pages The class use the table LCMAINPORTAL and the PortletManager

Version:
$Revision: 76059 $

Field Summary
static java.lang.String DEFAULT_PORTAL_GUID
          GUID of the not deleteable default portal
static java.lang.String DEFAULT_PORTLETINT_FILE
          XML Cfg File in internal/layout/vm/html/portal/templates/portalpageinitdata
static java.lang.String REF_PORTLET_KEY
           
 
Method Summary
 void clearCache()
          clears the cache of available main portal pages
 void createMainPortal(java.lang.String p_strPortalGUID, java.lang.String p_strName, de.uplanet.jdbc.JdbcConnection p_conn)
          creates an new main portal page
 void deleteMainPortal(java.lang.String p_strPortalGUID, de.uplanet.jdbc.JdbcConnection p_conn)
           
 java.util.List<java.lang.String> getAllMainportals(de.uplanet.jdbc.JdbcConnection p_conn)
          Returns a list of all available main portal pages (An String of the returned list has the format: {GUID}|{NAME}|{DELETEBALE})
static MainPortalManager getInstance()
           
 java.lang.String getMainPortalName(java.lang.String p_strGUID, de.uplanet.jdbc.JdbcConnection p_connection)
          returns the name of a main portal page, given by p_strGUID
 boolean isMainPortal(java.lang.String p_strGUID, de.uplanet.jdbc.JdbcConnection p_connection)
          checks if an main portal with p_strGUID exists
 void updateMainPortal(java.lang.String p_strGUID, java.lang.String p_strName, de.uplanet.jdbc.JdbcConnection p_conn)
          updates the name of an given main portal
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

REF_PORTLET_KEY

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

DEFAULT_PORTLETINT_FILE

public static final java.lang.String DEFAULT_PORTLETINT_FILE
XML Cfg File in internal/layout/vm/html/portal/templates/portalpageinitdata

See Also:
Constant Field Values

DEFAULT_PORTAL_GUID

public static final java.lang.String DEFAULT_PORTAL_GUID
GUID of the not deleteable default portal

See Also:
Constant Field Values
Method Detail

getInstance

public static MainPortalManager getInstance()
Returns:
the Singleton instance

clearCache

public void clearCache()
clears the cache of available main portal pages


isMainPortal

public boolean isMainPortal(java.lang.String p_strGUID,
                            de.uplanet.jdbc.JdbcConnection p_connection)
checks if an main portal with p_strGUID exists

Parameters:
p_strGUID -
p_connection -
Returns:

getMainPortalName

public java.lang.String getMainPortalName(java.lang.String p_strGUID,
                                          de.uplanet.jdbc.JdbcConnection p_connection)
returns the name of a main portal page, given by p_strGUID

Parameters:
p_strGUID -
p_connection -
Returns:
name or null if not found

createMainPortal

public void createMainPortal(java.lang.String p_strPortalGUID,
                             java.lang.String p_strName,
                             de.uplanet.jdbc.JdbcConnection p_conn)
                      throws java.lang.Exception
creates an new main portal page

Parameters:
p_strGUID -
p_strName -
p_conn -
Throws:
java.lang.Exception

updateMainPortal

public void updateMainPortal(java.lang.String p_strGUID,
                             java.lang.String p_strName,
                             de.uplanet.jdbc.JdbcConnection p_conn)
                      throws java.sql.SQLException
updates the name of an given main portal

Parameters:
p_strGUID -
p_strName -
p_conn -
Throws:
java.sql.SQLException

deleteMainPortal

public void deleteMainPortal(java.lang.String p_strPortalGUID,
                             de.uplanet.jdbc.JdbcConnection p_conn)
                      throws java.lang.Exception
Throws:
java.lang.Exception

getAllMainportals

public java.util.List<java.lang.String> getAllMainportals(de.uplanet.jdbc.JdbcConnection p_conn)
Returns a list of all available main portal pages (An String of the returned list has the format: {GUID}|{NAME}|{DELETEBALE})

Parameters:
p_conn -
Returns:
list of formated strings


Last updated: 2011-01-27
Copyright 2000-2010 United Planet. All Rights Reserved.