public class GraphPathBean extends OnContextRefreshedEventListener
Constructor and Description |
---|
GraphPathBean() |
Modifier and Type | Method and Description |
---|---|
Class<? extends IObject> |
getClassForSimpleName(String simpleName) |
String |
getIdentifierProperty(String className)
Get the identifier property for the given class.
|
Set<Map.Entry<String,String>> |
getLinkedBy(String className)
Get the classes and properties that link to the given class.
|
Set<Map.Entry<String,String>> |
getLinkedTo(String className)
Get the classes and properties to which the given class links.
|
ome.services.graphs.GraphPathBean.PropertyKind |
getPropertyKind(String className,
String propertyName)
Get what kind of property a specific class property is.
|
Set<String> |
getSubclassesOf(String className)
Get the subclasses of the given class, if any.
|
Collection<String> |
getSubclassesOfReflexive(String className)
Get the name of this class and of its mapped subclasses.
|
Set<String> |
getSuperclassesOf(String className)
Get the superclasses of the given class, if any.
|
Collection<String> |
getSuperclassesOfReflexive(String className)
Get the name of this class and of its mapped superclasses.
|
void |
handleContextRefreshedEvent(ContextRefreshedEvent event)
The application context after refresh should contain a usable Hibernate session factory.
|
boolean |
isPropertyAccessible(String className,
String propertyName)
Find if the given property can be accessed.
|
onApplicationEvent, setApplicationContext
public void handleContextRefreshedEvent(ContextRefreshedEvent event)
handleContextRefreshedEvent
in class OnContextRefreshedEventListener
event
- the context refreshed event bearing the new application contextpublic Class<? extends IObject> getClassForSimpleName(String simpleName)
simpleName
- the simple name of a mapped IObject classnull
if one is not knownpublic Set<String> getSuperclassesOf(String className)
className
- the name of a classnull
public Collection<String> getSuperclassesOfReflexive(String className)
className
- the name of a classnull
public Set<String> getSubclassesOf(String className)
className
- the name of a classnull
public Collection<String> getSubclassesOfReflexive(String className)
className
- the name of a classnull
public Set<Map.Entry<String,String>> getLinkedTo(String className)
className
- the name of a classnull
public Set<Map.Entry<String,String>> getLinkedBy(String className)
className
- the name of a classnull
public ome.services.graphs.GraphPathBean.PropertyKind getPropertyKind(String className, String propertyName)
className
- the name of a classpropertyName
- the name of a property declared, not just inherited, by that classpublic boolean isPropertyAccessible(String className, String propertyName)
className
- the name of a classpropertyName
- the name of a property declared, not just inherited, by that class
Version: 5.2.0-ice35-b12
Copyright © 2015 The University of Dundee & Open Microscopy Environment. All Rights Reserved.