Search in sources :

Example 31 with SCIMResponse

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

the class ResourceTypeResourceManager method updateWithPATCH.

@Override
public SCIMResponse updateWithPATCH(String existingId, 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 32 with SCIMResponse

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

the class ResourceTypeResourceManager method listWithGET.

@Override
public SCIMResponse listWithGET(UserManager userManager, String filter, int startIndex, int count, String sortBy, String sortOrder, 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 33 with SCIMResponse

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

the class ServiceProviderConfigResourceManager method updateWithPUT.

@Override
public SCIMResponse updateWithPUT(String existingId, 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 34 with SCIMResponse

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

the class ServiceProviderConfigResourceManager method updateWithPATCH.

@Override
public SCIMResponse updateWithPATCH(String existingId, 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 35 with SCIMResponse

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

the class ServiceProviderConfigResourceManager method listWithGET.

@Override
public SCIMResponse listWithGET(UserManager userManager, String filter, int startIndex, int count, String sortBy, String sortOrder, 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)

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