Examples of removeProperty()


Examples of org.securegraph.Edge.removeProperty()

            oldValue = oldProperty.getValue();
        }
        // TODO: replace "" when we implement commenting on ui
        auditRepository.auditRelationshipProperty(AuditAction.DELETE, sourceId, destId, propertyKey, property.getDisplayName(),
                oldValue, null, edge, "", "", user, lumifyVisibility.getVisibility());
        edge.removeProperty(propertyKey, propertyName, authorizations);
        graph.flush();

        workQueueRepository.pushGraphPropertyQueue(edge, null, propertyName, workspaceId, null);

        respondWithSuccessJson(response);
View Full Code Here

Examples of org.springframework.data.neo4j.fieldaccess.DynamicProperties.removeProperty()

    @Transactional
    public void testRemoveProperty() {
      Person p = createTestPerson();
   
    DynamicProperties props = p.getPersonalProperties();
    props.removeProperty("s");
    p.persist();
    Node node = nodeFor(p);
    assertEquals(2, IteratorUtil.count(p.getPersonalProperties().getPropertyKeys()));
    assertFalse(node.hasProperty("personalProperties-s"));
    assertEquals(100, node.getProperty("personalProperties-x"));
View Full Code Here

Examples of org.structr.core.graph.NodeInterface.removeProperty()

              final String uuid = nodeInterface.getProperty(uuidProperty);

              if (uuid != null) {

                nodeInterface.setProperty(GraphObject.id, uuid);
                nodeInterface.removeProperty(uuidProperty);
                actualNodeCount++;
                hasChanges = true;
              }

            } catch (Throwable t) {
View Full Code Here

Examples of org.structr.core.graph.RelationshipInterface.removeProperty()

              final RelationshipInterface relInterface = relFactory.instantiate(rel);
              final String uuid = relInterface.getProperty(uuidProperty);

              if (uuid != null) {
                relInterface.setProperty(GraphObject.id, uuid);
                relInterface.removeProperty(uuidProperty);
                actualRelCount++;
                hasChanges = true;
              }

            } catch (Throwable t) {
View Full Code Here

Examples of org.teiid.query.optimizer.relational.plantree.PlanNode.removeProperty()

    private PlanNode removeUnnecessaryInlineView(PlanNode root, PlanNode accessNode) {
      PlanNode child = accessNode.getFirstChild();
       
        if (child.hasBooleanProperty(NodeConstants.Info.INLINE_VIEW)) {
          child.removeProperty(NodeConstants.Info.INLINE_VIEW);
          root = RuleRaiseAccess.performRaise(root, child, accessNode);
            //add the groups from the lower project
            accessNode.getGroups().clear();
            PlanNode sourceNode = FrameUtil.findJoinSourceNode(accessNode.getFirstChild());
            if (sourceNode != null) {
View Full Code Here

Examples of org.w3c.dom.css.CSSStyleDeclaration.removeProperty()

      if (styledecl != null) {
        for (Iterator iter = map.keySet().iterator(); iter.hasNext();) {
          String key = (String) iter.next();
          String value = (String) map.get(key);
          if (value == null) {
            styledecl.removeProperty(key);
          } else {
            styledecl.setProperty(key, value, null);
          }
        }
View Full Code Here

Examples of org.wso2.carbon.registry.core.Collection.removeProperty()

            UserRegistry userRegistry = Utils.getUserRegistry();
            String resourcePath = MessageBoxConstants.MB_QUEUE_STORAGE_PATH + "/" + queueName;

            if (userRegistry.resourceExists(resourcePath)) {
                Collection collection = (Collection) userRegistry.get(resourcePath);
                collection.removeProperty(MessageBoxConstants.MB_QUEUE_PROPERTY_UPDATED_TIME);
                collection.setProperty(MessageBoxConstants.MB_QUEUE_PROPERTY_UPDATED_TIME,
                                       ConverterUtil.convertToString(Calendar.getInstance()));
                userRegistry.put(resourcePath, collection);
            }
        } catch (RegistryException e) {
View Full Code Here

Examples of org.wso2.carbon.registry.core.CollectionImpl.removeProperty()

        } else if (value == null) {

            try {

                CollectionImpl collec = (CollectionImpl) registrySession.getUserRegistry().get(nodePath);
                collec.removeProperty(s);
                registrySession.getUserRegistry().put(nodePath, collec);

            } catch (RegistryException e) {
                String msg = "failed to resolve the path of the given node or violation of repository syntax " + this;
                log.debug(msg);
View Full Code Here

Examples of org.wso2.carbon.registry.core.Resource.removeProperty()

    }

    public void dissociate(RequestContext context) {
        Resource resource = context.getResource();
        if (resource != null) {
            resource.removeProperty(stateProperty);
        }
    }

    public String getCurrentState(Resource resource) {
        return resource.getProperty(stateProperty);
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.