Examples of deleteObject()


Examples of org.apache.chemistry.opencmis.commons.spi.ObjectService.deleteObject()

    for (QueryResult result : results) {
      objectId = result.getPropertyById("cmis:objectId").getFirstValue().toString();
    }
    String repositoryId = session.getRepositoryInfo().getId();
    ObjectService objectService = session.getBinding().getObjectService();
    objectService.deleteObject(repositoryId, objectId, true, null);
  }
 
  @Before
  public void createTestArea()
    throws Exception
View Full Code Here

Examples of org.apache.chemistry.opencmis.commons.spi.ObjectService.deleteObject()

    for (QueryResult result : results) {
      objectId = result.getPropertyById("cmis:objectId").getFirstValue().toString();
    }
    String repositoryId = session.getRepositoryInfo().getId();
    ObjectService objectService = session.getBinding().getObjectService();
    objectService.deleteObject(repositoryId, objectId, true, null);
  }
 
  @Before
  public void createTestArea()
    throws Exception
View Full Code Here

Examples of org.apache.chemistry.opencmis.commons.spi.ObjectService.deleteObject()

    for (QueryResult result : results) {
      objectId = result.getPropertyById("cmis:objectId").getFirstValue().toString();
    }
    String repositoryId = session.getRepositoryInfo().getId();
    ObjectService objectService = session.getBinding().getObjectService();
    objectService.deleteObject(repositoryId, objectId, true, null);
  }
 
  @Before
  public void createTestArea()
    throws Exception
View Full Code Here

Examples of org.apache.chemistry.opencmis.inmemory.storedobj.api.ObjectStore.deleteObject()

        // check if it is the root folder
        if (objectId.equals(objectStore.getRootFolder().getId())) {
            throw new CmisNotSupportedException("You can't delete a root folder");
        }

        objectStore.deleteObject(objectId, allVersions, context.getUsername());
        LOG.debug("stop deleteObject()");
    }

    public FailedToDeleteData deleteTree(CallContext context, String repositoryId, String folderId,
            Boolean allVersions, UnfileObject unfileObjects, Boolean continueOnFailure, ExtensionsData extension) {
View Full Code Here

Examples of org.apache.chemistry.opencmis.inmemory.storedobj.api.ObjectStore.deleteObject()

        // check if it is the root folder
        if (objectId.equals(objectStore.getRootFolder().getId())) {
            throw new CmisNotSupportedException("You can't delete a root folder");
        }

        objectStore.deleteObject(objectId, allVersions, context.getUsername());
        LOG.debug("stop deleteObject()");
    }

    public FailedToDeleteData deleteTree(CallContext context, String repositoryId, String folderId,
            Boolean allVersions, UnfileObject unfileObjects, Boolean continueOnFailure, ExtensionsData extension) {
View Full Code Here

Examples of org.apache.chemistry.opencmis.inmemory.storedobj.api.ObjectStore.deleteObject()

        // check if it is the root folder
        if (objectId.equals(objectStore.getRootFolder().getId())) {
            throw new CmisNotSupportedException("You can't delete a root folder");
        }

        objectStore.deleteObject(objectId, allVersions, context.getUsername());
        LOG.debug("stop deleteObject()");
    }

    public FailedToDeleteData deleteTree(CallContext context, String repositoryId, String folderId,
            Boolean allVersions, UnfileObject unfileObjects, Boolean continueOnFailure, ExtensionsData extension) {
View Full Code Here

Examples of org.apache.chemistry.opencmis.inmemory.storedobj.api.ObjectStore.deleteObject()

        // check if it is the root folder
        if (objectId.equals(objectStore.getRootFolder().getId()))
            throw new CmisNotSupportedException("You can't delete a root folder");

        objectStore.deleteObject(objectId);
        LOG.debug("stop deleteObject()");
    }

    public FailedToDeleteData deleteTree(CallContext context, String repositoryId, String folderId,
            Boolean allVersions, UnfileObject unfileObjects, Boolean continueOnFailure, ExtensionsData extension) {
View Full Code Here

Examples of org.apache.chemistry.opencmis.inmemory.storedobj.api.ObjectStore.deleteObject()

        // check if it is the root folder
        if (objectId.equals(objectStore.getRootFolder().getId())) {
            throw new CmisNotSupportedException("You can't delete a root folder");
        }

        objectStore.deleteObject(objectId);
        LOG.debug("stop deleteObject()");
    }

    public FailedToDeleteData deleteTree(CallContext context, String repositoryId, String folderId,
            Boolean allVersions, UnfileObject unfileObjects, Boolean continueOnFailure, ExtensionsData extension) {
View Full Code Here

Examples of org.eclipse.persistence.sessions.UnitOfWork.deleteObject()

    @Override
    public Object invoke(XRServiceAdapter xrService, Invocation invocation) {
        Object clone = invocation.getParameters().toArray()[0];
        UnitOfWork uow = xrService.getORSession().acquireUnitOfWork();
        Object instance = uow.readObject(clone);
        uow.deleteObject(instance);
        uow.commit();
        return null;
    }
}
View Full Code Here

Examples of org.jets3t.service.S3Service.deleteObject()

        } catch (S3ServiceException e) {
            e.printStackTrace();
        }

        // Delete all the objects in the bucket
        s3Service.deleteObject(testBucket, object.getKey());
        s3Service.deleteObject(testBucket, helloWorldObject.getKey());

        // Now that the bucket is empty, you can delete it.
        s3Service.deleteBucket(testBucket.getName());
        System.out.println("Deleted bucket " + testBucket.getName());
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.