Class AdapterTypeImpl
- java.lang.Object
-
- org.nuxeo.ecm.webengine.model.impl.AbstractResourceType
-
- org.nuxeo.ecm.webengine.model.impl.AdapterTypeImpl
-
- All Implemented Interfaces:
AdapterType
,ResourceType
public class AdapterTypeImpl extends AbstractResourceType implements AdapterType
- Author:
- Bogdan Stefanescu
-
-
Field Summary
Fields Modifier and Type Field Description protected String
adapterName
protected String[]
targetFacets
protected String
targetType
-
Fields inherited from class org.nuxeo.ecm.webengine.model.impl.AbstractResourceType
clazz, constructor, engine, facets, guard, name, owner, superType, templateCache, visibility
-
Fields inherited from interface org.nuxeo.ecm.webengine.model.ResourceType
ROOT_TYPE_NAME
-
-
Constructor Summary
Constructors Constructor Description AdapterTypeImpl(WebEngine engine, ModuleImpl module, ResourceTypeImpl superType, String name, String adapterName, ClassProxy clazz, com.sun.jersey.server.spi.component.ResourceComponentConstructor constructor, int visibility)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
acceptResource(Resource resource)
boolean
acceptType(ResourceType type)
String
getAdapterName()
String[]
getTargetFacets()
String
getTargetType()
protected void
loadAnnotations(AnnotationManager annoMgr)
-
Methods inherited from class org.nuxeo.ecm.webengine.model.impl.AbstractResourceType
findSkinTemplate, findTypeTemplate, findView, flushCache, getFacets, getGuard, getName, getOwnerModule, getResourceClass, getSuperType, getView, getVisibility, hasFacet, isDerivedFrom, isEnabled, loadGuardFromAnnoation, newInstance, resolveResourcePath, toString
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.nuxeo.ecm.webengine.model.ResourceType
flushCache, getFacets, getGuard, getName, getResourceClass, getSuperType, getView, hasFacet, isDerivedFrom, isEnabled, newInstance
-
-
-
-
Constructor Detail
-
AdapterTypeImpl
public AdapterTypeImpl(WebEngine engine, ModuleImpl module, ResourceTypeImpl superType, String name, String adapterName, ClassProxy clazz, com.sun.jersey.server.spi.component.ResourceComponentConstructor constructor, int visibility)
-
-
Method Detail
-
getAdapterName
public String getAdapterName()
- Specified by:
getAdapterName
in interfaceAdapterType
-
getTargetType
public String getTargetType()
- Specified by:
getTargetType
in interfaceAdapterType
-
getTargetFacets
public String[] getTargetFacets()
- Specified by:
getTargetFacets
in interfaceAdapterType
-
acceptResource
public boolean acceptResource(Resource resource)
- Specified by:
acceptResource
in interfaceAdapterType
-
acceptType
public boolean acceptType(ResourceType type)
-
loadAnnotations
protected void loadAnnotations(AnnotationManager annoMgr)
- Specified by:
loadAnnotations
in classAbstractResourceType
-
-