org.nuxeo.ecm.webengine.model
Class LinkDescriptor
java.lang.Object
org.nuxeo.ecm.webengine.model.LinkDescriptor
- All Implemented Interfaces:
- java.lang.Cloneable, LinkHandler
public class LinkDescriptor
- extends java.lang.Object
- implements java.lang.Cloneable, LinkHandler
- Author:
- Bogdan Stefanescu
Methods inherited from class java.lang.Object |
getClass, hashCode, notify, notifyAll, wait, wait, wait |
LinkDescriptor
public LinkDescriptor()
LinkDescriptor
public LinkDescriptor(java.lang.String id)
LinkDescriptor
public LinkDescriptor(java.lang.String id,
java.lang.String fragment)
setGuard
public void setGuard(java.lang.String expr)
throws java.text.ParseException
- Throws:
java.text.ParseException
getId
public java.lang.String getId()
getPath
public java.lang.String getPath()
setHandler
public void setHandler(LinkHandler handler)
getCode
public java.lang.String getCode(Resource resource)
getHandler
public LinkHandler getHandler()
getAdapter
public java.lang.String getAdapter()
getType
public java.lang.String getType()
getFacets
public java.lang.String[] getFacets()
setCategories
public void setCategories(java.util.List<java.lang.String> categories)
addCategories
public void addCategories(java.util.Collection<java.lang.String> categories)
addCategory
public void addCategory(java.lang.String category)
getCategories
public java.util.List<java.lang.String> getCategories()
hasCategory
public boolean hasCategory(java.lang.String category)
acceptResource
public boolean acceptResource(Resource context)
isEnabled
public boolean isEnabled(Resource context)
getCode
public java.lang.String getCode(LinkDescriptor link,
Resource resource)
- Specified by:
getCode
in interface LinkHandler
isFragment
public boolean isFragment()
applyFragment
public void applyFragment(LinkDescriptor fragment)
clone
public LinkDescriptor clone()
throws java.lang.CloneNotSupportedException
- Overrides:
clone
in class java.lang.Object
- Throws:
java.lang.CloneNotSupportedException
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in class java.lang.Object
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
Copyright © 2010 Nuxeo SAS. All Rights Reserved.