portals-jetspeed-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tay...@apache.org
Subject cvs commit: jakarta-jetspeed-2/jetspeed-api/src/java/org/apache/jetspeed/sso SSOProvider.java
Date Sat, 01 Jan 2005 00:00:05 GMT
taylor      2004/12/31 16:00:05

  Modified:    components/sso/src/java/org/apache/jetspeed/sso/impl
                        PersistenceBrokerSSOProvider.java
               jetspeed-api/src/java/org/apache/jetspeed/sso
                        SSOProvider.java
  Log:
  new sso api to list sites
  
  Revision  Changes    Path
  1.10      +13 -1     jakarta-jetspeed-2/components/sso/src/java/org/apache/jetspeed/sso/impl/PersistenceBrokerSSOProvider.java
  
  Index: PersistenceBrokerSSOProvider.java
  ===================================================================
  RCS file: /home/cvs/jakarta-jetspeed-2/components/sso/src/java/org/apache/jetspeed/sso/impl/PersistenceBrokerSSOProvider.java,v
  retrieving revision 1.9
  retrieving revision 1.10
  diff -u -r1.9 -r1.10
  --- PersistenceBrokerSSOProvider.java	4 Dec 2004 22:28:19 -0000	1.9
  +++ PersistenceBrokerSSOProvider.java	1 Jan 2005 00:00:05 -0000	1.10
  @@ -15,10 +15,13 @@
    */
   package org.apache.jetspeed.sso.impl;
   
  +import java.security.Principal;
   import java.util.ArrayList;
   import java.util.Collection;
   import java.util.Hashtable;
   import java.util.Iterator;
  +import java.util.LinkedList;
  +import java.util.List;
   
   import org.apache.jetspeed.security.UserPrincipal;
   
  @@ -38,6 +41,7 @@
   
   import org.apache.jetspeed.security.SecurityHelper;
   import org.apache.jetspeed.security.BasePrincipal;
  +import org.apache.jetspeed.security.User;
   import org.apache.jetspeed.security.om.InternalCredential;
   import org.apache.jetspeed.security.om.InternalUserPrincipal;
   import org.apache.jetspeed.security.om.impl.InternalCredentialImpl;
  @@ -45,6 +49,7 @@
   import org.apache.jetspeed.security.spi.impl.DefaultPasswordCredentialImpl;
   
   import org.apache.ojb.broker.query.Criteria;
  +import org.apache.ojb.broker.query.Query;
   import org.apache.ojb.broker.query.QueryByCriteria;
   import org.apache.ojb.broker.query.QueryFactory;
   
  @@ -70,7 +75,14 @@
          super(repositoryPath);
       }
   
  -	
  +	public Iterator getSites(String filter)
  +    {
  +        Criteria queryCriteria = new Criteria();
  +        Query query = QueryFactory.newQuery(SSOSiteImpl.class, queryCriteria);
  +        Iterator result = getPersistenceBrokerTemplate().getIteratorByQuery(query);
  +        return result;
  +    }
  +    
   	/* (non-Javadoc)
   	 * @see org.apache.jetspeed.sso.SSOProvider#hasSSOCredentials(javax.security.auth.Subject,
java.lang.String)
   	 */
  
  
  
  1.5       +5 -1      jakarta-jetspeed-2/jetspeed-api/src/java/org/apache/jetspeed/sso/SSOProvider.java
  
  Index: SSOProvider.java
  ===================================================================
  RCS file: /home/cvs/jakarta-jetspeed-2/jetspeed-api/src/java/org/apache/jetspeed/sso/SSOProvider.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- SSOProvider.java	30 Nov 2004 18:18:13 -0000	1.4
  +++ SSOProvider.java	1 Jan 2005 00:00:05 -0000	1.5
  @@ -14,6 +14,8 @@
   */
   package org.apache.jetspeed.sso;
   
  +import java.util.Iterator;
  +
   import javax.security.auth.Subject;
   
   
  @@ -47,5 +49,7 @@
       throws SSOException;
       
   	void removeCredentialsForSite(Subject subject, String site)  
  -        throws SSOException; 
  +        throws SSOException;
  +    
  +    Iterator getSites(String filter);
   }
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jetspeed-dev-help@jakarta.apache.org


Mime
View raw message