Package org.infoglue.cms.entities.management

Examples of org.infoglue.cms.entities.management.InfoGlueProperty


   
    Document document = (Document)object;
   
    if(document == null)
    {
      InfoGlueProperty property = settingsPersister.getProperty(nameSpace, name, database);
      if(property != null)
      {
        String xml = property.getValue();
        if(xml != null && xml.length() > 0)
        {
          //log.debug("xml:" + xml);
          try
          {
View Full Code Here


     * @throws Exception
     */

  public InfoGlueProperty getProperty(Integer id, Database database) throws Exception
    {
    InfoGlueProperty property = (InfoGlueProperty)database.load(InfoGlueProperty.class, id);
   
    return property;
    }
View Full Code Here

     * @throws Exception
     */
   
    public InfoGlueProperty getProperty(String nameSpace, String name, Database database) throws Exception
    {
        InfoGlueProperty property = null;

        boolean localTransaction = false;
      if(database == null)
      {
        localTransaction = true;
View Full Code Here

        localTransaction = true;
        database = CastorDatabaseService.getDatabase();
        database.begin();
      }
     
      InfoGlueProperty property = new InfoGlueProperty();
        property.setNameSpace(nameSpace);
        property.setName(name);
        property.setValue(value);

        database.create(property);
       
      if(localTransaction)
      {
View Full Code Here

        localTransaction = true;
        database = CastorDatabaseService.getDatabase();
        database.begin();
      }

      InfoGlueProperty property = getProperty(nameSpace, name, database);
    if(property == null)
      property = createProperty(nameSpace, name, value, database);

    updateProperty(property, value, database);
View Full Code Here

TOP

Related Classes of org.infoglue.cms.entities.management.InfoGlueProperty

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.