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
ConstructorDescriptionNodeActionServiceImpl
(ContentTreeService contentTreeService, Context context) -
Method Summary
Modifier and TypeMethodDescription@Nullable NodeActionService.EntityUriResult
getEntityUri
(String httpUri) Get the entity URI of the delegate of the resolved ContentTreeNode.protected static URI
Returns 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:
getUrlForEntity
in interfaceNodeActionService
- Throws:
PersistException
ContentException
-
getEntityUri
Description copied from interface:NodeActionService
Get the entity URI of the delegate of the resolved ContentTreeNode.- Specified by:
getEntityUri
in 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
-