Examples of VersionHistory


Examples of org.alfresco.service.cmr.version.VersionHistory

    return children;
  }

  public List<CMObject> getVersionHistory(NodeRef nodeRef) {
    List<CMObject> versions = new ArrayList<CMObject>();
    VersionHistory versionHistory = serviceRegistry.getVersionService().getVersionHistory(nodeRef);
    if (versionHistory != null) {
      for (Version version : versionHistory.getAllVersions()) {
        CMObject doc = repositoryService.fetch(CMObject.class, version.getFrozenStateNodeRef());
        versions.add(doc);
      }
    }
    return versions;
View Full Code Here

Examples of org.apache.jackrabbit.api.jsr283.version.VersionHistory

                v.isNodeType(mixSimpleVersionable));
        assertFalse("Copied Node.isNodeType(mix:versionable) must return false.",
                v.isNodeType(mixVersionable));

        // check different version history
        VersionHistory vh1 = vMgr.getVersionHistory(srcPath);
        VersionHistory vh2 = vMgr.getVersionHistory(dstPath);
        assertFalse("Copied node needs a new version history.", vh1.isSame(vh2));

        // check if 1 version
        assertEquals("Copied node must have 1 version.", 1, getNumberOfVersions(vh2));
    }
View Full Code Here

Examples of org.dspace.versioning.VersionHistory

        try
        {

            VersioningService versioningService = new DSpace()
                    .getSingletonService(VersioningService.class);
            VersionHistory versionHistory = versioningService
                    .findVersionHistory(context, itemId);

            for (String id : versionIDs)
            {
                versioningService.removeVersion(context, Integer.parseInt(id));
            }
            context.commit();

            // Retrieve the latest version of our history (IF any is even
            // present)
            Version latestVersion = versionHistory.getLatestVersion();
            if (latestVersion == null)
            {
                return null;
            }
            else
View Full Code Here

Examples of org.uberfire.java.nio.base.version.VersionHistory

        } );

        return new VersionAttributes() {
            @Override
            public VersionHistory history() {
                return new VersionHistory() {
                    @Override
                    public List<VersionRecord> records() {
                        return records;
                    }
                };
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.