Nuxeo ECM Projects 5.4.3-SNAPSHOT

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 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, 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>
T
newInstance()
           
 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 Set<String> getFacets()
Specified by:
getFacets in interface ResourceType

hasFacet

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

getName

public String getName()
Specified by:
getName in interface ResourceType

getResourceClass

public 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(String type)
Specified by:
isDerivedFrom in interface ResourceType

flushCache

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

toString

public String toString()
Overrides:
toString in class Object

getView

public ScriptFile getView(Module module,
                          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,
                           String name)

Nuxeo ECM Projects 5.4.3-SNAPSHOT

Copyright © 2011 Nuxeo SAS. All Rights Reserved.