Package lumis.portal.channel.tree
Class ChannelTreeResource
- java.lang.Object
-
- lumis.portal.channel.tree.ChannelTreeResource
-
-
Constructor Summary
Constructors Constructor Description ChannelTreeResource()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getChannelChildren(String filterType, String channelId)
Get all children from the referenced channelString
getChannelChildren(String filterType, String channelId, String channelIdToIgnoreOrServiceId)
Get all children from the referenced channel including his service instance but filtered by the referenced service idString
getInitialTree(String filterType, String channelIdToIgnoreOrServiceId, HttpServletResponse response, boolean localizeNames)
Returns the JSON string with a list of the first subchannel level from the Portal root channel with only the desired service instances.String
getInitialTree(String filterType, HttpServletResponse response, boolean localizeNames)
Returns the JSON string with a list of the first subchannel level from the Portal root channel.String
getPartialInitialTree(String rootChannelId, String filterType, HttpServletResponse response, boolean localizeNames)
-
-
-
Method Detail
-
getInitialTree
@GET @Path("/getinitialtree/{filtertype}/{channelIdToIgnoreOrServiceId}") @Produces("application/json") public String getInitialTree(@PathParam("filtertype") String filterType, @PathParam("channelIdToIgnoreOrServiceId") String channelIdToIgnoreOrServiceId, @Context HttpServletResponse response, @QueryParam("localizeNames") @DefaultValue("true") boolean localizeNames)
Returns the JSON string with a list of the first subchannel level from the Portal root channel with only the desired service instances.- Parameters:
filterType
- filter type that can be page, page-template, channel, channel-template and service-instance.serviceinstanceid
-- Returns:
- the JSON string with a list of the first subchannel level.
- Since:
- 7.1.0
-
getInitialTree
@GET @Path("/getinitialtree/{filtertype}") @Produces("application/json") public String getInitialTree(@PathParam("filtertype") String filterType, @Context HttpServletResponse response, @QueryParam("localizeNames") @DefaultValue("true") boolean localizeNames)
Returns the JSON string with a list of the first subchannel level from the Portal root channel.- Parameters:
filterType
- filter type that can be page, page-template, channel, channel-template and service-instance.- Returns:
- the JSON string with a list of the first subchannel level.
- Since:
- 7.1.0
-
getPartialInitialTree
@GET @Path("/getpartialinitialtree/{rootChannelId}/{filtertype}") @Produces("application/json") public String getPartialInitialTree(@PathParam("rootChannelId") String rootChannelId, @PathParam("filtertype") String filterType, @Context HttpServletResponse response, @QueryParam("localizeNames") @DefaultValue("true") boolean localizeNames)
-
getChannelChildren
@GET @Path("/getchannelchildren/{filtertype}/{channelId}") @Produces("application/json") public String getChannelChildren(@PathParam("filtertype") String filterType, @PathParam("channelId") String channelId)
Get all children from the referenced channel- Parameters:
filterType
- filter type that can be page, page-template, channel, channel-template and service-instance.channelId
- referenced channel id- Returns:
- the JSON string with a list of the first subchannel level.
- Since:
- 7.1.0
-
getChannelChildren
@GET @Path("/getchannelchildren/{filtertype}/{channelId}/{channelIdToIgnoreOrServiceId}") @Produces("application/json") public String getChannelChildren(@PathParam("filtertype") String filterType, @PathParam("channelId") String channelId, @PathParam("channelIdToIgnoreOrServiceId") String channelIdToIgnoreOrServiceId)
Get all children from the referenced channel including his service instance but filtered by the referenced service id- Parameters:
filterType
- filter type that can be page, page-template, channel, channel-template and service-instance.channelId
- referenced channel idchannelIdToIgnoreOrServiceId
- referenced service id- Returns:
- the JSON string with a list of the first subchannel level containing there service instances.
- Since:
- 7.1.0
-
-