Search in sources :

Example 1 with BatchUpdateArgumentBuilder

use of com.linkedin.restli.internal.server.methods.arguments.BatchUpdateArgumentBuilder in project rest.li by linkedin.

the class MethodAdapterRegistry method buildAdapterRegistry.

private Map<ResourceMethod, RestLiArgumentBuilder> buildAdapterRegistry() {
    Map<ResourceMethod, RestLiArgumentBuilder> result = new HashMap<ResourceMethod, RestLiArgumentBuilder>(ResourceMethod.values().length);
    result.put(ResourceMethod.GET, new GetArgumentBuilder());
    result.put(ResourceMethod.BATCH_GET, new BatchGetArgumentBuilder());
    result.put(ResourceMethod.FINDER, new CollectionArgumentBuilder());
    result.put(ResourceMethod.CREATE, new CreateArgumentBuilder());
    result.put(ResourceMethod.PARTIAL_UPDATE, new PatchArgumentBuilder());
    result.put(ResourceMethod.UPDATE, new UpdateArgumentBuilder());
    result.put(ResourceMethod.DELETE, new GetArgumentBuilder());
    result.put(ResourceMethod.ACTION, new ActionArgumentBuilder());
    result.put(ResourceMethod.BATCH_UPDATE, new BatchUpdateArgumentBuilder());
    result.put(ResourceMethod.BATCH_PARTIAL_UPDATE, new BatchPatchArgumentBuilder());
    result.put(ResourceMethod.BATCH_CREATE, new BatchCreateArgumentBuilder());
    result.put(ResourceMethod.BATCH_DELETE, new BatchDeleteArgumentBuilder());
    result.put(ResourceMethod.GET_ALL, new CollectionArgumentBuilder());
    return Collections.unmodifiableMap(result);
}
Also used : PatchArgumentBuilder(com.linkedin.restli.internal.server.methods.arguments.PatchArgumentBuilder) BatchPatchArgumentBuilder(com.linkedin.restli.internal.server.methods.arguments.BatchPatchArgumentBuilder) CreateArgumentBuilder(com.linkedin.restli.internal.server.methods.arguments.CreateArgumentBuilder) BatchCreateArgumentBuilder(com.linkedin.restli.internal.server.methods.arguments.BatchCreateArgumentBuilder) HashMap(java.util.HashMap) BatchPatchArgumentBuilder(com.linkedin.restli.internal.server.methods.arguments.BatchPatchArgumentBuilder) RestLiArgumentBuilder(com.linkedin.restli.internal.server.methods.arguments.RestLiArgumentBuilder) UpdateArgumentBuilder(com.linkedin.restli.internal.server.methods.arguments.UpdateArgumentBuilder) BatchUpdateArgumentBuilder(com.linkedin.restli.internal.server.methods.arguments.BatchUpdateArgumentBuilder) BatchGetArgumentBuilder(com.linkedin.restli.internal.server.methods.arguments.BatchGetArgumentBuilder) BatchGetArgumentBuilder(com.linkedin.restli.internal.server.methods.arguments.BatchGetArgumentBuilder) GetArgumentBuilder(com.linkedin.restli.internal.server.methods.arguments.GetArgumentBuilder) BatchCreateArgumentBuilder(com.linkedin.restli.internal.server.methods.arguments.BatchCreateArgumentBuilder) BatchDeleteArgumentBuilder(com.linkedin.restli.internal.server.methods.arguments.BatchDeleteArgumentBuilder) ActionArgumentBuilder(com.linkedin.restli.internal.server.methods.arguments.ActionArgumentBuilder) ResourceMethod(com.linkedin.restli.common.ResourceMethod) CollectionArgumentBuilder(com.linkedin.restli.internal.server.methods.arguments.CollectionArgumentBuilder) BatchUpdateArgumentBuilder(com.linkedin.restli.internal.server.methods.arguments.BatchUpdateArgumentBuilder)

Aggregations

ResourceMethod (com.linkedin.restli.common.ResourceMethod)1 ActionArgumentBuilder (com.linkedin.restli.internal.server.methods.arguments.ActionArgumentBuilder)1 BatchCreateArgumentBuilder (com.linkedin.restli.internal.server.methods.arguments.BatchCreateArgumentBuilder)1 BatchDeleteArgumentBuilder (com.linkedin.restli.internal.server.methods.arguments.BatchDeleteArgumentBuilder)1 BatchGetArgumentBuilder (com.linkedin.restli.internal.server.methods.arguments.BatchGetArgumentBuilder)1 BatchPatchArgumentBuilder (com.linkedin.restli.internal.server.methods.arguments.BatchPatchArgumentBuilder)1 BatchUpdateArgumentBuilder (com.linkedin.restli.internal.server.methods.arguments.BatchUpdateArgumentBuilder)1 CollectionArgumentBuilder (com.linkedin.restli.internal.server.methods.arguments.CollectionArgumentBuilder)1 CreateArgumentBuilder (com.linkedin.restli.internal.server.methods.arguments.CreateArgumentBuilder)1 GetArgumentBuilder (com.linkedin.restli.internal.server.methods.arguments.GetArgumentBuilder)1 PatchArgumentBuilder (com.linkedin.restli.internal.server.methods.arguments.PatchArgumentBuilder)1 RestLiArgumentBuilder (com.linkedin.restli.internal.server.methods.arguments.RestLiArgumentBuilder)1 UpdateArgumentBuilder (com.linkedin.restli.internal.server.methods.arguments.UpdateArgumentBuilder)1 HashMap (java.util.HashMap)1