Class LinkRegistry
- java.lang.Object
-
- org.nuxeo.runtime.contribution.impl.AbstractContributionRegistry<String,LinkDescriptor>
-
- org.nuxeo.ecm.webengine.model.impl.LinkRegistry
-
- All Implemented Interfaces:
ContributionRegistry<String,LinkDescriptor>
public class LinkRegistry extends AbstractContributionRegistry<String,LinkDescriptor>
- Author:
- Bogdan Stefanescu
-
-
Field Summary
Fields Modifier and Type Field Description protected Map<String,LinkDescriptor[]>
links
-
Fields inherited from class org.nuxeo.runtime.contribution.impl.AbstractContributionRegistry
listeners, parent, registry
-
-
Constructor Summary
Constructors Constructor Description LinkRegistry()
-
Method Summary
-
Methods inherited from class org.nuxeo.runtime.contribution.impl.AbstractContributionRegistry
addFragment, dispose, fireResolved, fireUnresolved, fireUpdated, getContribution, getObject, getOrCreateDependency, getParent, importContribution, importParentContributions, removeContribution, removeFragment
-
-
-
-
Field Detail
-
links
protected final Map<String,LinkDescriptor[]> links
-
-
Method Detail
-
getLinks
public List<LinkDescriptor> getLinks(String category)
-
getActiveLinks
public List<LinkDescriptor> getActiveLinks(Resource context, String category)
-
registerLink
public void registerLink(LinkDescriptor td)
-
unregisterLink
public void unregisterLink(LinkDescriptor td)
-
clone
protected LinkDescriptor clone(LinkDescriptor object)
- Specified by:
clone
in classAbstractContributionRegistry<String,LinkDescriptor>
-
applyFragment
protected void applyFragment(LinkDescriptor object, LinkDescriptor fragment)
Description copied from class:AbstractContributionRegistry
Applies fragment over the given object.- Overrides:
applyFragment
in classAbstractContributionRegistry<String,LinkDescriptor>
-
applySuperFragment
protected void applySuperFragment(LinkDescriptor object, LinkDescriptor superFragment)
- Overrides:
applySuperFragment
in classAbstractContributionRegistry<String,LinkDescriptor>
-
installContribution
protected void installContribution(String key, LinkDescriptor object)
- Specified by:
installContribution
in classAbstractContributionRegistry<String,LinkDescriptor>
-
updateContribution
protected void updateContribution(String key, LinkDescriptor object, LinkDescriptor oldValue)
- Overrides:
updateContribution
in classAbstractContributionRegistry<String,LinkDescriptor>
-
uninstallContribution
protected void uninstallContribution(String key, LinkDescriptor object)
- Specified by:
uninstallContribution
in classAbstractContributionRegistry<String,LinkDescriptor>
-
isMainFragment
protected boolean isMainFragment(LinkDescriptor object)
- Overrides:
isMainFragment
in classAbstractContributionRegistry<String,LinkDescriptor>
-
installLink
protected void installLink(String category, LinkDescriptor link)
-
removeLink
protected void removeLink(LinkDescriptor link)
-
removeLink
protected void removeLink(String category, LinkDescriptor link)
-
-