Package org.apache.jetspeed.om.profile

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


        boolean isRoot = (parent == null);
        if (linePrefix == null)
            linePrefix = "";

        IdentityElement element = doc.getPortletsById(portlet.getID());
        if (element == null)
            element = doc.getEntryById(portlet.getID());

        print(linePrefix + "Verify a corresponding IdentitiyElement for " + getNameTag(portlet));
        assertNotNull(element);
        printOk(linePrefix);

        // automatic settings for a "virgin" skin settings
        if (settings == null)
            settings = new MatchSettings(true, true, null, false);

        if (settings.isSkinPresent())
        {
            print(linePrefix + "Verify skin *IS* set for  IdentitiyElement " + getNameTag(element) + "...");
            assertNotNull(element.getSkin());
            printOk(linePrefix);
        }
        else
        {
            print(linePrefix + "Verify skin *IS NOT* set for  IdentitiyElement " + getNameTag(element) + "...");
            Skin showSkin = element.getSkin();
            assertNull(element.getSkin());
            printOk(linePrefix);
        }

        if (!isRoot && settings.matchParentSkin())
        {
View Full Code Here


        Map titles = new HashMap();
        for (int col = 0; col < columns.length; col++)
        {
            for (int row = 0; row < columns[col].size(); row++)
            {
                IdentityElement identityElement = (IdentityElement) columns[col].get(row);
                MetaInfo metaInfo = identityElement.getMetaInfo();
                if ((metaInfo != null) && (metaInfo.getTitle() != null))
                {
                    titles.put(identityElement.getId(), metaInfo.getTitle());
                    continue;
                }

                if (identityElement instanceof Entry)
                {
                    Entry entry = (Entry) identityElement;
                    PortletEntry pentry = (PortletEntry) Registry.getEntry(Registry.PORTLET, entry.getParent());
                    if ((pentry != null) && (pentry.getTitle() != null))
                    {
                        titles.put(entry.getId(), pentry.getTitle());
                        continue;
                    }

                    titles.put(entry.getId(), entry.getParent());
                    continue;
                }

                if (identityElement instanceof Reference)
                {
                    titles.put(identityElement.getId(), CustomLocalization.getString("CUSTOMIZER_REF_DEFAULTTITLE", rundata));
                    continue;
                }

                // Let's make sure there is a title
                titles.put(identityElement.getId(), CustomLocalization.getString("CUSTOMIZER_NOTITLESET", rundata));
            }
        }

        context.put("titles", titles);
        context.put("action", "controllers.MultiColumnControllerAction");
View Full Code Here

        if ((col > -1) && (row > -1))
        {
            try
            {
                IdentityElement identityElement = (IdentityElement) columns[col].get(row);
                columns[col].remove(row);

                Portlets portlets = jdata.getCustomizedProfile()
                                          .getDocument()
                                          .getPortletsById(customizedSet.getID());
View Full Code Here

        int row = 0;
        int col = 0;
        int rowNum = 0;
        while (iterator.hasNext())
        {
            IdentityElement identityElement = (IdentityElement) iterator.next();

            Layout layout = identityElement.getLayout();

            if (layout != null)
            {
                for (int p = 0; p < layout.getParameterCount(); p++)
                {
View Full Code Here

        Map titles = new HashMap();
        for (int col = 0; col < columns.length; col++)
        {
            for (int row = 0; row < columns[col].size(); row++)
            {
                IdentityElement identityElement = (IdentityElement) columns[col].get(row);
                MetaInfo metaInfo = identityElement.getMetaInfo();
                if ((metaInfo != null) && (metaInfo.getTitle() != null))
                {
                    titles.put(identityElement.getId(), metaInfo.getTitle());
                    continue;
                }

                if (identityElement instanceof Entry)
                {
                    Entry entry = (Entry) identityElement;
                    PortletEntry pentry = (PortletEntry) Registry.getEntry(Registry.PORTLET, entry.getParent());
                    if ((pentry != null) && (pentry.getTitle() != null))
                    {
                        titles.put(entry.getId(), pentry.getTitle());
                        continue;
                    }

                    titles.put(entry.getId(), entry.getParent());
                    continue;
                }

                if (identityElement instanceof Reference)
                {
                    titles.put(identityElement.getId(), Localization.getString(rundata, "CUSTOMIZER_REF_DEFAULTTITLE"));
                    continue;
                }

                // Let's make sure their is a title
                titles.put(identityElement.getId(), Localization.getString(rundata, "CUSTOMIZER_NOTITLESET"));
            }
        }

        context.put("titles", titles);
        context.put("action", "controllers.MultiColumnControllerAction");
View Full Code Here

        if ((col > -1) && (row > -1))
        {
            try
            {
                IdentityElement identityElement = (IdentityElement) columns[col].get(row);
                columns[col].remove(row);

                Portlets portlets = jdata.getCustomizedProfile()
                                          .getDocument()
                                          .getPortletsById(customizedSet.getID());
View Full Code Here

        int row = 0;
        int col = 0;
        int rowNum = 0;
        while (iterator.hasNext())
        {
            IdentityElement identityElement = (IdentityElement) iterator.next();

            Layout layout = identityElement.getLayout();

            if (layout != null)
            {
                for (int p = 0; p < layout.getParameterCount(); p++)
                {
View Full Code Here

        boolean isRoot = (parent == null);
        if (linePrefix == null)
            linePrefix = "";

        IdentityElement element = doc.getPortletsById(portlet.getID());
        if (element == null)
            element = doc.getEntryById(portlet.getID());

        print(linePrefix + "Verify a corresponding IdentitiyElement for " + getNameTag(portlet));
        assertNotNull(element);
        printOk(linePrefix);

        // automatic settings for a "virgin" skin settings
        if (settings == null)
            settings = new MatchSettings(true, true, null, false);

        if (settings.isSkinPresent())
        {
            print(linePrefix + "Verify skin *IS* set for  IdentitiyElement " + getNameTag(element) + "...");
            assertNotNull(element.getSkin());
            printOk(linePrefix);
        }
        else
        {
            print(linePrefix + "Verify skin *IS NOT* set for  IdentitiyElement " + getNameTag(element) + "...");
            Skin showSkin = element.getSkin();
            assertNull(element.getSkin());
            printOk(linePrefix);
        }

        if (!isRoot && settings.matchParentSkin())
        {
View Full Code Here

        Map titles = new HashMap();
        for (int col = 0; col < columns.length; col++)
        {
            for (int row = 0; row < columns[col].size(); row++)
            {
                IdentityElement identityElement = (IdentityElement) columns[col].get(row);
                MetaInfo metaInfo = identityElement.getMetaInfo();
                if ((metaInfo != null) && (metaInfo.getTitle() != null))
                {
                    titles.put(identityElement.getId(), metaInfo.getTitle());
                    continue;
                }

                if (identityElement instanceof Entry)
                {
                    Entry entry = (Entry) identityElement;
                    PortletEntry pentry = (PortletEntry) Registry.getEntry(Registry.PORTLET, entry.getParent());
                    if ((pentry != null) && (pentry.getTitle() != null))
                    {
                        titles.put(entry.getId(), pentry.getTitle());
                        continue;
                    }

                    titles.put(entry.getId(), entry.getParent());
                    continue;
                }

                if (identityElement instanceof Reference)
                {
                    titles.put(identityElement.getId(), Localization.getString("CUSTOMIZER_REF_DEFAULTTITLE"));
                    continue;
                }

                // Let's make sure their is a title
                titles.put(identityElement.getId(), Localization.getString("CUSTOMIZER_NOTITLESET"));
            }
        }

        context.put("titles", titles);
        context.put("action", "controllers.MultiColumnControllerAction");
View Full Code Here

        if ((col > -1) && (row > -1))
        {
            try
            {
                IdentityElement identityElement = (IdentityElement) columns[col].get(row);
                columns[col].remove(row);

                Portlets portlets = jdata.getCustomizedProfile()
                                          .getDocument()
                                          .getPortletsById(customizedSet.getID());
View Full Code Here

TOP

Related Classes of org.apache.jetspeed.om.profile.IdentityElement

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.