Examples of listProperties()


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

   * @param identity
   * @return List of efficiency statements
   */
  protected List<EfficiencyStatement> findEfficiencyStatements(Identity identity) {
    PropertyManager pm = PropertyManager.getInstance();
    List<Property> esProperties = pm.listProperties(identity, null, null, PROPERTY_CATEGORY, null);
    List<EfficiencyStatement> efficiencyStatements = new ArrayList<EfficiencyStatement>();
    Iterator<Property> iter = esProperties.iterator();
    while (iter.hasNext()) {
      Property efficiencyProperty = iter.next();
      EfficiencyStatement efficiencyStatement = (EfficiencyStatement) XStreamHelper.fromXML(efficiencyProperty.getTextValue());
View Full Code Here

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

    if (defaultQuotas == null) {
      throw new OLATRuntimeException(QuotaManagerImpl.class, "Quota manager has not been initialized properly! Must call init() first.", null);
    }
    List results = new ArrayList();
    PropertyManager pm = PropertyManager.getInstance();
    List props = pm.listProperties(null, null, quotaResource, QUOTA_CATEGORY, null);
    if (props == null || props.size() == 0) return results;
    for (Iterator iter = props.iterator(); iter.hasNext();) {
      Property prop = (Property) iter.next();
      results.add(parseQuota(prop));
    }
View Full Code Here

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

   * @param identity
   */
  public UserPropertiesController(UserRequest ureq, WindowControl wControl, Identity identity) {
    super(ureq, wControl);
    PropertyManager pm = PropertyManager.getInstance();
    List l = pm.listProperties(identity, null, null, null, null);
    TableGuiConfiguration tableConfig = new TableGuiConfiguration();
    tableConfig.setTableEmptyMessage(getTranslator().translate("error.no.props.found"));
    tableCtr = new TableController(tableConfig, ureq, getWindowControl(), getTranslator(), this);
    tableCtr.addColumnDescriptor(new DefaultColumnDescriptor("table.prop.category", 0, null, ureq.getLocale()));
    tableCtr.addColumnDescriptor(new DefaultColumnDescriptor("table.prop.grp", 1, null, ureq.getLocale()));
View Full Code Here

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

    log.info("migrateAllDialogElementsProperty: replace #" + counter + " deleted user-names, call setAuthor #" + counterSetAuthor + " for existing user-names  in #" + counterDialogElement + " DialogElements");
  }
 
  private List findAllProperty() {
    PropertyManager propMrg = PropertyManager.getInstance();
    List elements = propMrg.listProperties(null, null, "CourseModule", null, null, DialogElementsPropertyManager.PROPERTY_NAME);
    return elements;
  }

  public Identity findDeletedIdentityByName(String identityName) {
    if (identityName == null) throw new AssertException("findIdentitybyName: name was null");
View Full Code Here

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

    // initialize the calendars list
    List calendars = new ArrayList();
   
    // read all the entries from the database
    PropertyManager pm = PropertyManager.getInstance();
    List properties = pm.listProperties(ureq.getIdentity(), null, null, PROP_CATEGORY, null);
   
    // return the list of calendar objects
    Iterator propertyIter = properties.iterator();
    CalendarManager calManager = CalendarManagerFactory.getInstance().getCalendarManager();
    while (propertyIter.hasNext()) {
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.