Package org.nuxeo.ecm.webengine.model
Interface ResourceType
-
- All Known Subinterfaces:
AdapterType
,ModuleType
- All Known Implementing Classes:
AbstractResourceType
,AdapterTypeImpl
,ResourceTypeImpl
public interface ResourceType
- Author:
- Bogdan Stefanescu
-
-
Field Summary
Fields Modifier and Type Field Description static String
ROOT_TYPE_NAME
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
flushCache()
Set<String>
getFacets()
Guard
getGuard()
String
getName()
Class<? extends Resource>
getResourceClass()
ResourceType
getSuperType()
ScriptFile
getView(Module module, String name)
Gets a view for this type in the context of the given module.boolean
hasFacet(String facet)
boolean
isDerivedFrom(String type)
boolean
isEnabled(Resource ctx)
<T extends Resource>
TnewInstance(Class<T> typeof, WebContext context)
-
-
-
Field Detail
-
ROOT_TYPE_NAME
static final String ROOT_TYPE_NAME
- See Also:
- Constant Field Values
-
-
Method Detail
-
flushCache
void flushCache()
-
getGuard
Guard getGuard()
-
getName
String getName()
-
isDerivedFrom
boolean isDerivedFrom(String type)
-
newInstance
<T extends Resource> T newInstance(Class<T> typeof, WebContext context)
-
getSuperType
ResourceType getSuperType()
-
hasFacet
boolean hasFacet(String facet)
-
getView
ScriptFile getView(Module module, String name)
Gets a view for this type in the context of the given module.
-
isEnabled
boolean isEnabled(Resource ctx)
-
-