Package org.apache.jackrabbit.value

Examples of org.apache.jackrabbit.value.ValueFactoryImpl.createValue()


                for (ListIterator it = groupUsers.listIterator(); it.hasNext(); ) {
                    int index = it.nextIndex();
                    User groupUser = (User) it.next();
                    String currentUsername = groupUser.getUsername();
                    ValueFactory valueFactory = new ValueFactoryImpl();
                    values[index] = valueFactory.createValue(currentUsername);
                }
                groupNode.setProperty(NodesTypes.PREFIX + USERS_PROPERTY_NAME, values);
            }
           
           
View Full Code Here


                for (ListIterator it = groupUsers.listIterator(); it.hasNext(); ) {
                    int index = it.nextIndex();
                    User currentGroupUser = (User) it.next();
                    String currentUsername = currentGroupUser.getUsername();
                    ValueFactory valueFactory = new ValueFactoryImpl();
                    values[index] = valueFactory.createValue(currentUsername);
                }
                groupNode.setProperty(NodesTypes.PREFIX + USERS_PROPERTY_NAME, values);
            }
           
            ContentDao contentDao = ContentDao.createInstance();
View Full Code Here

            Value[] values = new Value[readGroups.size()];
            for (ListIterator it = readGroups.listIterator(); it.hasNext(); ) {
                int index = it.nextIndex();
                Group currentGroup = (Group) it.next();
                Node groupNode = node.getSession().getNodeByUUID(currentGroup.getId());
                values[index] = valueFactory.createValue(groupNode);
            }
            node.setProperty(NodesTypes.PREFIX + READ_GROUPS_PROPERTY, values);
          }
        }
       
View Full Code Here

                }
            Value[] values = new Value[readUsers.size()];
            for (ListIterator it = readUsers.listIterator(); it.hasNext(); ) {
                int index = it.nextIndex();
                User currentUser = (User) it.next();
                values[index] = valueFactory.createValue(currentUser.getUsername());
            }
 
            node.setProperty(NodesTypes.PREFIX + READ_USERS_PROPERTY, values);
          }
        }
View Full Code Here

            Value[] values = new Value[writeGroups.size()];
            for (ListIterator it = writeGroups.listIterator(); it.hasNext(); ) {
                int index = it.nextIndex();
                Group currentGroup = (Group) it.next();
                Node groupNode = node.getSession().getNodeByUUID(currentGroup.getId());
                values[index] = valueFactory.createValue(groupNode);
            }
            node.setProperty(NodesTypes.PREFIX + WRITE_GROUPS_PROPERTY, values);
          }
        }
       
View Full Code Here

                }
            Value[] values = new Value[writeUsers.size()];
            for (ListIterator it = writeUsers.listIterator(); it.hasNext(); ) {
                int index = it.nextIndex();
                    User currentUser = (User) it.next();
                values[index] = valueFactory.createValue(currentUser.getUsername());
            }
            node.setProperty(NodesTypes.PREFIX + WRITE_USERS_PROPERTY, values);
          }
        }
       
View Full Code Here

            Value[] values = new Value[removeGroups.size()];
            for (ListIterator it = removeGroups.listIterator(); it.hasNext(); ) {
                int index = it.nextIndex();
                Group currentGroup = (Group) it.next();
                Node groupNode = node.getSession().getNodeByUUID(currentGroup.getId());
                values[index] = valueFactory.createValue(groupNode);
            }
            node.setProperty(NodesTypes.PREFIX + REMOVE_GROUPS_PROPERTY, values);
          }
        }
       
View Full Code Here

                }
            Value[] values = new Value[removeUsers.size()];
            for (ListIterator it = removeUsers.listIterator(); it.hasNext(); ) {
                int index = it.nextIndex();
                    User currentUser = (User) it.next();
                values[index] = valueFactory.createValue(currentUser.getUsername());
            }
            node.setProperty(NodesTypes.PREFIX + REMOVE_USERS_PROPERTY, values);
          }
        }
       
View Full Code Here

            Value[] values = new Value[ownerGroups.size()];
            for (ListIterator it = ownerGroups.listIterator(); it.hasNext(); ) {
                int index = it.nextIndex();
                Group currentGroup = (Group) it.next();
                Node groupNode = node.getSession().getNodeByUUID(currentGroup.getId());
                values[index] = valueFactory.createValue(groupNode);
            }
            node.setProperty(NodesTypes.PREFIX + OWNER_GROUPS_PROPERTY, values);
          }
        }
       
View Full Code Here

                }
            Value[] values = new Value[ownerUsers.size()];
            for (ListIterator it = ownerUsers.listIterator(); it.hasNext(); ) {
                int index = it.nextIndex();
                    User currentUser = (User) it.next();
                values[index] = valueFactory.createValue(currentUser.getUsername());
            }
            node.setProperty(NodesTypes.PREFIX + OWNER_USERS_PROPERTY, values);
          }
        }
       
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.