public abstract class AbstractLink extends Object
AbstractLink
class is an abstract base class for classes
implementing linking functionality. This class provides access to a Logger
and an ErrorList instance.Constructor and Description |
---|
AbstractLink(int publicationId)
Constructor for the
AbstractLink class. |
AbstractLink(String publicationURI)
Constructor for the
AbstractLink class. |
AbstractLink(String namespace,
int publicationId,
boolean relativeLink) |
Modifier and Type | Method and Description |
---|---|
Integer |
getBaseNamespaceId() |
ErrorList |
getErrorList()
Returns an ErrorList instance.
|
protected String |
getFullyQualifiedURL(String url,
String targetURI)
Create a full URL based on a partial URL, by including information
from the linking configuration file (if specified).
|
protected Linking |
getLinking() |
String |
getNamespace() |
com.tridion.storage.namespace.NamespaceService |
getNamespaceService() |
protected int |
getPublicationId() |
protected String |
getURL(String targetURL,
CMURI targetURI) |
protected boolean |
isRelativeLink() |
protected boolean |
isWrappedCacheDAO(com.tridion.storage.dao.BaseDAO baseDAO) |
protected void |
setPublicationId(int publicationId) |
public AbstractLink(int publicationId)
AbstractLink
class. Because this class is
abstract, it can never be called directly. This constructor can be called by
either constructors of inherited classes, or directly when it's not overridden
by inherited classes.publicationId
- The id of the publication in which links should be resolved
and validated.public AbstractLink(String namespace, int publicationId, boolean relativeLink)
public AbstractLink(String publicationURI)
AbstractLink
class. Because this class is
abstract, it can never be called directly. This constructor can be called by
either constructors of inherited classes, or directly when it's not overridden
by inherited classes.publicationURI
- The tcm:uri of the publication in which links should be resolved
and validated.public ErrorList getErrorList()
public com.tridion.storage.namespace.NamespaceService getNamespaceService()
public Integer getBaseNamespaceId()
public String getNamespace()
protected Linking getLinking()
protected int getPublicationId()
protected void setPublicationId(int publicationId)
protected boolean isRelativeLink()
protected String getFullyQualifiedURL(String url, String targetURI)
url
- The partial urltargetURI
- The URI of the object to look up configuration information
for, only the publication id is specified.protected boolean isWrappedCacheDAO(com.tridion.storage.dao.BaseDAO baseDAO)
Copyright (c) 2014-2021 All Rights Reserved by the RWS Group for and on behalf of its affiliates and subsidiaries