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
ConstructorsConstructorDescriptionAbstractEntityUriConverter(Context context, ContentTreeService contentTreeService, org.slf4j.Logger log) -
Method Summary
Modifier and TypeMethodDescriptionConvert aNiceUriinto another.protected abstract TcreateTargetUri(EntityUri inUri, String uri) Create theNiceUrifrom string.protected abstract ContentTreeContextTheContentTreeContextto load the ContentTreeNode with.protected abstract StringloadPath(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
-
getContentTreeContext
TheContentTreeContextto 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
-