org.infoglue.cms.controllers.kernel.impl.simple
Class InfoGlueSettingsController

java.lang.Object
  extended by org.infoglue.cms.controllers.kernel.impl.simple.BaseController
      extended by org.infoglue.cms.controllers.kernel.impl.simple.InfoGlueSettingsController
All Implemented Interfaces:
CastorSettingsPersister

public class InfoGlueSettingsController
extends BaseController
implements CastorSettingsPersister


Method Summary
 void addVariation(java.lang.String nameSpace, java.lang.String variationId, org.exolab.castor.jdo.Database database)
           
 void addVariation(java.lang.String nameSpace, java.lang.String name, java.lang.String variationId, org.exolab.castor.jdo.Database database)
           
 InfoGlueProperty createProperty(java.lang.String nameSpace, java.lang.String name, java.lang.String value, org.exolab.castor.jdo.Database database)
          This method is used to create a new InfoGlueProperty object in the database inside a transaction.
static java.lang.Object findOnValueStack(java.lang.String expr)
           
static InfoGlueSettingsController getInfoGlueSettingsController()
          A simple factory method
 BaseEntityVO getNewVO()
           
 InfoGlueProperty getProperty(java.lang.Integer id, org.exolab.castor.jdo.Database database)
          This method returns a InfoGlueProperty based on it's primary key inside a transaction
 InfoGlueProperty getProperty(java.lang.Long id, org.exolab.castor.jdo.Database database)
          This method returns a Property based on it's primary key inside a transaction
 java.lang.String getProperty(java.lang.String key, java.lang.String variationId, boolean skipInfoGlueProperty, boolean fallbackToDefault, boolean fallbackToKey, boolean useDerivedValue, org.exolab.castor.jdo.Database database)
           
 InfoGlueProperty getProperty(java.lang.String nameSpace, java.lang.String name, org.exolab.castor.jdo.Database database)
          Gets a list of all events available for a particular day.
 java.lang.String getProperty(java.lang.String key, java.lang.String name, java.lang.String variationId, boolean skipInfoGlueProperty, boolean fallbackToDefault, boolean fallbackToKey, boolean useDerivedValue, org.exolab.castor.jdo.Database database)
           
 java.lang.String getPropertyFromInfoGlue(java.lang.String key, java.lang.String name, java.lang.String variationId, boolean skipInfoGlueProperty, boolean fallbackToDefault, boolean fallbackToKey, boolean useDerivedValue, org.exolab.castor.jdo.Database database)
           
 java.lang.String getPropertyFromPropertySet(java.lang.String key, java.lang.String name, java.lang.String variationId, boolean skipInfoGlueProperty, boolean fallbackToDefault, boolean fallbackToKey, boolean useDerivedValue, org.exolab.castor.jdo.Database database)
           
 InfoGlueProperty getPropertyWithId(java.lang.Integer id, org.exolab.castor.jdo.Database db)
           
 java.lang.String getSetting(java.lang.String nameSpace, java.lang.String name, java.lang.String derivedValue, java.lang.String variationId, org.exolab.castor.jdo.Database database)
           
 java.util.List getSettingsVariations(java.lang.String nameSpace, java.lang.String name, org.exolab.castor.jdo.Database database)
          This method returns a list (of locales) of all defined label-languages.
 java.util.List getSystemSettings(java.lang.String bundleName)
          This method returns a list (of strings) of all label-keys the system uses.
 void removeProperty(java.lang.String nameSpace, java.lang.String variationId, java.lang.String key, org.exolab.castor.jdo.Database database)
           
 void removeProperty(java.lang.String nameSpace, java.lang.String name, java.lang.String variationId, java.lang.String key, org.exolab.castor.jdo.Database database)
           
 void removeVariation(java.lang.String nameSpace, java.lang.String variationId, org.exolab.castor.jdo.Database database)
           
 void removeVariation(java.lang.String nameSpace, java.lang.String name, java.lang.String variationId, org.exolab.castor.jdo.Database database)
           
 void setInfoGlueProperty(java.lang.String string, java.lang.String string2, java.lang.String string3, java.lang.String allowedContentTypeNames)
           
 void updateProperty(InfoGlueProperty property, java.lang.String value, org.exolab.castor.jdo.Database database)
          Updates an property inside an transaction.
 void updateProperty(java.lang.String nameSpace, java.lang.String name, java.lang.String value, org.exolab.castor.jdo.Database database)
          Updates an property.
 void updateSetting(java.lang.String nameSpace, java.lang.String name, java.lang.String variationId, java.lang.String key, java.lang.String value, org.exolab.castor.jdo.Database database)
           
 void updateSettings(java.lang.String nameSpace, java.lang.String variationId, java.util.Map properties, org.exolab.castor.jdo.Database database)
           
 void updateSettings(java.lang.String nameSpace, java.lang.String name, java.lang.String variationId, java.util.Map properties, org.exolab.castor.jdo.Database database)
           
 
