Package org.fcrepo.server.types.gen

Examples of org.fcrepo.server.types.gen.ArrayOfString


            return null;
    }

    public static ArrayOfString convertStringtoAOS(String[] arr) {
        if (arr != null) {
            ArrayOfString arofs = new ArrayOfString();
            arofs.getItem().addAll(Arrays.asList(arr));
            return arofs;
        } else
            return null;
    }
View Full Code Here


        condi.getCondition().add(cond);
        org.fcrepo.server.types.gen.ObjectFactory factory =
                new org.fcrepo.server.types.gen.ObjectFactory();
        query.setConditions(factory.createFieldSearchQueryConditions(condi));
        query.setTerms(null);
        ArrayOfString resultFields = new ArrayOfString();
        resultFields.getItem().add("pid");

        // get the first chunk of search results
        FieldSearchResult result =
                AutoFinder
                        .findObjects(sourceRepoAPIA, resultFields, 100, query);
View Full Code Here

        // prepare the FieldSearch query
        FieldSearchQuery query = new FieldSearchQuery();
        query.setTerms(null);

        ArrayOfString resultFields = new ArrayOfString();
        resultFields.getItem().add("pid");

        // get the first chunk of search results

        FieldSearchResult result =
                AutoFinder.findObjects(apia, resultFields, 100, query);
View Full Code Here

            add(m_actionPane, BorderLayout.SOUTH);
        }

        private String getAltIdsString() {
            String altIDStr = "";
            ArrayOfString altIDs = m_ds.getAltIDs();
            if (altIDs != null && altIDs.getItem() != null) {
                for (int z = 0; z < altIDs.getItem().size(); z++) {
                    if (z > 0) {
                        altIDStr += " ";
                    }
                    altIDStr += altIDs.getItem().get(z);
                }
            }
            return altIDStr;
        }
View Full Code Here

            if (m_priorFormatURI == null) {
                m_priorFormatURI = "";
            }
            // create a string from alt ids array
            m_priorAltIDs = "";
            ArrayOfString altIDs = m_ds.getAltIDs();
            if (altIDs != null && altIDs.getItem() != null) {
                for (int z = 0; z < altIDs.getItem().size(); z++) {
                    if (z > 0) {
                        m_priorAltIDs += " ";
                    }
                    m_priorAltIDs += altIDs.getItem().get(z);
                }
            }

            if (ds.getControlGroup().toString().equals("X")) {
                X = true;
View Full Code Here

            FieldSearchQuery query = new FieldSearchQuery();
            org.fcrepo.server.types.gen.ObjectFactory factory =
                new org.fcrepo.server.types.gen.ObjectFactory();
            query.setTerms(factory.createFieldSearchQueryTerms(phrase));
            String[] arrayS = fields.split(" ");
            ArrayOfString aux = new ArrayOfString();
            aux.getItem().addAll(Arrays.asList(arrayS));
            FieldSearchResult result =
                    finder.findObjects(aux, 20, query);
            int matchNum = 0;
            while (result != null) {
                for (int i = 0; i < result.getResultList().getObjectFields().size(); i++) {
View Full Code Here

                                               String checksumType,
                                               String checksum)
            throws Exception {
        return apim.modifyDatastreamByReference(pid,
                                                "DS",
                                                new ArrayOfString(),
                                                "testManagedDatastreams",
                                                "text/plain",
                                                "",
                                                contentLocation,
                                                checksumType,
View Full Code Here

                    System.out.println("Control Group : "
                                       + ds.getControlGroup().toString());
                    System.out.println("  Versionable : " + ds.isVersionable());
                    System.out.println("    Mime Type : " + ds.getMIMEType());
                    System.out.println("   Format URI : " + ds.getFormatURI());
                    ArrayOfString altIDs = ds.getAltIDs();
                    if (altIDs != null && altIDs.getItem() != null) {
                        for (String element : altIDs.getItem()) {
                            System.out.println(" Alternate ID : " + element);
                        }
                    }
                    System.out.println("        State : " + ds.getState());
                    // print version id, create date, and label for each version
View Full Code Here

TOP

Related Classes of org.fcrepo.server.types.gen.ArrayOfString

Copyright © 2018 www.massapicom. 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.