public class GraphRequestFactory
extends java.lang.Object
implements org.springframework.context.ApplicationContextAware
GraphPathBean.| Constructor and Description |
|---|
GraphRequestFactory(ome.security.ACLVoter aclVoter,
ome.system.Roles securityRoles,
ome.services.graphs.GraphPathBean graphPathBean,
ome.security.basic.LightAdminPrivileges adminPrivileges,
ome.services.delete.Deletion deletionInstance,
java.util.Map<java.lang.Class<? extends Request>,java.util.List<java.lang.String>> allTargets,
java.util.Map<java.lang.Class<? extends Request>,java.util.List<ome.services.graphs.GraphPolicyRule>> allRules,
java.util.List<java.lang.String> unnullable,
java.util.Set<java.lang.String> defaultExcludeNs)
Construct a new graph request factory.
|
| Modifier and Type | Method and Description |
|---|---|
ChildOption |
createChildOption() |
ome.services.graphs.GraphPathBean |
getGraphPathBean() |
<R extends GraphQuery> |
getLegalTargets(java.lang.Class<R> requestClass)
Get the legal target object classes for the given request.
|
<R extends GraphQuery> |
getRequest(java.lang.Class<R> requestClass)
Construct a request.
|
void |
setApplicationContext(org.springframework.context.ApplicationContext applicationContext) |
public GraphRequestFactory(ome.security.ACLVoter aclVoter,
ome.system.Roles securityRoles,
ome.services.graphs.GraphPathBean graphPathBean,
ome.security.basic.LightAdminPrivileges adminPrivileges,
ome.services.delete.Deletion deletionInstance,
java.util.Map<java.lang.Class<? extends Request>,java.util.List<java.lang.String>> allTargets,
java.util.Map<java.lang.Class<? extends Request>,java.util.List<ome.services.graphs.GraphPolicyRule>> allRules,
java.util.List<java.lang.String> unnullable,
java.util.Set<java.lang.String> defaultExcludeNs)
throws ome.services.graphs.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 fieldome.services.graphs.GraphException - if the graph path rules could not be parsedpublic void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
setApplicationContext in interface org.springframework.context.ApplicationContextAwarepublic ome.services.graphs.GraphPathBean getGraphPathBean()
public <R extends GraphQuery> java.util.Set<java.lang.Class<? extends ome.model.IObject>> getLegalTargets(java.lang.Class<R> requestClass)
requestClass - a request classpublic <R extends GraphQuery> R getRequest(java.lang.Class<R> requestClass)
requestClass - a request classpublic ChildOption createChildOption()