1
|
package eu.dnetlib.enabling.is.sn.resourcestate;
|
2
|
|
3
|
import eu.dnetlib.enabling.tools.OpaqueResource;
|
4
|
|
5
|
/**
|
6
|
* Ignores pending profiles from notification detection.
|
7
|
*
|
8
|
* @author marko
|
9
|
*
|
10
|
*/
|
11
|
public class PendingResourceStateNotificationDetectorFilter extends AbstractResourceStateNotificationDetectorFilter<OpaqueResource> {
|
12
|
|
13
|
/**
|
14
|
* {@inheritDoc}
|
15
|
* @see eu.dnetlib.enabling.is.sn.resourcestate.AbstractResourceStateNotificationDetectorFilter#accept(java.lang.Object)
|
16
|
*/
|
17
|
@Override
|
18
|
boolean accept(final OpaqueResource resource) {
|
19
|
if (resource.getResourceKind().startsWith("Pending"))
|
20
|
return false;
|
21
|
return true;
|
22
|
}
|
23
|
|
24
|
}
|