Ignore:
Timestamp:
08/11/14 16:07:55 (10 years ago)
Author:
olhsha@mpi.nl
Message:

Added group service. Tested via the tomcat on loclahots (test URI and postman), old unit tests are adjusted and work well. Todo: retest on localhost tomcat, look at run-time exceptions, add new unit tests, adjust front-end

File:
1 edited

Legend:

Unmodified
Added
Removed
  • ComponentRegistry/trunk/ComponentRegistry/src/main/java/clarin/cmdi/componentregistry/rest/PublishAction.java

    r4098 r5549  
    44
    55import clarin.cmdi.componentregistry.ComponentRegistry;
     6import clarin.cmdi.componentregistry.ItemNotFoundException;
     7import clarin.cmdi.componentregistry.UserUnauthorizedException;
    68import clarin.cmdi.componentregistry.components.CMDComponentSpec;
    79import clarin.cmdi.componentregistry.model.BaseDescription;
     
    1719
    1820    @Override
    19     public int execute(BaseDescription desc, CMDComponentSpec spec, RegisterResponse response, ComponentRegistry registry) {
     21    public int execute(BaseDescription desc, CMDComponentSpec spec, RegisterResponse response, ComponentRegistry registry) throws UserUnauthorizedException, ItemNotFoundException{
    2022        response.setIsInUserSpace(false);
    2123        return registry.publish(desc, spec, principal);
Note: See TracChangeset for help on using the changeset viewer.