Package lumis.content.commandpalette
Class CommandPaletteContentUtil
- java.lang.Object
-
- lumis.content.commandpalette.CommandPaletteContentUtil
-
public class CommandPaletteContentUtil extends java.lang.Object
Utility class used by the command palette feature with access to the content framework.- Since:
- 17.0.0
- Version:
- $Revision$ $Date$
-
-
Constructor Summary
Constructors Constructor Description CommandPaletteContentUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.lang.String
searchContents(java.lang.String autoAdminChannelId, java.lang.String userQuery)
Returns contents for a command palette search in content administration mode.
-
-
-
Method Detail
-
searchContents
public static java.lang.String searchContents(java.lang.String autoAdminChannelId, java.lang.String userQuery) throws PortalException
Returns contents for a command palette search in content administration mode.- Parameters:
autoAdminChannelId
- the current auto administration target channel identifier.userQuery
- the user query.- Returns:
- a JSON with the search results.
- Throws:
PortalObjectNotFoundException
- if no channel with the given id exists or if there is no auto administration service instance in that channel.AccessDeniedException
- if the user does not have edit content permission for the auto administration service instance.PortalException
- Since:
- 17.0.0
- See Also:
CommandPaletteResource.searchContents(java.lang.String, java.lang.String)
-
-