Class NodeActionServiceImpl
java.lang.Object
ch.tocco.nice2.optional.cms.impl.action.NodeActionServiceImpl
- All Implemented Interfaces:
NodeActionService
-
Nested Class Summary
Nested classes/interfaces inherited from interface ch.tocco.nice2.optional.cms.impl.action.NodeActionService
NodeActionService.EntityUriResult -
Constructor Summary
ConstructorsConstructorDescriptionNodeActionServiceImpl(ContentTreeService contentTreeService, Context context) -
Method Summary
Modifier and TypeMethodDescription@Nullable NodeActionService.EntityUriResultgetEntityUri(String httpUri) Get the entity URI of the delegate of the resolved ContentTreeNode.protected static URIReturns the Uri, trimming it to the longest valid path if any invalid characters are found.getUrlForEntity(String entityType, String key, String pageUrl, boolean isPublicUrl)
-
Constructor Details
-
NodeActionServiceImpl
-
-
Method Details
-
getUrlForEntity
public String getUrlForEntity(String entityType, String key, String pageUrl, boolean isPublicUrl) throws PersistException, ContentException - Specified by:
getUrlForEntityin interfaceNodeActionService- Throws:
PersistExceptionContentException
-
getEntityUri
Description copied from interface:NodeActionServiceGet the entity URI of the delegate of the resolved ContentTreeNode.- Specified by:
getEntityUriin interfaceNodeActionService- Parameters:
httpUri- The HTTP URI of the ContentTreeNode to resolve.- Returns:
- the entity URI of the delegate entity.
-
getUri
Returns the Uri, trimming it to the longest valid path if any invalid characters are found.- Parameters:
httpUri- the invalidURI- Returns:
- the valid string
- Throws:
URISyntaxException
-