package no.deichman.services.service;

import java.io.UnsupportedEncodingException;

import com.hp.hpl.jena.rdf.model.Model;

import no.deichman.services.error.PatchException;
import no.deichman.services.error.PatchParserException;
import no.deichman.services.repository.Repository;

public interface Service {
    
    void setRepository(Repository repository);
    void updateWork(String work);
    Model retrieveWorkById(String id);
    Model retrieveWorkItemsById(String id);
    String createWork(String work);
    String createPublication(String publication);
    void deleteWork(Model work);
    void deletePublication(Model publication);
    Model patchWork(String work, String requestBody) throws UnsupportedEncodingException, PatchException, PatchParserException;
    Model retrievePublicationById(String publicationId);
    Model patchPublication(String publicationId, String requestBody) throws PatchParserException;
    boolean resourceExists(String resourceUri);
}

@@ -43,136 +43,39 @@
 ort 
-java.io.UnsupportedEncodingException;%0A%0Aimport com.hp.hpl.jena.rdf.model.Model;%0A%0Aimport no.deichman.services.error.PatchException
+com.hp.hpl.jena.rdf.model.Model
 ;%0Aim
@@ -605,54 +605,8 @@
 rows
- UnsupportedEncodingException, PatchException,
  Pat

Remove unused exceptions from signature.