org.nuxeo.ecm.webengine.model
Class LinkDescriptor
java.lang.Object
org.nuxeo.ecm.webengine.model.LinkDescriptor
- All Implemented Interfaces:
- Cloneable, LinkHandler
public class LinkDescriptor
- extends Object
- implements Cloneable, LinkHandler
- Author:
- Bogdan Stefanescu
LinkDescriptor
public LinkDescriptor()
LinkDescriptor
public LinkDescriptor(String id)
LinkDescriptor
public LinkDescriptor(String id,
String fragment)
setGuard
public void setGuard(String expr)
throws ParseException
- Throws:
ParseException
getId
public String getId()
getPath
public String getPath()
setHandler
public void setHandler(LinkHandler handler)
getCode
public String getCode(Resource resource)
getHandler
public LinkHandler getHandler()
getAdapter
public String getAdapter()
getType
public String getType()
getFacets
public String[] getFacets()
setCategories
public void setCategories(List<String> categories)
addCategories
public void addCategories(Collection<String> categories)
addCategory
public void addCategory(String category)
getCategories
public List<String> getCategories()
hasCategory
public boolean hasCategory(String category)
acceptResource
public boolean acceptResource(Resource context)
isEnabled
public boolean isEnabled(Resource context)
getCode
public 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 CloneNotSupportedException
- Overrides:
clone
in class Object
- Throws:
CloneNotSupportedException
equals
public boolean equals(Object obj)
- Overrides:
equals
in class Object
toString
public String toString()
- Overrides:
toString
in class Object
Copyright © 2011 Nuxeo SAS. All Rights Reserved.