Package org.intermine.web.logic.results
Class DisplayCollection
- java.lang.Object
-
- org.intermine.web.logic.results.DisplayField
-
- org.intermine.web.logic.results.DisplayCollection
-
public class DisplayCollection extends DisplayField
Class to represent a collection field of an object for the webapp- Author:
- Mark Woodbridge
-
-
Field Summary
-
Fields inherited from class org.intermine.web.logic.results.DisplayField
LOG
-
-
Constructor Summary
Constructors Constructor Description DisplayCollection(java.util.Collection<?> collection, CollectionDescriptor desc, WebConfig webConfig, java.util.Properties webProperties, java.util.Map<java.lang.String,java.util.List<FieldDescriptor>> classKeys, java.util.List<java.lang.Class<?>> listOfTypes)
Construct a new DisplayCollection objectDisplayCollection(java.util.Collection<?> collection, CollectionDescriptor desc, WebConfig webConfig, java.util.Properties webProperties, java.util.Map<java.lang.String,java.util.List<FieldDescriptor>> classKeys, java.util.List<java.lang.Class<?>> listOfTypes, java.lang.String objectType)
Construct a DisplayCollection object.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Collection
getCollection()
ReferenceDescriptor
getDescriptor()
Get ReferenceDescriptor for this reference.-
Methods inherited from class org.intermine.web.logic.results.DisplayField
getSize, getTable, isEmpty
-
-
-
-
Constructor Detail
-
DisplayCollection
public DisplayCollection(java.util.Collection<?> collection, CollectionDescriptor desc, WebConfig webConfig, java.util.Properties webProperties, java.util.Map<java.lang.String,java.util.List<FieldDescriptor>> classKeys, java.util.List<java.lang.Class<?>> listOfTypes) throws java.lang.Exception
Construct a new DisplayCollection object- Parameters:
collection
- the actual collectiondesc
- the descriptors for this collectionwebConfig
- the WebConfig object for this webappwebProperties
- telling us how many Collection rows to showclassKeys
- Map of class name to set of keyslistOfTypes
- as determined using PathQueryResultHelper on a Collection- Throws:
java.lang.Exception
- if an error occurs
-
DisplayCollection
public DisplayCollection(java.util.Collection<?> collection, CollectionDescriptor desc, WebConfig webConfig, java.util.Properties webProperties, java.util.Map<java.lang.String,java.util.List<FieldDescriptor>> classKeys, java.util.List<java.lang.Class<?>> listOfTypes, java.lang.String objectType) throws java.lang.Exception
Construct a DisplayCollection object.- Parameters:
collection
- The actual collection.desc
- The metadata for this collection.webConfig
- The configuration object for the web-app.webProperties
- User configurable properties.classKeys
- Map of class name to a composite key.listOfTypes
- As determined for this collection.objectType
- The type of object.- Throws:
java.lang.Exception
- if something goes wrong.
-
-
Method Detail
-
getDescriptor
public ReferenceDescriptor getDescriptor()
Get ReferenceDescriptor for this reference.- Returns:
- ReferenceDescriptor
-
getCollection
public java.util.Collection getCollection()
- Returns:
- Collection for JSP instead of dealing with InlineResultsTable
-
-