Changeset 1244


Ignore:
Timestamp:
04/27/11 11:36:35 (13 years ago)
Author:
twagoo
Message:

Rest service: added 'group' parameter to registerProfile method (POST on /profiles), so group names on profile registration now get processed as well

File:
1 edited

Legend:

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

    r1151 r1244  
    394394    @Consumes("multipart/form-data")
    395395    public Response registerProfile(@FormDataParam(DATA_FORM_FIELD) InputStream input, @FormDataParam(NAME_FORM_FIELD) String name,
    396             @FormDataParam(DESCRIPTION_FORM_FIELD) String description, @FormDataParam(DOMAIN_FORM_FIELD) String domainName,
     396            @FormDataParam(DESCRIPTION_FORM_FIELD) String description, @FormDataParam(GROUP_FORM_FIELD) String group, @FormDataParam(DOMAIN_FORM_FIELD) String domainName,
    397397            @QueryParam(USERSPACE_PARAM) @DefaultValue("false") boolean userspace) {
    398398        Principal principal = checkAndGetUserPrincipal();
     
    403403        desc.setName(name);
    404404        desc.setDescription(description);
     405        desc.setGroupName(group);
    405406        desc.setDomainName(domainName);
    406407        LOG.info("Trying to register Profile: " + desc);
Note: See TracChangeset for help on using the changeset viewer.