Package org.fcrepo.client.utility.validate

Examples of org.fcrepo.client.utility.validate.ObjectSourceException


                beginSearch();
            } else if (token != null) {
                resumeSearch();
            }
        } catch (RemoteException e) {
            throw new ObjectSourceException(e);
        }
    }
View Full Code Here


        try {
            List<Datastream> datastreams = apim.getDatastreams(pid, null, null);
            return TypeUtility
                    .convertGenDatastreamArrayToDatastreamInfoSet(datastreams.toArray(new Datastream[]{}));
        } catch (Exception e) {
            throw new ObjectSourceException(e);
        }
    }
View Full Code Here

                    apim.getRelationships(pid, null)
                            .toArray(new RelationshipTuple[0]);
            return TypeUtility
                    .convertGenRelsTupleArrayToRelationshipInfoList(tuples);
        } catch (Exception e) {
            throw new ObjectSourceException(e);
        }
    }
View Full Code Here

                                            org.fcrepo.server.utilities.TypeUtility
                                                    .convertDataHandlerToBytes(ds
                                                            .getStream()));
            return new BasicContentModelInfo(object, model.getTypeModels());
        } catch (Exception e) {
            throw new ObjectSourceException("Problem fetching '"
                                                    + DS_COMPOSITE_MODEL
                                                    + "' datastream for pid='"
                                                    + pid + "'",
                                            e);
        }
View Full Code Here

    /**
     * If we throw an {@link ObjectSourceException}, it will look like this.
     */
    public ObjectSourceException createObjectSourceException(String pid) {
        return new ObjectSourceException("forced exception on '" + pid + "'");
    }
View Full Code Here

     * Convenience method: create a notation saying that we couldn't fetch this
     * content model.
     */
    private ValidationResultNotation noteErrorFetchingContentModel(ContentModelInfo model) {
        String pid = model.getPid();
        ObjectSourceException e = objectSource.createObjectSourceException(pid);
        return ValidationResultNotation.errorFetchingContentModel(pid, e);
    }
View Full Code Here

TOP

Related Classes of org.fcrepo.client.utility.validate.ObjectSourceException

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.