public abstract class AbstractResourceType extends Object implements ResourceType
ROOT_TYPE_NAME
Modifier and Type | Method and Description |
---|---|
ScriptFile |
findView(Module module,
String name) |
void |
flushCache() |
Set<String> |
getFacets() |
Guard |
getGuard() |
String |
getName() |
Module |
getOwnerModule() |
Class<Resource> |
getResourceClass() |
ResourceType |
getSuperType() |
ScriptFile |
getView(Module module,
String name)
Gets a view for this type in the context of the given module.
|
int |
getVisibility() |
boolean |
hasFacet(String facet) |
boolean |
isDerivedFrom(String type) |
boolean |
isEnabled(Resource ctx) |
<T extends Resource> |
newInstance() |
String |
toString() |
public int getVisibility()
public ResourceType getSuperType()
getSuperType
in interface ResourceType
public Module getOwnerModule()
public Guard getGuard()
getGuard
in interface ResourceType
public Set<String> getFacets()
getFacets
in interface ResourceType
public boolean hasFacet(String facet)
hasFacet
in interface ResourceType
public String getName()
getName
in interface ResourceType
public Class<Resource> getResourceClass()
getResourceClass
in interface ResourceType
public <T extends Resource> T newInstance()
newInstance
in interface ResourceType
public boolean isEnabled(Resource ctx)
isEnabled
in interface ResourceType
public boolean isDerivedFrom(String type)
isDerivedFrom
in interface ResourceType
public void flushCache()
flushCache
in interface ResourceType
public ScriptFile getView(Module module, String name)
ResourceType
getView
in interface ResourceType
public ScriptFile findView(Module module, String name)
Copyright © 2015 Nuxeo SA. All rights reserved.