public class NullGraphTraversalProcessor extends Object implements GraphTraversal.Processor
GraphTraversal.Processor that does nothing whatsoever.| Constructor and Description |
|---|
NullGraphTraversalProcessor(Set<GraphPolicy.Ability> requiredAbilities)
Construct a
GraphTraversal.Processor that does nothing whatsoever. |
| Modifier and Type | Method and Description |
|---|---|
void |
assertMayProcess(String className,
long id,
Details details)
Assert that an object with the given details may be processed.
|
void |
deleteInstances(String className,
Collection<Long> ids)
Delete the given instances.
|
Set<GraphPolicy.Ability> |
getRequiredPermissions() |
void |
nullProperties(String className,
String propertyName,
Collection<Long> ids)
Null the given property of the indicated instances.
|
void |
processInstances(String className,
Collection<Long> ids)
Process the given instances.
|
public NullGraphTraversalProcessor(Set<GraphPolicy.Ability> requiredAbilities)
GraphTraversal.Processor that does nothing whatsoever.requiredAbilities - the GraphPolicy.Ability set to be returned by getRequiredPermissions()public void nullProperties(String className, String propertyName, Collection<Long> ids)
GraphTraversal.ProcessornullProperties in interface GraphTraversal.ProcessorclassName - full name of mapped Hibernate classpropertyName - HQL-style property name of classids - applicable instances of class, no more than GraphTraversal.BATCH_SIZEpublic void deleteInstances(String className, Collection<Long> ids)
GraphTraversal.ProcessordeleteInstances in interface GraphTraversal.ProcessorclassName - full name of mapped Hibernate classids - applicable instances of class, no more than GraphTraversal.BATCH_SIZEpublic void processInstances(String className, Collection<Long> ids)
GraphTraversal.ProcessorprocessInstances in interface GraphTraversal.ProcessorclassName - full name of mapped Hibernate classids - applicable instances of class, no more than GraphTraversal.BATCH_SIZEpublic Set<GraphPolicy.Ability> getRequiredPermissions()
getRequiredPermissions in interface GraphTraversal.ProcessorGraphTraversal.Processor.processInstances(String, Collection)public void assertMayProcess(String className, long id, Details details) throws GraphException
GraphTraversal.ProcessorassertMayProcess in interface GraphTraversal.ProcessorclassName - 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.3.5-ice35-b73
Copyright © 2017 The University of Dundee & Open Microscopy Environment. All Rights Reserved.