org.apache.lenya.cms.linking
Interface LinkManager

All Known Implementing Classes:
ContentLinkManager

public interface LinkManager

Link manager.


Field Summary
static java.lang.String ROLE
          The Avalon service role.
 
Method Summary
 Link[] getLinksFrom(org.apache.lenya.cms.publication.Document source)
          Returns all links from a document.
 org.apache.lenya.cms.publication.Document[] getReferencingDocuments(org.apache.lenya.cms.publication.Document target)
          Returns all documents which reference a certain document.
 

Field Detail

ROLE

static final java.lang.String ROLE
The Avalon service role.

Method Detail

getLinksFrom

Link[] getLinksFrom(org.apache.lenya.cms.publication.Document source)
Returns all links from a document.

Parameters:
source - The document.
Returns:
An array of links.

getReferencingDocuments

org.apache.lenya.cms.publication.Document[] getReferencingDocuments(org.apache.lenya.cms.publication.Document target)
Returns all documents which reference a certain document. This depends on the currently available translations of the target document and the link resolver fallback mode.

Parameters:
target - The target document.
Returns:
An array of documents.


Copyright © $ Apache Software Foundation. All Rights Reserved.