Methods inherited from class org.infoglue.cms.controllers.kernel.impl.simple.BaseController
beginTransaction, beginTransaction, closeDatabase, commitTransaction, createEntity, createEntity, createQuery, deleteEntity, deleteEntity, deleteEntity, deleteEntity, executeQuery, executeQuery, executeQuery, executeQuery, getAllObjects, getAllVOObjects, getAllVOObjects, getAllVOObjects, getAllVOObjects, getObjectWithId, getObjectWithId, getObjectWithIdAsReadOnly, getVOWithId, getVOWithId, getVOWithId, getVOWithId, intercept, intercept, rollbackTransaction, toModifiableVOList, toVOList, updateEntity, updateEntity, updateEntity, updateEntity, validateEntity
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInfoGlueSettingsController

public static InfoGlueSettingsController getInfoGlueSettingsController()
A simple factory method


getPropertyWithId

public InfoGlueProperty getPropertyWithId(java.lang.Integer id,
                                          org.exolab.castor.jdo.Database db)
                                   throws SystemException,
                                          Bug
Throws:
SystemException
Bug

getSystemSettings

public java.util.List getSystemSettings(java.lang.String bundleName)
This method returns a list (of strings) of all label-keys the system uses.


getSettingsVariations

public java.util.List getSettingsVariations(java.lang.String nameSpace,
                                            java.lang.String name,
                                            org.exolab.castor.jdo.Database database)
                                     throws java.lang.Exception
This method returns a list (of locales) of all defined label-languages.

Throws:
java.lang.Exception

addVariation

public void addVariation(java.lang.String nameSpace,
                         java.lang.String variationId,
                         org.exolab.castor.jdo.Database database)
                  throws java.lang.Exception
Throws:
java.lang.Exception

addVariation

public void addVariation(java.lang.String nameSpace,
                         java.lang.String name,
                         java.lang.String variationId,
                         org.exolab.castor.jdo.Database database)
                  throws java.lang.Exception
Throws:
java.lang.Exception

removeVariation

public void removeVariation(java.lang.String nameSpace,
                            java.lang.String variationId,
                            org.exolab.castor.jdo.Database database)
                     throws java.lang.Exception
Throws:
java.lang.Exception

removeVariation

public void removeVariation(java.lang.String nameSpace,
                            java.lang.String name,
                            java.lang.String variationId,
                            org.exolab.castor.jdo.Database database)
                     throws java.lang.Exception
Throws:
java.lang.Exception

removeProperty

public void removeProperty(java.lang.String nameSpace,
                           java.lang.String variationId,
                           java.lang.String key,
                           org.exolab.castor.jdo.Database database)
                    throws java.lang.Exception
Throws:
java.lang.Exception

removeProperty

public void removeProperty(java.lang.String nameSpace,
                           java.lang.String name,
                           java.lang.String variationId,
                           java.lang.String key,
                           org.exolab.castor.jdo.Database database)
                    throws java.lang.Exception
Throws:
java.lang.Exception

updateSettings

public void updateSettings(java.lang.String nameSpace,
                           java.lang.String variationId,
                           java.util.Map properties,
                           org.exolab.castor.jdo.Database database)
                    throws java.lang.Exception
Throws:
java.lang.Exception

updateSettings

public void updateSettings(java.lang.String nameSpace,
                           java.lang.String name,
                           java.lang.String variationId,
                           java.util.Map properties,
                           org.exolab.castor.jdo.Database database)
                    throws java.lang.Exception
Throws:
java.lang.Exception

updateSetting

public void updateSetting(java.lang.String nameSpace,
                          java.lang.String name,
                          java.lang.String variationId,
                          java.lang.String key,
                          java.lang.String value,
                          org.exolab.castor.jdo.Database database)
                   throws java.lang.Exception
