Package org.olat.properties

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


      PropertyManager pm = PropertyManager.getInstance();
      Property p = pm.findProperty(identity, null, null, null, CHARSET);
     
      if(p != null){
          p.setStringValue(charset);
          pm.updateProperty(p);
    } else {
          Property newP = pm.createUserPropertyInstance(identity, null, CHARSET, null, null, charset, null);
          pm.saveProperty(newP);
      }
  }
View Full Code Here


            // generate x-stream serialization of this object
            String props = XStreamHelper.toXML(toUpdate);
            Property imProperty = PropertyManager.getInstance().findProperty(identity, null, null, null, ImPreferences.USER_PROPERTY_KEY);
            if (imProperty == null) { throw new AssertException("Try to update Im Prefs for (" + identity.getName() + ") but they do not exist!!"); }
            imProperty.setTextValue(props);
            pm.updateProperty(imProperty);
          }
         
        });
 
  }
View Full Code Here

        } else {
          // update existing
          if (logDebug) log.debug("updatting efficiency statement property::" + efficiencyProperty.getKey() + " for id::"
                  + identity.getName() + " repoEntry::" + courseRepoEntryKey);
          efficiencyProperty.setTextValue(efficiencyStatementX);
          pm.updateProperty(efficiencyProperty);
        }
      } else {
        if (efficiencyProperty != null) {
          // remove existing since now empty empty efficiency statements
          if (logDebug) log.debug("removing efficiency statement property::" + efficiencyProperty.getKey() + " for id::"
View Full Code Here

          pm.saveProperty(p);
        }
        p.setTextValue(message);
        //set Message in RAM
        InfoMessageManager.infoMessage = message;
        pm.updateProperty(p);
      }
     
    });//end syncerCallback
    EventBus eb = CoordinatorManager.getCoordinator().getEventBus();
    MultiUserEvent mue = new MultiUserEvent(message);
View Full Code Here

      pm.saveProperty(p);
    }
    p.setTextValue(message);
    //set Message in RAM
    InfoMessageManager.infoMessageNodeOnly = message;
    pm.updateProperty(p);
  }

  public String getInfoMessageNodeOnly() {
    return infoMessageNodeOnly;
  }
View Full Code Here

    if (p == null) { // create new entry
      p = pm.createPropertyInstance(null, null, quotaResource, QUOTA_CATEGORY, quota.getPath(), null, null, assembleQuota(quota), null);
      pm.saveProperty(p);
    } else {
      p.setStringValue(assembleQuota(quota));
      pm.updateProperty(p);
    }
    // if the quota is a default quota, rebuild the default quota list
    if (quota.getPath().startsWith(QuotaConstants.IDENTIFIER_DEFAULT)) {
      initDefaultQuotas();
    }
View Full Code Here

   
    //set new auth token as the string value of the property
    tokenProperty.setStringValue(authToken);
   
    // update the property
    pm.updateProperty(tokenProperty);
   
    //return the new token
    return authToken;
  }
 
View Full Code Here

          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);
        }

        mailLog.append(curIdent.getName()).append(' ')
          .append(items.size()).append(' ')
          .append((System.currentTimeMillis() - start)).append("ms, ");
View Full Code Here

    if (property == null) {
      property = pm.createPropertyInstance(null, null, null, PROPERTY_CATEGORY, createPropertyName(clazz, propertyName), null, null, updateValue, null);
      pm.saveProperty(property);
    } else {
      property.setStringValue(updateValue);
      pm.updateProperty(property);
    }
  }

  /**
   * Find the configuration value for the given class and name or create a
View Full Code Here

        this.dbProperty = pm.createPropertyInstance(owner, null, null, null, DbStorage.USER_PROPERTY_KEY, null, null, null, props);
        pm.saveProperty(this.dbProperty);
      } else {
        // update exising property
        this.dbProperty.setTextValue(props);
        pm.updateProperty(this.dbProperty);
      }
    }
  }
   
  /**
 
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.