public interface ViewRepository
View
objects, accessible by names.
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
NAME |
Modifier and Type | Method and Description |
---|---|
View |
findView(MetaClass metaClass,
java.lang.String name)
Searches for a View for an entity.
|
View |
getView(java.lang.Class<? extends Entity> entityClass,
java.lang.String name)
Get View for an entity.
|
View |
getView(MetaClass metaClass,
java.lang.String name)
Get View for an entity.
|
java.util.Collection<java.lang.String> |
getViewNames(java.lang.Class<? extends Entity> entityClass)
Returns names of views defined for the entityClass
|
java.util.Collection<java.lang.String> |
getViewNames(MetaClass metaClass)
Returns names of views defined for the metaClass
|
static final java.lang.String NAME
View getView(java.lang.Class<? extends Entity> entityClass, java.lang.String name)
entityClass
- entity classname
- view nameViewNotFoundException
if not found.View getView(MetaClass metaClass, java.lang.String name)
metaClass
- entity classname
- view nameViewNotFoundException
if not found.@Nullable View findView(MetaClass metaClass, java.lang.String name)
metaClass
- entity classname
- view namejava.util.Collection<java.lang.String> getViewNames(MetaClass metaClass)
metaClass
- entity classjava.util.Collection<java.lang.String> getViewNames(java.lang.Class<? extends Entity> entityClass)
entityClass
- entity class