Examples of deleteProperties()


Examples of org.apache.clerezza.rdf.utils.GraphNode.deleteProperties()

      try {
        /* extract concepts */
        conceptsFS = uimaServicesFacade.getConcepts(node.toString());

        if (override)
          node.deleteProperties(DCTERMS.subject);

        /* if concepts have a good relevance, then add them as concept tags */
        if (conceptsFS != null && !conceptsFS.isEmpty()) {
          for (FeatureStructure conceptFS : conceptsFS) {
            Type conceptType = conceptFS.getType();
View Full Code Here

Examples of org.apache.clerezza.rdf.utils.GraphNode.deleteProperties()

    GraphNode node = platformConfig.getPlatformInstance();
    LockableMGraph sysGraph = (LockableMGraph) node.getGraph();
    Lock writeLock = sysGraph.getLock().writeLock();
    writeLock.lock();
    try {
      node.deleteProperties(PLATFORM.defaultBaseUri);
      node.addProperty(PLATFORM.defaultBaseUri, uri);
    } finally {
      writeLock.unlock();
    }
    return Response.status(Response.Status.ACCEPTED).build();
View Full Code Here

Examples of org.eclipse.core.internal.properties.IPropertyManager.deleteProperties()

      // Move the resource's persistent properties.
      IPropertyManager propertyManager = ((Resource) source).getPropertyManager();
      try {
        propertyManager.copy(source, destination, IResource.DEPTH_ZERO);
        propertyManager.deleteProperties(source, IResource.DEPTH_ZERO);
      } catch (CoreException e) {
        String message = NLS.bind(Messages.resources_errorPropertiesMove, source.getFullPath(), destination.getFullPath());
        IStatus status = new ResourceStatus(IStatus.ERROR, source.getFullPath(), message, e);
        // log the status but don't return until we try and move the rest of the resource information.
        failed(status);
View Full Code Here

Examples of org.eclipse.core.internal.properties.IPropertyManager.deleteProperties()

      // Move the folder properties.
      int depth = IResource.DEPTH_INFINITE;
      IPropertyManager propertyManager = ((Resource) source).getPropertyManager();
      try {
        propertyManager.copy(source, destination, depth);
        propertyManager.deleteProperties(source, depth);
      } catch (CoreException e) {
        String message = NLS.bind(Messages.resources_errorPropertiesMove, source.getFullPath(), destination.getFullPath());
        IStatus status = new ResourceStatus(IStatus.ERROR, source.getFullPath(), message, e);
        // log the status but don't return until we try and move the rest of the resource info
        failed(status);
View Full Code Here

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

    // no cleanup needed, automatically done when last user exits the room
    /*
     * delete all Properties defining enabled/disabled CollabTool XY and the
     * news content
     */
    npm.deleteProperties(null, null, PROP_CAT_BG_COLLABTOOLS, null);

    /*
     * and last but not least the cache is reseted
     */
    cacheToolStates.clear();
 
View Full Code Here

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

   * @param courseRepoEntryKey
   * @return int number of deleted efficiency statements
   */
  public void deleteEfficiencyStatementsFromCourse(Long courseRepoEntryKey) {
    PropertyManager pm = PropertyManager.getInstance();
    pm.deleteProperties(null, null, null, PROPERTY_CATEGORY, getPropertyName(courseRepoEntryKey));
  }

  /**
   * Delete the given efficiency statement for this person
   * @param identity
View Full Code Here

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

   * @param efficiencyStatement
   */
  protected void deleteEfficiencyStatement(Identity identity, EfficiencyStatement efficiencyStatement) {
    PropertyManager pm = PropertyManager.getInstance();
    String crourseRepoEntryKey = getPropertyName(efficiencyStatement.getCourseRepoEntryKey());
    pm.deleteProperties(identity, null, null, PROPERTY_CATEGORY, crourseRepoEntryKey);
  }
 
 
  /**
   * Internal helper: convert the course repository entry key to a value that is used
View Full Code Here

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

   * Remove all disclaimer confirmations. This means that every user on the
   * system must accept the disclaimer again.
   */
  public void revokeAllconfirmedDisclaimers() {
    PropertyManager propertyMgr = PropertyManager.getInstance();
    propertyMgr.deleteProperties(null, null, null, "user", "dislaimer_accepted");   
  }

  /**
   * Remove the disclaimer confirmation for the specified identity. This means
   * that this user must accept the disclaimer again.
View Full Code Here

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

   *
   * @param identity
   */
  public void revokeConfirmedDisclaimer(Identity identity) {
    PropertyManager propertyMgr = PropertyManager.getInstance();
    propertyMgr.deleteProperties(identity, null, null, "user", "dislaimer_accepted");   
  }
 
  /**
   * Get a list of all users that did already confirm the disclaimer
   * @return
 
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.