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
ConstructorsConstructorDescriptionEntityUriToPublicUriConverter(Context context, ContentTreeService contentTreeService, RequestService requestService, org.slf4j.Logger log) -
Method Summary
Modifier and TypeMethodDescriptionprotected PublicUricreateTargetUri(EntityUri inUri, String uri) Create theNiceUrifrom string.protected ContentTreeContextTheContentTreeContextto load the ContentTreeNode with.protected StringloadPath(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:AbstractEntityUriConverterTheContentTreeContextto load the ContentTreeNode with.- Specified by:
getContentTreeContextin classAbstractEntityUriConverter<PublicUri>- Returns:
- the
ContentTreeContext.
-
loadPath
Description copied from class:AbstractEntityUriConverterload the path that should be used to create the new uri- Specified by:
loadPathin classAbstractEntityUriConverter<PublicUri>- Parameters:
contentTreeNode- the content tree node- Returns:
- the loaded path
-
createTargetUri
Description copied from class:AbstractEntityUriConverterCreate theNiceUrifrom string.- Specified by:
createTargetUriin classAbstractEntityUriConverter<PublicUri>- Parameters:
inUri- theEntityUriinput to be converteduri- The URI to create theNiceUrifor.- Returns:
- the created
NiceUri.
-