Search in sources :

Example 11 with SCIMResponse

use of org.wso2.charon3.core.protocol.SCIMResponse in project charon by wso2.

the class ResourceTypeResourceManager method listWithPOST.

@Override
public SCIMResponse listWithPOST(String resourceString, UserManager userManager) {
    String error = "Request is undefined";
    BadRequestException badRequestException = new BadRequestException(error, ResponseCodeConstants.INVALID_PATH);
    return encodeSCIMException(badRequestException);
}
Also used : BadRequestException(org.wso2.charon3.core.exceptions.BadRequestException)

Example 12 with SCIMResponse

use of org.wso2.charon3.core.protocol.SCIMResponse in project charon by wso2.

the class ResourceTypeResourceManager method create.

@Override
public SCIMResponse create(String scimObjectString, UserManager userManager, String attributes, String excludeAttributes) {
    String error = "Request is undefined";
    BadRequestException badRequestException = new BadRequestException(error, ResponseCodeConstants.INVALID_PATH);
    return encodeSCIMException(badRequestException);
}
Also used : BadRequestException(org.wso2.charon3.core.exceptions.BadRequestException)

Example 13 with SCIMResponse

use of org.wso2.charon3.core.protocol.SCIMResponse in project charon by wso2.

the class ServiceProviderConfigResourceManager method delete.

@Override
public SCIMResponse delete(String id, UserManager userManager) {
    String error = "Request is undefined";
    BadRequestException badRequestException = new BadRequestException(error, ResponseCodeConstants.INVALID_PATH);
    return encodeSCIMException(badRequestException);
}
Also used : BadRequestException(org.wso2.charon3.core.exceptions.BadRequestException)

Example 14 with SCIMResponse

use of org.wso2.charon3.core.protocol.SCIMResponse in project charon by wso2.

the class ServiceProviderConfigResourceManager method create.

@Override
public SCIMResponse create(String scimObjectString, UserManager userManager, String attributes, String excludeAttributes) {
    String error = "Request is undefined";
    BadRequestException badRequestException = new BadRequestException(error, ResponseCodeConstants.INVALID_PATH);
    return encodeSCIMException(badRequestException);
}
Also used : BadRequestException(org.wso2.charon3.core.exceptions.BadRequestException)

Example 15 with SCIMResponse

use of org.wso2.charon3.core.protocol.SCIMResponse in project charon by wso2.

the class ServiceProviderConfigResourceManager method listWithPOST.

@Override
public SCIMResponse listWithPOST(String resourceString, UserManager userManager) {
    String error = "Request is undefined";
    BadRequestException badRequestException = new BadRequestException(error, ResponseCodeConstants.INVALID_PATH);
    return encodeSCIMException(badRequestException);
}
Also used : BadRequestException(org.wso2.charon3.core.exceptions.BadRequestException)

Aggregations

BadRequestException (org.wso2.charon3.core.exceptions.BadRequestException)31 CharonException (org.wso2.charon3.core.exceptions.CharonException)31 SCIMResponse (org.wso2.charon3.core.protocol.SCIMResponse)31 HashMap (java.util.HashMap)19 NotFoundException (org.wso2.charon3.core.exceptions.NotFoundException)18 SCIMResourceTypeSchema (org.wso2.charon3.core.schema.SCIMResourceTypeSchema)18 InternalErrorException (org.wso2.charon3.core.exceptions.InternalErrorException)16 JSONEncoder (org.wso2.charon3.core.encoder.JSONEncoder)15 UserManager (org.wso2.charon3.core.extensions.UserManager)15 JSONDecoder (org.wso2.charon3.core.encoder.JSONDecoder)13 ApiOperation (io.swagger.annotations.ApiOperation)12 ApiResponses (io.swagger.annotations.ApiResponses)12 Produces (javax.ws.rs.Produces)12 NotImplementedException (org.wso2.charon3.core.exceptions.NotImplementedException)12 Path (javax.ws.rs.Path)8 User (org.wso2.charon3.core.objects.User)8 Consumes (javax.ws.rs.Consumes)6 GroupResourceManager (org.wso2.charon3.core.protocol.endpoints.GroupResourceManager)6 UserResourceManager (org.wso2.charon3.core.protocol.endpoints.UserResourceManager)6 GET (javax.ws.rs.GET)4