Tabnine Logo
ResourceRepository.remove
Code IndexAdd Tabnine to your IDE (free)

How to use
remove
method
in
org.ldp4j.application.kernel.resource.ResourceRepository

Best Java code snippets using org.ldp4j.application.kernel.resource.ResourceRepository.remove (Showing top 2 results out of 315)

origin: ldp4j/ldp4j

private void deleteResource(final Resource resource, final Date lastModified) {
  try {
    this.resourceRepository.remove(resource);
    final Endpoint endpoint =
      this.endpointManagementService.
        deleteResourceEndpoint(
          resource,
          lastModified);
    if(LOGGER.isTraceEnabled()) {
      LOGGER.trace("Deleted "+resource);
      LOGGER.trace("Deleted "+endpoint);
    }
  } catch (final EndpointNotFoundException e) {
    throw new IllegalStateException(e);
  }
}
origin: ldp4j/ldp4j

  @Override
  public void execute(ResourceRepository sut) {
    Resource result1 = sut.resourceOfId(resourceId);
    debug("Retrieving resource {%s}: %s",resourceId,result1);
    Container result2 = sut.containerOfId(containerId);
    debug("Retrieving container {%s}: %s",containerId,result2);
    Resource result3 = sut.resourceById(memberId,Resource.class);
    debug("Retrieving member resource {%s}: %s",memberId,result3);
    sut.remove(result2);
    debug("Deleted resource {%s}",result2.id());
    Resource result4 = sut.resourceById(attachmentId,Resource.class);
    debug("Retrieving attached resource {%s}: %s",attachmentId,result4);
    Attachment attachment = result1.findAttachment(result4.id());
    debug("Retrieving attachment {%s}: %s",result4.id(),attachment);
    result1.detach(attachment);
    debug("Detached resource {%s}",attachment.id());
    sut.remove(result4);
    debug("Deleted resource {%s}",result4.id());
  }
}
org.ldp4j.application.kernel.resourceResourceRepositoryremove

Popular methods of ResourceRepository

  • add
  • containerOfId
  • resourceById
  • resourceOfId

Popular in Java

  • Reactive rest calls using spring rest template
  • compareTo (BigDecimal)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • getSystemService (Context)
  • Point (java.awt)
    A point representing a location in (x,y) coordinate space, specified in integer precision.
  • URLEncoder (java.net)
    This class is used to encode a string using the format required by application/x-www-form-urlencoded
  • Manifest (java.util.jar)
    The Manifest class is used to obtain attribute information for a JarFile and its entries.
  • Filter (javax.servlet)
    A filter is an object that performs filtering tasks on either the request to a resource (a servlet o
  • JComboBox (javax.swing)
  • JFileChooser (javax.swing)
  • PhpStorm for WordPress
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now