List list = new ArrayList(); list.add(s); resource.setProperty("jcr:mixinTypes", list); } else { resource.getPropertyValues("jcr:mixinTypes").add(s); resource.setProperty("jcr:checkedOut", "true"); resource.setProperty("jcr:isCheckedOut", "true"); resource.setProperty("jcr:frozenUuid",nodePath);
if ((propVal != null) && (propVal.getString().equals("true"))) { CollectionImpl vnode = ((CollectionImpl) ((RegistrySession) session).getUserRegistry().get(s)); vnode.setProperty("jcr:checkedOut", "false"); vnode.setProperty("jcr:isCheckedOut", "false"); ((RegistrySession)session).getUserRegistry().put(s, vnode); version = createVersionOnNode(s);
subCollection = (CollectionImpl) registrySession.getUserRegistry().newCollection(); subCollection.setProperty("jcr:uuid", absPath); //Here we use node's path as its identifier subCollection.setProperty("jcr:checkedOut", "true"); subCollection.setProperty("jcr:isCheckedOut", "true"); subCollection.setProperty("jcr:frozenPrimaryType",ntName);
List<String> lis = new ArrayList<String>(); lis.add(s1); resource.setProperty(s, lis); registrySession.getUserRegistry().put(nodePath, resource); } else {
subCollection = (CollectionImpl) registrySession.getUserRegistry().newCollection(); subCollection.setDescription(ntName); subCollection.setProperty("jcr:uuid", absPath); //Here we use node's path as its identifier subCollection.setProperty("jcr:checkedOut", "true"); subCollection.setProperty("jcr:isCheckedOut", "true"); subCollection.setProperty("jcr:frozenPrimaryType",ntName);
nodetype.setProperty("name", nodeTypeTemplate.getName()); nodetype.setProperty("primaryItemName", nodeTypeTemplate.getPrimaryItemName()); if(nodeTypeTemplate.getDeclaredSupertypeNames() != null){ nodetype.setProperty("declaredSuperTypes", Arrays.asList(nodeTypeTemplate.getDeclaredSupertypeNames())); nodetype.setProperty("hasOrderableChildNodes", String.valueOf(nodeTypeTemplate.hasOrderableChildNodes())); nodetype.setProperty("isAbstract", String.valueOf(nodeTypeTemplate.isAbstract())); nodetype.setProperty("isMixin", String.valueOf(nodeTypeTemplate.isMixin())); nodetype.setProperty("isQueryable", String.valueOf(nodeTypeTemplate.isQueryable()));