/** * Check the activity of a resource and its parent. * @param resource the resource IRI * @param agent the agent IRI * @param activityType the activity type * @param resourceType the resource type * @return a stream of tests */ default Stream<Executable> checkResourceParentLdpBC(final String resource, final String agent, final IRI activityType, final IRI resourceType) { return checkResourceParentActivity(resource, getContainerLocation(), agent, activityType, resourceType, LDP.BasicContainer); }
/** * Check the activity of a resource and its parent. * @param resource the resource IRI * @param agent the agent IRI * @param activityType the activity type * @param resourceType the resource type * @return a stream of tests */ default Stream<Executable> checkResourceParentLdpBC(final String resource, final String agent, final IRI activityType, final IRI resourceType) { return checkResourceParentActivity(resource, getContainerLocation(), agent, activityType, resourceType, LDP.BasicContainer); }
/** * Check the activity of a resource and its parent. * @param resource the resource IRI * @param agent the agent IRI * @param activityType the activity type * @param resourceType the resource type * @param memberType the member type * @return a stream of tests */ default Stream<Executable> checkResourceParentLdpDC(final String resource, final String agent, final IRI activityType, final IRI resourceType, final IRI memberType) { return concat( checkResourceParentActivity(resource, getDirectContainerLocation(), agent, activityType, resourceType, LDP.DirectContainer), of(() -> await().atMost(15, SECONDS).until(() -> getMessages().stream() .anyMatch(checkEventGraph(getMemberLocation(), agent, AS.Update, memberType))))); }
/** * Check the activity of a resource and its parent. * @param resource the resource IRI * @param agent the agent IRI * @param activityType the activity type * @param resourceType the resource type * @param memberType the member type * @return a stream of tests */ default Stream<Executable> checkResourceParentLdpIC(final String resource, final String agent, final IRI activityType, final IRI resourceType, final IRI memberType) { return concat( checkResourceParentActivity(resource, getIndirectContainerLocation(), agent, activityType, resourceType, LDP.IndirectContainer), of(() -> await().atMost(15, SECONDS).until(() -> getMessages().stream() .anyMatch(checkEventGraph(getMemberLocation(), agent, AS.Update, memberType))))); }
/** * Check the activity of a resource and its parent. * @param resource the resource IRI * @param agent the agent IRI * @param activityType the activity type * @param resourceType the resource type * @param memberType the member type * @return a stream of tests */ default Stream<Executable> checkResourceParentLdpIC(final String resource, final String agent, final IRI activityType, final IRI resourceType, final IRI memberType) { return concat( checkResourceParentActivity(resource, getIndirectContainerLocation(), agent, activityType, resourceType, LDP.IndirectContainer), of(() -> await().atMost(15, SECONDS).until(() -> getMessages().stream() .anyMatch(checkEventGraph(getMemberLocation(), agent, AS.Update, memberType))))); }
/** * Check the activity of a resource and its parent. * @param resource the resource IRI * @param agent the agent IRI * @param activityType the activity type * @param resourceType the resource type * @param memberType the member type * @return a stream of tests */ default Stream<Executable> checkResourceParentLdpDC(final String resource, final String agent, final IRI activityType, final IRI resourceType, final IRI memberType) { return concat( checkResourceParentActivity(resource, getDirectContainerLocation(), agent, activityType, resourceType, LDP.DirectContainer), of(() -> await().atMost(15, SECONDS).until(() -> getMessages().stream() .anyMatch(checkEventGraph(getMemberLocation(), agent, AS.Update, memberType))))); }