Class EntityUriToPublicUriConverter
java.lang.Object
ch.tocco.nice2.dms.impl.uri.converter.AbstractEntityUriConverter<PublicUri>
ch.tocco.nice2.dms.impl.uri.converter.EntityUriToPublicUriConverter
- All Implemented Interfaces:
UriConverter<EntityUri,
PublicUri>
Converter for converting
EntityUris
into
PublicUris
.-
Constructor Summary
ConstructorDescriptionEntityUriToPublicUriConverter
(Context context, ContentTreeService contentTreeService, RequestService requestService, org.slf4j.Logger log) -
Method Summary
Modifier and TypeMethodDescriptionprotected PublicUri
createTargetUri
(EntityUri inUri, String uri) Create theNiceUri
from string.protected ContentTreeContext
TheContentTreeContext
to load the ContentTreeNode with.protected String
loadPath
(ContentTreeNode contentTreeNode) load the path that should be used to create the new uriMethods inherited from class ch.tocco.nice2.dms.impl.uri.converter.AbstractEntityUriConverter
convert
-
Constructor Details
-
EntityUriToPublicUriConverter
public EntityUriToPublicUriConverter(Context context, ContentTreeService contentTreeService, RequestService requestService, org.slf4j.Logger log)
-
-
Method Details
-
getContentTreeContext
Description copied from class:AbstractEntityUriConverter
TheContentTreeContext
to load the ContentTreeNode with.- Specified by:
getContentTreeContext
in classAbstractEntityUriConverter<PublicUri>
- Returns:
- the
ContentTreeContext
.
-
loadPath
Description copied from class:AbstractEntityUriConverter
load the path that should be used to create the new uri- Specified by:
loadPath
in classAbstractEntityUriConverter<PublicUri>
- Parameters:
contentTreeNode
- the content tree node- Returns:
- the loaded path
-
createTargetUri
Description copied from class:AbstractEntityUriConverter
Create theNiceUri
from string.- Specified by:
createTargetUri
in classAbstractEntityUriConverter<PublicUri>
- Parameters:
inUri
- theEntityUri
input to be converteduri
- The URI to create theNiceUri
for.- Returns:
- the created
NiceUri
.
-