Examples of MementoException


Examples of org.apache.marmotta.platform.versioning.exception.MementoException

    @Override
    public Version getVersion(Resource resource, Date date) throws MementoException {
        try {
            return versioningService.getLatestVersion(resource,date);
        } catch (SailException e) {
            throw new MementoException("version for "+date+" cannot be returned");
        }
    }
View Full Code Here

Examples of org.apache.marmotta.platform.versioning.exception.MementoException

                }
            }

            return versionset;
        } catch (SailException e) {
            throw new MementoException("cannot list versions");
        } catch (RepositoryException e) {
            throw new MementoException("cannot produce version result set");
        }
    }
View Full Code Here

Examples of org.apache.marmotta.platform.versioning.exception.MementoException

                MementoUtils.MEMENTO_RESOURCE + "/";

        HashSet<String> links = new HashSet<String>();

        //first, last and current are mandatory
        if( first == null || last == null || current == null) throw new MementoException("Memento links cannot be produced");

        links.add(buildLink(prefix,original.toString(),first.getCommitTime(),"first memento"));
        links.add(buildLink(prefix,original.toString(),last.getCommitTime(),"last memento"));
        links.add(buildLink(prefix,original.toString(),current.getCommitTime(),"memento"));
View Full Code Here

Examples of org.apache.marmotta.platform.versioning.exception.MementoException

                MementoUtils.MEMENTO_RESOURCE + "/";

        HashSet<String> links = new HashSet<String>();

        //first, last and current are mandatory
        if( first == null || last == null || current == null) throw new MementoException("Memento links cannot be produced");

        links.add(buildLink(prefix,original.toString(),first.getCommitTime(),"first memento"));
        links.add(buildLink(prefix,original.toString(),last.getCommitTime(),"last memento"));
        links.add(buildLink(prefix,original.toString(),current.getCommitTime(),"memento"));
View Full Code Here

Examples of org.apache.marmotta.platform.versioning.exception.MementoException

    @Override
    public Version getVersion(Resource resource, Date date) throws MementoException {
        try {
            return versioningService.getLatestVersion(resource,date);
        } catch (SailException e) {
            throw new MementoException("version for "+date+" cannot be returned");
        }
    }
View Full Code Here

Examples of org.apache.marmotta.platform.versioning.exception.MementoException

                }
            }

            return versionset;
        } catch (SailException e) {
            throw new MementoException("cannot list versions");
        } catch (RepositoryException e) {
            throw new MementoException("cannot produce version result set");
        }
    }
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.