Nuxeo Enterprise Platform 5.4

org.nuxeo.ecm.webengine.model.impl
Class AbstractResourceType

java.lang.Object
  extended by org.nuxeo.ecm.webengine.model.impl.AbstractResourceType
All Implemented Interfaces:
ResourceType
Direct Known Subclasses:
AdapterTypeImpl, ResourceTypeImpl

public abstract class AbstractResourceType
extends java.lang.Object
implements ResourceType

Author:
Bogdan Stefanescu

Field Summary
 
Fields inherited from interface org.nuxeo.ecm.webengine.model.ResourceType
ROOT_TYPE_NAME
 
Method Summary
 ScriptFile findView(Module module, java.lang.String name)
           
 void flushCache()
           
 java.util.Set<java.lang.String> getFacets()
           
 Guard getGuard()
           
 java.lang.String getName()
           
 Module getOwnerModule()
           
 java.lang.Class<Resource> getResourceClass()
           
 ResourceType getSuperType()
           
 ScriptFile getView(Module module, java.lang.String name)
          Gets a view for this type in the context of the given module.
 int getVisibility()
           
 boolean hasFacet(java.lang.String facet)
           
 boolean isDerivedFrom(java.lang.String type)
           
 boolean isEnabled(Resource ctx)
           
<T extends Resource>
T
newInstance()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

getVisibility

public int getVisibility()

getSuperType

public ResourceType getSuperType()
Specified by:
getSuperType in interface ResourceType

getOwnerModule

public Module getOwnerModule()

getGuard

public Guard getGuard()
Specified by:
getGuard in interface ResourceType

getFacets

public java.util.Set<java.lang.String> getFacets()
Specified by:
getFacets in interface ResourceType

hasFacet

public boolean hasFacet(java.lang.String facet)
Specified by:
hasFacet in interface ResourceType

getName

public java.lang.String getName()
Specified by:
getName in interface ResourceType

getResourceClass

public java.lang.Class<Resource> getResourceClass()
Specified by:
getResourceClass in interface ResourceType

newInstance

public <T extends Resource> T newInstance()
Specified by:
newInstance in interface ResourceType

isEnabled

public boolean isEnabled(Resource ctx)
Specified by:
isEnabled in interface ResourceType

isDerivedFrom

public boolean isDerivedFrom(java.lang.String type)
Specified by:
isDerivedFrom in interface ResourceType

flushCache

public void flushCache()
Specified by:
flushCache in interface ResourceType

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

getView

public ScriptFile getView(Module module,
                          java.lang.String name)
Description copied from interface: ResourceType
Gets a view for this type in the context of the given module.

Specified by:
getView in interface ResourceType

findView

public ScriptFile findView(Module module,
                           java.lang.String name)

Nuxeo Enterprise Platform 5.4

Copyright © 2010 Nuxeo SAS. All Rights Reserved.