Author: thomas.heute(a)jboss.com
Date: 2008-06-02 03:23:17 -0400 (Mon, 02 Jun 2008)
New Revision: 10898
Modified:
branches/JBoss_Portal_Branch_2_7/core-admin/src/main/org/jboss/portal/core/admin/ui/PropertiesInfo.java
Log:
Revert i18n changes and compilation breaking
Modified:
branches/JBoss_Portal_Branch_2_7/core-admin/src/main/org/jboss/portal/core/admin/ui/PropertiesInfo.java
===================================================================
---
branches/JBoss_Portal_Branch_2_7/core-admin/src/main/org/jboss/portal/core/admin/ui/PropertiesInfo.java 2008-06-02
06:48:33 UTC (rev 10897)
+++
branches/JBoss_Portal_Branch_2_7/core-admin/src/main/org/jboss/portal/core/admin/ui/PropertiesInfo.java 2008-06-02
07:23:17 UTC (rev 10898)
@@ -31,346 +31,56 @@
import java.util.HashMap;
import java.util.Iterator;
-import java.util.Locale;
import java.util.Map;
import java.util.Set;
/**
* @author <a href="mailto:julien@jboss.org">Julien Viet</a>
* @author <a href="mailto:boleslaw dot dawidowicz at redhat dot com>Boleslaw
Dawidowicz</a>
- * @author <a href="mailto:jedim@vige.it>Luca Stancapiano</a>
* @version $Revision$
*/
public class PropertiesInfo
{
//
- private static Map<Locale, String> THEME_LAYOUT_ID_DISPLAY_NAME = new
HashMap<Locale, String>();
- private static Map<Locale, String> THEME_LAYOUT_ID_DESCRIPTION = new
HashMap<Locale, String>();
+ public static final PropertyInfo THEME_LAYOUT_ID = new
PropertyInfo(ThemeConstants.PORTAL_PROP_LAYOUT, new LocalizedString("Layout
id"), new LocalizedString("The layout value formats a page"),
"java.lang.String", PropertyInfo.READ_WRITE_ACCESS_MODE,
PropertyInfo.PRIVATE_SCOPE);
+ public static final PropertyInfo THEME_THEME_ID = new
PropertyInfo(ThemeConstants.PORTAL_PROP_THEME, new LocalizedString("Theme id"),
new LocalizedString("The theme value skins a page"),
"java.lang.String", PropertyInfo.READ_WRITE_ACCESS_MODE,
PropertyInfo.PRIVATE_SCOPE);
+ public static final PropertyInfo THEME_RENDER_SET_ID = new
PropertyInfo(ThemeConstants.PORTAL_PROP_RENDERSET, new LocalizedString("Renderset
id"), new LocalizedString("The render set id"),
"java.lang.String", PropertyInfo.READ_WRITE_ACCESS_MODE,
PropertyInfo.PRIVATE_SCOPE);
+ public static final PropertyInfo THEME_RENDER_REGION_ID = new
PropertyInfo(ThemeConstants.PORTAL_PROP_REGION, new LocalizedString("Region
id"), new LocalizedString("The region that will the window"),
"java.lang.String", PropertyInfo.READ_WRITE_ACCESS_MODE,
PropertyInfo.PRIVATE_SCOPE);
+ public static final PropertyInfo THEME_RENDER_REGION_ORDER = new
PropertyInfo(ThemeConstants.PORTAL_PROP_ORDER, new LocalizedString("Region
order"), new LocalizedString("The vertical or horizontal order of the window
within a region"), "java.lang.String", PropertyInfo.READ_WRITE_ACCESS_MODE,
PropertyInfo.PUBLIC_SCOPE);
- private static Map<Locale, String> THEME_THEME_ID_DISPLAY_NAME = new
HashMap<Locale, String>();
-
- private static Map<Locale, String> THEME_THEME_ID_DESCRIPTION = new
HashMap<Locale, String>();
-
- private static Map<Locale, String> THEME_RENDER_SET_ID_DISPLAY_NAME = new
HashMap<Locale, String>();
-
- private static Map<Locale, String> THEME_RENDER_SET_ID_DESCRIPTION = new
HashMap<Locale, String>();
-
- private static Map<Locale, String> THEME_RENDER_REGION_ID_DISPLAY_NAME = new
HashMap<Locale, String>();
-
- private static Map<Locale, String> THEME_RENDER_REGION_ID_DESCRIPTION = new
HashMap<Locale, String>();
-
- private static Map<Locale, String> THEME_RENDER_REGION_ORDER_DISPLAY_NAME = new
HashMap<Locale, String>();
-
- private static Map<Locale, String> THEME_RENDER_REGION_ORDER_DESCRIPTION = new
HashMap<Locale, String>();
-
- private static Map<Locale, String> AJAX_PARTIAL_REFRESH_DISPLAY_NAME = new
HashMap<Locale, String>();
-
- private static Map<Locale, String> AJAX_PARTIAL_REFRESH_DESCRIPTION = new
HashMap<Locale, String>();
-
- private static Map<Locale, String> AJAX_DND_DISPLAY_NAME = new
HashMap<Locale, String>();
-
- private static Map<Locale, String> AJAX_DND_DESCRIPTION = new HashMap<Locale,
String>();
-
- private static Map<Locale, String> WINDOW_CONTENT_TYPE_DISPLAY_NAME = new
HashMap<Locale, String>();
-
- private static Map<Locale, String> WINDOW_CONTENT_TYPE_DESCRIPTION = new
HashMap<Locale, String>();
-
- private static Map<Locale, String> DEFAULT_CHILD_NAME_DISPLAY_NAME = new
HashMap<Locale, String>();
-
- private static Map<Locale, String> DEFAULT_CHILD_NAME_DESCRIPTION = new
HashMap<Locale, String>();
-
- private static Map<Locale, String> PAGE_ORDER_DISPLAY_NAME = new
HashMap<Locale, String>();
-
- private static Map<Locale, String> PAGE_ORDER_DESCRIPTION = new
HashMap<Locale, String>();
-
- private static Map<Locale, String> INITIAL_WINDOW_STATE_DISPLAY_NAME = new
HashMap<Locale, String>();
-
- private static Map<Locale, String> INITIAL_WINDOW_STATE_DESCRIPTION = new
HashMap<Locale, String>();
-
- private static Map<Locale, String>
CONTROL_POLICY_PAGE_ACCESS_DENIED_DISPLAY_NAME = new HashMap<Locale, String>();
-
- private static Map<Locale, String> CONTROL_POLICY_PAGE_ACCESS_DENIED_DESCRIPTION
= new HashMap<Locale, String>();
-
- private static Map<Locale, String> CONTROL_POLICY_PAGE_UNAVAILABLE_DISPLAY_NAME
= new HashMap<Locale, String>();
-
- private static Map<Locale, String> CONTROL_POLICY_PAGE_UNAVAILABLE_DESCRIPTION =
new HashMap<Locale, String>();
-
- private static Map<Locale, String> CONTROL_POLICY_PAGE_ERROR_DISPLAY_NAME = new
HashMap<Locale, String>();
-
- private static Map<Locale, String> CONTROL_POLICY_PAGE_ERROR_DESCRIPTION = new
HashMap<Locale, String>();
-
- private static Map<Locale, String>
CONTROL_POLICY_PAGE_INTERNAL_ERROR_DISPLAY_NAME = new HashMap<Locale, String>();
-
- private static Map<Locale, String>
CONTROL_POLICY_PAGE_INTERNAL_ERROR_DESCRIPTION = new HashMap<Locale, String>();
-
- private static Map<Locale, String> CONTROL_POLICY_PAGE_NOT_FOUND_DISPLAY_NAME =
new HashMap<Locale, String>();
-
- private static Map<Locale, String> CONTROL_POLICY_PAGE_NOT_FOUND_DESCRIPTION =
new HashMap<Locale, String>();
-
- private static Map<Locale, String> CONTROL_POLICY_PAGE_RESOURCE_URI_DISPLAY_NAME
= new HashMap<Locale, String>();
-
- private static Map<Locale, String> CONTROL_POLICY_PAGE_RESOURCE_URI_DESCRIPTION
= new HashMap<Locale, String>();
-
- private static Map<Locale, String>
CONTROL_POLICY_PORTAL_ACCESS_DENIED_DISPLAY_NAME = new HashMap<Locale, String>();
-
- private static Map<Locale, String>
CONTROL_POLICY_PORTAL_ACCESS_DENIED_DESCRIPTION = new HashMap<Locale, String>();
-
- private static Map<Locale, String>
CONTROL_POLICY_PORTAL_UNAVAILABLE_DISPLAY_NAME = new HashMap<Locale, String>();
-
- private static Map<Locale, String> CONTROL_POLICY_PORTAL_UNAVAILABLE_DESCRIPTION
= new HashMap<Locale, String>();
-
- private static Map<Locale, String> CONTROL_POLICY_PORTAL_ERROR_DISPLAY_NAME =
new HashMap<Locale, String>();
-
- private static Map<Locale, String> CONTROL_POLICY_PORTAL_ERROR_DESCRIPTION = new
HashMap<Locale, String>();
-
- private static Map<Locale, String>
CONTROL_POLICY_PORTAL_INTERNAL_ERROR_DISPLAY_NAME = new HashMap<Locale, String>();
-
- private static Map<Locale, String>
CONTROL_POLICY_PORTAL_INTERNAL_ERROR_DESCRIPTION = new HashMap<Locale, String>();
-
- private static Map<Locale, String> CONTROL_POLICY_PORTAL_NOT_FOUND_DISPLAY_NAME
= new HashMap<Locale, String>();
-
- private static Map<Locale, String> CONTROL_POLICY_PORTAL_NOT_FOUND_DESCRIPTION =
new HashMap<Locale, String>();
-
- private static Map<Locale, String>
CONTROL_POLICY_PORTAL_RESOURCE_URI_DISPLAY_NAME = new HashMap<Locale, String>();
-
- private static Map<Locale, String>
CONTROL_POLICY_PORTAL_RESOURCE_URI_DESCRIPTION = new HashMap<Locale, String>();
-
- static {
- THEME_LAYOUT_ID_DISPLAY_NAME.put(Locale.ENGLISH, "Layout id");
- THEME_LAYOUT_ID_DESCRIPTION.put(Locale.ENGLISH, "The layout value formats a
page");
- THEME_THEME_ID_DISPLAY_NAME.put(Locale.ENGLISH, "Theme id");
- THEME_THEME_ID_DESCRIPTION.put(Locale.ENGLISH, "The theme value skins a
page");
- THEME_RENDER_SET_ID_DISPLAY_NAME.put(Locale.ENGLISH, "Renderset id");
- THEME_RENDER_SET_ID_DESCRIPTION.put(Locale.ENGLISH, "The render set
id");
- THEME_RENDER_REGION_ID_DISPLAY_NAME.put(Locale.ENGLISH, "Region id");
- THEME_RENDER_REGION_ID_DESCRIPTION.put(Locale.ENGLISH, "The region that will
the window");
- THEME_RENDER_REGION_ORDER_DISPLAY_NAME.put(Locale.ENGLISH, "Region
order");
- THEME_RENDER_REGION_ORDER_DESCRIPTION.put(Locale.ENGLISH,
- "The vertical or horizontal order of the window within a region");
- AJAX_PARTIAL_REFRESH_DISPLAY_NAME.put(Locale.ENGLISH, "Partial
refresh");
- AJAX_PARTIAL_REFRESH_DESCRIPTION.put(Locale.ENGLISH, "Enable partial refresh
for portlets");
- AJAX_DND_DISPLAY_NAME.put(Locale.ENGLISH, "Drag and drop");
- AJAX_DND_DESCRIPTION.put(Locale.ENGLISH, "Enable window drag and drop");
- WINDOW_CONTENT_TYPE_DISPLAY_NAME.put(Locale.ENGLISH, "Content type");
- WINDOW_CONTENT_TYPE_DESCRIPTION.put(Locale.ENGLISH, "The type of content of a
window");
- DEFAULT_CHILD_NAME_DISPLAY_NAME.put(Locale.ENGLISH, "Default child
name");
- DEFAULT_CHILD_NAME_DESCRIPTION.put(Locale.ENGLISH,
- "The child name used when no specific child name is explicited");
- PAGE_ORDER_DISPLAY_NAME.put(Locale.ENGLISH, "Tab order");
- PAGE_ORDER_DESCRIPTION.put(Locale.ENGLISH, "The order value to display pages
in tabs");
- INITIAL_WINDOW_STATE_DISPLAY_NAME.put(Locale.ENGLISH, "Initial Mode");
- INITIAL_WINDOW_STATE_DESCRIPTION.put(Locale.ENGLISH, "The inital mode of the
window");
- CONTROL_POLICY_PAGE_ACCESS_DENIED_DISPLAY_NAME.put(Locale.ENGLISH, "When
access to the window is denied");
- CONTROL_POLICY_PAGE_ACCESS_DENIED_DESCRIPTION.put(Locale.ENGLISH, "When access
to the window is denied");
- CONTROL_POLICY_PAGE_UNAVAILABLE_DISPLAY_NAME.put(Locale.ENGLISH, "When the
window is unavailable");
- CONTROL_POLICY_PAGE_UNAVAILABLE_DESCRIPTION.put(Locale.ENGLISH, "When the
window is unavailable");
- CONTROL_POLICY_PAGE_ERROR_DISPLAY_NAME.put(Locale.ENGLISH, "When there is an
error on the window");
- CONTROL_POLICY_PAGE_ERROR_DESCRIPTION.put(Locale.ENGLISH, "When there is an
error on the window");
- CONTROL_POLICY_PAGE_INTERNAL_ERROR_DISPLAY_NAME.put(Locale.ENGLISH, "When
there is an error within the window");
- CONTROL_POLICY_PAGE_INTERNAL_ERROR_DESCRIPTION.put(Locale.ENGLISH, "When there
is an error within the window");
- CONTROL_POLICY_PAGE_NOT_FOUND_DISPLAY_NAME.put(Locale.ENGLISH, "When the
window is not found");
- CONTROL_POLICY_PAGE_NOT_FOUND_DESCRIPTION.put(Locale.ENGLISH, "When the window
is not found");
- CONTROL_POLICY_PAGE_RESOURCE_URI_DISPLAY_NAME.put(Locale.ENGLISH, "On error
redirect to this resource");
- CONTROL_POLICY_PAGE_RESOURCE_URI_DESCRIPTION.put(Locale.ENGLISH, "On error
redirect to this resource");
- CONTROL_POLICY_PORTAL_ACCESS_DENIED_DISPLAY_NAME.put(Locale.ENGLISH, "When
access to the page is denied");
- CONTROL_POLICY_PORTAL_ACCESS_DENIED_DESCRIPTION.put(Locale.ENGLISH, "When
access to the page is denied");
- CONTROL_POLICY_PORTAL_UNAVAILABLE_DISPLAY_NAME.put(Locale.ENGLISH, "When the
page is unavailable");
- CONTROL_POLICY_PORTAL_UNAVAILABLE_DESCRIPTION.put(Locale.ENGLISH, "When the
page is unavailable");
- CONTROL_POLICY_PORTAL_ERROR_DISPLAY_NAME.put(Locale.ENGLISH, "When there is an
error on the page");
- CONTROL_POLICY_PORTAL_ERROR_DESCRIPTION.put(Locale.ENGLISH, "When there is an
error on the page");
- CONTROL_POLICY_PORTAL_INTERNAL_ERROR_DISPLAY_NAME.put(Locale.ENGLISH, "When
there is an error within the page");
- CONTROL_POLICY_PORTAL_INTERNAL_ERROR_DESCRIPTION.put(Locale.ENGLISH, "When
there is an error within the page");
- CONTROL_POLICY_PORTAL_NOT_FOUND_DISPLAY_NAME.put(Locale.ENGLISH, "When the
page is not found");
- CONTROL_POLICY_PORTAL_NOT_FOUND_DESCRIPTION.put(Locale.ENGLISH, "When the page
is not found");
- CONTROL_POLICY_PORTAL_RESOURCE_URI_DISPLAY_NAME.put(Locale.ENGLISH, "On error
redirect to this resource");
- CONTROL_POLICY_PORTAL_RESOURCE_URI_DESCRIPTION.put(Locale.ENGLISH, "On error
redirect to this resource");
-
- THEME_LAYOUT_ID_DISPLAY_NAME.put(Locale.ITALY, "Id Layout");
- THEME_LAYOUT_ID_DESCRIPTION.put(Locale.ITALY, "Il valore del layout formatta
la pagina");
- THEME_THEME_ID_DISPLAY_NAME.put(Locale.ITALY, "Id Tema");
- THEME_THEME_ID_DESCRIPTION.put(Locale.ITALY, "Il valore del tema copre la
pagina");
- THEME_RENDER_SET_ID_DISPLAY_NAME.put(Locale.ITALY, "Id Renderset");
- THEME_RENDER_SET_ID_DESCRIPTION.put(Locale.ITALY, "L'id del
renderset");
- THEME_RENDER_REGION_ID_DISPLAY_NAME.put(Locale.ITALY, "Id Regione");
- THEME_RENDER_REGION_ID_DESCRIPTION.put(Locale.ITALY, "Regione desiderata per
la finestra");
- THEME_RENDER_REGION_ORDER_DISPLAY_NAME.put(Locale.ITALY, "Ordine
Regione");
- THEME_RENDER_REGION_ORDER_DESCRIPTION.put(Locale.ITALY,
- "L'ordine verticale o orizzontale della finestra dentro una
regione");
- AJAX_PARTIAL_REFRESH_DISPLAY_NAME.put(Locale.ITALY, "Aggiornamento
parziale");
- AJAX_PARTIAL_REFRESH_DESCRIPTION.put(Locale.ITALY, "Attiva l'aggiornamento
parziale per le portlet");
- AJAX_DND_DISPLAY_NAME.put(Locale.ITALY, "Copia e incolla");
- AJAX_DND_DESCRIPTION.put(Locale.ITALY, "Attiva il copia e incolla per la
finestra");
- WINDOW_CONTENT_TYPE_DISPLAY_NAME.put(Locale.ITALY, "Tipo Contenuto");
- WINDOW_CONTENT_TYPE_DESCRIPTION.put(Locale.ITALY, "Il tipo di contenuto di una
finestra");
- DEFAULT_CHILD_NAME_DISPLAY_NAME.put(Locale.ITALY, "Nome di default del
figlio");
- DEFAULT_CHILD_NAME_DESCRIPTION.put(Locale.ITALY, "Il nome del figlio quando
non c'è un nome specificato");
- PAGE_ORDER_DISPLAY_NAME.put(Locale.ITALY, "Ordine Etichetta");
- PAGE_ORDER_DESCRIPTION.put(Locale.ITALY, "Il valore dell'ordine per
visualizzare le pagine nelle etichette");
- INITIAL_WINDOW_STATE_DISPLAY_NAME.put(Locale.ITALY, "Modalità
iniziale");
- INITIAL_WINDOW_STATE_DESCRIPTION.put(Locale.ITALY, "La modalità iniziale della
finestra");
- CONTROL_POLICY_PAGE_ACCESS_DENIED_DISPLAY_NAME.put(Locale.ITALY, "Quando
l'accesso alla finestra è negato");
- CONTROL_POLICY_PAGE_ACCESS_DENIED_DESCRIPTION.put(Locale.ITALY, "Quando
l'accesso alla finestra è negato");
- CONTROL_POLICY_PAGE_UNAVAILABLE_DISPLAY_NAME.put(Locale.ITALY, "Quando la
finestra non è disponibile");
- CONTROL_POLICY_PAGE_UNAVAILABLE_DESCRIPTION.put(Locale.ITALY, "Quando la
finestra non è disponibile");
- CONTROL_POLICY_PAGE_ERROR_DISPLAY_NAME.put(Locale.ITALY, "Quando c'è un
errore sulla finestra");
- CONTROL_POLICY_PAGE_ERROR_DESCRIPTION.put(Locale.ITALY, "Quando c'è un
errore sulla finestra");
- CONTROL_POLICY_PAGE_INTERNAL_ERROR_DISPLAY_NAME.put(Locale.ITALY, "Quando
c'è un errore nella finestra");
- CONTROL_POLICY_PAGE_INTERNAL_ERROR_DESCRIPTION.put(Locale.ITALY, "Quando
c'è un errore nella finestra");
- CONTROL_POLICY_PAGE_NOT_FOUND_DISPLAY_NAME.put(Locale.ITALY, "Quando la
finestra non viene trovata");
- CONTROL_POLICY_PAGE_NOT_FOUND_DESCRIPTION.put(Locale.ITALY, "Quando la
finestra non viene trovata");
- CONTROL_POLICY_PAGE_RESOURCE_URI_DISPLAY_NAME.put(Locale.ITALY,
- "In caso di errore redireziona sulla risorsa");
- CONTROL_POLICY_PAGE_RESOURCE_URI_DESCRIPTION.put(Locale.ITALY,
- "In caso di errore redireziona sulla risorsa");
- CONTROL_POLICY_PORTAL_ACCESS_DENIED_DISPLAY_NAME.put(Locale.ITALY, "Quando
l'accesso alla pagina è negato");
- CONTROL_POLICY_PORTAL_ACCESS_DENIED_DESCRIPTION.put(Locale.ITALY, "Quando
l'accesso alla pagina è negato");
- CONTROL_POLICY_PORTAL_UNAVAILABLE_DISPLAY_NAME.put(Locale.ITALY, "Quando la
pagina non è disponibile");
- CONTROL_POLICY_PORTAL_UNAVAILABLE_DESCRIPTION.put(Locale.ITALY, "Quando la
pagina non è disponibile");
- CONTROL_POLICY_PORTAL_ERROR_DISPLAY_NAME.put(Locale.ITALY, "Quando c'è un
errore sulla pagina");
- CONTROL_POLICY_PORTAL_ERROR_DESCRIPTION.put(Locale.ITALY, "Quando c'è un
errore sulla pagina");
- CONTROL_POLICY_PORTAL_INTERNAL_ERROR_DISPLAY_NAME.put(Locale.ITALY, "Quando
c'è un errore nella pagina");
- CONTROL_POLICY_PORTAL_INTERNAL_ERROR_DESCRIPTION.put(Locale.ITALY, "Quando
c'è un errore nella pagina");
- CONTROL_POLICY_PORTAL_NOT_FOUND_DISPLAY_NAME.put(Locale.ITALY, "Quando la
pagina non viene trovata");
- CONTROL_POLICY_PORTAL_NOT_FOUND_DESCRIPTION.put(Locale.ITALY, "Quando la
pagina non viene trovata");
- CONTROL_POLICY_PORTAL_RESOURCE_URI_DISPLAY_NAME.put(Locale.ITALY,
- "In caso di errore redireziona sulla risorsa");
- CONTROL_POLICY_PORTAL_RESOURCE_URI_DESCRIPTION.put(Locale.ITALY,
- "In caso di errore redireziona sulla risorsa");
- }
-
- public static final PropertyInfo THEME_LAYOUT_ID = new
PropertyInfo(ThemeConstants.PORTAL_PROP_LAYOUT,
- new LocalizedString(THEME_LAYOUT_ID_DISPLAY_NAME, Locale.getDefault()), new
LocalizedString(
- THEME_LAYOUT_ID_DESCRIPTION, Locale.getDefault()),
"java.lang.String",
- PropertyInfo.READ_WRITE_ACCESS_MODE, PropertyInfo.PRIVATE_SCOPE);
-
- public static final PropertyInfo THEME_THEME_ID = new
PropertyInfo(ThemeConstants.PORTAL_PROP_THEME,
- new LocalizedString(THEME_THEME_ID_DISPLAY_NAME, Locale.getDefault()), new
LocalizedString(
- THEME_THEME_ID_DESCRIPTION, Locale.getDefault()),
"java.lang.String",
- PropertyInfo.READ_WRITE_ACCESS_MODE, PropertyInfo.PRIVATE_SCOPE);
-
- public static final PropertyInfo THEME_RENDER_SET_ID = new
PropertyInfo(ThemeConstants.PORTAL_PROP_RENDERSET,
- new LocalizedString(THEME_RENDER_SET_ID_DISPLAY_NAME, Locale.getDefault()), new
LocalizedString(
- THEME_RENDER_SET_ID_DESCRIPTION, Locale.getDefault()),
"java.lang.String",
- PropertyInfo.READ_WRITE_ACCESS_MODE, PropertyInfo.PRIVATE_SCOPE);
-
- public static final PropertyInfo THEME_RENDER_REGION_ID = new
PropertyInfo(ThemeConstants.PORTAL_PROP_REGION,
- new LocalizedString(THEME_RENDER_REGION_ID_DISPLAY_NAME, Locale.getDefault()),
new LocalizedString(
- THEME_RENDER_REGION_ID_DESCRIPTION, Locale.getDefault()),
"java.lang.String",
- PropertyInfo.READ_WRITE_ACCESS_MODE, PropertyInfo.PRIVATE_SCOPE);
-
- public static final PropertyInfo THEME_RENDER_REGION_ORDER = new
PropertyInfo(ThemeConstants.PORTAL_PROP_ORDER,
- new LocalizedString(THEME_RENDER_REGION_ORDER_DISPLAY_NAME,
Locale.getDefault()), new LocalizedString(
- THEME_RENDER_REGION_ORDER_DESCRIPTION, Locale.getDefault()),
"java.lang.String",
- PropertyInfo.READ_WRITE_ACCESS_MODE, PropertyInfo.PUBLIC_SCOPE);
-
//
- public static final PropertyInfo AJAX_PARTIAL_REFRESH = new
PropertyInfo(DynaRenderOptions.PARTIAL_REFRESH_ENABLED,
- new LocalizedString(AJAX_PARTIAL_REFRESH_DISPLAY_NAME, Locale.getDefault()), new
LocalizedString(
- AJAX_PARTIAL_REFRESH_DESCRIPTION, Locale.getDefault()),
"java.lang.Boolean",
- PropertyInfo.READ_WRITE_ACCESS_MODE, PropertyInfo.PUBLIC_SCOPE);
+ public static final PropertyInfo AJAX_PARTIAL_REFRESH = new
PropertyInfo(DynaRenderOptions.PARTIAL_REFRESH_ENABLED, new LocalizedString("Partial
refresh"), new LocalizedString("Enable partial refresh for portlets"),
"java.lang.Boolean", PropertyInfo.READ_WRITE_ACCESS_MODE,
PropertyInfo.PUBLIC_SCOPE);
+ public static final PropertyInfo AJAX_DND = new
PropertyInfo(DynaRenderOptions.DND_ENABLED, new LocalizedString("Drag and
drop"), new LocalizedString("Enable window drag and drop"),
"java.lang.Boolean", PropertyInfo.READ_WRITE_ACCESS_MODE,
PropertyInfo.PUBLIC_SCOPE);
- public static final PropertyInfo AJAX_DND = new
PropertyInfo(DynaRenderOptions.DND_ENABLED, new LocalizedString(
- AJAX_DND_DISPLAY_NAME, Locale.getDefault()), new
LocalizedString(AJAX_DND_DESCRIPTION, Locale.getDefault()),
- "java.lang.Boolean", PropertyInfo.READ_WRITE_ACCESS_MODE,
PropertyInfo.PUBLIC_SCOPE);
-
//
- public static final PropertyInfo WINDOW_CONTENT_TYPE = new
PropertyInfo(WindowImpl.PORTAL_PROP_WINDOW_CONTENT_TYPE,
- new LocalizedString(WINDOW_CONTENT_TYPE_DISPLAY_NAME, Locale.getDefault()), new
LocalizedString(
- WINDOW_CONTENT_TYPE_DESCRIPTION, Locale.getDefault()),
"java.lang.String",
- PropertyInfo.READ_WRITE_ACCESS_MODE, PropertyInfo.PRIVATE_SCOPE);
+ public static final PropertyInfo WINDOW_CONTENT_TYPE = new
PropertyInfo(WindowImpl.PORTAL_PROP_WINDOW_CONTENT_TYPE, new LocalizedString("Content
type"), new LocalizedString("The type of content of a window"),
"java.lang.String", PropertyInfo.READ_WRITE_ACCESS_MODE,
PropertyInfo.PRIVATE_SCOPE);
+ public static final PropertyInfo DEFAULT_CHILD_NAME = new
PropertyInfo(WindowImpl.PORTAL_PROP_DEFAULT_OBJECT_NAME, new LocalizedString("Default
child name"), new LocalizedString("The child name used when no specific child
name is explicited"), "java.lang.String",
PropertyInfo.READ_WRITE_ACCESS_MODE, PropertyInfo.PUBLIC_SCOPE);
+ public static final PropertyInfo PAGE_ORDER = new PropertyInfo("order", new
LocalizedString("Tab order"), new LocalizedString("The order value to
display pages in tabs"), "java.lang.String",
PropertyInfo.READ_WRITE_ACCESS_MODE, PropertyInfo.PUBLIC_SCOPE);
+ public static final PropertyInfo INITIAL_WINDOW_STATE = new
PropertyInfo(WindowImpl.PORTAL_INITIAL_WINDOW_STATE, new LocalizedString("Initial
Mode"), new LocalizedString("The inital mode of the window"),
"java.lang.String", PropertyInfo.READ_WRITE_ACCESS_MODE,
PropertyInfo.PUBLIC_SCOPE);
- public static final PropertyInfo DEFAULT_CHILD_NAME = new
PropertyInfo(WindowImpl.PORTAL_PROP_DEFAULT_OBJECT_NAME,
- new LocalizedString(DEFAULT_CHILD_NAME_DISPLAY_NAME, Locale.getDefault()), new
LocalizedString(
- DEFAULT_CHILD_NAME_DESCRIPTION, Locale.getDefault()),
"java.lang.String",
- PropertyInfo.READ_WRITE_ACCESS_MODE, PropertyInfo.PUBLIC_SCOPE);
-
- public static final PropertyInfo PAGE_ORDER = new PropertyInfo("order", new
LocalizedString(PAGE_ORDER_DISPLAY_NAME,
- Locale.getDefault()), new LocalizedString(PAGE_ORDER_DESCRIPTION,
Locale.getDefault()), "java.lang.String",
- PropertyInfo.READ_WRITE_ACCESS_MODE, PropertyInfo.PUBLIC_SCOPE);
-
- public static final PropertyInfo INITIAL_WINDOW_STATE = new
PropertyInfo(WindowImpl.PORTAL_INITIAL_WINDOW_STATE,
- new LocalizedString(INITIAL_WINDOW_STATE_DISPLAY_NAME, Locale.getDefault()), new
LocalizedString(
- INITIAL_WINDOW_STATE_DESCRIPTION, Locale.getDefault()),
"java.lang.String",
- PropertyInfo.READ_WRITE_ACCESS_MODE, PropertyInfo.PUBLIC_SCOPE);
-
//
- public static final PropertyInfo CONTROL_POLICY_PAGE_ACCESS_DENIED = new
PropertyInfo(
- ControlConstants.PAGE_ACCESS_DENIED_CONTROL_KEY, new LocalizedString(
- CONTROL_POLICY_PAGE_ACCESS_DENIED_DISPLAY_NAME, Locale.getDefault()), new
LocalizedString(
- CONTROL_POLICY_PAGE_ACCESS_DENIED_DESCRIPTION, Locale.getDefault()),
"java.lang.String",
- PropertyInfo.READ_WRITE_ACCESS_MODE, PropertyInfo.PRIVATE_SCOPE);
+ public static final PropertyInfo CONTROL_POLICY_PAGE_ACCESS_DENIED = new
PropertyInfo(ControlConstants.PAGE_ACCESS_DENIED_CONTROL_KEY, new
LocalizedString("When access to the window is denied"), new
LocalizedString("When access to the window is denied"),
"java.lang.String", PropertyInfo.READ_WRITE_ACCESS_MODE,
PropertyInfo.PRIVATE_SCOPE);
+ public static final PropertyInfo CONTROL_POLICY_PAGE_UNAVAILABLE = new
PropertyInfo(ControlConstants.PAGE_UNAVAILABLE_CONTROL_KEY, new LocalizedString("When
the window is unavailable"), new LocalizedString("When the window is
unavailable"), "java.lang.String", PropertyInfo.READ_WRITE_ACCESS_MODE,
PropertyInfo.PRIVATE_SCOPE);
+ public static final PropertyInfo CONTROL_POLICY_PAGE_ERROR = new
PropertyInfo(ControlConstants.PAGE_ERROR_CONTROL_KEY, new LocalizedString("When there
is an error on the window"), new LocalizedString("When there is an error on the
window"), "java.lang.String", PropertyInfo.READ_WRITE_ACCESS_MODE,
PropertyInfo.PRIVATE_SCOPE);
+ public static final PropertyInfo CONTROL_POLICY_PAGE_INTERNAL_ERROR = new
PropertyInfo(ControlConstants.PAGE_INTERNAL_ERROR_CONTROL_KEY, new
LocalizedString("When there is an error within the window"), new
LocalizedString("When there is an error within the window"),
"java.lang.String", PropertyInfo.READ_WRITE_ACCESS_MODE,
PropertyInfo.PRIVATE_SCOPE);
+ public static final PropertyInfo CONTROL_POLICY_PAGE_NOT_FOUND = new
PropertyInfo(ControlConstants.PAGE_NOT_FOUND_CONTROL_KEY, new LocalizedString("When
the window is not found"), new LocalizedString("When the window is not
found"), "java.lang.String", PropertyInfo.READ_WRITE_ACCESS_MODE,
PropertyInfo.PRIVATE_SCOPE);
+ public static final PropertyInfo CONTROL_POLICY_PAGE_RESOURCE_URI = new
PropertyInfo(ControlConstants.PAGE_RESOURCE_URI_CONTROL_KEY, new LocalizedString("On
error redirect to this resource"), new LocalizedString("On error redirect to
this resource"), "java.lang.String", PropertyInfo.READ_WRITE_ACCESS_MODE,
PropertyInfo.PRIVATE_SCOPE);
- public static final PropertyInfo CONTROL_POLICY_PAGE_UNAVAILABLE = new PropertyInfo(
- ControlConstants.PAGE_UNAVAILABLE_CONTROL_KEY, new LocalizedString(
- CONTROL_POLICY_PAGE_UNAVAILABLE_DISPLAY_NAME, Locale.getDefault()), new
LocalizedString(
- CONTROL_POLICY_PAGE_UNAVAILABLE_DESCRIPTION, Locale.getDefault()),
"java.lang.String",
- PropertyInfo.READ_WRITE_ACCESS_MODE, PropertyInfo.PRIVATE_SCOPE);
-
- public static final PropertyInfo CONTROL_POLICY_PAGE_ERROR = new PropertyInfo(
- ControlConstants.PAGE_ERROR_CONTROL_KEY, new
LocalizedString(CONTROL_POLICY_PAGE_ERROR_DISPLAY_NAME, Locale
- .getDefault()), new LocalizedString(CONTROL_POLICY_PAGE_ERROR_DESCRIPTION,
Locale.getDefault()),
- "java.lang.String", PropertyInfo.READ_WRITE_ACCESS_MODE,
PropertyInfo.PRIVATE_SCOPE);
-
- public static final PropertyInfo CONTROL_POLICY_PAGE_INTERNAL_ERROR = new
PropertyInfo(
- ControlConstants.PAGE_INTERNAL_ERROR_CONTROL_KEY, new LocalizedString(
- CONTROL_POLICY_PAGE_INTERNAL_ERROR_DISPLAY_NAME, Locale.getDefault()), new
LocalizedString(
- CONTROL_POLICY_PAGE_INTERNAL_ERROR_DESCRIPTION, Locale.getDefault()),
"java.lang.String",
- PropertyInfo.READ_WRITE_ACCESS_MODE, PropertyInfo.PRIVATE_SCOPE);
-
- public static final PropertyInfo CONTROL_POLICY_PAGE_NOT_FOUND = new PropertyInfo(
- ControlConstants.PAGE_NOT_FOUND_CONTROL_KEY, new
LocalizedString(CONTROL_POLICY_PAGE_NOT_FOUND_DISPLAY_NAME,
- Locale.getDefault()),
- new LocalizedString(CONTROL_POLICY_PAGE_NOT_FOUND_DESCRIPTION,
Locale.getDefault()), "java.lang.String",
- PropertyInfo.READ_WRITE_ACCESS_MODE, PropertyInfo.PRIVATE_SCOPE);
-
- public static final PropertyInfo CONTROL_POLICY_PAGE_RESOURCE_URI = new PropertyInfo(
- ControlConstants.PAGE_RESOURCE_URI_CONTROL_KEY, new LocalizedString(
- CONTROL_POLICY_PAGE_RESOURCE_URI_DISPLAY_NAME, Locale.getDefault()), new
LocalizedString(
- CONTROL_POLICY_PAGE_RESOURCE_URI_DESCRIPTION, Locale.getDefault()),
"java.lang.String",
- PropertyInfo.READ_WRITE_ACCESS_MODE, PropertyInfo.PRIVATE_SCOPE);
-
//
- public static final PropertyInfo CONTROL_POLICY_PORTAL_ACCESS_DENIED = new
PropertyInfo(
- ControlConstants.PORTAL_ACCESS_DENIED_CONTROL_KEY, new LocalizedString(
- CONTROL_POLICY_PORTAL_ACCESS_DENIED_DISPLAY_NAME, Locale.getDefault()),
new LocalizedString(
- CONTROL_POLICY_PORTAL_ACCESS_DENIED_DESCRIPTION, Locale.getDefault()),
"java.lang.String",
- PropertyInfo.READ_WRITE_ACCESS_MODE, PropertyInfo.PRIVATE_SCOPE);
+ public static final PropertyInfo CONTROL_POLICY_PORTAL_ACCESS_DENIED = new
PropertyInfo(ControlConstants.PORTAL_ACCESS_DENIED_CONTROL_KEY, new
LocalizedString("When access to the page is denied"), new
LocalizedString("When access to the page is denied"),
"java.lang.String", PropertyInfo.READ_WRITE_ACCESS_MODE,
PropertyInfo.PRIVATE_SCOPE);
+ public static final PropertyInfo CONTROL_POLICY_PORTAL_UNAVAILABLE = new
PropertyInfo(ControlConstants.PORTAL_UNAVAILABLE_CONTROL_KEY, new
LocalizedString("When the page is unavailable"), new LocalizedString("When
the page is unavailable"), "java.lang.String",
PropertyInfo.READ_WRITE_ACCESS_MODE, PropertyInfo.PRIVATE_SCOPE);
+ public static final PropertyInfo CONTROL_POLICY_PORTAL_ERROR = new
PropertyInfo(ControlConstants.PORTAL_ERROR_CONTROL_KEY, new LocalizedString("When
there is an error on the page"), new LocalizedString("When there is an error on
the page"), "java.lang.String", PropertyInfo.READ_WRITE_ACCESS_MODE,
PropertyInfo.PRIVATE_SCOPE);
+ public static final PropertyInfo CONTROL_POLICY_PORTAL_INTERNAL_ERROR = new
PropertyInfo(ControlConstants.PORTAL_INTERNAL_ERROR_CONTROL_KEY, new
LocalizedString("When there is an error within the page"), new
LocalizedString("When there is an error within the page"),
"java.lang.String", PropertyInfo.READ_WRITE_ACCESS_MODE,
PropertyInfo.PRIVATE_SCOPE);
+ public static final PropertyInfo CONTROL_POLICY_PORTAL_NOT_FOUND = new
PropertyInfo(ControlConstants.PORTAL_NOT_FOUND_CONTROL_KEY, new LocalizedString("When
the page is not found"), new LocalizedString("When the page is not found"),
"java.lang.String", PropertyInfo.READ_WRITE_ACCESS_MODE,
PropertyInfo.PRIVATE_SCOPE);
+ public static final PropertyInfo CONTROL_POLICY_PORTAL_RESOURCE_URI = new
PropertyInfo(ControlConstants.PORTAL_RESOURCE_URI_CONTROL_KEY, new
LocalizedString("On error redirect to this resource"), new
LocalizedString("On error redirect to this resource"),
"java.lang.String", PropertyInfo.READ_WRITE_ACCESS_MODE,
PropertyInfo.PRIVATE_SCOPE);
- public static final PropertyInfo CONTROL_POLICY_PORTAL_UNAVAILABLE = new
PropertyInfo(
- ControlConstants.PORTAL_UNAVAILABLE_CONTROL_KEY, new LocalizedString(
- CONTROL_POLICY_PORTAL_UNAVAILABLE_DISPLAY_NAME, Locale.getDefault()), new
LocalizedString(
- CONTROL_POLICY_PORTAL_UNAVAILABLE_DESCRIPTION, Locale.getDefault()),
"java.lang.String",
- PropertyInfo.READ_WRITE_ACCESS_MODE, PropertyInfo.PRIVATE_SCOPE);
- public static final PropertyInfo CONTROL_POLICY_PORTAL_ERROR = new PropertyInfo(
- ControlConstants.PORTAL_ERROR_CONTROL_KEY, new
LocalizedString(CONTROL_POLICY_PORTAL_ERROR_DISPLAY_NAME,
- Locale.getDefault()), new
LocalizedString(CONTROL_POLICY_PORTAL_ERROR_DESCRIPTION, Locale.getDefault()),
- "java.lang.String", PropertyInfo.READ_WRITE_ACCESS_MODE,
PropertyInfo.PRIVATE_SCOPE);
-
- public static final PropertyInfo CONTROL_POLICY_PORTAL_INTERNAL_ERROR = new
PropertyInfo(
- ControlConstants.PORTAL_INTERNAL_ERROR_CONTROL_KEY, new LocalizedString(
- CONTROL_POLICY_PORTAL_INTERNAL_ERROR_DISPLAY_NAME, Locale.getDefault()),
new LocalizedString(
- CONTROL_POLICY_PORTAL_INTERNAL_ERROR_DESCRIPTION, Locale.getDefault()),
"java.lang.String",
- PropertyInfo.READ_WRITE_ACCESS_MODE, PropertyInfo.PRIVATE_SCOPE);
-
- public static final PropertyInfo CONTROL_POLICY_PORTAL_NOT_FOUND = new PropertyInfo(
- ControlConstants.PORTAL_NOT_FOUND_CONTROL_KEY, new LocalizedString(
- CONTROL_POLICY_PORTAL_NOT_FOUND_DISPLAY_NAME, Locale.getDefault()), new
LocalizedString(
- CONTROL_POLICY_PORTAL_NOT_FOUND_DESCRIPTION, Locale.getDefault()),
"java.lang.String",
- PropertyInfo.READ_WRITE_ACCESS_MODE, PropertyInfo.PRIVATE_SCOPE);
-
- public static final PropertyInfo CONTROL_POLICY_PORTAL_RESOURCE_URI = new
PropertyInfo(
- ControlConstants.PORTAL_RESOURCE_URI_CONTROL_KEY, new LocalizedString(
- CONTROL_POLICY_PORTAL_RESOURCE_URI_DISPLAY_NAME, Locale.getDefault()), new
LocalizedString(
- CONTROL_POLICY_PORTAL_RESOURCE_URI_DESCRIPTION, Locale.getDefault()),
"java.lang.String",
- PropertyInfo.READ_WRITE_ACCESS_MODE, PropertyInfo.PRIVATE_SCOPE);
-
/** . */
private static final PropertyInfoSet CONTEXT_PROPERTIES = new PropertyInfoSet();
@@ -496,16 +206,16 @@
Map objectProps = null;
switch (portalObject.getType())
{
- case PortalObject.TYPE_CONTEXT :
+ case PortalObject.TYPE_CONTEXT:
objectProps = CONTEXT_PROPERTIES;
break;
- case PortalObject.TYPE_PORTAL :
+ case PortalObject.TYPE_PORTAL:
objectProps = PORTAL_PROPERTIES;
break;
- case PortalObject.TYPE_PAGE :
+ case PortalObject.TYPE_PAGE:
objectProps = PAGE_PROPERTIES;
break;
- case PortalObject.TYPE_WINDOW :
+ case PortalObject.TYPE_WINDOW:
objectProps = WINDOW_PROPERTIES;
break;
}
@@ -516,15 +226,14 @@
//
for (Iterator i = portalObject.getDeclaredProperties().entrySet().iterator();
i.hasNext();)
{
- Map.Entry entry = (Map.Entry) i.next();
- String name = (String) entry.getKey();
+ Map.Entry entry = (Map.Entry)i.next();
+ String name = (String)entry.getKey();
// Add additional properties
if (!ALL_PROPERTIES.containsKey(name))
{
LocalizedString displayName = new LocalizedString(name);
- PropertyInfo info = new PropertyInfo(name, displayName, new
LocalizedString("The " + name + " property"),
- "java.lang.String", PropertyInfo.READ_WRITE_ACCESS_MODE,
PropertyInfo.PUBLIC_SCOPE);
+ PropertyInfo info = new PropertyInfo(name, displayName, new
LocalizedString("The " + name + " property"),
"java.lang.String", PropertyInfo.READ_WRITE_ACCESS_MODE,
PropertyInfo.PUBLIC_SCOPE);
entries.put(name, info);
}
}
@@ -540,7 +249,7 @@
public PropertyInfo getPropertyInfo(String name)
{
- return (PropertyInfo) entries.get(name);
+ return (PropertyInfo)entries.get(name);
}
public static boolean isControlProperty(String name)
@@ -550,7 +259,7 @@
public static PropertyInfo getControlPropertyInfo(String name)
{
- return (PropertyInfo) CONTROL_PROPERTIES.get(name);
+ return (PropertyInfo)CONTROL_PROPERTIES.get(name);
}
}