Examples of nextProperty()


Examples of javax.jcr.PropertyIterator.nextProperty()

        Collection<String> ids = new ArrayList<String>();
        if(node != null) {
            try {
                PropertyIterator pit = node.getProperties();
                while (pit.hasNext()) {
                    ids.add(pit.nextProperty().getName());
                }
            } catch (RepositoryException e) {
                //do nothing, just do not list properties
            }
            try {
View Full Code Here

Examples of javax.jcr.PropertyIterator.nextProperty()

      Set<HierarchicalProperty> props = super.getProperties(namesOnly);

      PropertyIterator jcrProps = node.getProperties();
      while (jcrProps.hasNext())
      {
         Property property = jcrProps.nextProperty();
         if (!COLLECTION_SKIP.contains(property.getName()))
         {
            QName name = namespaceContext.createQName(property.getName());

            try
View Full Code Here

Examples of javax.jcr.PropertyIterator.nextProperty()

      Set<QName> presents = new HashSet<QName>();

      PropertyIterator jcrProps = node.getProperties();
      while (jcrProps.hasNext())
      {
         Property property = jcrProps.nextProperty();
         if (!FILE_SKIP.contains(property.getName()))
         {
            QName name = namespaceContext.createQName(property.getName());
            presents.add(name);
            props.add((namesOnly) ? new HierarchicalProperty(name) : getProperty(name));
View Full Code Here

Examples of javax.jcr.PropertyIterator.nextProperty()

      HierarchicalProperty jcrContentProp =
         new HierarchicalProperty(namespaceContext.createQName(WebDavConst.NodeTypes.JCR_CONTENT));

      while (jcrProps.hasNext())
      {
         Property property = jcrProps.nextProperty();
         if (!CONTENT_SKIP.contains(property.getName()))
         {
            QName name = namespaceContext.createQName(property.getName());

            if (presents.contains(name))
View Full Code Here

Examples of javax.jcr.PropertyIterator.nextProperty()

      Set<HierarchicalProperty> props = super.getProperties(namesOnly);

      PropertyIterator jcrProps = node.getProperties();
      while (jcrProps.hasNext())
      {
         Property property = jcrProps.nextProperty();
         if (!COLLECTION_SKIP.contains(property.getName()))
         {
            QName name = namespaceContext.createQName(property.getName());

            try
View Full Code Here

Examples of javax.jcr.PropertyIterator.nextProperty()

    private void buildNode(NodeBuilder builder, Node node)
            throws RepositoryException {
        PropertyIterator properties = node.getProperties();
        while (properties.hasNext()) {
            Property property = properties.nextProperty();
            if (property.isMultiple()) {
                builder.setProperty(PropertyStates.createProperty(
                        property.getName(),
                        Arrays.asList(property.getValues())));
            } else {
View Full Code Here

Examples of javax.jcr.PropertyIterator.nextProperty()

    private void collectMembership(final Set<Group> groups, boolean includeIndirect) throws RepositoryException {
        PropertyIterator refs = getMembershipReferences();
        if (refs != null) {
            while (refs.hasNext()) {
                try {
                    NodeImpl n = (NodeImpl) refs.nextProperty().getParent();
                    if (n.isNodeType(NT_REP_GROUP)) {
                        Group group = userManager.createGroup(n);
                        // only retrieve indirect membership if the group is not
                        // yet present (detected eventual circular membership).
                        if (groups.add(group) && includeIndirect) {
View Full Code Here

Examples of javax.jcr.PropertyIterator.nextProperty()

                node.getSession()
        ));

        PropertyIterator iter = node.getProperties();
        while (iter.hasNext()) {
            PropertyImpl prop = (PropertyImpl) iter.nextProperty();
            events.add(EventState.propertyAdded(
                    (NodeId) node.getId(),
                    node.getPrimaryPath(),
                    prop.getPrimaryPath().getNameElement(),
                    ((NodeTypeImpl) node.getPrimaryNodeType()).getQName(),
View Full Code Here

Examples of javax.jcr.PropertyIterator.nextProperty()

            it = node.getWeakReferences(jcrName);
        } else {
            it = node.getReferences(jcrName);
        }
        while (it.hasNext()) {
            ids.add(idFactory.createPropertyId(it.nextProperty(), sInfo.getNamePathResolver()));
        }
        return ids.iterator();
    }

    /**
 
View Full Code Here

Examples of org.apache.jackrabbit.webdav.property.DavPropertyIterator.nextProperty()

        // loop over set and remove Sets and remember all properties and propertyNames
        // that have successfully been altered
        List successList = new ArrayList();
        DavPropertyIterator setIter = setProperties.iterator();
        while (setIter.hasNext()) {
            DavProperty prop = setIter.nextProperty();
            try {
                setJcrProperty(prop);
                successList.add(prop);
            } catch (RepositoryException e) {
                msr.add(prop.getName(), new JcrDavException(e).getErrorCode());
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.