Examples of updateProperty()


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

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

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

    if (property == null) { // create a new one
      Property nP = npm.createPropertyInstance(null, null, PROP_CAT_BG_COLLABTOOLS, KEY_NEWS, null, null, null, news);
      npm.saveProperty(nP);
    } else { // modify the existing one
      property.setTextValue(news);
      npm.updateProperty(property);
    }
  }
 
  public Long lookupCalendarAccess() {
    NarrowedPropertyManager npm = NarrowedPropertyManager.getInstance(ores);
View Full Code Here

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

    if (property == null) { // create a new one
      Property nP = npm.createPropertyInstance(null, null, PROP_CAT_BG_COLLABTOOLS, KEY_CALENDAR_ACCESS, null, calendarAccess, null, null);
      npm.saveProperty(nP);
    } else { // modify the existing one
      property.setLongValue(calendarAccess);
      npm.updateProperty(property);
    }
  }
 
  public class CollabSecCallback implements VFSSecurityCallback {
View Full Code Here

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

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

            // 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

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

        } 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

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

          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

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

      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

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

    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

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

   
    //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
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.