public class NullGraphTraversalProcessor extends java.lang.Object implements GraphTraversal.Processor
GraphTraversal.Processor
that does nothing whatsoever.Constructor and Description |
---|
NullGraphTraversalProcessor(java.util.Set<GraphPolicy.Ability> requiredAbilities)
Construct a
GraphTraversal.Processor that does nothing whatsoever. |
Modifier and Type | Method and Description |
---|---|
void |
assertMayProcess(java.lang.String className,
long id,
Details details)
Assert that an object with the given details may be processed.
|
void |
deleteInstances(java.lang.String className,
java.util.Collection<java.lang.Long> ids)
Delete the given instances.
|
java.util.Set<GraphPolicy.Ability> |
getRequiredPermissions() |
void |
nullProperties(java.lang.String className,
java.lang.String propertyName,
java.util.Collection<java.lang.Long> ids)
Null the given property of the indicated instances.
|
void |
processInstances(java.lang.String className,
java.util.Collection<java.lang.Long> ids)
Process the given instances.
|
public NullGraphTraversalProcessor(java.util.Set<GraphPolicy.Ability> requiredAbilities)
GraphTraversal.Processor
that does nothing whatsoever.requiredAbilities
- the GraphPolicy.Ability
set to be returned by getRequiredPermissions()
public void nullProperties(java.lang.String className, java.lang.String propertyName, java.util.Collection<java.lang.Long> ids)
GraphTraversal.Processor
nullProperties
in interface GraphTraversal.Processor
className
- full name of mapped Hibernate classpropertyName
- HQL-style property name of classids
- applicable instances of class, no more than GraphTraversal.BATCH_SIZE
public void deleteInstances(java.lang.String className, java.util.Collection<java.lang.Long> ids)
GraphTraversal.Processor
deleteInstances
in interface GraphTraversal.Processor
className
- full name of mapped Hibernate classids
- applicable instances of class, no more than GraphTraversal.BATCH_SIZE
public void processInstances(java.lang.String className, java.util.Collection<java.lang.Long> ids)
GraphTraversal.Processor
processInstances
in interface GraphTraversal.Processor
className
- full name of mapped Hibernate classids
- applicable instances of class, no more than GraphTraversal.BATCH_SIZE
public java.util.Set<GraphPolicy.Ability> getRequiredPermissions()
getRequiredPermissions
in interface GraphTraversal.Processor
GraphTraversal.Processor.processInstances(String, Collection)
public void assertMayProcess(java.lang.String className, long id, Details details) throws GraphException
GraphTraversal.Processor
assertMayProcess
in interface GraphTraversal.Processor
className
- the name of the object's classid
- the ID of the objectdetails
- the object's detailsGraphException
- if the object may not be processed
Version: 5.4.10-ice35-b105
Copyright © 2019 The University of Dundee & Open Microscopy Environment. All Rights Reserved.