Examples of PSMLDocument


Examples of org.apache.jetspeed.om.profile.PSMLDocument

            String message = "PSMLManager: Must specify a locator";
            logger.warn("DatabasePsmlManagerService.getDocument: " + message);
            throw new IllegalArgumentException(message);
        }

        PSMLDocument psmldoc = null;
        String locStr = locatorToString(locator);
        boolean inCache = false;

        if (cachingOn)
        {
View Full Code Here

Examples of org.apache.jetspeed.om.profile.PSMLDocument

     * @param page page name for this resource
     * @return PSMLDocument object for given page and portlets
     */
    protected PSMLDocument getPSMLDocument(String page, Portlets portlets)
    {
        PSMLDocument psmldoc = new BasePSMLDocument();
        psmldoc.setName(page);
        psmldoc.setPortlets(portlets);
        return psmldoc;
    }
View Full Code Here

Examples of org.apache.jetspeed.om.profile.PSMLDocument

        }

        // iterate over the list and invoke getDocument(locator) method
        for (int i = 0; i < locators.size(); i++)
        {
            PSMLDocument psmldoc = getDocument((ProfileLocator)locators.get(i));
            if (psmldoc != null)
            {
                return psmldoc;
            }
        }
View Full Code Here

Examples of org.apache.jetspeed.om.profile.PSMLDocument

        Role role = locator.getRole();
        Group group = locator.getGroup();
        String tableName = null;
        List records = null;
        Portlets portlets = null;
        PSMLDocument psmldoc = null;
        String page = null;

        Connection dbCon = getDbConnection();

        try
View Full Code Here

Examples of org.apache.jetspeed.om.profile.PSMLDocument

        String id = locator.getId();

        try
        {
            Profile profile = Profiler.getProfile(locator);
            PSMLDocument doc = profile.getDocument();
            if (doc == null)
            {
                return null;
            }
            Portlets portlets = doc.getPortlets();
            return portlets;
        }
        catch (Exception e)
        {
            logger.error("Exception", e);
View Full Code Here

Examples of org.apache.jetspeed.om.profile.PSMLDocument

            ProfileLocator locator = Profiler.createLocator();
            locator.createFromPath(path);
            Profile profile = Profiler.getProfile(locator);
            if (profile != null)
            {
                PSMLDocument doc = profile.getDocument();
                if (doc != null)
                {
                    Portlets rootSet = doc.getPortlets();
                    /*
                    There is no way to do a check on a Portlets element, only a Entry element.
                    This can easily be added, but Im just under a release right now and it
                    could be perceived as too destabilizing -- david
                   
View Full Code Here

Examples of org.apache.jetspeed.om.profile.PSMLDocument

                            while(i.hasNext())
                            {
                                String locator = (String)i.next();

                                // do refresh for the locator
                                PSMLDocument doc =
                                            refresh(stringToLocator(locator));

                                // over write the existing document in cache
                                psmlCache.put(locator, doc);
                            }
View Full Code Here

Examples of org.apache.jetspeed.om.profile.PSMLDocument

            ProfileLocator locator = Profiler.createLocator();
            locator.createFromPath(path);
            Profile profile = Profiler.getProfile(locator);
            if (profile != null)
            {
                PSMLDocument doc = profile.getDocument();
                if (doc != null)
                {
                    Portlets rootSet = doc.getPortlets();
                    /*
                    There is no way to do a check on a Portlets element, only a Entry element.
                    This can easily be added, but Im just under a release right now and it
                    could be perceived as too destabilizing -- david
                   
View Full Code Here

Examples of org.apache.jetspeed.om.profile.PSMLDocument

    /**
     * @see PortalPersistenceService#getInstances(Portlet, Profile)
     */
    public List getInstances( Profile profile) throws PortletException
    {
        PSMLDocument doc = profile.getDocument();
        Portlets portlets =  doc.getPortlets();
        ArrayList pList = new ArrayList();
      
       buildAllEntries(portlets, pList, profile);
       
        return pList;
View Full Code Here

Examples of org.apache.jetspeed.om.profile.PSMLDocument

    {
        print("Loading portlets from PSML file "+psmlFile);
     
        Portlets rootset = null;
           
        PSMLDocument doc = PsmlManager.getDocument(psmlFile);       
        rootset = doc.getPortlets();
       
         return doc;
    }
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.