public class GraphRequestFactory extends Object implements org.springframework.context.ApplicationContextAware
GraphPathBean.| Constructor and Description |
|---|
GraphRequestFactory(ACLVoter aclVoter,
Roles securityRoles,
GraphPathBean graphPathBean,
LightAdminPrivileges adminPrivileges,
Deletion deletionInstance,
Map<Class<? extends omero.cmd.Request>,List<String>> allTargets,
Map<Class<? extends omero.cmd.Request>,List<GraphPolicyRule>> allRules,
List<String> unnullable,
Set<String> defaultExcludeNs)
Construct a new graph request factory.
|
| Modifier and Type | Method and Description |
|---|---|
omero.cmd.graphs.ChildOption |
createChildOption() |
GraphPathBean |
getGraphPathBean() |
<R extends omero.cmd.GraphQuery> |
getLegalTargets(Class<R> requestClass)
Get the legal target object classes for the given request.
|
<R extends omero.cmd.GraphQuery> |
getRequest(Class<R> requestClass)
Construct a request.
|
void |
setApplicationContext(org.springframework.context.ApplicationContext applicationContext) |
public GraphRequestFactory(ACLVoter aclVoter, Roles securityRoles, GraphPathBean graphPathBean, LightAdminPrivileges adminPrivileges, Deletion deletionInstance, Map<Class<? extends omero.cmd.Request>,List<String>> allTargets, Map<Class<? extends omero.cmd.Request>,List<GraphPolicyRule>> allRules, List<String> unnullable, Set<String> defaultExcludeNs) throws GraphException
aclVoter - ACL voter for permissions checkingsecurityRoles - the security rolesgraphPathBean - the graph path beanadminPrivileges - the light administrator privileges helperdeletionInstance - a deletion instance for deleting filesallTargets - legal target object classes for all request classes that use the graph path beanallRules - rules for all request classes that use the graph path beanunnullable - properties that, while nullable, may not be nulled by a graph traversal operationdefaultExcludeNs - the default value for an unset excludeNs fieldGraphException - if the graph path rules could not be parsedpublic void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
setApplicationContext in interface org.springframework.context.ApplicationContextAwarepublic GraphPathBean getGraphPathBean()
public <R extends omero.cmd.GraphQuery> Set<Class<? extends IObject>> getLegalTargets(Class<R> requestClass)
requestClass - a request classpublic <R extends omero.cmd.GraphQuery> R getRequest(Class<R> requestClass)
requestClass - a request classpublic omero.cmd.graphs.ChildOption createChildOption()
Version: 5.4.0-ice36-b74
Copyright © 2017 The University of Dundee & Open Microscopy Environment. All Rights Reserved.