Class ChannelTreeResource


  • @Path("/lum-internal/admin/portal-studio/channeltree")
    public class ChannelTreeResource
    extends Object
    Since:
    7.1.0
    Version:
    $Revision: 20895 $ $Date: 2018-01-18 17:58:18 -0200 (Thu, 18 Jan 2018) $
    • Constructor Detail

      • ChannelTreeResource

        public ChannelTreeResource()
    • 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
      • 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 id
        channelIdToIgnoreOrServiceId - referenced service id
        Returns:
        the JSON string with a list of the first subchannel level containing there service instances.
        Since:
        7.1.0