Package org.apache.jetspeed.sso

Examples of org.apache.jetspeed.sso.SSOProvider


     *
     * @throws SerializerException
     */
    private void getSSOSites() throws SerializerException
    {
        SSOProvider ssoProvider = (SSOProvider) getCM().getComponent("org.apache.jetspeed.sso.SSOProvider");
        if (ssoProvider == null)
        {
            throw new SerializerException(SerializerException.COMPONENTMANAGER_DOES_NOT_EXIST.create("org.apache.jetspeed.sso.SSOProvider"));
        }

        Iterator list = null;
        try
        {
            list = ssoProvider.getSites("");
        }
        catch (Exception e)
        {
            throw new SerializerException(SerializerException.GET_EXISTING_OBJECTS.create(new String[]{"SSOSites", e.getMessage()}));
        }
View Full Code Here


     */
    private void recreateSSOSites() throws SerializerException
    {
        logMe("recreateSSOSites - processing");
       
        SSOProvider ssoProvider = (SSOProvider) getCM().getComponent("org.apache.jetspeed.sso.SSOProvider");
        if (ssoProvider == null)
        {
            throw new SerializerException(SerializerException.COMPONENTMANAGER_DOES_NOT_EXIST.create("org.apache.jetspeed.sso.SSOProvider"));
        }

        JSSSOSites sites = ((JSSeedData)getSnapshot()).getSSOSites();
        if ((sites != null) && (sites.size() > 0))
        {
            Iterator sitesIter = sites.iterator();
            while (sitesIter.hasNext())
            {
                JSSSOSite site = (JSSSOSite)sitesIter.next();
                try
                {
                    SSOSite s = ssoProvider.getSite(site.getSiteURL());
                    if ((s == null) || getSetting(JetspeedSerializer.KEY_OVERWRITE_EXISTING))
                    {
                        s = recreateSSOSite(ssoProvider, site, s);
                        ssoProvider.updateSite(s);       
                    }
                }
                catch (Exception e)
                {
                    throw new SerializerException(SerializerException.CREATE_OBJECT_FAILED.create("SSOSite",e.getLocalizedMessage()));
View Full Code Here

TOP

Related Classes of org.apache.jetspeed.sso.SSOProvider

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.