Examples of saveProperty()


Examples of org.olat.properties.PropertyManager.saveProperty()

        PropertyManager pm = PropertyManager.getInstance();
        Property p = pm.findProperty(curIdent, null, null, null, LATEST_EMAIL_USER_PROP);
        if(p == null) {
          p = pm.createUserPropertyInstance(curIdent, null, LATEST_EMAIL_USER_PROP, null, null, null, null);
          p.setLongValue(new Date().getTime());
          pm.saveProperty(p);
        } else {
          p.setLongValue(new Date().getTime());
          pm.updateProperty(p);
        }
View Full Code Here

Examples of org.olat.properties.PropertyManager.saveProperty()

        Property property = (Property) it.next();
        if (property.getStringValue().equals(String.valueOf(version))) {
          // yes, the version is already set... overwrite this property then
          log_.info("setLoggingVersion: overwriting existing version property for version="+version+" from starttime "+property.getLongValue()+" to "+startingTimeMillis);
          property.setLongValue(startingTimeMillis);
          pm.saveProperty(property);
          return;
        }
      }
    }
   
View Full Code Here

Examples of org.olat.properties.PropertyManager.saveProperty()

      }
    }
   
    log_.info("setLoggingVersion: setting version property for version="+version+" to "+startingTimeMillis);
    Property newp = pm.createPropertyInstance(null, null, null, LOGGING_PROPERTIES_CATEGORY, LOGGING_VERSION_PROPERTY_NAME, null, startingTimeMillis, String.valueOf(version), null);
    pm.saveProperty(newp);
   
  }
 
  @Override
  public long getStartingTimeForVersion(int version) {
View Full Code Here

Examples of org.olat.properties.PropertyManager.saveProperty()

  public long getAndUpdateLastUpdated(long lastUpdated) {
    PropertyManager pm = PropertyManager.getInstance();
    Property p = pm.findProperty(null, null, null, STATISTICS_PROPERTIES_CATEGORY, LAST_UPDATED_PROPERTY_NAME);
    if (p==null) {
      Property newp = pm.createPropertyInstance(null, null, null, STATISTICS_PROPERTIES_CATEGORY, LAST_UPDATED_PROPERTY_NAME, null, lastUpdated, null, null);
      pm.saveProperty(newp);
      return -1;
    } else {
      final long result = p.getLongValue();
      p.setLongValue(lastUpdated);
      pm.saveProperty(p);
View Full Code Here

Examples of org.olat.properties.PropertyManager.saveProperty()

      pm.saveProperty(newp);
      return -1;
    } else {
      final long result = p.getLongValue();
      p.setLongValue(lastUpdated);
      pm.saveProperty(p);
      return result;
    }
  }
 
  @Override
View Full Code Here

Examples of org.openbp.jaspira.propertybrowser.editor.PropertyEditor.saveProperty()

    case PropertyBrowserEvent.FOCUS_LOST:
      // Save the property value when the focus gets lost

      // First, let the property editor's validator check the value and save the property to the object
      if (!pe.saveProperty())
        return;

      currentPE = null;

      if (objectModified)
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.