Examples of IChannelRegistryStore


Examples of org.jasig.portal.IChannelRegistryStore

            {
                labelId = "unspecified";
                throw new Exception("'Label' must be specified.");
            }
            // now get pub ID of target channel
            IChannelRegistryStore crs =
                ChannelRegistryStoreFactory.getChannelRegistryStoreImpl();
            IChannelDefinition chanDef = crs.getChannelDefinition(fname);
            int pubId = chanDef.getId();
           
            // next build the URL for the link
            String url =
                UPFileSpec.buildUPFile(
View Full Code Here

Examples of org.jasig.portal.IChannelRegistryStore

     * @throws PortalException
     */
    private Set<IChannelParameter> getChannelDefParams(String id)
    throws PortalException
    {
        IChannelRegistryStore crs = ChannelRegistryStoreFactory
                .getChannelRegistryStoreImpl();
        id = id.startsWith("chan") ? id.substring(4) : id;
        int pubId = Integer.parseInt(id);
        IChannelDefinition def = null;
        try
        {
            def = crs.getChannelDefinition(pubId);
        } catch (Exception e)
        {
            throw new PortalException("unable.to.load.channel.definition "
                    + id, e);
        }
View Full Code Here

Examples of org.jasig.portal.IChannelRegistryStore

    // gather the parameters we need to move a channel
    String destinationId = request.getParameter("elementID");
    int sourceId = Integer.parseInt(request.getParameter("channelID"));
    String method = request.getParameter("position");

    IChannelRegistryStore channelRegistryStore = ChannelRegistryStoreFactory.getChannelRegistryStoreImpl();
    IChannelDefinition definition = channelRegistryStore.getChannelDefinition(sourceId);
   
        IUserLayoutChannelDescription channel = new UserLayoutChannelDescription(definition);
    for (IChannelParameter param : definition.getParameters()) {
        if (param.getOverride()) {
                String paramValue = request.getParameter(param.getName());
View Full Code Here

Examples of org.jasig.portal.IChannelRegistryStore

    /**
     * Given the key, returns the entity's name.
     * @param key java.lang.String
     */
    public String getName (String key) throws Exception {
        IChannelRegistryStore crs = ChannelRegistryStoreFactory.getChannelRegistryStoreImpl();
        IChannelDefinition cd = crs.getChannelDefinition(Integer.parseInt(key));
        return  cd.getName();
    }
View Full Code Here

Examples of org.jasig.portal.IChannelRegistryStore

    private Map getPublishedChannelParametersMap(String channelPublishId)
            throws PortalException
    {
        try
        {
            IChannelRegistryStore crs = ChannelRegistryStoreFactory
                .getChannelRegistryStoreImpl();
            int pubId = Integer.parseInt(channelPublishId);
            IChannelDefinition def = crs.getChannelDefinition(pubId);
            return def.getParametersAsUnmodifiableMap();
        } catch (Exception e)
        {
            throw new PortalException("Unable to acquire channel definition.",
                    e);
View Full Code Here

Examples of org.jasig.portal.IChannelRegistryStore

         * channel definition to determine the original value and restore it
         * or discover that this is an ad-hoc parameter and can be removed.
         */
        try
        {
            IChannelRegistryStore crs = ChannelRegistryStoreFactory
                .getChannelRegistryStoreImpl();
            int pubId = Integer.parseInt(getChannelPublishId());
            IChannelDefinition def = crs
                    .getChannelDefinition(pubId);
            IChannelParameter parm = def.getParameter(parameterName);

            if (parm == null) // ad-hoc parm so delete
            {
View Full Code Here

Examples of org.jasig.portal.IChannelRegistryStore

    /**
     * Given the key, returns the entity's name.
     * @param key java.lang.String
     */
    public String getName (String key) throws Exception {
        IChannelRegistryStore crs = ChannelRegistryStoreFactory.getChannelRegistryStoreImpl();
        ChannelDefinition cd = crs.getChannelDefinition(Integer.parseInt(key));
        return  cd.getName();
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.