Examples of deleteProperty()


Examples of org.jivesoftware.xmpp.workgroup.DbProperties.deleteProperty()

            String xmlToSave = xstream.toXML(workgroupForm);

            DbProperties props = workgroup.getProperties();
            String context = "jive.webform.wg";
            try {
                props.deleteProperty(context);

                props.setProperty(context, xmlToSave);
            }
            catch (UnauthorizedException e) {
                Log.error(e.getMessage(), e);
View Full Code Here

Examples of org.jivesoftware.xmpp.workgroup.DbProperties.deleteProperty()

        String xmlToSave = xstream.toXML(dataForm);

        DbProperties props = workgroup.getProperties();
        String context = "jive.dataform.wg";
        try {
            props.deleteProperty(context);

            props.setProperty(context, xmlToSave);
        }
        catch (UnauthorizedException e) {
            Log.error(e.getMessage(), e);
View Full Code Here

Examples of org.jivesoftware.xmpp.workgroup.DbProperties.deleteProperty()

            MacroGroup group = (MacroGroup)xstream.fromXML(personalMacro);

            String saveString = xstream.toXML(group);

            try {
                props.deleteProperty("personal.macro");
                props.setProperty("personal.macro", saveString);
            }
            catch (UnauthorizedException e) {
                Log.error(e.getMessage(), e);
            }
View Full Code Here

Examples of org.olat.course.properties.CoursePropertyManager.deleteProperty()

    CoursePropertyManager cpm = PersistingCoursePropertyManager.getInstance(course);
    Property forumKeyProperty = cpm.findCourseNodeProperty(this, null, null, FORUM_KEY);
    if (forumKeyProperty == null) return; // no forum created yet
    Long forumKey = forumKeyProperty.getLongValue();
    ForumManager.getInstance().deleteForum(forumKey); // delete the forum
    cpm.deleteProperty(forumKeyProperty); // delete the property
  }

  /**
   * Update the module configuration to have all mandatory configuration flags
   * set to usefull default values
View Full Code Here

Examples of org.olat.modules.dialog.DialogElementsPropertyManager.deleteProperty()

        ForumManager.getInstance().deleteForum(forumKey);
      }
    }
   
    //delete property
    depm.deleteProperty(course.getResourceableId(), this.getIdent());
   
   
   
  }
View Full Code Here

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

      OLATResourceable resourceable = getResourceable(calendarType, calendarID);
      NarrowedPropertyManager npm = NarrowedPropertyManager.getInstance(resourceable);
      Property tokenProperty = npm.findProperty(identity, null,
          PROP_CAT_ICALTOKEN, PROP_NAME_ICALTOKEN);
      if (tokenProperty != null) {
        npm.deleteProperty(tokenProperty);
      }
    } else {
      PropertyManager pm = PropertyManager.getInstance();
      Property tokenProperty = pm.findProperty(identity, null, null,
          PROP_CAT_ICALTOKEN, PROP_NAME_ICALTOKEN);
View Full Code Here

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

        String testValue = "testDbPerfValue-" + loopCounter;
        Property p = pm.createPropertyInstance(null, null, null, null, propertyKey, null, null, testValue, null);
        pm.saveProperty(p);
        // forget session cache etc.
        db.closeSession();
        pm.deleteProperty(p);
      }
      long endTime = System.currentTimeMillis();
      timeWithoutTransction = endTime - startTime;
      Tracing.logInfo("testDbPerf without transaction takes :" + timeWithoutTransction + "ms", this.getClass());
    } catch (Exception ex) {
View Full Code Here

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

        Property p = pm.createPropertyInstance(null, null, null, null, propertyKey, null, null, testValue, null);
        pm.saveProperty(p);
        // forget session cache etc.
        db.closeSession();
        db = DBFactory.getInstance();
        pm.deleteProperty(p);
      }
      long endTime = System.currentTimeMillis();
      long timeWithTransction = endTime - startTime;
      Tracing.logInfo("testDbPerf with transaction takes :" + timeWithTransction + "ms", this.getClass());
      Tracing.logInfo("testDbPerf diff between transaction and without transaction :" + (timeWithTransction - timeWithoutTransction) + "ms", this.getClass());
View Full Code Here

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

   * @param courseNodeId
   */
  public void deleteProperty(Long courseId, String courseNodeId) {
    Property prop = findProperty(courseId, courseNodeId);
    PropertyManager propMrg = PropertyManager.getInstance();
    if (prop != null) propMrg.deleteProperty(prop);
  }
 
}
View Full Code Here

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

    if (p == null) throw new AssertException("could not release lock: no lock in db, " + derivedLockString);
    Identity ident = le.getOwner();
    Long ownerKey = p.getLongValue();
    if (!ownerKey.equals(ident.getKey())) throw new AssertException("user " + ident.getName()
        + " cannot release lock belonging to user with key " + ownerKey + " on resourcestring " + derivedLockString);
    pm.deleteProperty(p);
  }

  /**
   * Delete all persisting-locks for certain identity.
   * @see org.olat.user.UserDataDeletable#deleteUserData(org.olat.core.id.Identity)
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.