Examples of deleteProperty()


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

      } else {
        if (efficiencyProperty != null) {
          // remove existing since now empty empty efficiency statements
          if (logDebug) log.debug("removing efficiency statement property::" + efficiencyProperty.getKey() + " for id::"
                  + identity.getName() + " repoEntry::" + courseRepoEntryKey + " since empty");
          pm.deleteProperty(efficiencyProperty);
        }
        // else nothing to create and nothing to delete
      }         
     
      // send modified event to everybody
View Full Code Here

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

    if (quota.getPath().startsWith(QuotaConstants.IDENTIFIER_DEFAULT)) {
      return false;
    }
    PropertyManager pm = PropertyManager.getInstance();
    Property p = pm.findProperty(null, null, quotaResource, QUOTA_CATEGORY, quota.getPath());
    if (p != null) pm.deleteProperty(p);
    return true;
  }

  /**
   * Get a list of all objects which have an individual quota.
View Full Code Here

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

    } else {
      PropertyManager pm = PropertyManager.getInstance();
      Property tokenProperty = pm.findProperty(identity, null, null,
          PROP_CAT_ICALTOKEN, PROP_NAME_ICALTOKEN);
      if (tokenProperty != null) {
        pm.deleteProperty(tokenProperty);
      }
    }
  }
 
  private static void destroyIcalAuthToken(Identity identity) {
View Full Code Here

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

    PropertyManager pm = PropertyManager.getInstance();
    Property tokenProperty = pm.findProperty(identity, null, null,
        PROP_CAT_ICALTOKEN, PROP_NAME_ICALTOKEN);
   
    // return the string value of the property
    pm.deleteProperty(tokenProperty);
  }
 
  private static Identity getIdentity (String userName) {
    Identity identity = ManagerFactory.getManager().findIdentityByName(userName);
    if (identity == null) {
View Full Code Here

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

  public static void deleteCalendar(String calendarID, UserRequest ureq) {
    String calendarName = getImportedCalendarNameFromID(ureq.getIdentity(), calendarID);
    // remove the entry from the database
    PropertyManager pm = PropertyManager.getInstance();
    Property p = pm.findUserProperty(ureq.getIdentity(), PROP_CATEGORY, calendarName);
    pm.deleteProperty(p);

    // delete the calendar file
    CalendarManager calManager = CalendarManagerFactory.getInstance().getCalendarManager();
    String importedCalendarID = getImportedCalendarID(ureq, calendarName);
    String importedCalendarType = getImportedCalendarType();
View Full Code Here

Examples of org.xwiki.test.ui.framework.elements.editor.ClassEditPage.deleteProperty()

        Assert.assertEquals("this is the content: testing value 1/testing value 2/testing value 1", vp.getContent());

        // Delete the first property from the class
        ClassEditPage cep = getUtil().editClass("Test", "EditObjectsTestClass");
        cep.deleteProperty("prop1");
        cep.clickSaveAndView();

        vp = getUtil().gotoPage("Test", "EditObjectsTestObject");
        Assert.assertEquals("this is the content: /testing value 2/testing value 1", vp.getContent());
View Full Code Here

Examples of org.xwiki.test.ui.po.editor.ClassEditPage.deleteProperty()

        Assert.assertEquals("this is the content: testing value 1/testing value 2/testing value 1", vp.getContent());

        // Delete the first property from the class
        ClassEditPage cep = getUtil().editClass("Test", "EditObjectsTestClass");
        cep.deleteProperty("prop1");
        cep.clickSaveAndView();

        vp = getUtil().gotoPage("Test", "EditObjectsTestObject");
        Assert.assertEquals("this is the content: /testing value 2/testing value 1", vp.getContent());
View Full Code Here

Examples of org.xwiki.test.ui.po.editor.ClassEditPage.deleteProperty()

        ClassEditPage classEditPage = objectEditPage.editClass();
        classEditPage.addProperty("age", "Number");
        classEditPage.addProperty("color", "String");
        classEditPage.getNumberClassEditElement("age").setNumberType("integer");
        classEditPage.clickSaveAndContinue();
        classEditPage.deleteProperty("color");
        testPage = classEditPage.clickSaveAndView();

        // Add tags.
        TaggablePage taggablePage = new TaggablePage();
        AddTagsPane addTagsPane = taggablePage.addTags();
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.