|
Nuxeo Enterprise Platform 5.4 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.nuxeo.ecm.webengine.app.extensions.ResourceContribution
public abstract class ResourceContribution
A resource contribution is a resource provider for a specific extension point (i.e. path segment)
in a target resource of type ExtensibleResource
.
The resource contribution is instantiated in a lazy way when the modules are registered.
(i.e. the first time the module registry is accessed by client code - usually at first request on a web module root resource)
The resource contribution is responsible of checking if the contribution can be done - depending on current context and to instantiate new resources to be used when request is matching the contribution key.
Classes implementing this interface must be annotated using ResourceExtension
to define the target resource,
the path segment used for matching and optional hints for computing enabling state of this contribution
depending on the runtiem context.
Constructor Summary | |
---|---|
ResourceContribution()
|
Method Summary | |
---|---|
boolean |
accept(Resource target)
Checks if the given resource is accepted. |
java.lang.String[] |
getCategories()
|
java.lang.String |
getKey()
|
java.lang.String |
getLabel()
|
java.lang.String |
getLinkTarget()
Override this to specify a link target page. |
boolean |
hasCategory(java.lang.String category)
|
abstract java.lang.Object |
newInstance(Resource target)
Creates a resource instance to handle the request. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ResourceContribution()
Method Detail |
---|
public java.lang.String getKey()
public java.lang.String getLinkTarget()
public java.lang.String getLabel()
public java.lang.String[] getCategories()
public boolean hasCategory(java.lang.String category)
public boolean accept(Resource target)
ResourceExtension
annotation to check contribution enablement.
target
-
public abstract java.lang.Object newInstance(Resource target)
public java.lang.String toString()
toString
in class java.lang.Object
|
Nuxeo Enterprise Platform 5.4 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |