Examples of BadRequestException


Examples of javax.ws.rs.BadRequestException

            case AUDIT:
                List<AuditLoggerName> auditLogger = loggerController.listAudits();
                return CollectionWrapper.unwrapLogger(auditLogger);

            default:
                throw new BadRequestException();
        }
    }
View Full Code Here

Examples of javax.ws.rs.BadRequestException

            case AUDIT:
                try {
                    loggerController.enableAudit(AuditLoggerName.fromLoggerName(name));
                } catch (IllegalArgumentException e) {
                    throw new BadRequestException(e);
                } catch (ParseException e) {
                    throw new BadRequestException(e);
                }
                break;

            default:
                throw new BadRequestException();
        }
    }
View Full Code Here

Examples of javax.ws.rs.BadRequestException

            case GLOBAL_SYNC:
                result = (T) policyController.getGlobalSyncPolicy();
                break;

            default:
                throw new BadRequestException();
        }

        return result;
    }
View Full Code Here

Examples of javax.ws.rs.BadRequestException

                        values().iterator().next();
                result = CollectionWrapper.wrapSyncCorrelationRuleClasses(classes);
                break;

            default:
                throw new BadRequestException();
        }

        return result;
    }
View Full Code Here

Examples of javax.ws.rs.BadRequestException

            case USER:
                return workflowController.getUserDefinition();
            case ROLE:
                return workflowController.getRoleDefinition();
            default:
                throw new BadRequestException();
        }
    }
View Full Code Here

Examples of javax.ws.rs.BadRequestException

                break;
            case ROLE:
                workflowController.updateRoleDefinition(definition);
                break;
            default:
                throw new BadRequestException();
        }
    }
View Full Code Here

Examples of javax.ws.rs.BadRequestException

            case USER:
                return CollectionWrapper.wrapStrings(workflowController.getDefinedUserTasks());
            case ROLE:
                return CollectionWrapper.wrapStrings(workflowController.getDefinedUserTasks());
            default:
                throw new BadRequestException();
        }
    }
View Full Code Here

Examples of javax.ws.rs.BadRequestException

                response = virtualSchemaController.create(new DummyHTTPServletResponse(), (VirtualSchemaTO) schemaTO,
                        kind.toString());
                break;

            default:
                throw new BadRequestException();
        }
        URI location = uriInfo.getAbsolutePathBuilder().path(response.getName()).build();
        return Response.created(location)
                .header(SyncopeConstants.REST_HEADER_ID, response.getName())
                .build();
View Full Code Here

Examples of javax.ws.rs.BadRequestException

            case VIRTUAL:
                virtualSchemaController.delete(kind.toString(), schemaName);
                break;

            default:
                throw new BadRequestException();
        }
    }
View Full Code Here

Examples of javax.ws.rs.BadRequestException

            case VIRTUAL:
                return virtualSchemaController.list(kind.toString());

            default:
                throw new BadRequestException();
        }
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.