Search in sources :

Example 1 with ParametersQueryV4Response

use of com.sequenceiq.cloudbreak.api.endpoint.v4.util.responses.ParametersQueryV4Response in project cloudbreak by hortonworks.

the class BlueprintV4Controller method getParameters.

@Override
@CheckPermissionByResourceName(action = AuthorizationResourceAction.DESCRIBE_CLUSTER_TEMPLATE)
public ParametersQueryV4Response getParameters(Long workspaceId, @ResourceName String name) {
    ParametersQueryV4Response parametersQueryV4Response = new ParametersQueryV4Response();
    parametersQueryV4Response.setCustom(blueprintService.queryCustomParametersMap(name, restRequestThreadLocalService.getRequestedWorkspaceId()));
    return parametersQueryV4Response;
}
Also used : ParametersQueryV4Response(com.sequenceiq.cloudbreak.api.endpoint.v4.util.responses.ParametersQueryV4Response) CheckPermissionByResourceName(com.sequenceiq.authorization.annotation.CheckPermissionByResourceName)

Aggregations

CheckPermissionByResourceName (com.sequenceiq.authorization.annotation.CheckPermissionByResourceName)1 ParametersQueryV4Response (com.sequenceiq.cloudbreak.api.endpoint.v4.util.responses.ParametersQueryV4Response)1