class FindParticipantTypesForObjectTypeNameAPIController {

    @RequestMapping(method = RequestMethod.GET, value = "/participantTypesForObjectTypeName/{objectTypeName}", produces = MediaType.APPLICATION_JSON_VALUE)
    public @ResponseBody List<AcmParticipantType> participantTypesForObjectTypeName(
            @PathVariable(value = "objectTypeName") String objectTypeName)
    {
        if (log.isDebugEnabled())
        {
            log.debug("Looking for participant types for '" + objectTypeName + "'");
        }

        AcmObjectType objectType = getAcmApplication().getBusinessObjectByName(objectTypeName);
        List<AcmParticipantType> retval = objectType.getParticipantTypes();
        return retval;
    }

}