Class AbstractEntityUriConverter<T extends NiceUri>
java.lang.Object
ch.tocco.nice2.dms.impl.uri.converter.AbstractEntityUriConverter<T>
- All Implemented Interfaces:
UriConverter<EntityUri,
T>
- Direct Known Subclasses:
EntityUriToAdminUriConverter
,EntityUriToPublicUriConverter
public abstract class AbstractEntityUriConverter<T extends NiceUri>
extends Object
implements UriConverter<EntityUri,T>
Base class for converters with source class
EntityUri
.-
Constructor Summary
ConstructorDescriptionAbstractEntityUriConverter
(Context context, ContentTreeService contentTreeService, org.slf4j.Logger log) -
Method Summary
Modifier and TypeMethodDescriptionConvert aNiceUri
into another.protected abstract T
createTargetUri
(EntityUri inUri, String uri) Create theNiceUri
from string.protected abstract ContentTreeContext
TheContentTreeContext
to load the ContentTreeNode with.protected abstract String
loadPath
(ContentTreeNode contentTreeNode) load the path that should be used to create the new uri
-
Constructor Details
-
AbstractEntityUriConverter
public AbstractEntityUriConverter(Context context, ContentTreeService contentTreeService, org.slf4j.Logger log)
-
-
Method Details
-
convert
Description copied from interface:UriConverter
Convert aNiceUri
into another. -
getContentTreeContext
TheContentTreeContext
to load the ContentTreeNode with.- Returns:
- the
ContentTreeContext
.
-
loadPath
load the path that should be used to create the new uri- Parameters:
contentTreeNode
- the content tree node- Returns:
- the loaded path
-
createTargetUri
Create theNiceUri
from string.
-