Package org.nuxeo.ecm.webengine.model
Class LinkDescriptor
java.lang.Object
org.nuxeo.ecm.webengine.model.LinkDescriptor
- All Implemented Interfaces:
Cloneable
,LinkHandler
- Author:
- Bogdan Stefanescu
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
acceptResource
(Resource context) void
addCategories
(Collection<String> categories) void
addCategory
(String category) void
applyFragment
(LinkDescriptor fragment) clone()
boolean
getCode
(LinkDescriptor link, Resource resource) String[]
getId()
getPath()
getType()
boolean
hasCategory
(String category) boolean
boolean
void
setCategories
(List<String> categories) void
void
setHandler
(LinkHandler handler) toString()
-
Field Details
-
id
-
path
-
fragment
-
handler
-
handlerClass
-
categories
-
type
-
adapter
The object adapter the link may have as owner -
facets
-
guard
-
-
Constructor Details
-
LinkDescriptor
public LinkDescriptor() -
LinkDescriptor
-
LinkDescriptor
-
-
Method Details
-
setGuard
- Throws:
ParseException
-
getId
-
getPath
-
setHandler
-
getCode
-
getHandler
-
getAdapter
-
getType
-
getFacets
-
setCategories
-
addCategories
-
addCategory
-
getCategories
-
hasCategory
-
acceptResource
-
isEnabled
-
getCode
- Specified by:
getCode
in interfaceLinkHandler
-
isFragment
public boolean isFragment() -
applyFragment
-
clone
- Overrides:
clone
in classObject
- Throws:
CloneNotSupportedException
-
equals
-
toString
-