70 if (resource == null) {
71 return Response.status(Status.BAD_REQUEST).build();
74 ResourceOwnerRepresentation owner = resource.getOwner();
77 owner =
new ResourceOwnerRepresentation();
78 resource.setOwner(owner);
81 String ownerId = owner.getId();
83 if (ownerId == null) {
93 return Response.status(Status.CREATED).entity(
new UmaResourceRepresentation(newResource)).build();
void checkResourceServerSettings()
Definition: ResourceService.java:139
final ResourceSetService resourceManager
Definition: ResourceService.java:53
final Identity identity
Definition: ResourceService.java:55
void audit(ResourceRepresentation resource, OperationType operation)
Definition: ResourceSetService.java:471
ResourceRepresentation create(ResourceRepresentation resource)
Definition: ResourceSetService.java:110