Package org.apache.jetspeed.services.rundata

Examples of org.apache.jetspeed.services.rundata.JetspeedRunData


            p = PortletFactory.getPortlet(portletName, "preview");
            PortletControl control = controlName == null ? PortalToolkit.getControl((String) null)
                                                         : PortalToolkit.getControl(controlName);
            if (control != null)
            {
                JetspeedRunData jdata = (JetspeedRunData) rundata;
                // Use the profile's skin
                p.getPortletConfig().setPortletSkin(PortalToolkit.getSkin(jdata.getProfile().getDocument().getPortlets().getSkin()));
                control.setPortlet(p);
                control.init();
                result = control.getContent(rundata);
            }
            else if (p != null)
View Full Code Here


        //pc.setSecurityRef(portletEntry.getSecurityRef());
        pc.setSecurityRef(getSecurityReference(null, portletEntry));

        if (runDataService != null)
        {
            JetspeedRunData rundata = runDataService.getCurrentRunData();
            if (rundata != null)
            {
                Profile profile = rundata.getProfile();
                if (profile != null)
                {
                    pc.setPageId(profile.getId());
                }
            }
View Full Code Here

        {
            this.runDataService =
                (JetspeedRunDataService) TurbineServices.getInstance().getService(
                    RunDataService.SERVICE_NAME);
        }
        JetspeedRunData rundata = runDataService.getCurrentRunData();
       
        return JetspeedSecurity.getSecurityReference(entry,  rundata);
    }
View Full Code Here

    /**
     * @see PortalPersistenceService#getInstances(Portlet, RunData)
     */
    public List getInstances( RunData data) throws PortletException
    {
        JetspeedRunData jData = (JetspeedRunData) data;
        return getInstances(jData.getProfile());
    }
View Full Code Here

        try
        {
            JetspeedRunDataService runDataService =
               (JetspeedRunDataService)TurbineServices.getInstance()
                   .getService(RunDataService.SERVICE_NAME);
            JetspeedRunData rundata = runDataService.getCurrentRunData();
            Profile profile = Profiler.createProfile();
            profile.setRole(role);
            profile.setMediaType("html");
            Profiler.createProfile(rundata, profile);
        }
View Full Code Here

    // Internal
    ///////////////////////////////////////////////////////////////////////////

    protected JetspeedRunData getRunData()
     {
         JetspeedRunData rundata = null;
         if (this.runDataService != null)
         {
             rundata = this.runDataService.getCurrentRunData();
         }
         return rundata;
View Full Code Here

            PortletControl control = controlName == null ? PortalToolkit.getControl((String)null) :
                                     PortalToolkit.getControl(controlName);
            control = null;
            if ( control != null )
            {
                JetspeedRunData jdata = (JetspeedRunData)rundata;
                // Use the profile's skin
                //portlet.getPortletConfig().setSkin(PortalToolkit.getSkin(jdata.getProfile().getDocument().getPortlets().getSkin()));
                control.setPortlet(portlet);
                control.init();
                result = control.getContent(rundata);
View Full Code Here

    public void doPerform(RunData rundata, Context context)
                   throws Exception
      {

        GenericMVCPortlet portlet = null;
        JetspeedRunData jdata = (JetspeedRunData) rundata;
        logger.debug("GenericMVCAction: retrieved context: " + context);

        if (context != null)
          {
            portlet = (GenericMVCPortlet) context.get("portlet");
          }

        logger.debug("GenericMVCAction: retrieved portlet: " + portlet);

        if (portlet != null)
          {

            //System.out.println("class = " + this.getClass().getName());
            //rundata.getUser().setTemp(this.getClass().getName(), portlet.getID());
            // we're bein configured
            if ((jdata.getMode() == JetspeedRunData.CUSTOMIZE) && (portlet.getName().equals(jdata.getCustomized().getName())))
              {
                logger.debug("GenericMVCAction: building customize");
                buildConfigureContext(portlet, context, rundata);

                return;
              }

            // we're maximized
            if (jdata.getMode() == JetspeedRunData.MAXIMIZE)
              {
                logger.debug("GenericMVCAction: building maximize");
                buildMaximizedContext(portlet, context, rundata);

                return;
View Full Code Here

            if (mode != null && mode.equals(SecurityConstants.PARAM_MODE_INSERT))
            {
                org.apache.jetspeed.om.registry.Registry mediaTypes = Registry.get(Registry.MEDIA_TYPE);
                context.put("mediaTypes", mediaTypes.listEntryNames());
                JetspeedRunData jdata = (JetspeedRunData) rundata;
                context.put("defMediaType", jdata.getCapability().getPreferredMediaType());
                if (msgid == null)
                {
                    if (((String) context.get("can-clone")).equals("false"))
                    {
                        context.put(CATEGORY_NAME, "user");
View Full Code Here

        {
            return;
        }
       
        // Get the Portlet using the PSML document and the PEID
        JetspeedRunData jdata = (JetspeedRunData)rundata;

        // Get the Portlet using the PSML document and the PEID
        Entry entry = jdata.getProfile().getDocument().getEntryById(peid);
        if ( entry == null )
        {
            logger.warn("Failed to get PEID (" + peid + ") entry for User ("
              + rundata.getUser().getName() + ")");
            return;
        }

        //record that this portlet is now maximized
        jdata.getUser().setTemp("js_peid",peid);

    }
View Full Code Here

TOP

Related Classes of org.apache.jetspeed.services.rundata.JetspeedRunData

Copyright © 2018 www.massapicom. 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.