@Override default JsonPointer getResourcePath() { return JsonFactory.emptyPointer(); }
@Override public JsonPointer getResourcePath() { return JsonFactory.emptyPointer(); }
@Override default JsonPointer getResourcePath() { return JsonFactory.emptyPointer(); }
@Override default JsonPointer getResourcePath() { return JsonFactory.emptyPointer(); }
@Override public JsonPointer getResourcePath() { return JsonFactory.emptyPointer(); }
@Override default JsonPointer getResourcePath() { return JsonFactory.emptyPointer(); }
@Override public JsonPointer getResourcePath() { return JsonFactory.emptyPointer(); }
@Override public JsonPointer getResourcePath() { return JsonFactory.emptyPointer(); }
@Override public JsonPointer getResourcePath() { return JsonFactory.emptyPointer(); }
/** * Returns an empty JSON pointer. An empty pointer is represented by string {@code "/"}. * * @return the pointer. */ @Nonnull static JsonPointer empty() { return JsonFactory.emptyPointer(); }
/** * Returns an empty JSON pointer. An empty pointer is represented by string {@code "/"}. * * @return the pointer. */ @Nonnull static JsonPointer empty() { return JsonFactory.emptyPointer(); }
public ThingQueryCommandResponseAssert withResourcePath(final CharSequence expectedResourcePath) { return withResourcePath(expectedResourcePath, JsonFactory.emptyPointer()); }
public ThingModifyCommandResponseAssert withResourcePath(final CharSequence expectedResourcePath) { return withResourcePath(expectedResourcePath, JsonFactory.emptyPointer()); }
/** * Builds a view of the passed {@code jsonFields} (e.g. a {@link JsonObject} or a {@link * org.eclipse.ditto.json.JsonObjectBuilder}) {@code authorizationContext} and {@code permissions}. The resulting * {@code JsonObject} only contains {@code JsonFields} for which the {@code authorizationContext} has the required * permissions. * * @param jsonFields the full JsonFields from which to build the view based on the permissions. * @param resourceType the type of the Resource * @param authorizationContext the AuthorizationContext containing the AuthorizationSubjects. * @param permission the permission. * @param furtherPermissions further permissions. * @return a view of the passed {@code jsonFields} as JsonObject for which the required permissions are given. * @throws NullPointerException if any argument is {@code null}. * @throws IllegalArgumentException if {@code resourceType} is empty. */ default JsonObject buildJsonView(final Iterable<JsonField> jsonFields, final CharSequence resourceType, final AuthorizationContext authorizationContext, final String permission, final String... furtherPermissions) { return buildJsonView(ResourceKey.newInstance(resourceType, JsonFactory.emptyPointer()), jsonFields, authorizationContext, Permissions.newInstance(permission, furtherPermissions)); }
JsonFactory.emptyPointer()); final boolean isAuthorizationSubjectRelevant = hasPartialPermissions(rootResourceKey, authorizationContext, permissions);