org.openxava.util
Class XavaPreferences

java.lang.Object
  extended by org.openxava.util.XavaPreferences

public class XavaPreferences
extends java.lang.Object

Author:
Javier Paniza

Method Summary
 java.lang.String getCSVSeparator()
           
 java.util.logging.Level getHibernateJavaLoggingLevel()
           
static XavaPreferences getInstance()
           
 java.util.logging.Level getJavaLoggingLevel()
           
 int getMaxSizeForTextEditor()
           
 java.lang.String getPersistenceProviderClass()
           
 java.lang.String getPortletLocales()
           
 java.lang.String getSMTPHost()
           
 int getSMTPPort()
           
 java.lang.String getSMTPUserID()
           
 java.lang.String getSMTPUserPassword()
           
 java.lang.String getStyleClass()
           
 java.lang.String getStyleCSS()
           
 boolean isButtonsForNoImageActions()
          If true when an action has no image it uses a button for display it, else it uses a link.
 boolean isDetailOnBottomInCollections()
           
 boolean isDuplicateComponentWarnings()
           
 boolean isEJB2Persistence()
           
 boolean isEMailAsUserNameInPortal()
           
 boolean isFailOnAnnotationMisuse()
           
 boolean isHibernatePersistence()
           
 boolean isI18nWarnings()
           
 boolean isJPACodeInPOJOs()
           
 boolean isJPAPersistence()
           
 boolean isMapFacadeAsEJB()
           
 boolean isMapFacadeAutoCommit()
           
 boolean isReadOnlyAsLabel()
           
 boolean isShowCountInList()
           
 boolean isShowFilterByDefaultInCollections()
          If true filter is show by default for collections on init.
 boolean isShowFilterByDefaultInList()
          If true filter is show by default for list on init.
 boolean isTabAsEJB()
           
 boolean isToUpperForStringArgumentsInConditions()
          If true a upper case conversions will applied to string arguments for conditions in list and collections.
 void setDuplicateComponentWarnings(boolean duplicateComponentWarnings)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static XavaPreferences getInstance()

isReadOnlyAsLabel

public boolean isReadOnlyAsLabel()

isTabAsEJB

public boolean isTabAsEJB()

isShowCountInList

public boolean isShowCountInList()

isEMailAsUserNameInPortal

public boolean isEMailAsUserNameInPortal()

getSMTPHost

public java.lang.String getSMTPHost()

getSMTPPort

public int getSMTPPort()

getSMTPUserID

public java.lang.String getSMTPUserID()

getSMTPUserPassword

public java.lang.String getSMTPUserPassword()

getCSVSeparator

public java.lang.String getCSVSeparator()

getPersistenceProviderClass

public java.lang.String getPersistenceProviderClass()

getStyleClass

public java.lang.String getStyleClass()

getStyleCSS

public java.lang.String getStyleCSS()

isMapFacadeAsEJB

public boolean isMapFacadeAsEJB()

isMapFacadeAutoCommit

public boolean isMapFacadeAutoCommit()
Returns:
true if isMapFacadeAsEJB() == true, otherwise the value of mapFacadeAutoCommit property.

isEJB2Persistence

public boolean isEJB2Persistence()

isJPAPersistence

public boolean isJPAPersistence()

isHibernatePersistence

public boolean isHibernatePersistence()

isDetailOnBottomInCollections

public boolean isDetailOnBottomInCollections()

isJPACodeInPOJOs

public boolean isJPACodeInPOJOs()

isI18nWarnings

public boolean isI18nWarnings()

isDuplicateComponentWarnings

public boolean isDuplicateComponentWarnings()

isFailOnAnnotationMisuse

public boolean isFailOnAnnotationMisuse()

getMaxSizeForTextEditor

public int getMaxSizeForTextEditor()

setDuplicateComponentWarnings

public void setDuplicateComponentWarnings(boolean duplicateComponentWarnings)

getJavaLoggingLevel

public java.util.logging.Level getJavaLoggingLevel()

getHibernateJavaLoggingLevel

public java.util.logging.Level getHibernateJavaLoggingLevel()

isButtonsForNoImageActions

public boolean isButtonsForNoImageActions()
If true when an action has no image it uses a button for display it, else it uses a link.

The default value is false, that is, by default links for displaying no image actions.


isToUpperForStringArgumentsInConditions

public boolean isToUpperForStringArgumentsInConditions()
If true a upper case conversions will applied to string arguments for conditions in list and collections.

If true the searching using list or collections are more flexible (the user can use indistinctly upper or lower case) but can be slower in some databases (because they cannot use index). The default value is true.


isShowFilterByDefaultInList

public boolean isShowFilterByDefaultInList()
If true filter is show by default for list on init.

The user always have the option to show or hide the filter.
The default value is true.


isShowFilterByDefaultInCollections

public boolean isShowFilterByDefaultInCollections()
If true filter is show by default for collections on init.

The user always have the option to show or hide the filter.
The default value is true.


getPortletLocales

public java.lang.String getPortletLocales()