Throws:
java.lang.Exception

getSetting

public java.lang.String getSetting(java.lang.String nameSpace,
                                   java.lang.String name,
                                   java.lang.String derivedValue,
                                   java.lang.String variationId,
                                   org.exolab.castor.jdo.Database database)
                            throws java.lang.Exception
Throws:
java.lang.Exception

getProperty

public InfoGlueProperty getProperty(java.lang.Integer id,
                                    org.exolab.castor.jdo.Database database)
                             throws java.lang.Exception
This method returns a InfoGlueProperty based on it's primary key inside a transaction

Returns:
InfoGlueProperty
Throws:
java.lang.Exception

getProperty

public InfoGlueProperty getProperty(java.lang.String nameSpace,
                                    java.lang.String name,
                                    org.exolab.castor.jdo.Database database)
                             throws java.lang.Exception
Gets a list of all events available for a particular day.

Specified by:
getProperty in interface CastorSettingsPersister
Returns:
List of Event
Throws:
java.lang.Exception

createProperty

public InfoGlueProperty createProperty(java.lang.String nameSpace,
                                       java.lang.String name,
                                       java.lang.String value,
                                       org.exolab.castor.jdo.Database database)
                                throws java.lang.Exception
This method is used to create a new InfoGlueProperty object in the database inside a transaction.

Specified by:
createProperty in interface CastorSettingsPersister
Throws:
java.lang.Exception

updateProperty

public void updateProperty(java.lang.String nameSpace,
                           java.lang.String name,
                           java.lang.String value,
                           org.exolab.castor.jdo.Database database)
                    throws java.lang.Exception
Updates an property.

Specified by:
updateProperty in interface CastorSettingsPersister
Throws:
java.lang.Exception

updateProperty

public void updateProperty(InfoGlueProperty property,
                           java.lang.String value,
                           org.exolab.castor.jdo.Database database)
                    throws java.lang.Exception
Updates an property inside an transaction.

Specified by:
updateProperty in interface CastorSettingsPersister
Throws:
java.lang.Exception

getProperty

public java.lang.String getProperty(java.lang.String key,
                                    java.lang.String variationId,
                                    boolean skipInfoGlueProperty,
                                    boolean fallbackToDefault,
                                    boolean fallbackToKey,
                                    boolean useDerivedValue,
                                    org.exolab.castor.jdo.Database database)

getProperty

public java.lang.String getProperty(java.lang.String key,
                                    java.lang.String name,
                                    java.lang.String variationId,
                                    boolean skipInfoGlueProperty,
                                    boolean fallbackToDefault,
                                    boolean fallbackToKey,
                                    boolean useDerivedValue,
                                    org.exolab.castor.jdo.Database database)

getPropertyFromPropertySet

public java.lang.String getPropertyFromPropertySet(java.lang.String key,
                                                   java.lang.String name,
                                                   java.lang.String variationId,
                                                   boolean skipInfoGlueProperty,
                                                   boolean fallbackToDefault,
                                                   boolean fallbackToKey,
                                                   boolean useDerivedValue,
                                                   org.exolab.castor.jdo.Database database)

getPropertyFromInfoGlue

public java.lang.String getPropertyFromInfoGlue(java.lang.String key,
                                                java.lang.String name,
                                                java.lang.String variationId,
                                                boolean skipInfoGlueProperty,
                                                boolean fallbackToDefault,
                                                boolean fallbackToKey,
                                                boolean useDerivedValue,
                                                org.exolab.castor.jdo.Database database)

findOnValueStack

public static java.lang.Object findOnValueStack(java.lang.String expr)

setInfoGlueProperty

public void setInfoGlueProperty(java.lang.String string,
                                java.lang.String string2,
                                java.lang.String string3,
                                java.lang.String allowedContentTypeNames)

getNewVO

public BaseEntityVO getNewVO()
Specified by:
getNewVO in class BaseController

getProperty

public InfoGlueProperty getProperty(java.lang.Long id,
                                    org.exolab.castor.jdo.Database database)
                             throws java.lang.Exception
Description copied from interface: CastorSettingsPersister
This method returns a Property based on it's primary key inside a transaction

Specified by:
getProperty in interface CastorSettingsPersister
Returns:
Property
Throws:
java.lang.Exception


Copyright © 2005 InfoGlue.org All Rights Reserved.