Nuxeo ECM Projects 5.4.3-SNAPSHOT

org.nuxeo.ecm.webengine.model
Class LinkDescriptor

java.lang.Object
  extended by org.nuxeo.ecm.webengine.model.LinkDescriptor
All Implemented Interfaces:
Cloneable, LinkHandler

public class LinkDescriptor
extends Object
implements Cloneable, LinkHandler

Author:
Bogdan Stefanescu

Constructor Summary
LinkDescriptor()
           
LinkDescriptor(String id)
           
LinkDescriptor(String id, String fragment)
           
 
Method Summary
 boolean acceptResource(Resource context)
           
 void addCategories(Collection<String> categories)
           
 void addCategory(String category)
           
 void applyFragment(LinkDescriptor fragment)
           
 LinkDescriptor clone()
           
 boolean equals(Object obj)
           
 String getAdapter()
           
 List<String> getCategories()
           
 String getCode(LinkDescriptor link, Resource resource)
           
 String getCode(Resource resource)
           
 String[] getFacets()
           
 LinkHandler getHandler()
           
 String getId()
           
 String getPath()
           
 String getType()
           
 boolean hasCategory(String category)
           
 boolean isEnabled(Resource context)
           
 boolean isFragment()
           
 void setCategories(List<String> categories)
           
 void setGuard(String expr)
           
 void setHandler(LinkHandler handler)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LinkDescriptor

public LinkDescriptor()

LinkDescriptor

public LinkDescriptor(String id)

LinkDescriptor

public LinkDescriptor(String id,
                      String fragment)
Method Detail

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

Nuxeo ECM Projects 5.4.3-SNAPSHOT

Copyright © 2011 Nuxeo SAS. All Rights Reserved.