Package lumis.portal.channel.tree
Class ChannelTreeResource
- java.lang.Object
-
- lumis.portal.channel.tree.ChannelTreeResource
-
@Path("/lum-internal/admin/portal-studio/channeltree") public class ChannelTreeResource extends java.lang.Object
- Since:
- 7.1.0
- Version:
- $Revision$ $Date$
-
-
Constructor Summary
Constructors Constructor Description ChannelTreeResource()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getChannelChildren(java.lang.String filterType, java.lang.String channelId)
Get all children from the referenced channeljava.lang.String
getChannelChildren(java.lang.String filterType, java.lang.String channelId, java.lang.String channelIdToIgnoreOrServiceId)
Get all children from the referenced channel including his service instance but filtered by the referenced service idjava.lang.String
getInitialTree(java.lang.String filterType, java.lang.String channelIdToIgnoreOrServiceId, javax.servlet.http.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.java.lang.String
getInitialTree(java.lang.String filterType, javax.servlet.http.HttpServletResponse response, boolean localizeNames)
Returns the JSON string with a list of the first subchannel level from the Portal root channel.java.lang.String
getPartialInitialTree(java.lang.String rootChannelId, java.lang.String filterType, javax.servlet.http.HttpServletResponse response, boolean localizeNames)
-
-
-
Method Detail
-
getInitialTree
@GET @Path("/getinitialtree/{filtertype}/{channelIdToIgnoreOrServiceId}") @Produces("application/json") public java.lang.String getInitialTree(@PathParam("filtertype") java.lang.String filterType, @PathParam("channelIdToIgnoreOrServiceId") java.lang.String channelIdToIgnoreOrServiceId, @Context javax.servlet.http.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 java.lang.String getInitialTree(@PathParam("filtertype") java.lang.String filterType, @Context javax.servlet.http.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 java.lang.String getPartialInitialTree(@PathParam("rootChannelId") java.lang.String rootChannelId, @PathParam("filtertype") java.lang.String filterType, @Context javax.servlet.http.HttpServletResponse response, @QueryParam("localizeNames") @DefaultValue("true") boolean localizeNames)
-
getChannelChildren
@GET @Path("/getchannelchildren/{filtertype}/{channelId}") @Produces("application/json") public java.lang.String getChannelChildren(@PathParam("filtertype") java.lang.String filterType, @PathParam("channelId") java.lang.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 java.lang.String getChannelChildren(@PathParam("filtertype") java.lang.String filterType, @PathParam("channelId") java.lang.String channelId, @PathParam("channelIdToIgnoreOrServiceId") java.lang.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
-
-